/* =========================================================
   CASE Security Design System
   Shared CSS for Home + Industry pages
   Direction: LTR
   Dependencies: Bootstrap 5, Swiper.js, Bootstrap Icons
   ========================================================= */
@font-face {
    font-family: 'gilory';
    src: url('../fonts/Gilroy-Regular.woff2') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'gilory';
    src: url('../fonts/Gilroy-SemiBold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --case-red: #F42A2B;
    --case-red-dark: #d90007;
    --case-dark: #1e1e1e;
    --case-black: #1F1F1F;
    --case-text: #161616;
    --case-muted: #B4BEC9;
    --case-border: #DFDFDF;
    --case-soft: #F3F3F3;
    --case-soft-2: #fafafa;
    --case-pink: #fff0f0;
    --case-white: #ffffff;

    --case-hero-gradient: linear-gradient(110deg, #f6f6f6 0%, #ffffff 56%, #f2f2f2 100%);
    --case-dark-overlay: linear-gradient(rgba(0, 0, 0, .84), rgba(0, 0, 0, .84));

    --case-font: gilory, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --case-h1: clamp(2.2rem, 4.2vw, 4.2rem);
    --case-h2: clamp(1.55rem, 2.3vw, 2.18rem);
    --case-body: .95rem;
    --case-small: .88rem;
    --case-line-height: 1.85;

    --case-radius-sm: 12px;
    --case-radius-md: 16px;
    --case-radius-lg: 22px;
    --case-radius-xl: 28px;
    --case-radius-pill: 999px;

    --case-shadow-sm: 0 10px 28px rgba(0, 0, 0, .05);
    --case-shadow-md: 0 16px 42px rgba(0, 0, 0, .07);
    --case-shadow-lg: 0 24px 55px rgba(0, 0, 0, .11);
    --case-red-shadow: 0 12px 30px rgba(255, 37, 43, .28);

    --case-section-padding: 90px;
    --case-transition: .25s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--case-font);
    background: var(--case-white);
    color: var(--case-text);
    direction: ltr;
    text-align: left;
}

a {
    text-decoration: none;
}

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

.section-padding {
    padding: var(--case-section-padding) 0;
}

.section-padding-sm {
    padding: 60px 0;
}

.section-title {
    font-size: var(--case-h2);
    font-weight: 600;
    margin-bottom: .7rem;
    letter-spacing: -.02em;
}

.section-desc {
    max-width: 720px;
    margin-inline: auto;
    color: var(--case-body);
    line-height: var(--case-line-height);
    font-size: var(--case-body);
}

.text-muted-custom {
    color: var(--case-muted);
    line-height: var(--case-line-height);
}

.bg-soft {
    background: var(--case-soft);
}

.bg-pink-soft {
    background: var(--case-pink);
}

.btn-case {
    background: var(--case-red) !important;
    color: var(--case-white);
    border: 0;
    border-radius: 14px;
    padding: .68rem 1.4rem;
    font-size: .9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    transition: var(--case-transition);
}

.btn-case:hover,
.btn-case:focus {
    background: var(--case-red-dark);
    color: var(--case-white);
    transform: translateY(-2px);
}

.btn-dark-pill {
    background: var(--case-dark);
    color: var(--case-white);
    border-radius: 14px;
    padding: .68rem 1.35rem;
    font-size: .9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    transition: var(--case-transition);
}

.btn-dark-pill:hover,
.btn-dark-pill:focus {
    background: #000;
    color: var(--case-white);
    transform: translateY(-2px);
}

.link-case,
.read-more {
    color: var(--case-red);
    font-size: .9rem;
    font-weight: 500;
}

.link-case:hover,
.read-more:hover {
    color: var(--case-red-dark);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.navbar-brand img {
    height: 40px;
}

.navbar-nav .nav-link {
    color: #222;
    font-size: .9rem;
    padding-inline: .85rem !important;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    color: var(--case-red);
}

.header-search,
.search-link {
    color: #222;
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    font-size: .9rem;
}

.dropdown-menu {
    border: 1px solid var(--case-border);
    border-radius: var(--case-radius-md);
    box-shadow: var(--case-shadow-md);
    padding: .65rem;
}

.dropdown-item {
    border-radius: 10px;
    font-size: .9rem;
    padding: .6rem .75rem;
}

.dropdown-item:hover {
    background: rgba(255, 37, 43, .08);
    color: var(--case-red);
}

/* ── Mega Menu ─────────────────────────────────────────────── */
.has-mega-menu {
    position: static !important;
}

/* Down caret on mega-menu items in the main menu */
.has-mega-menu > .nav-link .mega-caret {
    font-size: .68em;
    margin-left: .35em;
    vertical-align: middle;
    transition: transform var(--case-transition);
}

.has-mega-menu.mega-open > .nav-link .mega-caret {
    transform: rotate(180deg);
}

/* Invisible bridge: extends the hover zone from the nav link
   down to the panel so mouse movement never crosses empty space */
.has-mega-menu > .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px; /* covers the gap between navbar bottom and panel */
    display: block;
    pointer-events: none; /* let JS handle it instead */
}

.mega-menu-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    /* overlap the navbar bottom border so there is zero gap */
    top: calc(100% - 1px);
    z-index: 999;
    background: #fff;
    border-top: 2px solid var(--case-red);
    border-bottom: 1px solid rgba(0,0,0,.07);
    box-shadow: 0 12px 32px rgba(0,0,0,.10);
    padding: 2rem 0;
}

.mega-menu-panel {
    margin: 0 2.5rem;
}


/* Opened via JS class — not pure CSS :hover — to allow delay on close */
.has-mega-menu.mega-open > .mega-menu-panel {
    display: block;
}


.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.mega-menu-col-title {

}

.mega-menu-col-title a{
    display: block;
    font-size: .875rem;
    line-height: 1.5625rem;
    font-weight: 500;
    --tw-text-opacity: 1;
    position: relative;
    z-index: 1;
    display: inline-block;
    width: 100%;
    border-radius: 5px;
    padding: .5rem;
    color: var(--case-black);
    font-weight: 600;
}
.mega-menu-col-title a:hover{
    background: var(--case-pink);
    color: var(--case-red-dark);
}
.mega-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

/* Column heading whose links overflow the configured rows-per-column
   spans multiple grid tracks (see --mega-link-cols, set inline per item) */
.mega-menu-col--multi .mega-menu-links {
    display: grid;
    grid-template-columns: repeat(var(--mega-link-cols, 2), 1fr);
    column-gap: 1rem;
}

.mega-menu-links li a {
    display: flex;
    flex-direction: column;
    padding: .45rem .5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background .15s;
}

.mega-menu-links li a:hover {
    background: rgba(255, 37, 43, .06);
}

.mega-link-label {
    font-size: .9rem;
    color: #222;
    font-weight: 500;
    transition: color .15s;
}

.mega-menu-links li a:hover .mega-link-label {
    color: var(--case-red);
}

.mega-link-desc {
    font-size: .78rem;
    color: #888;
    margin-top: .1rem;
    line-height: 1.4;
}

/* ── Search Modal ──────────────────────────────────────────── */
.search-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    padding-inline: 16px;
}

.search-modal[hidden] {
    display: none;
}

.search-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(4px);
}

.search-modal-box {
    position: relative;
    width: 100%;
    max-width: 640px;
    background: var(--case-white);
    border-radius: var(--case-radius-lg);
    box-shadow: var(--case-shadow-lg);
    overflow: hidden;
    animation: searchSlideIn .18s ease;
}

@keyframes searchSlideIn {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-modal-input-wrap {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--case-border);
}

.search-modal-icon {
    color: var(--case-muted);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.search-modal-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: var(--case-font);
    background: transparent;
    color: var(--case-text);
}

.search-modal-input::placeholder {
    color: var(--case-muted);
}

.search-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--case-muted);
    padding: .25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    transition: color var(--case-transition);
}

.search-modal-close:hover {
    color: var(--case-text);
}

.search-modal-body {
    max-height: 420px;
    overflow-y: auto;
    padding: .5rem 0;
}

.search-modal-hint {
    text-align: center;
    color: var(--case-muted);
    font-size: .9rem;
    padding: 1.5rem 1rem;
    margin: 0;
}

.search-modal-loading::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid var(--case-border);
    border-top-color: var(--case-red);
    border-radius: 50%;
    animation: spin .7s linear infinite;
    margin-right: .5rem;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.search-group {
    padding: .5rem 0;
}

.search-group + .search-group {
    border-top: 1px solid var(--case-border);
}

.search-group-label {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--case-muted);
    padding: .5rem 1.25rem .25rem;
    margin: 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem 1.25rem;
    color: var(--case-text);
    text-decoration: none;
    transition: background var(--case-transition);
}

.search-result-item:hover {
    background: var(--case-soft);
    color: var(--case-text);
}

.search-result-icon {
    width: 34px;
    height: 34px;
    background: var(--case-soft);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--case-red);
    font-size: 1rem;
}

.search-result-thumb {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--case-soft);
}

.search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-title {
    flex: 1;
    font-size: .9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    font-size: .8rem;
    color: var(--case-muted);
    flex-shrink: 0;
}

body.search-modal-open {
    overflow: hidden;
}

/* Mobile header layout */
@media (max-width: 991.98px) {
    .navbar {
        position: relative;
    }

    .mobile-brand-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

.mobile-search-btn {
    color: #222;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.mobile-search-btn:hover {
    color: var(--case-red);
}

/* Mobile Offcanvas Menu — full screen */
#mobileMenu {
    width: 100%;
    max-width: 100%;
    background: var(--case-white);
    z-index: 99999;
}

#mobileMenu .offcanvas-header {
    border-bottom: 1px solid var(--case-border);
    padding: 1rem 1.25rem;
}

.mobile-header-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-left: auto;
}

.mobile-quote-btn {
    padding: .5rem 1rem;
    font-size: .9rem;
    white-space: nowrap;
}

#mobileMenu .btn-close {
    flex-shrink: 0;
}

#mobileMenu .offcanvas-body {
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* Root level: the single scroll container at the base level */
#mobileMenu .mobile-root {
    height: 100%;
    overflow-y: auto;
    padding: 1.25rem 1.5rem 2rem;
}

#mobileMenu .mobile-nav {
    margin: 0;
}

.mobile-menu-btn {
    font-size: 30px;
    background: var(--case-black);
    color: white;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;

}

.mobile-search-btn {
    font-size: 22px;
    border-radius: 8px;
    background: var(--case-black) !important;
    color: white;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav .nav-link {
    color: var(--case-text);
    font-size: 1rem;
    font-weight: 500;
    padding: .75rem 0;
    border-bottom: 1px solid var(--case-border);
}

.mobile-nav .nav-link:hover,
.mobile-nav .nav-link.active {
    color: var(--case-red);
}

.mobile-nav .dropdown-menu {
    position: static !important;
    box-shadow: none;
    border: none;
    padding: 0 0 0 1rem;
    border-radius: 0;
}

.mobile-nav .dropdown-item {
    font-size: .9rem;
    padding: .5rem .75rem;
    border-radius: 8px;
}

/* ── Mobile drill-down mega-menu (Pelco-style slide-in panels) ─ */
.mobile-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.mobile-item-row .nav-link {
    flex: 1;
    border-bottom: none;
    padding-right: .5rem;
}

.mobile-nav > .nav-item {
    border-bottom: 1px solid var(--case-border);
}

/* Forward "drill in" button */
.mobile-drill {
    background: none;
    border: none;
    padding: .4rem .5rem;
    color: var(--case-text);
    cursor: pointer;
    flex-shrink: 0;
    font-size: 1.05rem;
    line-height: 1;
}

.mobile-drill:hover {
    color: var(--case-red);
}

/* A top-level item opens ONE panel that slides over the root list */
.mobile-panel {
    position: absolute;
    inset: 0;
    background: var(--case-white);
    padding: 1.5rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .28s ease;
    visibility: hidden;
    z-index: 2;
}

.mobile-panel.is-open {
    transform: translateX(0);
    visibility: visible;
}

/* Back row — own line above the title */
.mobile-back {
    display: flex;
    align-items: center;
    gap: .35rem;
    width: fit-content;
    background: none;
    border: none;
    padding: 0;
    margin: 0 0 1rem;
    color: var(--case-text);
    font-size: .92rem;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
}

.mobile-back:hover {
    color: var(--case-red);
}

.mobile-back .bi {
    font-size: 1rem;
}

/* Clicked item title, with accent underline */
.mobile-panel-heading {
    display: block;
    width: fit-content;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--case-text);
    margin: 0 0 1.25rem;
    padding-bottom: .4rem;
    border-bottom: 2px solid var(--case-red);
}

/* Panel content — everything inline, no further pages */
.mobile-sub-menu {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.mobile-sub-menu > li {
    border-bottom: 1px solid var(--case-border);
}

.mobile-sub-menu > li:last-child {
    border-bottom: none;
}

/* Section heading (depth-1 with children) */
.mobile-panel-section {
    padding-top: .35rem;
}

.mobile-section-title {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #888;
    padding: .75rem 0 .35rem;
    text-decoration: none;
}

a.mobile-section-title:hover {
    color: var(--case-red);
}

/* Links inside the panel */
.mobile-panel-link {
    display: block;
    color: var(--case-text);
    font-size: 1rem;
    font-weight: 500;
    padding: .7rem 0;
    text-decoration: none;
}

.mobile-panel-link:hover {
    color: var(--case-red);
}

.mobile-panel-links {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.mobile-panel-links > li:not(:last-child) .mobile-panel-link {
    border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.mobile-nav-actions .btn-case {
    text-align: center;
}

/* Root-level search field (opens the search modal) */
.mobile-search {
    margin-top: 1.5rem;
}

.mobile-search-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    width: 100%;
    padding: .8rem 1.1rem;
    background: var(--case-soft);
    border: 1px solid var(--case-border);
    border-radius: var(--case-radius-pill);
    color: #6b7280;
    font-size: .95rem;
    cursor: pointer;
    transition: var(--case-transition);
}

.mobile-search-field:hover {
    border-color: var(--case-red);
    color: var(--case-text);
}

.mobile-search-field .bi {
    font-size: 1.05rem;
    color: var(--case-text);
    flex-shrink: 0;
}

/* Hero */
.hero-section,
.industry-hero {
    background: var(--case-hero-gradient);
    overflow: hidden;
}

.hero-slide,
.hero-inner {
    min-height: 520px;
    display: flex;
    align-items: center;
    padding: 60px 0 82px;
}

.industry-hero .hero-inner {
    min-height: 430px;
    padding: 56px 0;
}

.hero-title {
    font-size: var(--case-h1);
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: -.03em;
    margin-bottom: 1.1rem;
}

.hero-text {
    color: var(--case-muted);
    line-height: var(--case-line-height);
    max-width: 520px;
    margin-bottom: 1.45rem;
}

.hero-img-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image,
.hero-img-wrap img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 28px 46px rgba(0, 0, 0, .13));
}


/* Cards and tabs */
.case-card {
    border: 1px solid var(--case-border);
    border-radius: var(--case-radius-lg);
    background: var(--case-white);
    transition: var(--case-transition);
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--case-shadow-md);
}

.tab-card,
.solution-tabs .nav-link {
    border: 1px solid var(--case-border);
    border-radius: var(--case-radius-md);
    background: var(--case-white);
    color: var(--case-text);
    transition: var(--case-transition);
    position: relative;
}

.tab-card {
    padding: 24px 20px;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
}

/* Offset the smooth scroll so the pane clears the sticky header on mobile */
@media (max-width: 767.98px) {
    .tab-content-box .tab-pane,
    .solution-box .tab-pane {
        scroll-margin-top: 90px;
    }
}

.solution-tabs .nav {
    gap: 16px;
    justify-content: center;
    margin-bottom: 28px;
}

.solution-tabs .nav-link {
    min-width: 210px;
    padding: 1rem 1.35rem;
    font-size: .92rem;
}

.tab-card::before,
.solution-tabs .nav-link::before,
.tab-card::after,
.solution-tabs .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 50%;
    border-radius: 0 2rem 2rem 0;
    background: var(--case-soft);
    transition: var(--case-transition);
    transform: translateY(-50%);
}

.tab-card::after,
.solution-tabs .nav-link::after {
    left: unset;
    right: 0;
    border-radius: 2rem 2rem 0 0;

}


.tab-card.active,
.tab-card:hover,
.solution-tabs .nav-link.active,
.solution-tabs .nav-link:hover {
    border-color: rgba(255, 37, 43, .35);
    box-shadow: var(--case-shadow-md);
    color: var(--case-red);
    transform: translateY(-4px);
}

.tab-card.active::before,
.solution-tabs .nav-link.active::before,
.tab-card.active::after,
.solution-tabs .nav-link.active::after {
    background: var(--case-red);
}

ul.ic-list li {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: #555;
    font-size: .93rem;
    margin-bottom: .85rem;
    line-height: 1.7;
}

ul.ic-list li i {
    color: var(--case-red);
    font-size: 20px;
}

.tab-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: var(--case-red);
    background: rgba(255, 37, 43, .08);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.tab-card.active .tab-icon {
    color: var(--case-white);
    background: var(--case-red);
}
.tab-card .tab-icon i{
    font-size: 45px;
}

.tab-card h3 {
    font-size: 1rem;
    margin-bottom: .5rem;
    font-weight: 600;
    color: var(--case-text);
}

.tab-card p {
    color: var(--case-muted);
    margin-bottom: 0;
    font-size: var(--case-small);
    line-height: 1.7;
}

.tab-content-box,
.solution-box {
    background: var(--case-soft);
    border-radius: var(--case-radius-xl);
    padding: clamp(24px, 4vw, 46px);
    overflow: hidden;
}

.tab-content-box {
    margin-top: 32px;
}

.tab-pane-img,
.solution-img,
.why-img {
    width: 100%;
    border-radius: var(--case-radius-lg);
    /*aspect-ratio: 1.42 / 1;*/
    /*object-fit: cover;*/
}

/* Lists */
.feature-list,
.icon-list {
    list-style: none;
    padding: 0;
    margin: 1.4rem 0;
}

.feature-list li,
.icon-list li {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    color: #555;
    font-size: .93rem;
    margin-bottom: .85rem;
    line-height: 1.7;
}

.feature-list li i,
.icon-list li i {
    color: var(--case-red);
    font-size: 1.05rem;
    margin-top: .15rem;
    flex: 0 0 auto;
}

.feature-list li > div,
.icon-list li > div {
    flex: 1;
    min-width: 0;
}

/* Dark sections */
.counter-section,
.stories-section {
    background: var(--case-dark-overlay), var(--case-dark);
    color: var(--case-white);
    position: relative;
    overflow: hidden;
}

.counter-section {
    padding: 78px 0;
}

.stories-section {
    padding: 84px 0;
}

.counter-section::before,
.stories-section::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .18;
    background-image: radial-gradient(rgba(255, 255, 255, .25) 1px, transparent 1px);
    background-size: 10px 10px;
    pointer-events: none;
}

.counter-section > .container,
.stories-section > .container {
    position: relative;
    z-index: 1;
}


.counter-number {
    border-left: 2px solid var(--case-red);
    padding-left: 12px;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 500;
    margin-bottom: .4rem;
    line-height: 1;
}

.counter-prefix {
    color: var(--case-red);
}

.counter-item h4 {
    font-size: 1rem;
    margin-bottom: .55rem;
}

.counter-item p {
    color: rgba(255, 255, 255, .64);
    line-height: 1.75;
    font-size: var(--case-small);
    margin-bottom: 0;
}

/* Product and Blog */
.product-swiper,
.blog-swiper {
    padding: 8px 4px 54px;
}

.product-card,
.blog-card-link,
.blog-card-link:hover,
.featured-post-link,
.featured-post-link:hover {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.blog-card {
    height: 100%;
    border: 0;
    border-radius: var(--case-radius-lg);
    background: var(--case-white);
    overflow: hidden;
    padding: 1rem;
    box-shadow: var(--bs-box-shadow-sm) !important;
    border: 1px solid var(--case-soft);
}

.blog-card {
    box-shadow: var(--case-shadow-sm);
}

/*.product-media {*/
/*    background: var(--case-soft);*/
/*    border-radius: var(--case-radius-lg);*/
/*    padding: 32px;*/
/*    display: grid;*/
/*    place-items: center;*/
/*    aspect-ratio: 1.2 / 1;*/
/*    margin-bottom: 18px;*/
/*}*/

.product-media img {
    width: 100%;
    height: auto;
    /*max-height: 230px;*/
    /*object-fit: contain;*/
    /*filter: drop-shadow(0 15px 25px rgba(0, 0, 0, .08));*/
}

.product-card h3,
.blog-card h3 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.55;
    margin-bottom: .7rem;
}

.product-card p {
    color: var(--case-muted);
    font-size: .9rem;
    line-height: 1.75;
    margin-bottom: .85rem;
}

.blog-img-wrap {
    position: relative;
    overflow: hidden;
}

.blog-img-wrap img {
    width: 100%;
    aspect-ratio: 1.55 / 1;
    object-fit: cover;
    transition: .35s ease;
}

.blog-card:hover .blog-img-wrap img {
    transform: scale(1.05);
}

.blog-card .card-body {
    padding: 20px;
}

.date-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255, 255, 255, .94);
    border-radius: var(--case-radius-pill);
    padding: .42rem .8rem;
    font-size: .76rem;
    color: #555;
}

/* Swiper */
.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    opacity: 1;
    background: #c9c9c9;
}

.swiper-pagination-bullet-active {
    background: var(--case-black);
}

.hero-swiper .swiper-pagination {
    bottom: 0 !important;
    background: white;
    max-width: fit-content;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 2rem 0 2rem;
    border: 1px solid #f3f3f3;
    border-bottom: unset;
    border-radius: 10px 10px 0 0;
}

/* Story */
.story-swiper {
    padding-bottom: 52px;
}

.story-card {
    position: relative;
    z-index: 1;
}

.story-img {
    width: 100%;
    border-radius: var(--case-radius-lg);
    aspect-ratio: 1.65 / 1;
    object-fit: cover;
}

.story-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, .88);
    color: #222;
    border-radius: var(--case-radius-sm);
    padding: .75rem 1rem;
    font-size: .82rem;
    box-shadow: var(--case-shadow-md);
}

.story-content p {
    color: rgba(255, 255, 255, .68);
    line-height: var(--case-line-height);
    margin-bottom: 1.3rem;
}

/* Banners */
.image-text-section img,
.guide-img {
    width: 100%;
    border-radius: var(--case-radius-lg);
    object-fit: cover;
}

.image-text-section img {
    aspect-ratio: 1.1 / 1;
}

.wide-banner {
    background: linear-gradient(
            to bottom,
            rgba(255, 255, 255, .94) 0%,
            rgba(255, 255, 255, .94) 20%,
            rgba(255, 255, 255, .65) 20%,
            rgba(255, 255, 255, .65) 80%,
            rgba(255, 255, 255, .94) 80%,
            rgba(255, 255, 255, .94) 100%
    ),
    var(--case-soft);
    min-height: 245px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.wide-banner-card {

}

.guide-box {
    background: var(--case-pink);
    border-radius: 24px;
    padding: clamp(22px, 3.2vw, 36px);
    position: relative;
    overflow: hidden;
}

.guide-box::after {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 0;
    height: 2px;
    background: var(--case-red);
}

.guide-img {
    aspect-ratio: 1.35 / 1;
}

/* Certifications */
.cert-card {
    border: 1px solid var(--case-border);
    border-radius: var(--case-radius-lg);
    padding: 28px 18px;
    height: 100%;
    background: var(--case-white);
    text-align: center;
    transition: var(--case-transition);
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--case-shadow-md);
}

.cert-logo {
    height: 54px;
    object-fit: contain;
    margin-bottom: 1.1rem;
}

.cert-card h3 {
    font-size: .98rem;
    margin-bottom: .6rem;
}

.cert-card p {
    color: var(--case-muted);
    font-size: .86rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Forms */
.form-control {
    border: 1px solid var(--case-border);
    border-radius: var(--case-radius-sm);
    font-size: .9rem;
    padding: .8rem 1rem;
}

textarea.form-control {
    min-height: 145px;
}

.form-control:focus {
    border-color: rgba(255, 37, 43, .45);
    box-shadow: 0 0 0 .2rem rgba(255, 37, 43, .08);
}

/* Footer */
.site-footer {
    background: var(--case-dark);
    color: var(--case-white);
    padding: 64px 0 20px;
    padding-bottom: 0;
}

.footer-logo {
    margin-bottom: .5rem;
}

.footer-text {
    color: rgba(255, 255, 255, .62);
    line-height: 1.9;
    font-size: .9rem;
}

.footer-title {
    font-size: 1rem;
    margin-bottom: 1.35rem;
    font-weight: 600;
}

.footer-title--toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-toggle-icon {
    font-size: .75rem;
    transition: transform .25s ease;
    flex-shrink: 0;
    display: none;
}

/* موبایل: collapsed by default, JS handles toggle */
.footer-collapse {
    overflow: hidden;
    transition: max-height .3s ease;
}

.footer-collapse.is-collapsed {
    max-height: 0 !important;
}

.footer-title--toggle.is-mobile {
    margin: 0;
}


.footer-menu-wrapper i {
    font-size: 22px;
}

.footer-title--toggle.is-mobile .footer-toggle-icon {
    display: inline-flex;
}

.footer-title--toggle.is-mobile[aria-expanded="true"] .footer-toggle-icon {
    transform: rotate(180deg);
}

.footer-title--toggle.is-mobile[aria-expanded="true"] {
    margin-bottom: 0;
}

.footer-collapse.is-mobile {
    padding-top: .5rem;
}

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

.footer-links li {
    margin-bottom: .75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, .65);
    font-size: .9rem;
}

.footer-links a:hover {
    color: var(--case-white);
}

.contact-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: rgba(255, 255, 255, .68);
    margin-bottom: .9rem;
    font-size: .9rem;
}
.contact-row a{
    color: rgba(255, 255, 255, .68);

}

.contact-row i {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--case-white);
    color: var(--case-red);
    display: grid;
    place-items: center;
    flex: 0 0 32px;
}

.footer-bottom {
    margin-top: 32px;
    /* color: rgba(255, 255, 255, .55); */
    font-size: .84rem;
    background: #F3F3F3;
    color: var(--case-black);
    padding: 0.5rem 1rem;
}

.copy-right span {
    color: var(--case-red);
}

.social-links a {
    color: white;
    margin-right: .9rem;
}

.social-links a:hover {
    color: var(--case-red);
}

.back-to-top {
    position: fixed;
    right: 26px;
    bottom: 26px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--case-red);
    color: var(--case-white);
    display: grid;
    place-items: center;
    z-index: 999;
    box-shadow: var(--case-red-shadow);
    font-size: 25px;
    border: unset;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

button.back-to-top.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.back-to-top:hover {
    color: var(--case-white);
    background: var(--case-red-dark);
}

/* Responsive */
@media (max-width: 991.98px) {
    :root {
        --case-section-padding: 70px;
    }

    .hero-slide,
    .hero-inner,
    .industry-hero .hero-inner {
        min-height: auto;
        text-align: center;
        padding: 52px 0 74px;
    }

    .hero-text {
        margin-inline: auto;
    }

    .solution-tabs .nav-link {
        min-width: 100%;
    }

    .counter-item {
        margin-bottom: 28px;
    }

    .story-content {
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    :root {
        --case-section-padding: 56px;
    }


    .tab-content-box,
    .solution-box {
        border-radius: 20px;
        padding: 22px;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-menu-wrapper {
        cursor: pointer;
        margin-bottom: 0;
        /* padding-bottom: .85rem; */
        user-select: none;
        BACKGROUND: #FFFFFF05;
        padding: 0.75rem 0.75rem;
        border-radius: 12px;
    }
    .wide-banner{
        background: var(--case-soft);
    }
}

/* Single Product Page CSS - uses case-design-system.css */
.breadcrumb-wrap {
    padding: 24px 0 10px;
    color: var(--case-muted);
    font-size: .86rem
}

.breadcrumb-wrap a {
    color: var(--case-muted)
}

.breadcrumb-wrap a:hover {
    color: var(--case-red)
}

.product-detail-section {
    padding: 12px 0 70px
}

.product-gallery-main {
    border: 1px solid var(--case-border);
    border-radius: var(--case-radius-lg);
    background: var(--case-white);
    overflow: hidden
}

.product-gallery-main .swiper-slide {
    min-height: 430px;
    display: grid;
    place-items: center;
    padding: 44px
}

.product-gallery-main img {
    width: min(100%, 430px);
    object-fit: contain;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .08))
}

.product-thumbs-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px
}

.product-thumbs {
    width: min(100%, 260px);
    margin: 0
}

.product-thumbs .swiper-slide {
    width: 58px;
    height: 58px;
    border: 1px solid var(--case-border);
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--case-soft);
    cursor: pointer;
    opacity: .72;
    transition: var(--case-transition)
}

.product-thumbs .swiper-slide-thumb-active, .product-thumbs .swiper-slide:hover {
    border-color: var(--case-red);
    opacity: 1
}

.product-thumbs img {
    width: 48px;
    height: 48px;
    object-fit: contain
}

.gallery-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--case-border);
    background: var(--case-white);
    color: var(--case-muted);
    display: grid;
    place-items: center;
    transition: var(--case-transition)
}

.gallery-arrow:hover {
    color: var(--case-red);
    border-color: rgba(255, 37, 43, .35)
}

.product-detail-title {
    font-size: clamp(1.55rem, 2.4vw, 2.25rem);
    font-weight: 500;
    margin-bottom: .45rem
}

.product-category {
    color: var(--case-muted);
    font-size: .94rem;
    margin-bottom: 1rem
}

.product-summary {
    color: #1F1F1F;
    line-height: var(--case-line-height);
    margin-bottom: 1.35rem;
    max-width: 580px
}

.product-meta {
    /*padding-top: 1.25rem;*/
    margin-top: 1.25rem;
    /*border-top: 1px solid var(--case-border)*/
}

.product-meta p {
    margin-bottom: .45rem;
    color: var(--case-muted);
    font-size: .9rem
}

.product-meta strong {
    color: var(--case-text);
    font-weight: 500
}

.response-box {
    background: var(--case-soft);
    border-radius: var(--case-radius-xl);
    padding: clamp(28px, 4vw, 48px)
}

.response-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative
}


.response-list li {
    position: relative;
    padding-left: 28px;
    padding-bottom: 14px;
    padding-top: 14px
}

.response-list li:after {
    content: "";
    position: absolute;
    left: 0;
    height: 100%;
    width: 1px;
    top: 50%;
    background: #d9d9d9;
    transform: translateY(-50%);

}

.response-list li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 70%;
    border-radius: 0 0.5rem 0.5rem 0;
    background: #B4BEC9;
    /* border: 3px solid var(--case-red); */
    z-index: 1;
    transform: translateY(-50%);
}

.response-list li:first-of-type:before {

    background: var(--case-red);

}

.response-list li h3 {
    font-size: .98rem;
    color: var(--case-red);
    margin-bottom: .45rem
}

.response-list li p {
    color: var(--case-muted);
    line-height: 1.75;
    font-size: .9rem;
    margin-bottom: 0
}

.response-img {
    width: 100%;
    border-radius: var(--case-radius-lg);
    aspect-ratio: 1.34/1;
    object-fit: cover
}

.related-section {
    padding-top: 20px
}

.related-swiper {
    padding: 6px 4px 54px
}

.doc-section {
    background: var(--case-dark-overlay), var(--case-dark);
    color: var(--case-white);
    padding: 78px 0;
    position: relative;
    overflow: hidden
}

.doc-section:before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .18;
    background-image: radial-gradient(rgba(255, 255, 255, .25) 1px, transparent 1px);
    background-size: 10px 10px;
    pointer-events: none
}

.doc-section .container {
    position: relative;
    z-index: 1
}

.doc-filter .form-control, .doc-filter .form-select {
    background: transparent;
    color: var(--case-white);
    border-color: rgba(255, 255, 255, .55);
    border-radius: 14px;
    padding: .8rem 1rem;
}

.doc-filter .form-control::placeholder {
    color: rgba(255, 255, 255, .7)
}

.doc-filter .form-select option {
    color: #111
}

.doc-item {
    max-width: 560px;
    margin: 28px auto 0;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px
}

.doc-item h3 {
    font-size: .96rem;
    margin-bottom: .35rem
}

.doc-item p {
    color: rgba(255, 255, 255, .62);
    font-size: .86rem;
    margin-bottom: .35rem
}

.doc-meta {
    display: inline-block;
    font-size: .78rem;
    color: rgba(255, 255, 255, .45);
    margin-top: .15rem;
}

.docs-empty-state {
    text-align: center;
    padding: 64px 0;
    color: rgba(255, 255, 255, .55);
}

.docs-empty-state i {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, .3);
}

.docs-empty-state h3 {
    font-size: 1.1rem;
    margin-bottom: .5rem;
    color: rgba(255, 255, 255, .75);
}

.docs-empty-state p {
    font-size: .9rem;
}

.doc-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
    color: rgba(255, 255, 255, .65);
    font-size: .88rem
}

.doc-pagination .page-dot {
    min-width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: var(--case-white);
    display: grid;
    place-items: center
}

@media (max-width: 991.98px) {
    .product-gallery-main .swiper-slide {
        min-height: 340px;
        padding: 28px
    }

    .product-detail-section {
        padding-bottom: 54px
    }

    .doc-item {
        flex-direction: column;
        align-items: flex-start
    }
}

@media (max-width: 575.98px) {
    .product-gallery-main .swiper-slide {
        min-height: 280px
    }

    .product-thumbs {
        width: 210px
    }
}

.ff-el-form-control {
    border-color: var(--case-border) !important;
    border-radius: 13px !important;
    padding-left: 1.5rem !important;
}

.ff-el-form-control label {
    font-weight: bold !important;
    font-size: 15px;
}

.ff-el-input--label {
    position: absolute !important;
    top: 0;
    left: 1rem;
    font-size: 15px;
    transform: translateY(-50%);
    background: white;
    padding: 0 0.5rem;
}

.fluentform .ff-el-group {
    position: relative;
}

.ff-default .ff-el-form-control {
    font-size: 13px !important;
    color: var(--case-border) !important;
}

/* =====================================================
   About Page
   ===================================================== */

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--case-red);
    background: rgba(244, 42, 43, .08);
    border-radius: var(--case-radius-pill);
    padding: .35rem .85rem;
    font-size: .82rem;
    margin-bottom: 1.1rem;
}

.section-text {
    color: #4b5563;
    line-height: 1.85;
    font-size: .95rem;
}

.btn-outline-case {
    color: var(--case-red);
    border: 1px solid var(--case-red);
    border-radius: var(--case-radius-pill);
    padding: .72rem 1.5rem;
    font-size: .9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--case-transition);
}

.btn-outline-case:hover {
    background: var(--case-red);
    color: #fff;
    transform: translateY(-2px);
}

.about-hero {
    padding: 84px 0 76px;
    background: radial-gradient(circle at 88% 12%, rgba(244, 42, 43, .12), transparent 26%),
    linear-gradient(110deg, #f6f6f6 0%, #ffffff 55%, #f3f3f3 100%);
    overflow: hidden;
}

.about-hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 4.25rem);
    font-weight: 700;
    letter-spacing: -.045em;
    margin-bottom: 1rem;
    max-width: 640px;
}

.about-hero p {
    color: #4b5563;
    line-height: 1.85;
    max-width: 560px;
    margin-bottom: 1.55rem;
}

.hero-product-img {
    width: min(100%, 650px);
    filter: drop-shadow(0 26px 44px rgba(0, 0, 0, .12));
}


.trusted-title {
    text-align: center;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 28px;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(90px, 1fr));
    align-items: center;
    gap: 24px;
}

.logo-grid img {
    width: 100%;
    max-height: 70px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .72;
    transition: var(--case-transition);
}

.logo-grid img:hover {
    filter: none;
    opacity: 1;
}

.legacy-section {
    padding: 76px 0 86px;
    background: #fff;
}

.story-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.value-list {
    margin: 38px 0 28px;
    display: grid;
    gap: 28px;
}

.value-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.value-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(244, 42, 43, .08);
    color: var(--case-red);
    display: grid;
    place-items: center;
    font-size: 1.35rem;
}

.value-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .45rem;
}

.value-item p {
    color: #4b5563;
    line-height: 1.75;
    font-size: .92rem;
    margin-bottom: 0;
}

.brand-mark {
    font-size: clamp(4rem, 10vw, 8.6rem);
    font-weight: 900;
    font-style: italic;
    letter-spacing: -.08em;
    color: var(--case-red);
    text-shadow: 0 20px 40px rgba(244, 42, 43, .12);
}

.supercharged-section {
    padding: 84px 0;
    background: var(--case-soft);
}


.video-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--case-radius-lg);
    box-shadow: var(--case-shadow-sm);
    background: #fff;
    cursor: pointer;
}

.video-card img {
    width: 100%;
    aspect-ratio: 1.55 / 1;
    object-fit: cover;
    transition: .35s ease;
}

.video-card:hover img {
    transform: scale(1.03);
}

.play-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 76px;
    height: 76px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--case-red);
    display: grid;
    place-items: center;
    font-size: 2.5rem;
    box-shadow: var(--case-shadow-md);
    pointer-events: none;
}

.video-modal-content {
    border: 0;
    border-radius: var(--case-radius-lg);
    overflow: hidden;
    background: #111;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    background-color: #fff;
    opacity: 1;
    border-radius: 50%;
}

.video-placeholder {
    color: #fff;
    background: linear-gradient(135deg, #171717, #3a3a3a);
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    min-height: 280px;
}

.video-placeholder i {
    font-size: 3rem;
    color: var(--case-red);
}

.explore-section {
    padding: 82px 0 88px;
    background: #fff;
}

.explore-card {
    height: 100%;
    background: #fff;
    border-radius: var(--case-radius-sm);
    overflow: hidden;
    box-shadow: var(--case-shadow-md);
    transition: var(--case-transition);
}

.explore-card:hover {
    transform: translateY(-6px);
}

.explore-card img {
    width: 100%;
    aspect-ratio: 1.65 / 1;
    object-fit: cover;
}

.explore-card-body {
    padding: 28px 24px 34px;
    text-align: center;
}

.explore-card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.explore-card-body p {
    color: #4b5563;
    line-height: 1.75;
    font-size: .92rem;
    margin-bottom: 1.25rem;
}

.about-contact-section {
    padding: 86px 0 94px;
    background: #fff;
}

.about-contact-form {
    max-width: 1060px;
    margin-inline: auto;
    background: #fff;
    border-radius: var(--case-radius-lg);
    padding: clamp(26px, 4vw, 58px);
    box-shadow: var(--case-shadow-lg);
}

.about-contact-form .form-control {
    min-height: 52px;
    border: 1px solid #c5ccd6;
    border-radius: 0;
    box-shadow: none;
    font-size: .9rem;
    padding: .85rem 1rem;
}

.about-contact-form textarea.form-control {
    min-height: 88px;
}

.about-contact-form .form-control:focus {
    border-color: rgba(244, 42, 43, .55);
    box-shadow: 0 0 0 .2rem rgba(244, 42, 43, .08);
}

@media (max-width: 991.98px) {
    .about-hero {
        text-align: center;
        padding: 64px 0;
    }

    .about-hero p {
        margin-inline: auto;
    }

    .about-hero .d-flex {
        justify-content: center;
    }

    .logo-grid {
        grid-template-columns: repeat(3, minmax(90px, 1fr));
    }

    .legacy-section,
    .supercharged-section,
    .explore-section,
    .about-contact-section {
        padding-block: 64px;
    }
}

@media (max-width: 575.98px) {
    .btn-outline-case {
        width: 100%;
    }

    .logo-grid {
        grid-template-columns: repeat(2, minmax(90px, 1fr));
    }

    .value-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .value-icon {
        margin-inline: auto;
    }

    .about-contact-form {
        box-shadow: var(--case-shadow-md);
    }
}

/* =========================================================
   Blog Archive
   ========================================================= */
.blog-hero {
    padding: 84px 0 72px;
    background: radial-gradient(circle at 82% 18%, rgba(244, 42, 43, .10), transparent 28%),
    linear-gradient(110deg, #f6f6f6 0%, #ffffff 56%, #f2f2f2 100%);
    overflow: hidden;
}

.blog-hero h1 {
    font-size: clamp(1.85rem, 3.5vw, 3.1rem);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.22;
    max-width: 780px;
    margin: 0 auto .8rem;
}

.blog-hero p {
    color: #4b5563;
    max-width: 620px;
    margin-inline: auto;
    font-size: .97rem;
    line-height: 1.78;
}

.blog-archive-section {
    padding: 72px 0 80px;
}

/* Featured post card */
.featured-post {
    display: grid;
    grid-template-columns: 1.03fr 1fr;
    max-width: 1060px;
    margin: 0 auto 34px;
    background: #fff;
    border: 1px solid var(--case-border);
    border-radius: var(--case-radius-md);
    overflow: hidden;
    box-shadow: var(--case-shadow-md);
}

.featured-media img {
    width: 100%;
    height: 100%;
    min-height: 310px;
    object-fit: cover;
    display: block;
}

.featured-content {
    padding: clamp(28px, 4vw, 50px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-badge,
.card-badge {
    width: fit-content;
    color: var(--case-red);
    background: rgba(244, 42, 43, .08);
    border-radius: var(--case-radius-pill);
    padding: .25rem .65rem;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: .95rem;
    display: inline-block;
}

.featured-content h2 {
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -.035em;
    margin-bottom: 1rem;
}

.featured-content p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--case-muted);
    font-size: .82rem;
    margin-bottom: 1.2rem;
}

.post-meta i {
    color: var(--case-red);
    margin-right: 4px;
}

/* Grid */
.blog-grid {
    max-width: 1060px;
    margin-inline: auto;
}

.blog-archive-section .blog-card img {
    width: 100%;
    aspect-ratio: 1.55 / 1;
    object-fit: cover;
    display: block;
    transition: .35s ease;
}

.blog-archive-section .blog-card:hover img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: 20px 22px 26px;
}

.blog-card-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: .7rem;
}

.blog-card-body h3 a {
    color: inherit;
    transition: color var(--case-transition);
}

.blog-card-body h3 a:hover {
    color: var(--case-red);
}

.blog-card-body p {
    color: #4b5563;
    font-size: .9rem;
    line-height: 1.72;
    margin-bottom: 1rem;
}

/* Pagination */
.blog-pagination {
    margin-top: 52px;
}

.blog-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--case-border);
    border-radius: 12px;
    font-size: .9rem;
    color: var(--case-text);
    background: var(--case-white);
    transition: var(--case-transition);
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    background: var(--case-red);
    border-color: var(--case-red);
    color: var(--case-white);
}

.blog-pagination .prev.page-numbers,
.blog-pagination .next.page-numbers {
    padding: 0 20px;
    font-size: .88rem;
    font-weight: 500;
}

.blog-pagination .dots {
    border: 0;
    background: transparent;
    min-width: auto;
    color: var(--case-muted);
    cursor: default;
    pointer-events: none;
}

/* Contact */
.blog-contact-section {
    padding: 76px 0 90px;
    background: var(--case-white);
}

.blog-contact-wrap {
    max-width: 1120px;
    margin: 0 auto;
    background: var(--case-white);
    border-radius: var(--case-radius-lg);
    padding: clamp(26px, 4vw, 56px);
    box-shadow: var(--case-shadow-lg);
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.blog-contact-illustration {
    width: 134px;
    height: 134px;
    border-radius: 34px;
    background: rgba(244, 42, 43, .08);
    color: var(--case-red);
    display: grid;
    place-items: center;
    font-size: 4.2rem;
    margin-inline: auto;
}

.blog-contact-form {
    margin-inline: auto;
}

@media (max-width: 991.98px) {
    .blog-hero {
        padding: 64px 0 52px;
    }

    .featured-post {
        grid-template-columns: 1fr;
        margin-bottom: 32px;
    }

    .featured-media img {
        min-height: 240px;
    }

    .blog-archive-section {
        padding: 56px 0 64px;
    }

    .blog-contact-section {
        padding: 64px 0;
    }

    .blog-contact-wrap {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .blog-hero {
        padding: 48px 0 40px;
    }

    .blog-pagination {
        margin-top: 44px;
    }

    .blog-pagination .page-numbers {
        min-width: 38px;
        height: 38px;
        font-size: .84rem;
    }

    .blog-pagination .prev.page-numbers,
    .blog-pagination .next.page-numbers {
        padding: 0 14px;
    }

}

/* =========================================================
   Tech Docs Archive
   ========================================================= */
.docs-hero {
    background: var(--case-hero-gradient);
    padding: 76px 0 68px;
    text-align: center;
}

.docs-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -.035em;
    margin-bottom: .85rem;
}

.docs-desc {
    max-width: 640px;
    margin-inline: auto;
    color: #4b5563;
    line-height: 1.85;
    font-size: .98rem;
}

.doc-section .docs-title { color: var(--case-white); }
.doc-section .docs-desc  { color: rgba(255, 255, 255, .7); }
.doc-section .form-label { color: rgba(255, 255, 255, .8); }

.docs-list-section {
    padding: 60px 0 72px;
}

.docs-filter {
    margin-bottom: 36px;
}

.docs-filter .form-label {
    font-size: .84rem;
    font-weight: 600;
    color: var(--case-text);
    margin-bottom: .4rem;
}

.docs-filter .form-select {
    min-height: 50px;
    font-size: .9rem;
    border: 1px solid var(--case-border);
    border-radius: var(--case-radius-sm);
}

.docs-filter .form-select:focus {
    border-color: rgba(255, 37, 43, .45);
    box-shadow: 0 0 0 .2rem rgba(255, 37, 43, .08);
}

.search-control {
    position: relative;
}

.search-control i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--case-muted);
    font-size: .9rem;
    pointer-events: none;
}

.search-control .form-control {
    padding-left: 2.5rem;
}

.docs-grid {
    border-top: 1px solid var(--case-border);
    transition: opacity .2s ease;
}

.doc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid var(--case-border);
    transition: background var(--case-transition);
    padding: .5rem 1rem;
    border-radius: 16px;
}

.doc-row:hover {
    background: var(--case-soft-2);
}

.doc-row time {
    display: block;
    font-size: .8rem;
    color: var(--case-muted);
    margin-bottom: .3rem;
}

.doc-row h2 {
    font-size: .97rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.55;
    color: var(--case-text);
}

.download-btn {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--case-soft);
    color: var(--case-text);
    display: grid;
    place-items: center;
    font-size: 1rem;
    transition: var(--case-transition);
}

.download-btn:hover {
    background: var(--case-red);
    color: var(--case-white);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--case-muted);
}

.empty-state i {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.15rem;
    margin-bottom: .5rem;
    color: var(--case-text);
}

.empty-state p {
    font-size: .92rem;
    max-width: 380px;
    margin-inline: auto;
    margin-bottom: 0;
}

.docs-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 36px;
}

.docs-page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 .85rem;
    border: 1px solid var(--case-border);
    border-radius: 10px;
    background: var(--case-white);
    color: var(--case-text);
    font-size: .88rem;
    cursor: pointer;
    transition: var(--case-transition);
    font-family: var(--case-font);
}

.docs-page-btn:hover:not(.disabled):not([disabled]) {
    border-color: var(--case-red);
    color: var(--case-red);
}

.docs-page-btn.active {
    background: var(--case-red);
    border-color: var(--case-red);
    color: var(--case-white);
}

.docs-page-btn.disabled,
.docs-page-btn[disabled] {
    opacity: .45;
    cursor: default;
    pointer-events: none;
}

.docs-cards-section {
    padding: 0 0 84px;
}

.resource-card {
    border-radius: var(--case-radius-lg);
    overflow: hidden;
    box-shadow: var(--case-shadow-sm);
    border: 1px solid var(--case-border);
    height: 100%;
    background: var(--case-white);
    transition: var(--case-transition);
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--case-shadow-md);
}

.resource-card img {
    width: 100%;
    aspect-ratio: 1.65 / 1;
    object-fit: cover;
}

.resource-card-body {
    padding: 24px 22px 28px;
}

.resource-card-body h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .65rem;
}

.resource-card-body p {
    color: #4b5563;
    line-height: 1.75;
    font-size: .92rem;
    margin-bottom: 1.2rem;
}

@media (max-width: 767.98px) {
    .docs-hero {
        padding: 56px 0 52px;
    }

    .docs-list-section {
        padding: 44px 0 56px;
    }

    .doc-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .download-btn {
        align-self: flex-end;
    }

    .docs-cards-section {
        padding-bottom: 60px;
    }
}

/* =========================================================
   Product Archive
   ========================================================= */
.archive-hero {
    padding: 84px 0 72px;
    background: radial-gradient(circle at 80% 20%, rgba(244, 42, 43, .10), transparent 28%),
    linear-gradient(110deg, #f6f6f6 0%, #ffffff 56%, #f2f2f2 100%);
    overflow: hidden;
}

.archive-hero h1 {
    font-size: clamp(1.85rem, 3.5vw, 3.1rem);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.22;
    max-width: 760px;
    margin: .6rem auto 1rem;
}

.archive-hero p {
    color: #4b5563;
    max-width: 600px;
    margin-inline: auto;
    font-size: .97rem;
    line-height: 1.78;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 2rem;
}

.product-archive-section {
    padding: 72px 0 88px;
}

.archive-layout {
    display: grid;
    grid-template-columns: 268px 1fr;
    gap: 40px;
    align-items: start;
}

.filter-sidebar {
    position: sticky;
    top: 88px;
}

.filter-mobile-heading {
    display: none;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.filter-mobile-heading h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.filter-toggle {
    background: none;
    border: 1px solid var(--case-border);
    border-radius: 10px;
    padding: .45rem .65rem;
    font-size: 1.05rem;
    line-height: 1;
    color: var(--case-text);
    cursor: pointer;
    transition: var(--case-transition);
}

.filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.filter-toggle:hover {
    background: var(--case-soft);
}

/* ── Filter offcanvas (mobile) / static sidebar (desktop) ── */
.filter-offcanvas {
    --bs-offcanvas-width: 100%;
}

/* At lg+ the offcanvas-lg becomes static; strip offcanvas chrome so it
   looks like a plain sticky sidebar. */
@media (min-width: 992px) {
    .filter-offcanvas .offcanvas-header {
        display: none;
    }

    .filter-offcanvas .offcanvas-body {
        padding: 0;
        overflow: visible;
    }
}

@media (max-width: 991.98px) {
    .filter-offcanvas .offcanvas-body {
        display: flex;
        flex-direction: column;
    }
}

/* ── Apply filters (mobile offcanvas footer) ── */
.filter-apply {
    position: sticky;
    bottom: 0;
    margin-top: auto;
    padding-top: 1rem;
    background: var(--case-white);
}

.filter-apply-btn {
    display: block;
    width: 100%;
    padding: 14px 18px;
    border: 0;
    border-radius: var(--case-radius-md);
    background: var(--case-red);
    color: var(--case-white);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--case-transition);
}

.filter-apply-btn:hover {
    filter: brightness(0.95);
}

.filter-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ── Filter cards (accordion) ── */
.filter-card {
    background: var(--case-white);
    border: 1px solid var(--case-border);
    border-radius: var(--case-radius-md);
    overflow: hidden;
    box-shadow: var(--case-shadow-sm);
}

.filter-card-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: 14px 18px;
    background: var(--case-soft);
    border: 0;
    border-bottom: 1px solid var(--case-border);
    font-size: .92rem;
    font-weight: 700;
    color: var(--case-text);
    text-align: left;
    cursor: pointer;
    transition: background var(--case-transition);
}

.filter-card-header:hover {
    background: #ececec;
}

.filter-card-header .bi {
    font-size: .9rem;
    color: var(--case-muted);
    transition: transform var(--case-transition);
}

.filter-card.is-collapsed .filter-card-header {
    border-bottom-color: transparent;
}

.filter-card.is-collapsed .filter-card-header .bi {
    transform: rotate(-90deg);
}

.filter-card.is-collapsed .filter-card-body {
    display: none;
}

.filter-card-body {
    padding: 16px 18px;
}

.filter-box {
    margin-bottom: 1.6rem;
}

.filter-box:last-of-type {
    margin-bottom: 1rem;
}

.filter-box h3 {
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--case-muted);
    margin-bottom: .85rem;
}

.filter-label {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--case-muted);
    margin-bottom: .85rem;
}

.filter-box label {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .9rem;
    color: var(--case-text);
    padding: .32rem 0;
    cursor: pointer;
    transition: color var(--case-transition);
}

.filter-box label:hover {
    color: var(--case-red);
}

.filter-box input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--case-red);
    cursor: pointer;
    flex-shrink: 0;
}

.filter-panel .search-control .form-control {
    padding-left: 2.2rem;
    background: var(--case-white);
    border: 1px solid var(--case-border);
    border-radius: 12px;
    font-size: .9rem;
    height: 42px;
}

.filter-panel .search-control .form-control:focus {
    border-color: var(--case-red);
    box-shadow: 0 0 0 3px rgba(244, 42, 43, .12);
}

/* Dropdown filters (high-cardinality taxonomies) */
.filter-select {
    width: 100%;
    height: 44px;
    padding: 0 2.2rem 0 .85rem;
    background-color: var(--case-white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23B4BEC9'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .8rem center;
    background-size: 14px;
    border: 1px solid var(--case-border);
    border-radius: 12px;
    font-size: .9rem;
    color: var(--case-text);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: var(--case-transition);
}

.filter-select:focus {
    border-color: var(--case-red);
    box-shadow: 0 0 0 3px rgba(244, 42, 43, .12);
    outline: none;
}

/* ── Checkbox lists inside cards ── */
.filter-check {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .9rem;
    color: var(--case-text);
    padding: .3rem 0;
    cursor: pointer;
    transition: color var(--case-transition);
}

.filter-check:hover {
    color: var(--case-red);
}

.filter-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--case-red);
    cursor: pointer;
    flex-shrink: 0;
}

.filter-check-text {
    flex: 1;
}

.filter-check:has(input:checked) {
    color: var(--case-red);
    font-weight: 600;
}

/* ── Hierarchical category tree ── */
.filter-tree {
    list-style: none;
    margin: 0;
    padding: 0;
}

.filter-tree .filter-tree-sub {
    margin-left: 1.35rem;
    padding-left: .55rem;
    border-left: 1px solid var(--case-border);
}

/* ── Radio lists ── */
.filter-radio-list {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.filter-radio {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .9rem;
    color: var(--case-text);
    padding: .3rem 0;
    cursor: pointer;
    transition: color var(--case-transition);
}

.filter-radio:hover {
    color: var(--case-red);
}

.filter-radio input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--case-red);
    cursor: pointer;
    flex-shrink: 0;
}

.filter-radio:has(input:checked) {
    color: var(--case-red);
    font-weight: 600;
}

/* ── Tag / chip control ── */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.filter-tag {
    margin: 0;
    cursor: pointer;
}

.filter-tag input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.filter-tag span {
    display: inline-flex;
    align-items: center;
    padding: .42rem .85rem;
    border: 1px solid var(--case-border);
    border-radius: var(--case-radius-pill);
    font-size: .82rem;
    line-height: 1;
    color: var(--case-text);
    background: var(--case-white);
    transition: var(--case-transition);
    user-select: none;
}

.filter-tag:hover span {
    border-color: var(--case-red);
    color: var(--case-red);
}

.filter-tag input:checked + span {
    background: var(--case-red);
    border-color: var(--case-red);
    color: var(--case-white);
}

.filter-tag input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(244, 42, 43, .18);
}

/* ── Clear filters ── */
.filter-actions {
    display: flex;
}

.filter-actions .clear-filters {
    margin-top: .2rem;
}

.clear-filters[hidden] {
    display: none;
}

/* Selected category label highlight */
.filter-box label:has(input[type="checkbox"]:checked) {
    color: var(--case-red);
    font-weight: 600;
}

.filter-count {
    color: var(--case-muted);
    font-size: .8rem;
    margin-left: auto;
}

/* Filter actions (apply + clear) */
.filter-box-actions {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin-top: 1.2rem;
}

.clear-filters {
    display: block;
    width: 100%;
    background: none;
    border: 1px solid var(--case-border);
    border-radius: 12px;
    padding: .6rem;
    font-size: .88rem;
    color: var(--case-muted);
    cursor: pointer;
    text-align: center;
    transition: var(--case-transition);
    text-decoration: none;
}

.clear-filters:hover {
    border-color: var(--case-red);
    color: var(--case-red);
}

.toolbar-filter-hint {
    color: var(--case-muted);
    font-weight: 400;
}

.archive-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.archive-toolbar p {
    font-size: .9rem;
    color: #4b5563;
    margin: 0;
}

.archive-toolbar .form-select {
    width: auto;
    min-width: 180px;
    border: 1px solid var(--case-border);
    border-radius: 12px;
    font-size: .9rem;
    height: 42px;
    padding-inline: .85rem;
}

.archive-toolbar .form-select:focus {
    border-color: var(--case-red);
    box-shadow: 0 0 0 3px rgba(244, 42, 43, .12);
}

.product-archive-section .product-card {
    background: var(--case-white);
    border: 1px solid var(--case-border);
    border-radius: var(--case-radius-lg);
    overflow: hidden;
    transition: box-shadow var(--case-transition), transform var(--case-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-archive-section .product-card:hover {
    box-shadow: var(--case-shadow-md);
    transform: translateY(-4px);
}

.product-image {
    overflow: hidden;
    background: var(--case-soft);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .38s ease;
}

.product-archive-section .product-card:hover .product-image img {
    transform: scale(1.05);
}

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

.product-body h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: .85rem;
    line-height: 1.45;
}

.product-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.product-specs li {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: .87rem;
    color: #4b5563;
    /* allow the text flex item to shrink and long unbreakable tokens
       to wrap, otherwise min-width:auto forces horizontal overflow */
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.product-specs .bi-check-circle {
    color: var(--case-red);
    font-size: .9rem;
    flex-shrink: 0;
    /* keep the check icon aligned with the first line of wrapped text */
    margin-top: .2em;
}

.product-body .link-case {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}

.archive-content .empty-state {
    padding: 72px 24px;
}

.pa-pagination {
    margin-top: 52px;
}

.pa-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pa-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--case-border);
    border-radius: 12px;
    font-size: .9rem;
    color: var(--case-text);
    background: var(--case-white);
    transition: var(--case-transition);
    line-height: 1;
}

.pa-pagination .page-numbers:hover,
.pa-pagination .page-numbers.current {
    background: var(--case-red);
    border-color: var(--case-red);
    color: var(--case-white);
}

.pa-pagination .prev.page-numbers,
.pa-pagination .next.page-numbers {
    min-width: 44px;
    padding: 0;
    font-size: 1rem;
}

.pa-pagination .dots {
    border: 0;
    background: transparent;
    min-width: auto;
    color: var(--case-muted);
    cursor: default;
    pointer-events: none;
}

/* AJAX pagination (button based) */
#productResults {
    transition: opacity .2s ease;
}

.pa-ajax-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 52px;
}

.pa-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--case-border);
    border-radius: 12px;
    font-size: .9rem;
    color: var(--case-text);
    background: var(--case-white);
    cursor: pointer;
    line-height: 1;
    transition: var(--case-transition);
}

.pa-page-btn:hover:not(.disabled):not([disabled]),
.pa-page-btn.active {
    background: var(--case-red);
    border-color: var(--case-red);
    color: var(--case-white);
}

.pa-page-btn.disabled,
.pa-page-btn[disabled] {
    opacity: .5;
    cursor: default;
    pointer-events: none;
}

.pa-cert-section {
    padding: 80px 0 88px;
    background: var(--case-soft);
}

.pa-contact-section {
    padding: 86px 0 94px;
}

.pa-contact-form {
    max-width: 860px;
    margin-inline: auto;
    background: var(--case-soft);
    border-radius: var(--case-radius-lg);
    padding: clamp(28px, 4vw, 56px);
}

.pa-contact-form .form-control {
    border: 1px solid var(--case-border);
    border-radius: 12px;
    font-size: .9rem;
    padding: .7rem 1rem;
    background: var(--case-white);
}

.pa-contact-form textarea.form-control {
    resize: vertical;
    min-height: 130px;
}

.pa-contact-form .form-control:focus {
    border-color: var(--case-red);
    box-shadow: 0 0 0 3px rgba(244, 42, 43, .12);
}

@media (max-width: 991.98px) {
    .archive-hero {
        padding: 64px 0 52px;
    }

    .product-archive-section {
        padding: 56px 0 64px;
    }

    .archive-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .filter-sidebar {
        position: static;
        margin-bottom: 32px;
    }

    .filter-mobile-heading {
        display: flex;
    }

    .pa-cert-section {
        padding: 60px 0;
    }

    .pa-contact-section {
        padding: 64px 0;
    }
}

@media (max-width: 575.98px) {
    .archive-hero {
        padding: 48px 0 40px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        text-align: center;
    }

    .archive-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .archive-toolbar .form-select {
        width: 100%;
    }

    .filter-card-body {
        padding: 14px;
    }
}

/* =====================================================
   Blog Single Page
   ===================================================== */

.article-hero {
    padding: 76px 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .76), rgba(0, 0, 0, .28)),
    center/cover no-repeat;
    background-color: #1e1e1e;
    color: #fff;
}

.article-hero h1 {
    font-size: clamp(2.15rem, 4.5vw, 4.25rem);
    line-height: 1.08;
    font-weight: 780;
    letter-spacing: -.05em;
    margin-bottom: 1rem;
}

.article-hero p {
    max-width: 680px;
    color: rgba(255, 255, 255, .88);
    line-height: 1.85;
}

.article-hero .hero-actions {
    justify-content: flex-start;
    margin-top: 26px;
}

.article-hero .section-eyebrow--hero {
    color: #fff;
    background: rgba(255, 37, 43, .92);
}

.breadcrumb-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, .74);
    margin-bottom: 1rem;
    font-size: .88rem;
}

.breadcrumb-mini a {
    color: rgba(255, 255, 255, .82);
}

.breadcrumb-mini a:hover {
    color: #fff;
}

.hero-camera {
    width: 100%;
    border-radius: var(--case-radius-lg);
    box-shadow: var(--case-shadow-lg);
}

/* Article layout */
.article-section {
    background: #fff;
}

.article-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 820px);
    justify-content: center;
    gap: 44px;
}

.toc-sidebar {
    position: sticky;
    top: 98px;
    align-self: start;
}

.toc-card {
    border: 1px solid var(--case-border);
    border-radius: var(--case-radius-md);
    padding: 22px;
    box-shadow: var(--case-shadow-sm);
}

.toc-card h2 {
    font-size: 1rem;
    font-weight: 750;
    margin-bottom: 14px;
}

.toc-card a,
#post-toc a {
    display: block;
    color: #4b5563;
    padding: 9px 0;
    border-bottom: 1px solid var(--case-border);
    font-size: .92rem;
}

.toc-card a:last-child,
#post-toc a:last-child {
    border-bottom: 0;
}

.toc-card a:hover,
#post-toc a:hover {
    color: var(--case-red);
}

/* Article content */
.article-content {
    min-width: 0;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--case-muted);
    font-size: .9rem;
    margin-bottom: 28px;
}

.article-meta i {
    color: var(--case-red);
    margin-right: 6px;
}

.article-content h2 {
    font-size: clamp(1.45rem, 2.5vw, 2.2rem);
    font-weight: 750;
    letter-spacing: -.025em;
    margin: 42px 0 16px;
}

.article-content h3 {
    font-size: 1.18rem;
    font-weight: 750;
    margin: 28px 0 12px;
}

.article-content p {
    color: #4b5563;
    line-height: 1.9;
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Feature callout (product_callout shortcode) */
.feature-callout,
.download-banner {
    margin: 34px 0;
    background: var(--case-soft);
    border-radius: var(--case-radius-lg);
    padding: clamp(24px, 4vw, 38px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: center;
}

.callout-label {
    color: var(--case-red);
    font-weight: 700;
    font-size: .85rem;
    display: inline-block;
    margin-bottom: .6rem;
}

.feature-callout h3,
.download-banner h3 {
    font-size: 1.35rem;
    margin-top: 0;
}

.feature-callout ul,
.download-banner ul {
    color: #4b5563;
}

.feature-callout img,
.download-banner img {
    width: 100%;
    border-radius: var(--case-radius-md);
}

/* Article table */
.article-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 28px;
    border: 1px solid var(--case-border);
}

.article-table th,
.article-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--case-border);
}

.article-table th {
    background: #f0f0f0;
}

.article-table tr:nth-child(even) td {
    background: #fafafa;
}

/* Article image */
.article-image {
    margin: 38px 0;
}

.article-image img {
    width: 100%;
    border-radius: var(--case-radius-lg);
}

.article-image figcaption {
    color: var(--case-muted);
    font-size: .9rem;
    margin-top: 10px;
}

/* Check list */
.check-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    display: grid;
    gap: 12px;
}

.check-list li {
    color: #4b5563;
    display: flex;
    gap: 10px;
    align-items: center;
}

.check-list i {
    color: var(--case-red);
}

/* FAQ accordion */
.faq-accordion {
    margin-top: 22px;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: rgba(255, 37, 43, .06);
    color: var(--case-red);
}

/* Blog single contact section */
.bs-contact-section {
    padding: 84px 0 94px;
    background: var(--case-soft);
}

.bs-contact-form {
    max-width: 1060px;
    margin-inline: auto;
    background: #fff;
    border-radius: var(--case-radius-lg);
    padding: clamp(26px, 4vw, 58px);
    box-shadow: var(--case-shadow-lg);
}

.bs-contact-form .form-control {
    min-height: 52px;
    border: 1px solid #c5ccd6;
    border-radius: 0;
    box-shadow: none;
    font-size: .9rem;
    padding: .85rem 1rem;
}

.bs-contact-form textarea.form-control {
    min-height: 88px;
}

.bs-contact-form .form-control:focus {
    border-color: rgba(255, 37, 43, .55);
    box-shadow: 0 0 0 .2rem rgba(255, 37, 43, .08);
}

/* Chat widget */
.chat-widget {
    position: fixed;
    right: 26px;
    bottom: 26px;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 50%;
    background: var(--case-red);
    color: #fff;
    display: grid;
    place-items: center;
    z-index: 1001;
    box-shadow: var(--case-red-shadow);
    font-size: 1.45rem;
}

.chat-bubble {
    position: fixed;
    right: 92px;
    bottom: 26px;
    width: min(320px, calc(100vw - 130px));
    background: #fff;
    border-radius: var(--case-radius-md);
    padding: 18px 42px 18px 18px;
    box-shadow: var(--case-shadow-lg);
    z-index: 1001;
    display: none;
}

.chat-bubble.show {
    display: block;
}

.chat-bubble strong {
    display: block;
    margin-bottom: .3rem;
}

.chat-bubble p {
    margin: 0;
    color: var(--case-muted);
    font-size: .9rem;
}

.chat-close {
    position: absolute;
    top: 8px;
    right: 8px;
    border: 0;
    background: transparent;
    color: #555;
    font-size: 1.15rem;
}

/* Blog single responsive */
@media (max-width: 991.98px) {
    .article-hero {
        text-align: center;
        padding: 58px 0;
    }

    .article-hero .hero-actions {
        justify-content: center;
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .toc-sidebar {
        position: static;
    }

    .toc-card {
        display: none;
    }

    .feature-callout,
    .download-banner {
        grid-template-columns: 1fr;
    }

    .bs-contact-section {
        padding: 64px 0;
    }
}

@media (max-width: 575.98px) {
    .article-meta {
        gap: 10px;
    }

    .bs-contact-form {
        box-shadow: var(--case-shadow-md);
    }

    .chat-bubble {
        right: 16px;
        bottom: 92px;
        width: calc(100vw - 32px);
    }

    .chat-widget {
        right: 18px;
        bottom: 22px;
    }
}

.breadcrumb-wrap span:last-of-type {
    color: black;
}

.oneline {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    -ms-box-orient: vertical;
    box-orient: vertical;
    -webkit-line-clamp: 1;
    -moz-line-clamp: 1;
    -ms-line-clamp: 1;
    line-clamp: 1;
    overflow: hidden;
}

.towline {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    -ms-box-orient: vertical;
    box-orient: vertical;
    -webkit-line-clamp: 2;
    -moz-line-clamp: 2;
    -ms-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.threeline {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    -ms-box-orient: vertical;
    box-orient: vertical;
    -webkit-line-clamp: 3;
    -moz-line-clamp: 3;
    -ms-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

a.header-search i {
    font-size: 20px;
    font-weight: 600;
}


footer i {
    font-size: 20px;
}

.footer-menu li {
    margin: 0.5rem 0;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    color: white;
}

.footer-menu li a {
    color: rgba(255, 255, 255, .68);
    font-size: 14px;
}

#wpadminbar {
    position: absolute;
}

button.header-search.search-modal-trigger i {
    font-size: 20px;
}

form#doc-filter-form label.form-label {
    position: absolute !important;
    top: 0;
    left: 1.5rem;
    transform: translateY(-50%);
    background: black;
    padding: 0 0.5rem;
}

@media (max-width: 768px) {
    .solution-tabs .nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        justify-content: unset;
        padding: 0.5rem 0;
    }

    .solution-tabs .nav .nav-link {
        flex-shrink: 0;
    }
}

/* =========================================================
   Blog Single – Sticky bar + Author card + Trusted swiper
   ========================================================= */

/* Sticky article bar */
.sticky-blog-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--case-border);
    padding: .6rem 0;
    transform: translateY(-110%);
    transition: transform .3s ease;
    pointer-events: none;
}

.sticky-blog-bar.is-visible {
    transform: translateY(0);
    pointer-events: auto;
}

.sticky-blog-title {
    font-size: .88rem;
    font-weight: 600;
    color: var(--case-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 420px;
}

.sticky-blog-bar .btn-sm {
    padding: .42rem 1rem;
    font-size: .82rem;
    border-radius: var(--case-radius-pill);
}

/* Article reading progress bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--case-red);
    z-index: 1200;
    transition: width .1s linear;
}

/* Trusted logos swiper */
.blog-trusted-swiper {
    padding: 4px 0 8px;
}

.trusted-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.trusted-slide img {
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .72;
    transition: var(--case-transition);
}

.trusted-slide img:hover {
    filter: none;
    opacity: 1;
}

/* Author card in sidebar */
.author-card {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    padding: 18px;
    border: 1px solid var(--case-border);
    border-radius: var(--case-radius-md);
    box-shadow: var(--case-shadow-sm);
}

.author-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--case-border);
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-label {
    font-size: .75rem;
    color: var(--case-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.author-name {
    font-size: .9rem;
    font-weight: 600;
    color: var(--case-text);
}

/* TOC active link */
#post-toc a.active,
.toc-card a.active {
    color: var(--case-red);
    font-weight: 600;
}

/* Section eyebrow white variant (hero context) */
.section-eyebrow--hero {
    color: #fff;
    background: rgba(255, 37, 43, .92);
}

.section-eyebrow--hero a {
    color: inherit;
}

/* Article hero: dark fallback; full background set inline from ACF */
.article-hero {
    background-color: #1e1e1e;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Tables inside article content */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 28px;
    border: 1px solid var(--case-border);
    font-size: .93rem;
}

.post-content table th,
.post-content table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--case-border);
    text-align: left;
}

.post-content table th {
    background: #f0f0f0;
    font-weight: 600;
}

.post-content table tr:nth-child(even) td {
    background: #fafafa;
}

@media (max-width: 991.98px) {
    .sticky-blog-bar .sticky-blog-title {
        display: none;
    }

    .sticky-blog-bar .d-flex.gap-2 {
        width: 100%;
        justify-content: center;
    }

    .author-card {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .sticky-blog-bar .btn-sm {
        flex: 1;
        text-align: center;
    }
}

/* =========================================================
   Contact Page
   ========================================================= */

.contact-hero {
    min-height: 320px;
    display: flex;
    align-items: center;
    color: #fff;
    background: linear-gradient(90deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .42), rgba(0, 0, 0, .12)), center/cover no-repeat;
}

.contact-hero-content {
    max-width: 720px;
    padding: 70px 0;
}

.contact-hero .section-eyebrow {
    color: #fff;
    background: rgba(255, 37, 43, .92);
}

.contact-hero h1 {
    font-size: clamp(2rem, 4vw, 3.45rem);
    font-weight: 700;
    letter-spacing: -.04em;
    margin-bottom: .85rem;
}

.contact-hero p {
    color: rgba(255, 255, 255, .88);
    line-height: 1.8;
    margin-bottom: 0;
}

.lead-section {
    padding: 88px 0;
    background: #fff;
}

.help-list-box h2 {
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 2rem;
    max-width: 560px;
}

.lead-section .check-list {
    gap: 26px;
    margin: 0;
}

.lead-section .check-list li {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    color: #374151;
    line-height: 1.65;
    font-size: .95rem;
}

.lead-section .check-list i {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #111827;
    display: grid;
    place-items: center;
    color: var(--case-red);
    font-size: 1.1rem;
}

.contact-form-card {
    margin-left: auto;
    background: #fff;
    border-radius: var(--case-radius-md);
    padding: clamp(24px, 4vw, 44px);
    box-shadow: var(--case-shadow-lg);
}

.support-section {
    padding: 78px 0 88px;
    background: var(--case-soft);
}

.support-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--case-border);
    border-radius: var(--case-radius-sm);
    padding: 46px 34px 40px;
    text-align: center;
    box-shadow: var(--case-shadow-md);
    transition: var(--case-transition);
}

.support-card:hover {
    transform: translateY(-6px);
}

.support-icon {
    width: 122px;
    height: 122px;
    margin: 0 auto 26px;
    border-radius: 30px;
    background: rgba(255, 37, 43, .08);
    color: var(--case-red);
    display: grid;
    place-items: center;
    font-size: 4rem;
}

.support-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.support-card p {
    color: #4b5563;
    line-height: 1.75;
    font-size: .92rem;
    margin-bottom: 1.4rem;
}

.info-section {
    padding: 90px 0;
    background: #fff;
}

.office-img {
    width: 100%;
    border-radius: var(--case-radius-md);
    aspect-ratio: 1.45 / 1;
    object-fit: cover;
    box-shadow: var(--case-shadow-sm);
}

.info-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 18px;
    margin-top: 30px;
}

.info-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(255, 37, 43, .08);
    color: var(--case-red);
    display: grid;
    place-items: center;
    font-size: 1.65rem;
}

.info-item h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .65rem;
}

.info-item a {
    display: block;
    color: var(--case-red);
    font-weight: 700;
    margin-bottom: .5rem;
}

.info-item p {
    margin-bottom: .45rem;
    color: #4b5563;
}

.cert-section {
    padding: 82px 0 92px;
    background: var(--case-soft);
}

@media (max-width: 991.98px) {
    .contact-hero {
        text-align: center;
    }

    .contact-hero-content {
        max-width: 100%;
        padding: 58px 0;
    }

    .lead-section,
    .support-section,
    .info-section,
    .cert-section {
        padding-block: 64px;
    }

    .contact-form-card {
        margin-left: 0;
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .lead-section .check-list li,
    .info-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .lead-section .check-list i,
    .info-icon {
        margin-inline: auto;
    }
}

nav#post-toc li {
    list-style: none;
}

h3.accordion-header {
    margin: 0;
}

.article-meta a {
    color: var(--case-muted);
}

@media (max-width: 767.98px) {

    .article-layout {
        gap: 10px;
    }

    .article-meta {
        justify-content: center;
    }
}

/* ── 404 Page ─────────────────────────────────────────────── */
.error-section {
    min-height: 76vh;
    display: flex;
    align-items: center;
    padding: 84px 0;
    background:
        radial-gradient(circle at 88% 10%, rgba(255,37,43,.12), transparent 26%),
        radial-gradient(circle at 8% 80%, rgba(0,0,0,.06), transparent 24%),
        linear-gradient(180deg, #fff 0%, #f7f7f7 100%);
}

.error-card {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    background: rgba(255,255,255,.92);
    border: 1px solid var(--case-border);
    border-radius: 34px;
    padding: clamp(28px, 5vw, 70px);
    box-shadow: var(--case-shadow-lg);
    overflow: hidden;
}

.error-visual {
    position: relative;
    min-height: 380px;
    display: grid;
    place-items: center;
}

.error-code {
    position: absolute;
    font-size: clamp(8rem, 17vw, 14rem);
    font-weight: 900;
    letter-spacing: -.08em;
    color: rgba(255,37,43,.08);
    line-height: 1;
}

.camera-orbit {
    position: relative;
    width: min(100%, 330px);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px dashed rgba(255,37,43,.32);
    display: grid;
    place-items: center;
    animation: slowRotate 12s linear infinite;
}

.camera-body {
    width: 138px;
    height: 138px;
    border-radius: 42px;
    background: var(--case-red);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 4rem;
    box-shadow: var(--case-red-shadow);
    animation: reverseRotate 12s linear infinite;
}

.scan-dot {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--case-red);
    box-shadow: 0 0 0 9px rgba(255,37,43,.1);
}

.dot-one   { top: 28px; left: 54px; }
.dot-two   { right: 20px; top: 48%; }
.dot-three { bottom: 36px; left: 42%; }

.error-content h1 {
    font-size: clamp(2rem, 4vw, 3.7rem);
    font-weight: 750;
    letter-spacing: -.045em;
    line-height: 1.12;
    margin-bottom: 1rem;
}

.error-content p {
    color: #4b5563;
    line-height: 1.85;
    max-width: 620px;
    margin-bottom: 1.55rem;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 32px;
}

.error-search {
    max-width: 640px;
}

.error-search label {
    font-weight: 700;
    margin-bottom: .7rem;
}

.search-inline {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    border: 1px solid #c5ccd6;
    border-radius: var(--case-radius-pill);
    background: #fff;
    padding: 6px;
}

.search-inline i {
    color: var(--case-muted);
    display: grid;
    place-items: center;
    font-size: 1.05rem;
}

.search-inline .form-control {
    border: 0;
    min-height: 44px;
    box-shadow: none;
}

.search-inline .form-control:focus { box-shadow: none; }

.search-message {
    display: block;
    margin-top: .7rem;
    color: var(--case-muted);
}

.quick-links {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.quick-links a {
    background: #fff;
    border: 1px solid var(--case-border);
    border-radius: var(--case-radius-lg);
    padding: 22px;
    color: var(--case-text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    box-shadow: var(--case-shadow-sm);
    transition: var(--case-transition);
}

.quick-links a:hover {
    color: var(--case-red);
    transform: translateY(-4px);
    box-shadow: var(--case-shadow-md);
}

.quick-links i { color: var(--case-red); font-size: 1.25rem; }

@keyframes slowRotate    { to { transform: rotate(360deg);  } }
@keyframes reverseRotate { to { transform: rotate(-360deg); } }

@media (max-width: 991.98px) {
    .error-section { padding: 64px 0; }

    .error-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .error-visual { min-height: 300px; }
    .error-actions { justify-content: center; }
    .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
    .error-card { border-radius: 24px; }

    .camera-orbit { width: 250px; }

    .camera-body {
        width: 112px;
        height: 112px;
        border-radius: 32px;
        font-size: 3.2rem;
    }

    .search-inline {
        grid-template-columns: 38px 1fr;
        border-radius: 20px;
    }

    .search-inline button {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 6px;
    }

    .quick-links { grid-template-columns: 1fr; }
}


/* ============================================================
   Industries Archive
   ============================================================ */

.ind-hero .section-eyebrow {
    color: #fff;
    background: rgba(255, 37, 43, .92);
}

.ind-hero {
    min-height: 390px;
    display: flex;
    align-items: center;
    color: #fff;
    background: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.32)),
                url('https://images.unsplash.com/photo-1519501025264-65ba15a82390?auto=format&fit=crop&w=1800&q=80')
                center / cover no-repeat;
}

.ind-hero__content {
    max-width: 720px;
    padding: 76px 0;
}

.ind-hero h1 {
    font-size: clamp(2.2rem, 4.8vw, 4.4rem);
    font-weight: 760;
    letter-spacing: -.05em;
    margin-bottom: 1rem;
}

.ind-hero p {
    color: rgba(255, 255, 255, .9);
    font-size: 1.16rem;
}

.ind-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.ind-intro {
    padding: 0 0 72px;
    background: #fff;
}

.ind-intro__card {
    margin-top: -54px;
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: var(--case-radius-lg);
    box-shadow: var(--case-shadow-lg);
    padding: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    align-items: center;
}

.ind-intro__media {
    position: relative;
    overflow: hidden;
    border-radius: var(--case-radius-md);
    background: #111;
    cursor: pointer;
}

.ind-intro__media img {
    width: 100%;
    aspect-ratio: 1.65 / 1;
    object-fit: cover;
    opacity: .9;
    display: block;
}

.ind-intro__media-placeholder {
    width: 100%;
    aspect-ratio: 1.65 / 1;
    background: #222;
}

.ind-play-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: var(--case-red);
    display: grid;
    place-items: center;
    font-size: 2.35rem;
    box-shadow: var(--case-shadow-md);
    pointer-events: none;
}

.ind-intro__body h2 {
    font-size: clamp(1.55rem, 2.5vw, 2.3rem);
    font-weight: 720;
    letter-spacing: -.03em;
    margin-bottom: 1rem;
}

.ind-intro__body p { color: #4b5563; line-height: 1.85; }

.ind-choose {
    padding: 78px 0 92px;
    background: var(--case-soft);
}

.industry-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--case-border);
    border-radius: var(--case-radius-md);
    overflow: hidden;
    box-shadow: var(--case-shadow-sm);
    transition: var(--case-transition);
    text-align: center;
}

.industry-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--case-shadow-md);
}

.industry-img { position: relative; }

.industry-img img {
    width: 100%;
    /*aspect-ratio: 1.55 / 1;*/
    /*object-fit: cover;*/
    display: block;
}

.industry-img__placeholder {
    width: 100%;
    /*aspect-ratio: 1.55 / 1;*/
    background: var(--case-soft);
}

.industry-img > span {
    position: absolute;
    left: 50%;
    bottom: -28px;
    transform: translateX(-50%);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #fff;
    color: var(--case-red);
    display: grid;
    place-items: center;
    font-size: 1.55rem;
    box-shadow: var(--case-shadow-md);
}

.industry-body { padding: 42px 20px 24px; }
.industry-body h3 { font-size: 1rem; font-weight: 750; margin-bottom: .8rem; }
.industry-body p { color: #4b5563; line-height: 1.68; font-size: .9rem; min-height: 76px; }
.industry-body .btn-sm { padding: .48rem 1rem; font-size: .82rem; }

.ind-resources { padding: 78px 0; background: #fff; }

.resource-card {
    height: 100%;
    background: #fff;
    border-radius: var(--case-radius-md);
    overflow: hidden;
    box-shadow: var(--case-shadow-md);
    text-align: center;
    transition: var(--case-transition);
}

.resource-card:hover { transform: translateY(-6px); }

.resource-card img {
    width: 100%;
    aspect-ratio: 1.55 / 1;
    object-fit: cover;
    display: block;
}

.resource-body { padding: 22px; }
.resource-body h3 { font-size: 1rem; font-weight: 750; margin-bottom: .75rem; }

.ind-contact { padding: 84px 0 94px; background: #fff; }

.ind-contact .contact-form {
    max-width: 1060px;
    margin-inline: auto;
    background: #fff;
    border-radius: var(--case-radius-lg);
    padding: clamp(26px, 4vw, 58px);
    box-shadow: var(--case-shadow-lg);
}

.ind-contact .form-control {
    min-height: 52px;
    border: 1px solid #c5ccd6;
    border-radius: 0;
    box-shadow: none;
    font-size: .9rem;
    padding: .85rem 1rem;
}

.ind-contact textarea.form-control { min-height: 88px; }

.ind-contact .form-control:focus {
    border-color: rgba(255, 37, 43, .55);
    box-shadow: 0 0 0 .2rem rgba(255, 37, 43, .08);
}

.ind-video-modal {
    border: 0;
    border-radius: var(--case-radius-lg);
    overflow: hidden;
    background: #111;
}

.ind-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    background-color: #fff;
    opacity: 1;
    border-radius: 50%;
}

@media (max-width: 991.98px) {
    .ind-hero { text-align: center; }
    .ind-hero__content { margin-inline: auto; }
    .ind-hero__actions { justify-content: center; }
    .ind-intro__card { grid-template-columns: 1fr; }
    .ind-choose, .ind-resources, .ind-contact { padding-block: 64px; }
    .industry-body p { min-height: auto; }
}

@media (max-width: 575.98px) {
    .ind-hero .btn-case,
    .ind-hero .btn-dark-pill { width: 100%; }
    .ind-intro__card { padding: 18px; margin-top: -36px; }
    .ind-contact .contact-form { box-shadow: var(--case-shadow-md); }
}
.product-actions a{
    font-size:12px;
    color: var(--case-body);
}

/* =========================================================
   SERVICE PAGE SECTIONS
   ========================================================= */

/* ── Shared service utility ── */
.section-kicker {
    display: inline-flex;
    color: var(--case-red);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .78rem;
    margin-bottom: .8rem;
}

/* ── Service Hero ── */
.svc-hero {
    padding: 88px 0 96px;
    color: #fff;
    background: radial-gradient(circle at 85% 18%, rgba(255, 37, 43, .18), transparent 28%),
                linear-gradient(120deg, rgba(5,5,5,.94), rgba(25,30,42,.86)),
                #111827 center / cover no-repeat;
}

.svc-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, .68);
    font-size: .88rem;
    margin-bottom: 1.1rem;
}

.svc-breadcrumb a { color: rgba(255, 255, 255, .82); }

.svc-eyebrow {
    display: inline-flex;
    color: #fff;
    background: var(--case-red);
    border-radius: var(--case-radius-pill);
    padding: .35rem .85rem;
    font-size: .82rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.svc-hero__title {
    font-size: clamp(2.4rem, 5vw, 5rem);
    font-weight: 850;
    letter-spacing: -.06em;
    line-height: 1.04;
    margin-bottom: 1rem;
}

.svc-hero__desc {
    color: rgba(255, 255, 255, .88);
    line-height: 1.85;
    max-width: 740px;
    font-size: 1.04rem;
}

.svc-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.svc-hero__panel {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(18px);
    border-radius: var(--case-radius-lg);
    padding: clamp(26px, 4vw, 42px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
}

.svc-hero__panel-icon {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    background: var(--case-red);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 2.5rem;
    margin-bottom: 1.35rem;
    box-shadow: var(--case-red-shadow);
}

.svc-hero__panel h2 {
    font-size: 1.55rem;
    font-weight: 800;
    margin-bottom: .8rem;
}

.svc-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 1.5rem;
}

.svc-hero__stats div {
    border-radius: var(--case-radius-md);
    background: rgba(255, 255, 255, .12);
    padding: 14px;
}

.svc-hero__stats strong {
    display: block;
    font-size: 1.05rem;
}

.svc-hero__stats span {
    color: rgba(255, 255, 255, .7);
    font-size: .78rem;
}

/* ── Problem Section ── */
.svc-problem {
    padding: 86px 0;
    background: #fff;
}

.svc-block-title {
    font-size: clamp(1.8rem, 3vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -.04em;
    margin-bottom: 1rem;
}

.svc-block-text {
    color: #4b5563;
    line-height: 1.85;
    font-size: 1rem;
}

.svc-usecase-card {
    border-radius: var(--case-radius-lg);
    overflow: hidden;
    box-shadow: var(--case-shadow-md);
    background: #fff;
}

.svc-usecase-card img {
    width: 100%;
    aspect-ratio: 1.55 / 1;
    object-fit: cover;
}

.svc-usecase-card__body { padding: 28px; }

.svc-usecase-card__body h3 {
    font-size: 1.25rem;
    font-weight: 800;
}

.svc-usecase-card__body p {
    color: var(--case-muted);
    line-height: 1.75;
    margin-bottom: 0;
}

/* ── Capabilities ── */
.svc-capabilities {
    padding: 86px 0;
    background: var(--case-soft);
}

.svc-capability-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--case-border);
    border-radius: var(--case-radius-md);
    padding: 30px 26px;
    box-shadow: var(--case-shadow-sm);
    transition: var(--case-transition);
}

.svc-capability-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--case-shadow-md);
}

.svc-capability-card i {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: rgba(255, 37, 43, .08);
    color: var(--case-red);
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    margin-bottom: 1.2rem;
}

.svc-capability-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: .7rem;
}

.svc-capability-card p {
    color: var(--case-muted);
    line-height: 1.75;
    margin-bottom: 0;
}

/* ── Applications ── */
.svc-applications {
    padding: 86px 0;
    background: #fff;
}

.svc-app-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.svc-app-grid span {
    background: var(--case-soft);
    border: 1px solid var(--case-border);
    border-radius: var(--case-radius-pill);
    padding: .78rem 1rem;
    font-weight: 700;
    color: #2d3748;
}

/* ── Ecosystem ── */
.svc-ecosystem {
    padding: 86px 0;
    background: var(--case-soft);
}

.svc-ecosystem-map {
    max-width: 1040px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
    align-items: center;
}

.svc-ecosystem-center,
.svc-ecosystem-node {
    background: #fff;
    border: 1px solid var(--case-border);
    border-radius: var(--case-radius-md);
    box-shadow: var(--case-shadow-sm);
    min-height: 130px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 18px;
}

.svc-ecosystem-center {
    grid-column: span 6;
    background: radial-gradient(circle at top right, rgba(255, 37, 43, .12), transparent 28%), #fff;
    min-height: 170px;
}

.svc-ecosystem-center i,
.svc-ecosystem-node i {
    color: var(--case-red);
    font-size: 2.2rem;
    margin-bottom: .5rem;
}

.svc-ecosystem-center strong {
    display: block;
    font-size: 1.45rem;
    font-weight: 850;
}

.svc-ecosystem-node span {
    font-weight: 700;
    color: #2d3748;
}

/* ── Benefits ── */
.svc-benefits {
    padding: 86px 0;
    background: #fff;
}

.svc-benefit-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--case-border);
    border-radius: var(--case-radius-md);
    padding: 30px 26px;
    box-shadow: var(--case-shadow-sm);
    transition: var(--case-transition);
}

.svc-benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--case-shadow-md);
}

.svc-benefit-card i {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: rgba(255, 37, 43, .08);
    color: var(--case-red);
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    margin-bottom: 1.2rem;
}

.svc-benefit-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: .7rem;
}

.svc-benefit-card p {
    color: var(--case-muted);
    line-height: 1.75;
    margin-bottom: 0;
}

/* ── CTA Section ── */
.svc-cta-section {
    padding: 88px 0 96px;
    background: radial-gradient(circle at 92% 10%, rgba(255, 37, 43, .10), transparent 28%), var(--case-soft);
}

.svc-cta-card {
    background: #fff;
    border-radius: 30px;
    box-shadow: var(--case-shadow-lg);
    padding: clamp(28px, 5vw, 58px);
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: 42px;
    align-items: start;
}

.svc-cta-card h2 {
    font-size: clamp(1.8rem, 3vw, 2.75rem);
    font-weight: 850;
    letter-spacing: -.04em;
    margin-bottom: 1rem;
}

.svc-cta-card p {
    color: var(--case-muted);
    line-height: 1.85;
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .svc-hero {
        text-align: center;
        padding: 64px 0;
    }

    .svc-breadcrumb,
    .svc-hero__actions { justify-content: center; }

    .svc-hero__panel { text-align: left; }

    .svc-problem,
    .svc-capabilities,
    .svc-applications,
    .svc-ecosystem,
    .svc-benefits,
    .svc-cta-section { padding-block: 64px; }

    .svc-ecosystem-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .svc-ecosystem-center { grid-column: span 2; }

    .svc-cta-card { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
    .svc-hero__stats { grid-template-columns: 1fr; }

    .svc-ecosystem-map { grid-template-columns: 1fr; }

    .svc-ecosystem-center { grid-column: span 1; }
}

/* ── Blog Archive Popup Modal ─────────────────────────────── */
.blog-popup-modal .modal-content {
    position: relative;
    border: 0;
    border-radius: var(--case-radius-lg);
    overflow: hidden;
    box-shadow: var(--case-shadow-lg);
}

.blog-popup-modal .modal-body {
    padding: 0;
}

.blog-popup-modal .blog-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    background-color: var(--case-white);
    border-radius: 50%;
    padding: .5rem;
    opacity: .85;
    box-shadow: var(--case-shadow-sm);
}

.blog-popup-modal .blog-popup-close:hover {
    opacity: 1;
}

.blog-popup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

.blog-popup-media {
    background: var(--case-soft);
}

.blog-popup-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-popup-content {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
}

.blog-popup-text {
    color: var(--case-text);
}

.blog-popup-text > :first-child {
    margin-top: 0;
}

.blog-popup-text > :last-child {
    margin-bottom: 0;
}

.blog-popup-btn {
    align-self: flex-start;
    background: var(--case-red);
    border-color: var(--case-red);
    padding: .7rem 1.6rem;
    font-weight: 700;
    border-radius: 10px;
}

.blog-popup-btn:hover,
.blog-popup-btn:focus {
    filter: brightness(0.95);
    background: var(--case-red);
    border-color: var(--case-red);
}

@media (max-width: 767.98px) {
    .blog-popup-grid {
        grid-template-columns: 1fr;
    }

    .blog-popup-media img {
        max-height: 220px;
    }

    .blog-popup-content {
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .blog-popup-btn {
        align-self: center;
    }
}
/* همه اسلایدها هم‌ارتفاع */
.swiper-wrapper {
    align-items: stretch;
}




/* کارت به‌صورت ستونی */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}


/* دکمه همیشه در انتهای کارت قرار بگیرد */
.product-body .link-case {
    margin-top: auto;
}