@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;500;600;700&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
    html {
        scroll-behavior: smooth;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    body {
        @apply font-sans text-dark-text bg-white;
        font-feature-settings: "kern" 1;
    }

    h1 {
        @apply text-h1 font-bold;
    }

    h2 {
        @apply text-h2 font-semibold;
    }

    h3 {
        @apply text-h3 font-medium;
    }

    h4 {
        @apply text-h4 font-medium;
    }

    /* ===================================================================
       RTL (Arabic) Base Styles
       =================================================================== */
    [dir="rtl"] {
        font-feature-settings: "kern" 1, "liga" 1;
        text-align: right;
    }

    [dir="rtl"] body,
    body.rtl {
        direction: rtl;
        text-align: right;
    }
}

@layer components {
    .ui-elevated {
        @apply shadow-[0_10px_30px_rgba(18,42,84,0.08)] border border-white/60;
    }

    .ui-elevated-soft {
        @apply shadow-[0_6px_20px_rgba(18,42,84,0.07)] border border-gray-100/80;
    }

    .ui-hover-lift {
        @apply transition-all duration-300 ease-spring hover:-translate-y-0.5 hover:shadow-[0_14px_28px_rgba(18,42,84,0.12)];
    }

    .glass-panel {
        @apply bg-white/70 backdrop-blur-md border border-white/70;
    }

    .btn-primary {
        @apply inline-flex items-center justify-center px-6 py-3 bg-navy text-white font-medium rounded-[20px] transition-all duration-300 ease-in-out hover:bg-navy-700 hover:shadow-lg hover:-translate-y-0.5 focus:outline-none focus:ring-2 focus:ring-navy-300 focus:ring-offset-2 active:translate-y-0;
    }

    .btn-secondary {
        @apply inline-flex items-center justify-center px-6 py-3 bg-white text-navy font-medium rounded-[20px] border-2 border-navy transition-all duration-300 ease-in-out hover:bg-navy hover:text-white hover:shadow-lg hover:-translate-y-0.5 focus:outline-none focus:ring-2 focus:ring-navy-300 focus:ring-offset-2 active:translate-y-0;
    }

    .btn-accent {
        @apply inline-flex items-center justify-center px-6 py-3 bg-cyan text-white font-medium rounded-[20px] transition-all duration-300 ease-in-out hover:bg-cyan-700 hover:shadow-lg hover:-translate-y-0.5 focus:outline-none focus:ring-2 focus:ring-cyan-300 focus:ring-offset-2 active:translate-y-0;
    }

    .btn-cta {
        @apply inline-flex items-center justify-center px-8 py-3.5 bg-cyan text-white font-semibold rounded-[20px] transition-all duration-300 ease-in-out shadow-md hover:bg-cyan-700 hover:shadow-xl hover:-translate-y-1 focus:outline-none focus:ring-2 focus:ring-cyan-300 focus:ring-offset-2;
    }

    .section-padding {
        @apply py-16 md:py-24 px-4 sm:px-6 lg:px-8;
    }

    .container-custom {
        @apply max-w-7xl mx-auto px-4 sm:px-6 lg:px-8;
    }

    .card {
        @apply bg-white rounded-xl ui-elevated-soft;
        transition: none !important;
    }

    .card:hover {
        transform: none !important;
        box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow) !important;
        translate: none !important;
    }

    .card-body {
        @apply p-6 md:p-8;
    }

    .blog-card-link {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border-radius: 0.75rem;
        border: 1px solid rgb(243 244 246);
        background: #fff;
        box-shadow: 0 8px 24px rgba(18, 42, 84, 0.08);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .blog-card-link:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 40px rgba(18, 42, 84, 0.14);
    }

    .blog-card-link:focus {
        outline: 2px solid #7794bd;
        outline-offset: 4px;
    }

    .blog-card-media {
        aspect-ratio: 16 / 10;
        flex: 0 0 auto;
        overflow: hidden;
        background: #e8edf4;
    }

    .blog-card-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .blog-card-link:hover .blog-card-image {
        transform: scale(1.05);
    }

    .blog-card-body {
        display: flex;
        flex: 0 0 auto;
        flex-direction: column;
        padding: 1.5rem;
    }

    @media (min-width: 768px) {
        .blog-card-body {
            padding: 1.75rem;
        }
    }

    .blog-card-date {
        display: inline-flex;
        align-items: center;
        align-self: flex-start;
        gap: 0.5rem;
        margin-bottom: 1rem;
        border-radius: 20px;
        background: #e4f5fa;
        padding: 0.375rem 0.75rem;
        color: #0e6682;
        font-size: 0.75rem;
        line-height: 1rem;
        font-weight: 700;
    }

    .blog-card-title {
        margin-bottom: 0.75rem;
        color: #204074;
        font-size: 1.25rem;
        line-height: 1.35;
        font-weight: 700;
        transition: color 0.3s ease;
    }

    .blog-card-link:hover .blog-card-title {
        color: #219EC4;
    }

    .blog-card-excerpt {
        display: -webkit-box;
        max-height: 4.5rem;
        margin-bottom: 1.5rem;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        color: #4b5563;
        font-size: 0.9375rem;
        line-height: 1.5rem;
    }

    .blog-card-button {
        display: inline-flex;
        align-items: center;
        align-self: flex-start;
        gap: 0.5rem;
        margin-top: 0;
        border-radius: 999px;
        background: #204074;
        padding: 0.625rem 1.25rem;
        color: #fff;
        font-size: 0.875rem;
        line-height: 1.25rem;
        font-weight: 700;
        transition: background-color 0.3s ease;
    }

    .blog-card-button svg {
        width: 1rem;
        height: 1rem;
    }

    .blog-card-link:hover .blog-card-button {
        background: #219EC4;
    }

    [dir="rtl"] .blog-card-body {
        text-align: right;
    }

    .section-title {
        @apply text-h2 text-navy mb-4;
    }

    .section-subtitle {
        @apply text-lg text-gray-600 max-w-2xl;
    }

    .input-field {
        @apply w-full px-4 py-3 border border-gray-300 rounded-lg text-dark-text bg-white transition-all duration-200 focus:border-navy focus:ring-2 focus:ring-navy-100 focus:outline-none placeholder:text-gray-400;
    }

    .badge {
        @apply inline-flex items-center px-3 py-1 rounded-full text-sm font-medium;
    }

    .badge-navy {
        @apply badge bg-navy-50 text-navy;
    }

    .badge-cyan {
        @apply badge bg-cyan-50 text-cyan-700;
    }

    .table-header {
        @apply bg-navy text-white text-sm font-semibold uppercase tracking-wider;
    }

    .table-cell {
        @apply px-6 py-4 text-sm text-dark-text border-b border-gray-100;
    }

    .gradient-navy {
        @apply bg-gradient-to-br from-navy-800 via-navy to-navy-600;
    }

    .gradient-overlay {
        background: linear-gradient(135deg, rgba(32, 64, 116, 0.92) 0%, rgba(18, 42, 84, 0.88) 100%);
    }

    .text-gradient {
        @apply bg-clip-text text-transparent bg-gradient-to-r from-navy to-cyan;
    }

    /* Navigation dropdown */
    .nav-dropdown {
        @apply absolute top-full left-0 mt-2 w-56 bg-white rounded-2xl shadow-[0_18px_40px_rgba(18,42,84,0.12)] border border-gray-100 opacity-0 invisible translate-y-2 transition-all duration-300 ease-spring z-50;
    }

    .nav-item:hover .nav-dropdown,
    .nav-dropdown:hover {
        @apply opacity-100 visible translate-y-0;
    }

    [dir="rtl"] .nav-dropdown {
        @apply left-auto right-0;
    }

    .nav-dropdown-item {
        @apply block px-5 py-3 text-sm text-gray-700 hover:bg-white/80 hover:text-navy transition-all duration-200 first:rounded-t-xl last:rounded-b-xl;
    }

    .icon-chip {
        @apply w-12 h-12 bg-navy-50/90 rounded-2xl flex items-center justify-center mx-auto mb-5 ui-hover-lift;
    }

    .section-panel {
        @apply bg-white/90 backdrop-blur-sm rounded-2xl shadow-[0_6px_20px_rgba(18,42,84,0.07)] border border-gray-100/80;
    }

    #site-header {
        @apply bg-transparent border-b-0 shadow-none;
    }

    .site-header-shell {
        @apply mt-2 mx-3 md:mx-6 rounded-[20px] bg-white/80 backdrop-blur-md border border-white/70 shadow-[0_14px_34px_rgba(18,42,84,0.14)] transition-all duration-300;
    }

    /* Desktop: constrain navbar width and center it */
    @media (min-width: 1024px) {
        #site-header {
            padding-left: 24px;
            padding-right: 24px;
        }

        .site-header-shell {
            max-width: 1320px;
            margin-left: auto;
            margin-right: auto;
        }
    }

    #site-header.is-scrolled .site-header-shell {
        @apply shadow-[0_18px_42px_rgba(18,42,84,0.18)];
    }

    .cmc-header-actions,
    .cmc-mobile-header-actions {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
    }

    .cmc-header-actions {
        margin-inline-start: 0.75rem;
        padding-inline-start: 0.75rem;
        border-inline-start: 1px solid rgba(255, 255, 255, 0.72);
    }

    .cmc-language-switcher {
        display: inline-flex;
        align-items: center;
        margin-inline-start: 0.75rem;
        padding-inline-start: 0.75rem;
        border-inline-start: 1px solid rgba(255, 255, 255, 0.72);
    }

    .cmc-mobile-language {
        display: inline-flex;
        align-items: center;
    }

    .cmc-language-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
        min-width: 4.25rem;
        height: 2.5rem;
        padding: 0 1rem;
        color: #ffffff;
        border: 1px solid rgba(0, 174, 239, 0.18);
        border-radius: 20px;
        background: linear-gradient(135deg, #00AEEF 0%, #0077B6 100%);
        box-shadow: 0 8px 18px rgba(0, 119, 182, 0.24);
        font-size: 0.78rem;
        line-height: 1;
        font-weight: 800;
        text-decoration: none;
        transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    }

    .cmc-language-toggle:hover,
    .cmc-language-toggle:focus-visible {
        color: #ffffff;
        background: linear-gradient(135deg, #0077B6 0%, #204074 100%);
        box-shadow: 0 12px 24px rgba(0, 119, 182, 0.36);
        transform: translateY(-1px);
        outline: none;
    }

    .cmc-language-toggle i,
    .cmc-language-toggle svg {
        width: 1rem;
        height: 1rem;
    }

    .cmc-language-toggle--mobile {
        min-width: 3.65rem;
        height: 2.25rem;
        padding: 0 0.75rem;
        border-radius: 18px;
        font-size: 0.72rem;
    }

    .cmc-mobile-header-actions {
        gap: 0.25rem;
    }

    .cmc-header-action {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 2.5rem;
        color: #204074;
        border: 1px solid rgba(32, 64, 116, 0.08);
        border-radius: 9999px;
        background: rgba(255, 255, 255, 0.72);
        box-shadow: 0 8px 18px rgba(18, 42, 84, 0.08);
        transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    }

    .cmc-header-action:hover,
    .cmc-header-action:focus-visible {
        color: #ffffff;
        background: #204074;
        border-color: #204074;
        transform: translateY(-1px);
        outline: none;
    }

    .cmc-header-action i,
    .cmc-header-action svg {
        width: 1.12rem;
        height: 1.12rem;
    }

    .cmc-cart-count {
        position: absolute;
        top: -0.25rem;
        right: -0.25rem;
        min-width: 1.15rem;
        height: 1.15rem;
        padding: 0 0.28rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #ffffff;
        border-radius: 9999px;
        background: #00AEEF;
        color: #ffffff;
        font-size: 0.68rem;
        line-height: 1;
        font-weight: 800;
    }

    [dir="rtl"] .cmc-cart-count {
        right: auto;
        left: -0.25rem;
    }

    @media (max-width: 420px) {
        .cmc-mobile-header-actions .cmc-header-action {
            width: 2.25rem;
            height: 2.25rem;
        }

        .cmc-language-toggle--mobile {
            min-width: 2.25rem;
            width: 2.25rem;
            padding: 0;
        }

        .cmc-language-toggle--mobile span {
            display: none;
        }
    }

    .cmc-search-open {
        overflow: hidden;
    }

    .cmc-search-dialog {
        position: fixed;
        inset: 0;
        z-index: 80;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding: 6.5rem 1rem 1rem;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.24s ease;
    }

    .cmc-search-dialog.is-open {
        pointer-events: auto;
        opacity: 1;
    }

    .cmc-search-dialog__backdrop {
        position: absolute;
        inset: 0;
        background: rgba(4, 18, 38, 0.56);
        backdrop-filter: blur(10px);
    }

    .cmc-search-dialog__panel {
        position: relative;
        width: min(760px, 100%);
        max-height: min(78vh, 720px);
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.72);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 28px 70px rgba(0, 38, 77, 0.28);
        transform: translateY(-12px) scale(0.98);
        transition: transform 0.24s ease;
    }

    .cmc-search-dialog.is-open .cmc-search-dialog__panel {
        transform: translateY(0) scale(1);
    }

    .cmc-search-dialog__close {
        position: absolute;
        top: 1rem;
        inset-inline-end: 1rem;
        z-index: 2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.35rem;
        height: 2.35rem;
        color: #204074;
        border: 1px solid rgba(32, 64, 116, 0.12);
        border-radius: 9999px;
        background: #ffffff;
        transition: color 0.2s ease, background 0.2s ease;
    }

    .cmc-search-dialog__close:hover {
        color: #ffffff;
        background: #204074;
    }

    .cmc-search-dialog__field {
        display: flex;
        align-items: center;
        gap: 0.9rem;
        padding: 1.15rem 4.1rem 1.15rem 1.4rem;
        border-bottom: 1px solid rgba(0, 59, 115, 0.1);
        color: #0077B6;
    }

    [dir="rtl"] .cmc-search-dialog__field {
        padding: 1.15rem 1.4rem 1.15rem 4.1rem;
    }

    .cmc-search-dialog__field svg,
    .cmc-search-dialog__field i {
        flex: 0 0 auto;
        width: 1.35rem;
        height: 1.35rem;
    }

    .cmc-search-dialog__field input {
        width: 100%;
        min-width: 0;
        border: 0;
        background: transparent;
        color: #1A2A44;
        font-size: 1.12rem;
        font-weight: 700;
        outline: none;
    }

    .cmc-search-dialog__field input::placeholder {
        color: #6B7B92;
        font-weight: 600;
    }

    .cmc-search-dialog__status {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .cmc-search-dialog__results {
        max-height: calc(min(78vh, 720px) - 5rem);
        overflow-y: auto;
        padding: 1.35rem;
    }

    .cmc-search-dialog__loading,
    .cmc-search-dialog__empty {
        padding: 2.75rem 1rem;
        text-align: center;
        color: #6B7B92;
        font-weight: 700;
    }

    .cmc-search-group + .cmc-search-group {
        margin-top: 1.35rem;
        padding-top: 1.35rem;
        border-top: 1px solid rgba(0, 59, 115, 0.08);
    }

    .cmc-search-group__title {
        margin: 0 0 0.75rem;
        color: #204074;
        font-size: 0.84rem;
        line-height: 1.3;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0;
    }

    .cmc-search-group__list {
        display: grid;
        gap: 0.65rem;
    }

    .cmc-search-result {
        display: grid;
        grid-template-columns: 4rem minmax(0, 1fr);
        align-items: center;
        gap: 0.9rem;
        min-height: 4.75rem;
        padding: 0.65rem;
        color: #1A2A44;
        border: 1px solid rgba(0, 59, 115, 0.08);
        border-radius: 16px;
        background: #F6FAFD;
        text-decoration: none;
        transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    }

    .cmc-search-result--no-image {
        grid-template-columns: minmax(0, 1fr);
        padding: 0.9rem 1rem;
    }

    .cmc-search-result:hover,
    .cmc-search-result:focus-visible {
        border-color: rgba(0, 174, 239, 0.42);
        background: #ffffff;
        transform: translateY(-1px);
        outline: none;
    }

    .cmc-search-result__image {
        width: 4rem;
        height: 4rem;
        object-fit: cover;
        border: 1px solid rgba(0, 59, 115, 0.08);
        border-radius: 12px;
        background: #ffffff;
    }

    .cmc-search-result__body,
    .cmc-search-result__type,
    .cmc-search-result__title,
    .cmc-search-result__summary {
        display: block;
        min-width: 0;
    }

    .cmc-search-result__type {
        margin-bottom: 0.18rem;
        color: #0077B6;
        font-size: 0.72rem;
        line-height: 1.2;
        font-weight: 800;
    }

    .cmc-search-result__title {
        color: #204074;
        font-size: 0.96rem;
        line-height: 1.35;
        font-weight: 800;
    }

    .cmc-search-result__summary {
        margin-top: 0.22rem;
        color: #6B7B92;
        font-size: 0.82rem;
        line-height: 1.4;
    }

    @media (max-width: 640px) {
        .cmc-search-dialog {
            align-items: stretch;
            padding: 5.25rem 0.75rem 0.75rem;
        }

        .cmc-search-dialog__panel {
            width: 100%;
            max-height: 86vh;
            border-radius: 20px;
        }

        .cmc-search-dialog__field input {
            font-size: 1rem;
        }

        .cmc-search-dialog__results {
            max-height: calc(86vh - 5rem);
            padding: 1rem;
        }
    }

    /* Logo sizing — enforced everywhere (including WooCommerce pages) */
    #site-logo {
        height: 3rem;
        width: auto;
        max-width: 200px;
        object-fit: contain;
    }

    /* Inner page title band: overlayed by absolute header */
    .page-hero {
    #site-logo {
        height: 3rem;
        width: auto;
        max-width: 200px;
        object-fit: contain;
    }

    /* Inner page title band: overlayed by absolute header */
        @apply shadow-[0_18px_42px_rgba(18,42,84,0.18)];
    }

    /* Inner page title band: overlayed by absolute header */
    .page-hero {
        padding-top: 8rem !important;
        padding-bottom: 4rem !important;
        @apply text-white;
    }

    @media (min-width: 768px) {
        .page-hero {
            padding-top: 10rem !important;
            padding-bottom: 5rem !important;
        }
    }

    .page-hero-title {
        @apply text-4xl sm:text-5xl md:text-6xl font-bold leading-tight mb-4 text-balance;
    }

    /* Scroll animations */
    .animate-on-scroll {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    .animate-on-scroll.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Product table */
    .product-table {
        @apply w-full border-collapse;
    }

    .product-table thead {
        @apply table-header;
    }

    .product-table th {
        @apply px-6 py-4 text-left;
    }

    [dir="rtl"] .product-table th {
        @apply text-right;
    }

    .product-table tbody tr {
        @apply border-b border-gray-100 hover:bg-gray-50 transition-colors duration-150;
    }

    .product-table td {
        @apply table-cell;
    }

    /* Filter tabs */
    .filter-tab {
        @apply px-5 py-2.5 text-sm font-medium rounded-full transition-all duration-200 text-gray-600 bg-gray-100 hover:bg-navy-50 hover:text-navy;
    }

    .filter-tab.active {
        @apply bg-navy text-white shadow-md;
    }

    /* RFQ Steps */
    .rfq-step {
        @apply flex items-center gap-3;
    }

    .rfq-step-number {
        @apply w-10 h-10 rounded-full flex items-center justify-center text-sm font-bold transition-all duration-300;
    }

    .rfq-step-number.active {
        @apply bg-navy text-white shadow-md;
    }

    .rfq-step-number.completed {
        @apply bg-green-500 text-white;
    }

    .rfq-step-number.inactive {
        @apply bg-gray-200 text-gray-500;
    }

    /* Inquiry floating badge */
    .inquiry-badge {
        @apply fixed bottom-6 right-6 z-50 flex items-center gap-2 bg-navy/90 text-white px-5 py-3 rounded-full shadow-2xl backdrop-blur-sm border border-white/40 transition-all duration-300 hover:bg-navy-700 hover:shadow-xl hover:-translate-y-1 cursor-pointer;
    }

    #footer-bottom-bar {
        padding-bottom: 80px !important;
    }

    @media (min-width: 768px) {
        #footer-bottom-bar {
            padding-bottom: 0 !important;
        }
    }

    [dir="rtl"] .inquiry-badge {
        @apply right-auto left-6;
    }

    #floating-quote-btn {
        @apply backdrop-blur-sm border border-white/40 shadow-[0_14px_28px_rgba(18,42,84,0.18)];
    }

    .inquiry-count {
        @apply w-6 h-6 bg-cyan rounded-full flex items-center justify-center text-xs font-bold;
    }

    /* ===================================================================
       RTL Component Overrides — Professional Arabic Layout
       =================================================================== */

    /* --- Form fields alignment --- */
    [dir="rtl"] .input-field {
        text-align: right;
    }

    [dir="rtl"] .input-field::placeholder {
        text-align: right;
    }

    /* --- Table cells in RTL --- */
    [dir="rtl"] .table-cell {
        text-align: right;
    }

    /* --- Arrow/chevron icons flip in RTL --- */
    [dir="rtl"] .btn-primary svg:last-child,
    [dir="rtl"] .btn-cta svg:last-child,
    [dir="rtl"] .btn-secondary svg:last-child,
    [dir="rtl"] a.inline-flex svg:last-child {
        transform: scaleX(-1);
    }

    /* Don't flip checkmark, plus, or decorative icons */
    [dir="rtl"] .btn-primary svg:first-child,
    [dir="rtl"] .btn-cta svg:first-child {
        transform: none;
    }

    /* --- Back arrow links flip --- */
    [dir="rtl"] #rfq-prev-step svg,
    [dir="rtl"] a[href*="products/"] svg:first-child {
        transform: scaleX(-1);
    }

    /* --- Grid section image/text order flip for RTL ---
       Two-column layouts with text+image should swap visually */
    [dir="rtl"] .lg\:grid-cols-2 {
        direction: rtl;
    }

    /* --- Section headings and paragraphs --- */
    [dir="rtl"] .section-title,
    [dir="rtl"] .section-subtitle {
        text-align: right;
    }

    [dir="rtl"] .text-center .section-title,
    [dir="rtl"] .text-center .section-subtitle,
    [dir="rtl"] .text-center {
        text-align: center;
    }

    /* --- Badge alignment --- */
    [dir="rtl"] .badge-navy,
    [dir="rtl"] .badge-cyan {
        direction: rtl;
    }

    /* --- RFQ step wizard --- */
    [dir="rtl"] #rfq-steps {
        direction: rtl;
    }

    /* --- Stat cards --- */
    [dir="rtl"] .flex.items-start.gap-3 svg {
        order: 0;
    }

    /* --- Footer RTL layout adjustments --- */
    [dir="rtl"] footer ul {
        padding-right: 0;
        padding-left: 0;
    }

    /* --- Contact info card icon position --- */
    [dir="rtl"] .card-body.flex.items-start.gap-4 {
        flex-direction: row-reverse;
    }

    [dir="rtl"] .card-body.flex.items-start.gap-4>div {
        text-align: right;
    }

    /* --- Filter tabs alignment --- */
    [dir="rtl"] #product-filters {
        direction: rtl;
    }

    /* --- Mobile menu RTL --- */
    [dir="rtl"] .mobile-accordion-toggle {
        text-align: right;
    }

    [dir="rtl"] .mobile-accordion-toggle svg {
        margin-left: 0;
        margin-right: auto;
    }

    /* --- Smooth transitions for language switch --- */
    body {
        transition: direction 0s;
    }

    /* --- RTL-specific floating action positions
       (handled via Tailwind is_rtl conditional in templates,
        but CSS backup for edge cases) --- */
    [dir="rtl"] #back-to-top {
        right: auto;
        left: 1.5rem;
    }

    [dir="rtl"] #floating-quote-btn {
        left: auto;
        right: 1.5rem;
    }

    /* --- Hero section RTL arrow fix --- */
    [dir="rtl"] #hero .btn-cta svg,
    [dir="rtl"] #hero a.btn-cta svg {
        transform: scaleX(-1);
    }

    /* --- List items with icons preserve readability --- */
    [dir="rtl"] li.flex.items-center.gap-3,
    [dir="rtl"] li.flex.items-start.gap-3 {
        flex-direction: row-reverse;
    }

    [dir="rtl"] li.flex.items-center.gap-3 span:last-child,
    [dir="rtl"] li.flex.items-start.gap-3 span:last-child {
        text-align: right;
    }

    /* --- Quantity controls stay left-to-right (numbers) --- */
    [dir="rtl"] .qty-btn,
    [dir="rtl"] input[type="number"] {
        direction: ltr;
    }

    /* --- Code tags always LTR --- */
    [dir="rtl"] code {
        direction: ltr;
        unicode-bidi: embed;
    }

    /* --- Product card flex items --- */
    [dir="rtl"] .card .flex.items-center.justify-between {
        flex-direction: row-reverse;
    }

    /* --- Select dropdown arrow position in RTL --- */
    [dir="rtl"] select.input-field {
        background-position: left 0.75rem center;
        padding-right: 1rem;
        padding-left: 2.5rem;
    }
}

@layer utilities {
    .text-balance {
        text-wrap: balance;
    }

    .glass {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        background: rgba(255, 255, 255, 0.85);
    }

    .glass-dark {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        background: rgba(32, 64, 116, 0.85);
    }

    /* Utility to flip icons for RTL */
    .rtl-flip {
        transform: scaleX(1);
    }

    [dir="rtl"] .rtl-flip {
        transform: scaleX(-1);
    }

    .icon-pulse-soft {
        animation: none;
    }

    .icon-spin-soft {
        animation: none;
    }

    .icon-wiggle {
        animation: none;
    }

    @keyframes iconWiggle {

        0%,
        100% {
            transform: rotate(0deg);
        }

        25% {
            transform: rotate(4deg);
        }

        75% {
            transform: rotate(-4deg);
        }
    }

    @keyframes gradientMove {
        0% {
            transform: translate(0, 0) scale(1);
        }

        33% {
            transform: translate(10%, 10%) scale(1.1);
        }

        66% {
            transform: translate(-5%, 15%) scale(0.9);
        }

        100% {
            transform: translate(0, 0) scale(1);
        }
    }

    .animate-gradient-slow {
        animation: gradientMove 15s ease-in-out infinite;
    }

    .client-logo-carousel {
        overflow: hidden;
        width: 100%;
        cursor: grab;
        touch-action: pan-y;
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
        mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    }

    .client-logo-track {
        display: flex;
        width: 300%;
        will-change: transform;
    }

    .client-logo-carousel.is-dragging {
        cursor: grabbing;
        -webkit-mask-image: none;
        mask-image: none;
        user-select: none;
    }

    .client-logo-slide {
        flex: 0 0 8.333333%;
        width: 8.333333%;
        min-width: 8.333333%;
        padding: 0 1rem;
    }

    .client-logo-card {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 11rem;
        padding: 1.5rem;
        border-radius: 1rem;
        background: #fff;
        border: 1px solid rgba(229, 231, 235, 0.8);
        box-shadow: 0 6px 20px rgba(18, 42, 84, 0.06);
    }

    .client-logo-image {
        width: 100%;
        max-width: 12rem;
        max-height: 8rem;
        object-fit: contain;
        pointer-events: none;
        user-select: none;
        -webkit-user-drag: none;
    }

    @media (max-width: 767px) {
        .client-logo-track {
            width: 600%;
        }

        .client-logo-slide {
            flex-basis: 8.333333%;
            width: 8.333333%;
            min-width: 8.333333%;
            padding: 0 0.5rem;
        }

        .client-logo-card {
            min-height: 8.5rem;
            padding: 1rem;
        }

        .client-logo-image {
            max-width: 9rem;
            max-height: 6rem;
        }
    }

    /* Utility to keep elements LTR in RTL context */
    .ltr-always {
        direction: ltr;
        unicode-bidi: embed;
    }
}

/* Hero Section — responsive grid layout */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
    width: 100%;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 3fr 2fr;
    }
}

[dir="rtl"] .cta-media-panel {
    text-align: right;
}

[dir="rtl"] .cta-media-content .flex {
    align-items: flex-start;
}

@media (min-width: 1024px) {
    [dir="rtl"] .cta-media-panel .grid {
        direction: rtl;
    }

    [dir="rtl"] .cta-media-content {
        direction: rtl;
    }

    [dir="rtl"] .core-offering-card {
        direction: rtl;
    }

    [dir="rtl"] .core-offering-content {
        direction: rtl;
    }
}

/* ============================================================
   CMC — Homepage & About enhancements
   ============================================================ */

@layer components {
    .cmc-eyebrow {
        @apply inline-flex items-center gap-3 text-cyan text-xs font-bold uppercase tracking-[0.22em];
    }

    .cmc-eyebrow::before {
        content: "";
        display: inline-block;
        width: 1.75rem;
        height: 1px;
        background: rgba(0, 119, 182, 0.7);
    }

    [dir="rtl"] .cmc-eyebrow {
        letter-spacing: 0.08em;
    }

    /* Image band with brand duotone overlay + faint medical grid */
    .cmc-image-band {
        position: relative;
        isolation: isolate;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .cmc-image-band>* {
        position: relative;
        z-index: 1;
    }

    .cmc-image-band::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        background: linear-gradient(135deg, rgba(0, 38, 77, 0.95) 0%, rgba(0, 59, 115, 0.89) 50%, rgba(0, 92, 140, 0.80) 100%);
    }

    .cmc-image-band::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        background-image:
            linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
        background-size: 46px 46px;
        -webkit-mask-image: radial-gradient(ellipse at center, #000 22%, transparent 78%);
        mask-image: radial-gradient(ellipse at center, #000 22%, transparent 78%);
        opacity: 0.6;
        pointer-events: none;
    }

    /* Medical specialty card */
    .cmc-specialty {
        @apply relative flex flex-col items-start gap-5 p-6 rounded-2xl bg-white border border-gray-100;
        transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    }

    .cmc-specialty:hover {
        transform: translateY(-6px);
        border-color: rgba(0, 119, 182, 0.4);
        box-shadow: 0 20px 44px rgba(0, 59, 115, 0.14);
    }

    .cmc-specialty-icon {
        @apply w-12 h-12 rounded-xl flex items-center justify-center flex-shrink-0;
        background: rgba(0, 59, 115, 0.06);
        color: #003B73;
        transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    }

    .cmc-specialty:hover .cmc-specialty-icon {
        background: #0077B6;
        color: #fff;
        transform: scale(1.08) rotate(-3deg);
    }

    /* Process / value-chain step */
    .cmc-step-card {
        @apply relative flex flex-col items-center text-center px-3;
    }

    /* ===================================================================
       CMC — Hero Section (premium medical-corporate presentation)
       =================================================================== */

    .cmc-hero {
        position: relative;
        isolation: isolate;
        overflow: hidden;
        min-height: 100vh;
        min-height: 100svh;
        padding-top: 7.5rem;
        padding-bottom: 4.5rem;
        color: #ffffff;
        background:
            radial-gradient(120% 80% at 0% 0%, rgba(0, 119, 182, 0.35) 0%, rgba(0, 59, 115, 0) 55%),
            radial-gradient(90% 70% at 100% 20%, rgba(21, 148, 71, 0.18) 0%, rgba(0, 59, 115, 0) 60%),
            radial-gradient(140% 100% at 50% 100%, rgba(0, 75, 134, 0.55) 0%, rgba(0, 38, 77, 0) 70%),
            linear-gradient(155deg, #00264d 0%, #003B73 38%, #004B86 72%, #00264d 100%);
    }

    @media (min-width: 1024px) {
        .cmc-hero {
            padding-top: 8.5rem;
            padding-bottom: 6rem;
        }
    }

    /* --- Decorative background layers ----------------------------------- */
    .cmc-hero__bg {
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
    }

    .cmc-hero__bg-blob {
        position: absolute;
        border-radius: 9999px;
        filter: blur(80px);
        opacity: 0.55;
        will-change: transform, opacity;
    }

    .cmc-hero__bg-blob--cyan {
        top: -8%;
        left: -6%;
        width: 36rem;
        height: 36rem;
        background: radial-gradient(circle, rgba(0, 174, 239, 0.55) 0%, rgba(0, 119, 182, 0) 70%);
        animation: heroGlow 9s ease-in-out infinite;
    }

    .cmc-hero__bg-blob--green {
        bottom: -12%;
        right: -8%;
        width: 32rem;
        height: 32rem;
        background: radial-gradient(circle, rgba(21, 148, 71, 0.32) 0%, rgba(0, 59, 115, 0) 70%);
        animation: heroGlow 11s ease-in-out infinite reverse;
    }

    .cmc-hero__bg-blob--navy {
        top: 35%;
        left: 45%;
        width: 28rem;
        height: 28rem;
        background: radial-gradient(circle, rgba(0, 119, 182, 0.28) 0%, rgba(0, 59, 115, 0) 70%);
        animation: heroGlow 13s ease-in-out infinite;
    }

    /* Faint medical grid pattern */
    .cmc-hero__bg-grid {
        position: absolute;
        inset: 0;
        background-image:
            linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
        background-size: 56px 56px;
        -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 25%, transparent 75%);
        mask-image: radial-gradient(ellipse at 50% 40%, #000 25%, transparent 75%);
        opacity: 0.7;
    }

    /* Hexagon medical pattern — ultra subtle */
    .cmc-hero__bg-hex {
        position: absolute;
        inset: 0;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 96'><path d='M28 0l28 16v32L28 64 0 48V16z' fill='none' stroke='%2300AEEF' stroke-width='0.6' opacity='0.18'/></svg>");
        background-size: 56px 96px;
        -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 70%, transparent 100%);
        mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 70%, transparent 100%);
        opacity: 0.45;
    }

    /* ECG heartbeat line running across the hero */
    .cmc-hero__bg-ecg {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 140px;
        color: rgba(0, 174, 239, 0.55);
        opacity: 0.85;
    }

    [dir="rtl"] .cmc-hero__bg-ecg {
        transform: scaleX(-1);
    }

    .cmc-hero__bg-ecg-path {
        fill: none;
        stroke: currentColor;
        stroke-width: 1.4;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-dasharray: 8 6;
        animation: ecgDash 6s linear infinite;
        will-change: stroke-dashoffset;
    }

    .cmc-hero__bg-ecg-fade {
        fill: none;
        stroke: url(#cmcEcgGradient);
        stroke-width: 1.6;
        stroke-linecap: round;
        stroke-linejoin: round;
        opacity: 0.7;
    }

    /* Floating particles */
    .cmc-hero__bg-particles {
        position: absolute;
        inset: 0;
    }

    .cmc-hero__bg-particles span {
        position: absolute;
        display: block;
        width: 4px;
        height: 4px;
        border-radius: 9999px;
        background: rgba(0, 174, 239, 0.9);
        box-shadow: 0 0 12px rgba(0, 174, 239, 0.6);
        animation: particleDrift 18s linear infinite;
        will-change: transform, opacity;
    }

    .cmc-hero__bg-particles span:nth-child(1) { left: 8%; top: 80%; animation-delay: 0s; }
    .cmc-hero__bg-particles span:nth-child(2) { left: 14%; top: 75%; width: 3px; height: 3px; animation-delay: 2s; }
    .cmc-hero__bg-particles span:nth-child(3) { left: 22%; top: 85%; width: 5px; height: 5px; animation-delay: 4s; background: rgba(21, 148, 71, 0.85); box-shadow: 0 0 12px rgba(21, 148, 71, 0.5); }
    .cmc-hero__bg-particles span:nth-child(4) { left: 32%; top: 78%; animation-delay: 6s; }
    .cmc-hero__bg-particles span:nth-child(5) { left: 41%; top: 82%; width: 3px; height: 3px; animation-delay: 1s; background: rgba(255, 255, 255, 0.8); box-shadow: 0 0 10px rgba(255, 255, 255, 0.4); }
    .cmc-hero__bg-particles span:nth-child(6) { left: 50%; top: 88%; width: 5px; height: 5px; animation-delay: 3s; }
    .cmc-hero__bg-particles span:nth-child(7) { left: 58%; top: 76%; animation-delay: 5s; }
    .cmc-hero__bg-particles span:nth-child(8) { left: 67%; top: 84%; width: 3px; height: 3px; animation-delay: 7s; background: rgba(21, 148, 71, 0.85); box-shadow: 0 0 12px rgba(21, 148, 71, 0.5); }
    .cmc-hero__bg-particles span:nth-child(9) { left: 74%; top: 79%; animation-delay: 8s; }
    .cmc-hero__bg-particles span:nth-child(10) { left: 82%; top: 87%; width: 5px; height: 5px; animation-delay: 2.5s; }
    .cmc-hero__bg-particles span:nth-child(11) { left: 89%; top: 80%; animation-delay: 4.5s; }
    .cmc-hero__bg-particles span:nth-child(12) { left: 95%; top: 85%; width: 3px; height: 3px; animation-delay: 6.5s; background: rgba(255, 255, 255, 0.8); box-shadow: 0 0 10px rgba(255, 255, 255, 0.4); }
    .cmc-hero__bg-particles span:nth-child(13) { left: 12%; top: 30%; animation-delay: 5.5s; opacity: 0; }
    .cmc-hero__bg-particles span:nth-child(14) { left: 78%; top: 25%; animation-delay: 7.5s; opacity: 0; }
    .cmc-hero__bg-particles span:nth-child(15) { left: 88%; top: 40%; animation-delay: 9.5s; opacity: 0; }
    .cmc-hero__bg-particles span:nth-child(16) { left: 6%; top: 50%; animation-delay: 11s; opacity: 0; }

    /* --- Layout container ---------------------------------------------- */
    .cmc-hero__container {
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: 80rem;
        margin-left: auto;
        margin-right: auto;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    @media (min-width: 768px) {
        .cmc-hero__container {
            padding-left: 2rem;
            padding-right: 2rem;
        }
    }

    .cmc-hero__layout {
        display: grid;
        grid-template-columns: 1fr;
        gap: 3rem;
        align-items: center;
    }

    @media (min-width: 1024px) {
        .cmc-hero__layout {
            grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
            gap: 4rem;
        }
    }

    [dir="rtl"] .cmc-hero__layout > .cmc-hero__content {
        order: 0;
    }

    [dir="rtl"] .cmc-hero__layout > .cmc-hero__visual {
        order: 1;
    }

    /* --- Content column ------------------------------------------------ */
    .cmc-hero__content {
        max-width: 38rem;
    }

    @media (min-width: 1024px) {
        .cmc-hero__content {
            max-width: 40rem;
        }
    }

    .cmc-hero__badge {
        display: inline-flex;
        align-items: center;
        gap: 0.625rem;
        padding: 0.5rem 1rem;
        margin-bottom: 1.5rem;
        background: rgba(0, 119, 182, 0.18);
        color: #c2eaff;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.16em;
        border-radius: 9999px;
        border: 1px solid rgba(0, 174, 239, 0.35);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: 0 8px 24px rgba(0, 59, 115, 0.18);
    }

    .cmc-hero__badge-dot {
        display: inline-block;
        width: 8px;
        height: 8px;
        border-radius: 9999px;
        background: #159447;
        box-shadow: 0 0 0 4px rgba(21, 148, 71, 0.18), 0 0 12px rgba(21, 148, 71, 0.6);
        animation: pulseSoft 2.4s ease-in-out infinite;
    }

    .cmc-hero__title {
        font-size: clamp(2.5rem, 5.5vw, 4.5rem);
        line-height: 1.05;
        font-weight: 800;
        letter-spacing: -0.02em;
        margin-bottom: 1.25rem;
        color: #ffffff;
        text-wrap: balance;
    }

    .cmc-hero__title-eyebrow {
        display: block;
        font-size: 0.95rem;
        font-weight: 600;
        letter-spacing: 0.32em;
        text-transform: uppercase;
        color: #6ed3f6;
        margin-bottom: 0.75rem;
    }

    .cmc-hero__title-main {
        display: block;
        position: relative;
    }

    .cmc-hero__title-accent {
        background: linear-gradient(120deg, #00AEEF 0%, #6ed3f6 50%, #00AEEF 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        background-size: 200% 100%;
        animation: shineSweep 6s linear infinite;
    }

    .cmc-hero__subtitle {
        font-size: clamp(1.05rem, 1.4vw, 1.25rem);
        line-height: 1.5;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.92);
        margin-bottom: 1.25rem;
        max-width: 36rem;
    }

    .cmc-hero__description {
        font-size: 0.95rem;
        line-height: 1.7;
        color: rgba(234, 246, 255, 0.75);
        margin-bottom: 2rem;
        max-width: 36rem;
    }

    /* --- CTA buttons --------------------------------------------------- */
    .cmc-hero__ctas {
        display: flex;
        flex-wrap: wrap;
        gap: 0.875rem;
        margin-bottom: 2.5rem;
    }

    @media (max-width: 640px) {
        .cmc-hero__ctas {
            flex-direction: column;
        }
        .cmc-hero__ctas > * {
            width: 100%;
        }
    }

    .cmc-hero__btn {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.625rem;
        padding: 0.95rem 1.75rem;
        font-size: 0.95rem;
        font-weight: 700;
        letter-spacing: 0.01em;
        border-radius: 9999px;
        text-decoration: none;
        cursor: pointer;
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                    background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
        overflow: hidden;
        isolation: isolate;
        border: 1px solid transparent;
        white-space: nowrap;
    }

    .cmc-hero__btn svg {
        width: 1rem;
        height: 1rem;
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    }

    [dir="rtl"] .cmc-hero__btn svg {
        transform: scaleX(-1);
    }

    .cmc-hero__btn--primary {
        background: linear-gradient(135deg, #00AEEF 0%, #0077B6 100%);
        color: #ffffff;
        box-shadow:
            0 12px 28px rgba(0, 119, 182, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.18);
    }

    .cmc-hero__btn--primary::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: -120%;
        width: 60%;
        background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
        transform: skewX(-20deg);
        transition: left 0.7s ease;
        pointer-events: none;
    }

    .cmc-hero__btn--primary:hover {
        transform: translateY(-3px);
        box-shadow:
            0 18px 36px rgba(0, 119, 182, 0.55),
            inset 0 1px 0 rgba(255, 255, 255, 0.25);
    }

    .cmc-hero__btn--primary:hover::before {
        left: 130%;
    }

    .cmc-hero__btn--primary:hover svg {
        transform: translateX(4px);
    }

    [dir="rtl"] .cmc-hero__btn--primary:hover svg {
        transform: translateX(-4px) scaleX(-1);
    }

    .cmc-hero__btn--ghost {
        background: rgba(255, 255, 255, 0.06);
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.4);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

    .cmc-hero__btn--ghost:hover {
        background: rgba(255, 255, 255, 0.95);
        color: #003B73;
        border-color: rgba(255, 255, 255, 0.95);
        transform: translateY(-3px);
        box-shadow: 0 16px 32px rgba(0, 38, 77, 0.4);
    }

    .cmc-hero__btn--ghost:hover svg {
        transform: translateX(4px);
    }

    [dir="rtl"] .cmc-hero__btn--ghost:hover svg {
        transform: translateX(-4px) scaleX(-1);
    }

    .cmc-hero__btn:focus-visible {
        outline: 2px solid #00AEEF;
        outline-offset: 3px;
    }

    /* --- Stat cards ---------------------------------------------------- */
    .cmc-hero__stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
        max-width: 36rem;
    }

    @media (max-width: 480px) {
        .cmc-hero__stats {
            grid-template-columns: 1fr;
        }
    }

    .cmc-hero__stat {
        position: relative;
        padding: 1rem 1rem 1rem 1.1rem;
        background: linear-gradient(160deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 18px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, background 0.35s ease;
    }

    [dir="rtl"] .cmc-hero__stat {
        padding: 1rem 1.1rem 1rem 1rem;
    }

    .cmc-hero__stat::before {
        content: "";
        position: absolute;
        inset-inline-start: 0;
        top: 18%;
        bottom: 18%;
        width: 3px;
        border-radius: 4px;
        background: linear-gradient(180deg, #00AEEF 0%, #159447 100%);
    }

    .cmc-hero__stat:hover {
        transform: translateY(-3px);
        border-color: rgba(0, 174, 239, 0.45);
        background: linear-gradient(160deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.06) 100%);
    }

    .cmc-hero__stat-value {
        font-size: 1.15rem;
        font-weight: 800;
        color: #ffffff;
        letter-spacing: -0.01em;
        line-height: 1.2;
        font-variant-numeric: tabular-nums;
    }

    .cmc-hero__stat-label {
        margin-top: 0.15rem;
        font-size: 0.72rem;
        color: rgba(234, 246, 255, 0.75);
        letter-spacing: 0.04em;
        line-height: 1.35;
    }

    /* --- Visual column ------------------------------------------------- */
    .cmc-hero__visual {
        position: relative;
        min-height: 360px;
        width: 100%;
        max-width: 560px;
        justify-self: center;
    }

    @media (min-width: 1024px) {
        .cmc-hero__visual {
            justify-self: end;
            max-width: none;
        }
    }

    [dir="rtl"] .cmc-hero__visual {
        justify-self: start;
    }

    /* Halo glow behind image */
    .cmc-hero__halo {
        position: absolute;
        inset: -10% -8%;
        background:
            radial-gradient(50% 50% at 50% 50%, rgba(0, 174, 239, 0.45) 0%, rgba(0, 174, 239, 0) 70%);
        filter: blur(20px);
        z-index: 0;
        animation: heroGlow 7s ease-in-out infinite;
    }

    /* Curved blue/green shapes */
    .cmc-hero__curve {
        position: absolute;
        border-radius: 50%;
        z-index: 0;
        opacity: 0.7;
    }

    .cmc-hero__curve--1 {
        width: 240px;
        height: 240px;
        top: -8%;
        inset-inline-end: -10%;
        background: linear-gradient(135deg, rgba(0, 174, 239, 0.55) 0%, rgba(0, 119, 182, 0) 70%);
        filter: blur(20px);
    }

    .cmc-hero__curve--2 {
        width: 200px;
        height: 200px;
        bottom: -8%;
        inset-inline-start: -12%;
        background: linear-gradient(135deg, rgba(21, 148, 71, 0.45) 0%, rgba(0, 119, 182, 0) 70%);
        filter: blur(20px);
    }

    /* Main image frame */
    .cmc-hero__image-frame {
        position: relative;
        z-index: 2;
        aspect-ratio: 4 / 5;
        width: 100%;
        max-width: 460px;
        margin: 0 auto;
        border-radius: 32px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.18);
        box-shadow:
            0 30px 60px -20px rgba(0, 0, 0, 0.5),
            0 18px 40px rgba(0, 38, 77, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.12);
        background: linear-gradient(160deg, rgba(0, 119, 182, 0.18) 0%, rgba(0, 38, 77, 0.4) 100%);
        animation: floatGentle 7s ease-in-out infinite;
    }

    @media (min-width: 1024px) {
        .cmc-hero__image-frame {
            aspect-ratio: 5 / 6;
            max-width: 520px;
        }
    }

    .cmc-hero__image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .cmc-hero__image-frame::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0, 38, 77, 0) 50%, rgba(0, 38, 77, 0.5) 100%);
        pointer-events: none;
    }

    /* Image corner accents */
    .cmc-hero__image-corner {
        position: absolute;
        width: 38px;
        height: 38px;
        border-color: #00AEEF;
        z-index: 3;
    }

    .cmc-hero__image-corner--tl {
        top: 14px;
        inset-inline-start: 14px;
        border-top: 2px solid;
        border-inline-start: 2px solid;
        border-top-left-radius: 12px;
    }

    .cmc-hero__image-corner--br {
        bottom: 14px;
        inset-inline-end: 14px;
        border-bottom: 2px solid;
        border-inline-end: 2px solid;
        border-bottom-right-radius: 12px;
    }

    /* Floating glass cards */
    .cmc-hero__float-card {
        position: absolute;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.85rem 1.1rem;
        background: linear-gradient(160deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 100%);
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 18px;
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        box-shadow:
            0 18px 36px rgba(0, 38, 77, 0.32),
            inset 0 1px 0 rgba(255, 255, 255, 0.18);
        z-index: 4;
        min-width: 180px;
        will-change: transform;
    }

    .cmc-hero__float-card--1 {
        top: 12%;
        inset-inline-start: -8%;
        animation: floatAlt 6s ease-in-out infinite;
    }

    .cmc-hero__float-card--2 {
        top: 44%;
        inset-inline-end: -12%;
        animation: floatGentle 5.5s ease-in-out infinite;
        animation-delay: 0.6s;
    }

    .cmc-hero__float-card--3 {
        bottom: 8%;
        inset-inline-start: 4%;
        animation: floatAlt 7s ease-in-out infinite;
        animation-delay: 1.2s;
    }

    @media (max-width: 640px) {
        .cmc-hero__float-card {
            min-width: 0;
            padding: 0.65rem 0.85rem;
        }
        .cmc-hero__float-card--1 { inset-inline-start: 0%; top: 6%; }
        .cmc-hero__float-card--2 { inset-inline-end: 0%; top: 42%; }
        .cmc-hero__float-card--3 { inset-inline-start: 4%; bottom: 4%; }
    }

    .cmc-hero__float-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 12px;
        flex-shrink: 0;
        color: #ffffff;
    }

    .cmc-hero__float-icon--cyan {
        background: linear-gradient(135deg, #00AEEF 0%, #0077B6 100%);
        box-shadow: 0 8px 18px rgba(0, 119, 182, 0.45);
    }

    .cmc-hero__float-icon--green {
        background: linear-gradient(135deg, #2dba6a 0%, #159447 100%);
        box-shadow: 0 8px 18px rgba(21, 148, 71, 0.4);
    }

    .cmc-hero__float-icon svg {
        width: 18px;
        height: 18px;
    }

    .cmc-hero__float-label {
        font-size: 0.66rem;
        color: rgba(234, 246, 255, 0.75);
        letter-spacing: 0.12em;
        text-transform: uppercase;
        line-height: 1.2;
    }

    .cmc-hero__float-value {
        font-size: 0.95rem;
        font-weight: 700;
        color: #ffffff;
        line-height: 1.25;
        margin-top: 0.05rem;
    }

    /* Hexagon decorations around image */
    .cmc-hero__hex-deco {
        position: absolute;
        z-index: 1;
        color: rgba(0, 174, 239, 0.35);
        width: 90px;
        height: 90px;
        will-change: transform;
    }

    .cmc-hero__hex-deco--1 {
        top: 5%;
        inset-inline-end: 18%;
        animation: spin 24s linear infinite;
    }

    .cmc-hero__hex-deco--2 {
        bottom: 10%;
        inset-inline-end: 6%;
        width: 60px;
        height: 60px;
        color: rgba(21, 148, 71, 0.4);
        animation: spinReverse 32s linear infinite;
    }

    .cmc-hero__hex-deco svg {
        width: 100%;
        height: 100%;
    }

    /* Medical plus markers */
    .cmc-hero__cross {
        position: absolute;
        z-index: 1;
        color: rgba(0, 174, 239, 0.65);
        font-weight: 800;
        font-size: 1.5rem;
        line-height: 1;
        font-family: "Noto Sans Arabic", sans-serif;
        user-select: none;
    }

    .cmc-hero__cross--1 {
        top: 30%;
        inset-inline-start: -4%;
        animation: pulseSoft 3.2s ease-in-out infinite;
    }

    .cmc-hero__cross--2 {
        bottom: 24%;
        inset-inline-end: 2%;
        color: rgba(21, 148, 71, 0.6);
        font-size: 1.15rem;
        animation: pulseSoft 4s ease-in-out infinite;
        animation-delay: 0.6s;
    }

    /* --- Scroll cue ---------------------------------------------------- */
    .cmc-hero__scroll-cue {
        position: absolute;
        bottom: 1.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: 26px;
        height: 42px;
        border: 1.5px solid rgba(255, 255, 255, 0.4);
        border-radius: 9999px;
        z-index: 5;
        display: none;
        align-items: flex-start;
        justify-content: center;
        padding-top: 6px;
        transition: border-color 0.3s ease;
    }

    [dir="rtl"] .cmc-hero__scroll-cue {
        transform: translateX(50%);
    }

    @media (min-width: 1024px) {
        .cmc-hero__scroll-cue {
            display: flex;
        }
    }

    .cmc-hero__scroll-cue span {
        display: block;
        width: 3px;
        height: 8px;
        background: #ffffff;
        border-radius: 2px;
        animation: scrollDot 1.8s ease-in-out infinite;
    }

    .cmc-hero__scroll-cue:hover {
        border-color: #00AEEF;
    }

    @keyframes scrollDot {
        0% { transform: translateY(0); opacity: 1; }
        60% { transform: translateY(14px); opacity: 0; }
        100% { transform: translateY(0); opacity: 0; }
    }

    /* --- Entry animations --------------------------------------------- */
    .cmc-hero-enter {
        opacity: 0;
        transform: translateY(24px);
        animation: cmcHeroEnter 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    .cmc-hero-enter[data-delay="0"] { animation-delay: 0.05s; }
    .cmc-hero-enter[data-delay="1"] { animation-delay: 0.18s; }
    .cmc-hero-enter[data-delay="2"] { animation-delay: 0.32s; }
    .cmc-hero-enter[data-delay="3"] { animation-delay: 0.46s; }
    .cmc-hero-enter[data-delay="4"] { animation-delay: 0.6s; }
    .cmc-hero-enter[data-delay="5"] { animation-delay: 0.74s; }
    .cmc-hero-enter[data-delay="6"] { animation-delay: 0.88s; }
    .cmc-hero-enter[data-delay="7"] { animation-delay: 1.02s; }
    .cmc-hero-enter[data-delay="8"] { animation-delay: 1.16s; }

    @keyframes cmcHeroEnter {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* --- Mobile reductions -------------------------------------------- */
    @media (max-width: 1023px) {
        .cmc-hero__bg-particles span:nth-child(n+9) { display: none; }
        .cmc-hero__bg-hex { opacity: 0.25; }
        .cmc-hero__curve { opacity: 0.5; }
    }

    @media (max-width: 640px) {
        .cmc-hero {
            padding-top: 6.5rem;
            padding-bottom: 3.5rem;
            min-height: 100vh;
            min-height: 100svh;
        }
        .cmc-hero__image-frame {
            max-width: 380px;
            aspect-ratio: 1 / 1;
        }
        .cmc-hero__visual {
            min-height: 320px;
        }
        .cmc-hero__title {
            font-size: clamp(2.25rem, 9vw, 3rem);
        }
        .cmc-hero__hex-deco { display: none; }
    }

    /* ===================================================================
       CMC — Global Design System
       (Page hero, section header, premium cards, CTA, offices, etc.)
       =================================================================== */

    :root {
        --cmc-navy: #003B73;
        --cmc-dark-blue: #004B86;
        --cmc-blue: #0077B6;
        --cmc-cyan: #00AEEF;
        --cmc-cyan-soft: #6ed3f6;
        --cmc-green: #159447;
        --cmc-green-soft: #2dba6a;
        --cmc-white: #ffffff;
        --cmc-light: #EAF6FF;
        --cmc-gray: #F6FAFD;
        --cmc-text: #1A2A44;
        --cmc-text-soft: #4B5B73;
        --cmc-text-muted: #6B7B92;
        --cmc-border: rgba(0, 59, 115, 0.10);
        --cmc-border-soft: rgba(0, 59, 115, 0.06);
        --cmc-radius: 24px;
        --cmc-radius-sm: 16px;
        --cmc-radius-xs: 12px;
        --cmc-radius-pill: 9999px;
        --cmc-shadow: 0 18px 45px rgba(0, 59, 115, 0.14);
        --cmc-shadow-soft: 0 8px 24px rgba(0, 59, 115, 0.08);
        --cmc-shadow-hover: 0 24px 56px rgba(0, 59, 115, 0.18);
        --cmc-gradient-navy: linear-gradient(155deg, #00264d 0%, #003B73 38%, #004B86 72%, #00264d 100%);
        --cmc-gradient-hero: radial-gradient(120% 80% at 0% 0%, rgba(0, 119, 182, 0.35) 0%, rgba(0, 59, 115, 0) 55%), radial-gradient(90% 70% at 100% 20%, rgba(21, 148, 71, 0.18) 0%, rgba(0, 59, 115, 0) 60%), radial-gradient(140% 100% at 50% 100%, rgba(0, 75, 134, 0.55) 0%, rgba(0, 38, 77, 0) 70%), linear-gradient(155deg, #00264d 0%, #003B73 38%, #004B86 72%, #00264d 100%);
        --cmc-gradient-cyan: linear-gradient(135deg, #00AEEF 0%, #0077B6 100%);
        --cmc-gradient-green: linear-gradient(135deg, #2dba6a 0%, #159447 100%);
    }

    /* ── PAGE HERO ─────────────────────────────────────────────────── */
    .cmc-page-hero {
        position: relative;
        isolation: isolate;
        overflow: hidden;
        padding-top: 8rem;
        padding-bottom: 4.5rem;
        color: #ffffff;
        background: var(--cmc-gradient-hero);
        text-align: center;
    }

    @media (min-width: 1024px) {
        .cmc-page-hero {
            padding-top: 9rem;
            padding-bottom: 5.5rem;
        }
    }

    .cmc-page-hero__bg {
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
    }

    .cmc-page-hero__bg-blob {
        position: absolute;
        border-radius: 9999px;
        filter: blur(80px);
        opacity: 0.45;
    }

    .cmc-page-hero__bg-blob--cyan {
        top: -20%;
        left: -10%;
        width: 30rem;
        height: 30rem;
        background: radial-gradient(circle, rgba(0, 174, 239, 0.5) 0%, rgba(0, 119, 182, 0) 70%);
    }

    .cmc-page-hero__bg-blob--green {
        bottom: -25%;
        right: -10%;
        width: 26rem;
        height: 26rem;
        background: radial-gradient(circle, rgba(21, 148, 71, 0.3) 0%, rgba(0, 59, 115, 0) 70%);
    }

    .cmc-page-hero__bg-grid {
        position: absolute;
        inset: 0;
        background-image:
            linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
        background-size: 48px 48px;
        -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
        mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
        opacity: 0.7;
    }

    .cmc-page-hero__bg-hex {
        position: absolute;
        inset: 0;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 96'><path d='M28 0l28 16v32L28 64 0 48V16z' fill='none' stroke='%2300AEEF' stroke-width='0.6' opacity='0.18'/></svg>");
        background-size: 56px 96px;
        -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 75%, transparent 100%);
        mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 75%, transparent 100%);
        opacity: 0.35;
    }

    .cmc-page-hero__bg-ecg {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100px;
        color: rgba(0, 174, 239, 0.45);
        opacity: 0.7;
    }

    [dir="rtl"] .cmc-page-hero__bg-ecg {
        transform: scaleX(-1);
    }

    .cmc-page-hero__bg-ecg-path {
        fill: none;
        stroke: currentColor;
        stroke-width: 1.2;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-dasharray: 6 6;
        animation: ecgDash 7s linear infinite;
    }

    .cmc-page-hero__container {
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: 80rem;
        margin-left: auto;
        margin-right: auto;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    @media (min-width: 768px) {
        .cmc-page-hero__container {
            padding-left: 2rem;
            padding-right: 2rem;
        }
    }

    .cmc-page-hero__badge {
        display: inline-flex;
        align-items: center;
        gap: 0.55rem;
        padding: 0.45rem 1rem;
        margin-bottom: 1.5rem;
        background: rgba(0, 119, 182, 0.18);
        color: #c2eaff;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.18em;
        border-radius: 9999px;
        border: 1px solid rgba(0, 174, 239, 0.32);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .cmc-page-hero__badge-dot {
        display: inline-block;
        width: 7px;
        height: 7px;
        border-radius: 9999px;
        background: var(--cmc-green);
        box-shadow: 0 0 0 3px rgba(21, 148, 71, 0.18), 0 0 10px rgba(21, 148, 71, 0.6);
        animation: pulseSoft 2.4s ease-in-out infinite;
    }

    .cmc-page-hero__title {
        font-size: clamp(2.25rem, 4.5vw, 3.75rem);
        line-height: 1.1;
        font-weight: 800;
        letter-spacing: -0.02em;
        margin-bottom: 1rem;
        color: #ffffff;
        text-wrap: balance;
    }

    .cmc-page-hero__title-accent {
        background: linear-gradient(120deg, #00AEEF 0%, #6ed3f6 50%, #00AEEF 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        background-size: 200% 100%;
        animation: shineSweep 6s linear infinite;
    }

    .cmc-page-hero__subtitle {
        font-size: clamp(1rem, 1.2vw, 1.15rem);
        line-height: 1.5;
        color: rgba(255, 255, 255, 0.85);
        max-width: 38rem;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1.5rem;
    }

    /* ── SECTION HEADER (eyebrow + title + description + accent) ──── */
    .cmc-section-header {
        position: relative;
        max-width: 44rem;
    }

    .cmc-section-header--center {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .cmc-section-header--center .cmc-section-header__accent {
        margin-left: auto;
        margin-right: auto;
    }

    .cmc-section-header__eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 0.65rem;
        color: var(--cmc-blue);
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.22em;
        margin-bottom: 0.75rem;
    }

    .cmc-section-header__eyebrow::before {
        content: "";
        display: inline-block;
        width: 1.6rem;
        height: 1px;
        background: var(--cmc-blue);
    }

    .cmc-section-header--center .cmc-section-header__eyebrow {
        justify-content: center;
    }

    .cmc-section-header--light .cmc-section-header__eyebrow {
        color: var(--cmc-cyan-soft);
    }

    .cmc-section-header--light .cmc-section-header__eyebrow::before {
        background: var(--cmc-cyan-soft);
    }

    .cmc-section-header__title {
        font-size: clamp(1.75rem, 2.6vw, 2.5rem);
        line-height: 1.2;
        font-weight: 800;
        letter-spacing: -0.01em;
        color: var(--cmc-navy);
        margin-bottom: 0.75rem;
        text-wrap: balance;
    }

    .cmc-section-header--light .cmc-section-header__title {
        color: #ffffff;
    }

    .cmc-section-header__description {
        font-size: 1rem;
        line-height: 1.7;
        color: var(--cmc-text-soft);
        max-width: 36rem;
    }

    .cmc-section-header--center .cmc-section-header__description {
        margin-left: auto;
        margin-right: auto;
    }

    .cmc-section-header--light .cmc-section-header__description {
        color: rgba(234, 246, 255, 0.85);
    }

    .cmc-section-header__accent {
        display: block;
        width: 3rem;
        height: 4px;
        margin-top: 1.25rem;
        border-radius: 9999px;
        background: linear-gradient(90deg, var(--cmc-cyan) 0%, var(--cmc-green) 100%);
    }

    /* ── SECTION BANDS (alternating backgrounds) ──────────────────── */
    .cmc-section {
        position: relative;
        padding-top: 4.5rem;
        padding-bottom: 4.5rem;
    }

    @media (min-width: 768px) {
        .cmc-section {
            padding-top: 6rem;
            padding-bottom: 6rem;
        }
    }

    .cmc-section--white { background: var(--cmc-white); }
    .cmc-section--light { background: var(--cmc-light); }
    .cmc-section--gray { background: var(--cmc-gray); }
    .cmc-section--navy { background: var(--cmc-gradient-navy); color: #ffffff; }

    .cmc-section--pattern {
        background-color: var(--cmc-light);
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 96'><path d='M28 0l28 16v32L28 64 0 48V16z' fill='none' stroke='%230077B6' stroke-width='0.5' opacity='0.07'/></svg>");
        background-size: 56px 96px;
    }

    .cmc-section--pattern-dark {
        background-color: #00264d;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 96'><path d='M28 0l28 16v32L28 64 0 48V16z' fill='none' stroke='%2300AEEF' stroke-width='0.5' opacity='0.10'/></svg>");
        background-size: 56px 96px;
    }

    /* ── ICON CIRCLE (reusable) ───────────────────────────────────── */
    .cmc-icon-circle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 3.25rem;
        height: 3.25rem;
        border-radius: 14px;
        flex-shrink: 0;
        background: rgba(0, 119, 182, 0.10);
        color: var(--cmc-blue);
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease, color 0.3s ease;
    }

    .cmc-icon-circle svg {
        width: 1.4rem;
        height: 1.4rem;
    }

    .cmc-icon-circle--lg {
        width: 4rem;
        height: 4rem;
        border-radius: 18px;
    }

    .cmc-icon-circle--lg svg {
        width: 1.85rem;
        height: 1.85rem;
    }

    .cmc-icon-circle--cyan {
        background: rgba(0, 119, 182, 0.10);
        color: var(--cmc-blue);
    }

    .cmc-icon-circle--green {
        background: rgba(21, 148, 71, 0.10);
        color: var(--cmc-green);
    }

    .cmc-icon-circle--navy {
        background: rgba(0, 59, 115, 0.10);
        color: var(--cmc-navy);
    }

    .cmc-icon-circle--solid-cyan {
        background: var(--cmc-gradient-cyan);
        color: #ffffff;
        box-shadow: 0 8px 18px rgba(0, 119, 182, 0.32);
    }

    .cmc-icon-circle--solid-green {
        background: var(--cmc-gradient-green);
        color: #ffffff;
        box-shadow: 0 8px 18px rgba(21, 148, 71, 0.32);
    }

    .cmc-icon-circle--solid-navy {
        background: var(--cmc-gradient-navy);
        color: #ffffff;
        box-shadow: 0 8px 18px rgba(0, 38, 77, 0.32);
    }

    /* ── PREMIUM CARD ─────────────────────────────────────────────── */
    .cmc-card {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 1.75rem;
        background: var(--cmc-white);
        border: 1px solid var(--cmc-border);
        border-radius: var(--cmc-radius);
        box-shadow: var(--cmc-shadow-soft);
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
    }

    .cmc-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--cmc-shadow-hover);
        border-color: rgba(0, 174, 239, 0.32);
    }

    .cmc-card--glass {
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border: 1px solid rgba(255, 255, 255, 0.6);
        box-shadow: 0 18px 40px rgba(0, 38, 77, 0.18);
    }

    .cmc-card--glass:hover {
        background: rgba(255, 255, 255, 0.85);
    }

    .cmc-card--navy {
        background: var(--cmc-gradient-navy);
        color: #ffffff;
        border-color: transparent;
        box-shadow: 0 18px 40px rgba(0, 38, 77, 0.32);
    }

    .cmc-card--navy:hover {
        box-shadow: 0 24px 56px rgba(0, 38, 77, 0.45);
        border-color: transparent;
    }

    .cmc-card--navy .cmc-card__title {
        color: #ffffff;
    }

    .cmc-card--navy .cmc-card__description {
        color: rgba(234, 246, 255, 0.85);
    }

    .cmc-card__title {
        font-size: 1.15rem;
        line-height: 1.35;
        font-weight: 700;
        color: var(--cmc-navy);
        text-wrap: balance;
    }

    .cmc-card__description {
        font-size: 0.92rem;
        line-height: 1.65;
        color: var(--cmc-text-soft);
    }

    .cmc-card__category {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.3rem 0.7rem;
        background: rgba(0, 119, 182, 0.08);
        color: var(--cmc-blue);
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        border-radius: 9999px;
        align-self: flex-start;
    }

    .cmc-card__category--green {
        background: rgba(21, 148, 71, 0.10);
        color: var(--cmc-green);
    }

    .cmc-card:hover .cmc-icon-circle--cyan,
    .cmc-card:hover .cmc-icon-circle--navy {
        transform: scale(1.08) rotate(-3deg);
    }

    /* ── FEATURE CARD (image / icon hero + body) ──────────────────── */
    .cmc-feature {
        position: relative;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        background: var(--cmc-white);
        border: 1px solid var(--cmc-border);
        border-radius: var(--cmc-radius);
        box-shadow: var(--cmc-shadow-soft);
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
    }

    .cmc-feature:hover {
        transform: translateY(-6px);
        box-shadow: var(--cmc-shadow-hover);
        border-color: rgba(0, 174, 239, 0.32);
    }

    .cmc-feature__media {
        position: relative;
        aspect-ratio: 16 / 10;
        overflow: hidden;
        background: linear-gradient(135deg, rgba(0, 119, 182, 0.12) 0%, rgba(0, 59, 115, 0.18) 100%);
    }

    .cmc-feature__media img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .cmc-feature:hover .cmc-feature__media img {
        transform: scale(1.05);
    }

    .cmc-feature__media::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0, 38, 77, 0) 50%, rgba(0, 38, 77, 0.45) 100%);
        pointer-events: none;
    }

    .cmc-feature__tag {
        position: absolute;
        bottom: 0.9rem;
        inset-inline-start: 0.9rem;
        z-index: 2;
    }

    .cmc-feature__body {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
        padding: 1.75rem;
        flex: 1 1 auto;
    }

    .cmc-feature__title {
        font-size: 1.2rem;
        line-height: 1.3;
        font-weight: 700;
        color: var(--cmc-navy);
        text-wrap: balance;
    }

    .cmc-feature__description {
        font-size: 0.92rem;
        line-height: 1.65;
        color: var(--cmc-text-soft);
    }

    .cmc-feature__chips {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        margin-top: auto;
    }

    .cmc-feature__chip {
        display: inline-flex;
        align-items: center;
        padding: 0.25rem 0.7rem;
        font-size: 0.7rem;
        font-weight: 600;
        background: rgba(0, 59, 115, 0.06);
        color: var(--cmc-navy);
        border-radius: 9999px;
    }

    /* ── STAT TILE ────────────────────────────────────────────────── */
    .cmc-stat-tile {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        padding: 1.5rem;
        background: var(--cmc-white);
        border: 1px solid var(--cmc-border);
        border-radius: var(--cmc-radius-sm);
        box-shadow: var(--cmc-shadow-soft);
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.3s ease;
    }

    .cmc-stat-tile:hover {
        transform: translateY(-4px);
        border-color: rgba(0, 174, 239, 0.35);
        box-shadow: var(--cmc-shadow);
    }

    .cmc-stat-tile__value {
        font-size: clamp(1.5rem, 2.2vw, 2.1rem);
        line-height: 1.1;
        font-weight: 800;
        color: var(--cmc-navy);
        letter-spacing: -0.01em;
        font-variant-numeric: tabular-nums;
    }

    .cmc-stat-tile__label {
        font-size: 0.85rem;
        line-height: 1.4;
        color: var(--cmc-text-soft);
    }

    .cmc-stat-tile::before {
        content: "";
        position: absolute;
        inset-inline-start: 0;
        top: 22%;
        bottom: 22%;
        width: 3px;
        border-radius: 4px;
        background: linear-gradient(180deg, var(--cmc-cyan) 0%, var(--cmc-green) 100%);
    }

    [dir="rtl"] .cmc-stat-tile {
        padding-inline-start: 1.5rem;
    }

    /* ── OFFICE / LOCATION CARD ───────────────────────────────────── */
    .cmc-office {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
        background: var(--cmc-white);
        border: 1px solid var(--cmc-border);
        border-radius: var(--cmc-radius-sm);
        box-shadow: var(--cmc-shadow-soft);
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.3s ease;
    }

    .cmc-office:hover {
        transform: translateY(-4px);
        border-color: rgba(0, 174, 239, 0.35);
        box-shadow: var(--cmc-shadow);
    }

    .cmc-office__head {
        display: flex;
        align-items: center;
        gap: 0.85rem;
    }

    .cmc-office__flag {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.6rem;
        height: 2.6rem;
        border-radius: 12px;
        font-size: 1.3rem;
        background: rgba(0, 119, 182, 0.08);
        flex-shrink: 0;
    }

    .cmc-office__name {
        font-size: 1rem;
        font-weight: 700;
        color: var(--cmc-navy);
        line-height: 1.25;
    }

    .cmc-office__sub {
        font-size: 0.75rem;
        color: var(--cmc-text-muted);
        line-height: 1.3;
        margin-top: 0.1rem;
    }

    .cmc-office__row {
        display: flex;
        align-items: flex-start;
        gap: 0.6rem;
        font-size: 0.85rem;
        color: var(--cmc-text-soft);
        line-height: 1.45;
    }

    .cmc-office__row svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
        margin-top: 3px;
        color: var(--cmc-blue);
    }

    .cmc-office__row a {
        color: var(--cmc-text-soft);
        transition: color 0.2s ease;
        word-break: break-word;
    }

    .cmc-office__row a:hover {
        color: var(--cmc-blue);
    }

    /* ── BUTTONS (unified system) ─────────────────────────────────── */
    .cmc-btn {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.55rem;
        padding: 0.85rem 1.6rem;
        font-size: 0.9rem;
        font-weight: 700;
        letter-spacing: 0.01em;
        border-radius: 9999px;
        text-decoration: none;
        cursor: pointer;
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                    background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
        overflow: hidden;
        isolation: isolate;
        border: 1px solid transparent;
        white-space: nowrap;
    }

    .cmc-btn svg {
        width: 1rem;
        height: 1rem;
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    }

    [dir="rtl"] .cmc-btn svg {
        transform: scaleX(-1);
    }

    .cmc-btn--primary {
        background: linear-gradient(135deg, #00AEEF 0%, #0077B6 100%);
        color: #ffffff;
        box-shadow: 0 10px 24px rgba(0, 119, 182, 0.35);
    }

    .cmc-btn--primary::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: -120%;
        width: 60%;
        background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
        transform: skewX(-20deg);
        transition: left 0.7s ease;
        pointer-events: none;
    }

    .cmc-btn--primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 32px rgba(0, 119, 182, 0.5);
    }

    .cmc-btn--primary:hover::before { left: 130%; }
    .cmc-btn--primary:hover svg { transform: translateX(4px); }
    [dir="rtl"] .cmc-btn--primary:hover svg { transform: translateX(-4px) scaleX(-1); }

    .cmc-btn--ghost {
        background: rgba(255, 255, 255, 0.06);
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.4);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

    .cmc-btn--ghost:hover {
        background: rgba(255, 255, 255, 0.95);
        color: var(--cmc-navy);
        border-color: rgba(255, 255, 255, 0.95);
        transform: translateY(-3px);
        box-shadow: 0 14px 28px rgba(0, 38, 77, 0.4);
    }

    .cmc-btn--ghost:hover svg { transform: translateX(4px); }
    [dir="rtl"] .cmc-btn--ghost:hover svg { transform: translateX(-4px) scaleX(-1); }

    .cmc-btn--outline {
        background: transparent;
        color: var(--cmc-navy);
        border-color: var(--cmc-navy);
    }

    .cmc-btn--outline:hover {
        background: var(--cmc-navy);
        color: #ffffff;
        transform: translateY(-3px);
        box-shadow: 0 14px 28px rgba(0, 38, 77, 0.35);
    }

    .cmc-btn--outline:hover svg { transform: translateX(4px); }
    [dir="rtl"] .cmc-btn--outline:hover svg { transform: translateX(-4px) scaleX(-1); }

    .cmc-btn--white {
        background: #ffffff;
        color: var(--cmc-navy);
    }

    .cmc-btn--white:hover {
        background: var(--cmc-cyan);
        color: #ffffff;
        transform: translateY(-3px);
        box-shadow: 0 14px 28px rgba(0, 38, 77, 0.35);
    }

    .cmc-btn:focus-visible {
        outline: 2px solid var(--cmc-cyan);
        outline-offset: 3px;
    }

    /* ── CTA BLOCK (premium dark gradient) ────────────────────────── */
    .cmc-cta {
        position: relative;
        isolation: isolate;
        overflow: hidden;
        padding: 4.5rem 2rem;
        border-radius: 32px;
        background: var(--cmc-gradient-navy);
        color: #ffffff;
        text-align: center;
    }

    @media (min-width: 768px) {
        .cmc-cta {
            padding: 5.5rem 3rem;
        }
    }

    .cmc-cta__bg {
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
    }

    .cmc-cta__bg-blob {
        position: absolute;
        border-radius: 9999px;
        filter: blur(70px);
    }

    .cmc-cta__bg-blob--cyan {
        top: -30%;
        left: -10%;
        width: 22rem;
        height: 22rem;
        background: rgba(0, 174, 239, 0.4);
    }

    .cmc-cta__bg-blob--green {
        bottom: -30%;
        right: -10%;
        width: 20rem;
        height: 20rem;
        background: rgba(21, 148, 71, 0.3);
    }

    .cmc-cta__bg-grid {
        position: absolute;
        inset: 0;
        background-image:
            linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
        background-size: 48px 48px;
        -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 25%, transparent 75%);
        mask-image: radial-gradient(ellipse at 50% 50%, #000 25%, transparent 75%);
        opacity: 0.6;
    }

    .cmc-cta__content {
        position: relative;
        z-index: 1;
        max-width: 44rem;
        margin-left: auto;
        margin-right: auto;
    }

    .cmc-cta__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 3.5rem;
        height: 3.5rem;
        border-radius: 18px;
        background: rgba(0, 174, 239, 0.2);
        color: var(--cmc-cyan-soft);
        margin-bottom: 1.25rem;
    }

    .cmc-cta__icon svg {
        width: 1.6rem;
        height: 1.6rem;
    }

    .cmc-cta__title {
        font-size: clamp(1.75rem, 3vw, 2.5rem);
        line-height: 1.2;
        font-weight: 800;
        margin-bottom: 1rem;
        color: #ffffff;
        text-wrap: balance;
    }

    .cmc-cta__description {
        font-size: 1.05rem;
        line-height: 1.65;
        color: rgba(234, 246, 255, 0.85);
        margin-bottom: 1.75rem;
    }

    .cmc-cta__actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
    }

    /* ── BAND / DIVIDER (decorative strip between sections) ───────── */
    .cmc-divider {
        position: relative;
        height: 6px;
        background: linear-gradient(90deg, transparent 0%, var(--cmc-cyan) 50%, transparent 100%);
        opacity: 0.4;
        margin: 0;
    }

    .cmc-divider--green {
        background: linear-gradient(90deg, transparent 0%, var(--cmc-green) 50%, transparent 100%);
    }

    /* ── FEATURE LIST (bulleted checkmark list) ───────────────────── */
    .cmc-list {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
    }

    .cmc-list__item {
        display: flex;
        align-items: flex-start;
        gap: 0.85rem;
        padding: 0.85rem 1rem;
        background: var(--cmc-white);
        border: 1px solid var(--cmc-border);
        border-radius: var(--cmc-radius-sm);
        transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    }

    .cmc-list__item:hover {
        transform: translateX(2px);
        border-color: rgba(0, 174, 239, 0.32);
        box-shadow: var(--cmc-shadow-soft);
    }

    [dir="rtl"] .cmc-list__item:hover {
        transform: translateX(-2px);
    }

    .cmc-list__bullet {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.5rem;
        height: 1.5rem;
        border-radius: 8px;
        background: rgba(21, 148, 71, 0.12);
        color: var(--cmc-green);
        flex-shrink: 0;
        margin-top: 0.1rem;
    }

    .cmc-list__bullet svg {
        width: 14px;
        height: 14px;
    }

    .cmc-list__text {
        font-size: 0.95rem;
        line-height: 1.5;
        color: var(--cmc-text-soft);
    }

    /* ── STRATEGY / TIMELINE STEP CARD ────────────────────────────── */
    .cmc-step {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.85rem;
        padding: 1.5rem 1rem;
    }

    .cmc-step__node {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 3.5rem;
        height: 3.5rem;
        border-radius: 16px;
        background: var(--cmc-white);
        color: var(--cmc-navy);
        border: 2px solid var(--cmc-cyan);
        box-shadow: 0 10px 24px rgba(0, 119, 182, 0.18);
    }

    .cmc-step__node svg {
        width: 1.5rem;
        height: 1.5rem;
        color: var(--cmc-cyan);
    }

    .cmc-step__num {
        position: absolute;
        top: -8px;
        inset-inline-end: -8px;
        width: 1.6rem;
        height: 1.6rem;
        border-radius: 9999px;
        background: var(--cmc-navy);
        color: #ffffff;
        font-size: 0.7rem;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .cmc-step__title {
        font-size: 1rem;
        font-weight: 700;
        color: var(--cmc-navy);
        line-height: 1.3;
    }

    .cmc-step__desc {
        font-size: 0.85rem;
        line-height: 1.5;
        color: var(--cmc-text-soft);
    }

    /* ── COUNTRY / REGION CARD (regional presence) ────────────────── */
    .cmc-country {
        position: relative;
        overflow: hidden;
        background: var(--cmc-white);
        border: 1px solid var(--cmc-border);
        border-radius: var(--cmc-radius);
        box-shadow: var(--cmc-shadow-soft);
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.3s ease;
    }

    .cmc-country:hover {
        transform: translateY(-4px);
        box-shadow: var(--cmc-shadow);
        border-color: rgba(0, 174, 239, 0.32);
    }

    .cmc-country__head {
        position: relative;
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1.25rem 1.5rem;
        background: linear-gradient(135deg, var(--cmc-navy) 0%, var(--cmc-dark-blue) 100%);
        color: #ffffff;
        overflow: hidden;
    }

    .cmc-country__head::after {
        content: "";
        position: absolute;
        top: -40%;
        inset-inline-end: -20%;
        width: 12rem;
        height: 12rem;
        background: radial-gradient(circle, rgba(0, 174, 239, 0.35) 0%, transparent 70%);
        border-radius: 9999px;
    }

    .cmc-country__flag {
        font-size: 2.2rem;
        line-height: 1;
        z-index: 1;
    }

    .cmc-country__name {
        font-size: 1.05rem;
        font-weight: 700;
        z-index: 1;
        line-height: 1.25;
    }

    .cmc-country__sub {
        font-size: 0.78rem;
        color: var(--cmc-cyan-soft);
        z-index: 1;
        letter-spacing: 0.05em;
    }

    .cmc-country__body {
        padding: 1.5rem;
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    @media (min-width: 640px) {
        .cmc-country__body { grid-template-columns: 1fr 1fr; }
    }

    .cmc-country__agent {
        display: flex;
        align-items: flex-start;
        gap: 0.65rem;
        padding: 0.75rem;
        background: var(--cmc-gray);
        border-radius: 12px;
    }

    .cmc-country__agent-bullet {
        width: 8px;
        height: 8px;
        border-radius: 9999px;
        background: var(--cmc-green);
        flex-shrink: 0;
        margin-top: 6px;
        box-shadow: 0 0 0 3px rgba(21, 148, 71, 0.15);
    }

    .cmc-country__agent-name {
        font-size: 0.85rem;
        font-weight: 700;
        color: var(--cmc-navy);
        line-height: 1.3;
    }

    .cmc-country__agent-desc {
        font-size: 0.78rem;
        color: var(--cmc-text-muted);
        line-height: 1.45;
        margin-top: 0.15rem;
    }

    /* ── NETWORK MAP (regional presence visual) ───────────────────── */
    .cmc-network {
        position: relative;
        aspect-ratio: 16 / 9;
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
        border-radius: var(--cmc-radius);
        overflow: hidden;
        background:
            radial-gradient(ellipse at 50% 50%, rgba(0, 119, 182, 0.18) 0%, rgba(0, 38, 77, 0) 70%),
            linear-gradient(160deg, #00264d 0%, #003B73 50%, #004B86 100%);
        box-shadow: var(--cmc-shadow);
    }

    .cmc-network__img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* ── BRANCH LOGO TILE (footer branches, regional & contact cards) ── */
    .cmc-branch-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        aspect-ratio: 8 / 5;
        padding: 0.55rem 0.85rem;
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
    }

    .cmc-branch-logo img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    /* Footer variant — interactive lift + self-managed width
       (avoids relying on Tailwind width utilities not in the prebuilt dist) */
    .cmc-branch-logo--tile {
        width: calc(50% - 0.5rem);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    @media (min-width: 480px) {
        .cmc-branch-logo--tile { width: 160px; }
    }

    .cmc-branch-logo--tile:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
    }

    /* Footer branches band */
    .cmc-footer-branches {
        padding: 3rem 0;
    }

    .cmc-footer-branches__head {
        text-align: center;
        margin-bottom: 2rem;
    }

    .cmc-footer-branches__title {
        margin: 0;
        color: #ffffff;
        font-size: 1.2rem;
        font-weight: 700;
    }

    .cmc-footer-branches__text {
        margin: 0.5rem auto 0;
        max-width: 36rem;
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .cmc-footer-branches__row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    /* Embedded in a country card head (navy) */
    .cmc-country__logo {
        width: 88px;
        flex-shrink: 0;
        z-index: 1;
        padding: 0.4rem 0.55rem;
        border-radius: 10px;
    }

    /* Embedded in a contact office card head */
    .cmc-office-card__logo {
        width: 96px;
        flex-shrink: 0;
        padding: 0.4rem 0.55rem;
        border-radius: 10px;
    }

    /* ── ORG CHART ────────────────────────────────────────────────── */
    .cmc-org {
        max-width: 76rem;
        margin-inline: auto;
    }

    /* Executive chain: CEO → GM → CMC */
    .cmc-org__exec {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cmc-org__exec-node {
        min-width: 160px;
        padding: 0.78rem 1.9rem;
        text-align: center;
        font-size: 1.05rem;
        font-weight: 800;
        letter-spacing: 0.05em;
        color: var(--cmc-navy);
        background: var(--cmc-white);
        border: 1px solid var(--cmc-border);
        border-radius: 9999px;
        box-shadow: 0 10px 22px rgba(0, 38, 77, 0.08);
    }

    .cmc-org__exec-node--brand {
        color: #ffffff;
        background: var(--cmc-gradient-navy);
        border-color: transparent;
        box-shadow: 0 16px 30px rgba(0, 38, 77, 0.3);
    }

    /* Connector stems */
    .cmc-org__stem {
        width: 2px;
        height: 1.35rem;
        background: linear-gradient(180deg, rgba(0, 119, 182, 0.55), rgba(0, 119, 182, 0.2));
    }

    .cmc-org__stem--branch {
        display: block;
        height: 1.6rem;
        margin-inline: auto;
    }

    /* Department branches */
    .cmc-org__branches {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }

    @media (min-width: 640px) {
        .cmc-org__branches { grid-template-columns: repeat(2, 1fr); }
    }

    @media (min-width: 1024px) {
        .cmc-org__branches {
            grid-template-columns: repeat(5, 1fr);
            gap: 0.9rem;
        }
    }

    .cmc-org__branch {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 0.85rem 1.15rem;
        background: var(--cmc-white);
        border: 1px solid var(--cmc-border);
        border-radius: var(--cmc-radius);
        box-shadow: var(--cmc-shadow-soft);
        transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    }

    .cmc-org__branch:hover {
        transform: translateY(-3px);
        border-color: rgba(0, 174, 239, 0.3);
        box-shadow: var(--cmc-shadow);
    }

    /* Nodes */
    .cmc-org__node {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        font-weight: 700;
        line-height: 1.25;
        color: var(--cmc-navy);
        background: var(--cmc-gray);
        border: 1px solid var(--cmc-border);
        border-radius: 9px;
    }

    .cmc-org__node::before {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 9999px;
        background: var(--cmc-cyan);
        flex-shrink: 0;
    }

    .cmc-org__node--sub {
        font-size: 0.75rem;
        font-weight: 600;
        background: var(--cmc-white);
    }

    .cmc-org__node--sub::before { background: var(--cmc-green); }

    .cmc-org__node--head {
        justify-content: center;
        padding: 0.6rem 0.85rem;
        font-size: 0.9rem;
        letter-spacing: 0.02em;
        text-align: center;
        text-transform: uppercase;
        color: #ffffff;
        border-color: transparent;
    }

    .cmc-org__node--head::before { display: none; }

    .cmc-org__node--cyan { background: var(--cmc-gradient-cyan); }
    .cmc-org__node--green { background: linear-gradient(135deg, #2dba6a 0%, #159447 100%); }
    .cmc-org__node--navy { background: var(--cmc-gradient-navy); }

    .cmc-org .cmc-org__node.cmc-org__node--head {
        color: #ffffff;
        border-color: transparent;
    }

    .cmc-org .cmc-org__node.cmc-org__node--head.cmc-org__node--cyan {
        background: linear-gradient(135deg, #00AEEF 0%, #0077B6 100%);
    }

    .cmc-org .cmc-org__node.cmc-org__node--head.cmc-org__node--green {
        background: linear-gradient(135deg, #2dba6a 0%, #159447 100%);
    }

    .cmc-org .cmc-org__node.cmc-org__node--head.cmc-org__node--navy {
        background: linear-gradient(155deg, #00264d 0%, #003B73 38%, #004B86 72%, #00264d 100%);
    }

    /* Sub-report tree with a connecting spine (RTL-aware) */
    .cmc-org__tree {
        list-style: none;
        margin: 0.7rem 0 0;
        padding: 0;
        padding-inline-start: 0.85rem;
        border-inline-start: 2px solid rgba(0, 119, 182, 0.25);
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .cmc-org__tree--nested {
        margin-top: 0.5rem;
        margin-inline-start: 0.35rem;
    }

    .cmc-org__leaf {
        position: relative;
    }

    /* short tick from the spine to each node */
    .cmc-org__leaf::before {
        content: "";
        position: absolute;
        inset-inline-start: -0.85rem;
        top: 1.02rem;
        width: 0.62rem;
        height: 2px;
        background: rgba(0, 119, 182, 0.25);
    }

    /* ── PARTNER CARD ─────────────────────────────────────────────── */
    .cmc-partner {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
        padding: 1.5rem;
        background: var(--cmc-white);
        border: 1px solid var(--cmc-border);
        border-radius: var(--cmc-radius);
        box-shadow: var(--cmc-shadow-soft);
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.3s ease;
    }

    .cmc-partner:hover {
        transform: translateY(-4px);
        border-color: rgba(0, 174, 239, 0.35);
        box-shadow: var(--cmc-shadow);
    }

    .cmc-partner__head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .cmc-partner__name {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--cmc-navy);
        line-height: 1.3;
    }

    .cmc-partner__category {
        display: inline-flex;
        align-items: center;
        padding: 0.3rem 0.7rem;
        background: rgba(0, 119, 182, 0.08);
        color: var(--cmc-blue);
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        border-radius: 9999px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .cmc-partner__category--green {
        background: rgba(21, 148, 71, 0.10);
        color: var(--cmc-green);
    }

    .cmc-partner__description {
        font-size: 0.88rem;
        line-height: 1.6;
        color: var(--cmc-text-soft);
    }

    .cmc-partner__logo {
        display: flex;
        align-items: center;
        height: 68px;
        padding-bottom: 0.85rem;
        border-bottom: 1px solid var(--cmc-border);
    }

    .cmc-partner__logo img {
        max-height: 100%;
        max-width: 170px;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    /* ── PARTNERS MARQUEE (home — dual-row infinite logo slider) ──── */
    .cmc-marquee {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        padding: 0.75rem 0;
        overflow: hidden;
        -webkit-mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent);
        mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent);
    }

    .cmc-marquee__row {
        overflow: hidden;
    }

    .cmc-marquee__track {
        display: flex;
        width: max-content;
        will-change: transform;
        animation: cmcMarqueeScroll 45s linear infinite;
    }

    .cmc-marquee__track--reverse {
        animation-direction: reverse;
        animation-duration: 55s;
    }

    .cmc-marquee__row:hover .cmc-marquee__track {
        animation-play-state: paused;
    }

    /* Each group is one full logo set; the track holds two identical
       groups so a -50% translate loops seamlessly. */
    .cmc-marquee__group {
        display: flex;
        gap: 1.5rem;
        padding-inline-end: 1.5rem;
    }

    .cmc-marquee__card {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        width: 250px;
        flex-shrink: 0;
        padding: 1.4rem 1.5rem 1.15rem;
        background: rgba(255, 255, 255, 0.97);
        border: 1px solid rgba(255, 255, 255, 0.6);
        border-radius: 1.25rem;
        box-shadow: 0 10px 30px rgba(0, 20, 45, 0.25);
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
    }

    .cmc-marquee__card:hover {
        transform: scale(0.94);
        box-shadow: 0 6px 18px rgba(0, 20, 45, 0.22);
    }

    .cmc-marquee__logo {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 64px;
        width: 100%;
    }

    .cmc-marquee__logo img {
        max-height: 100%;
        max-width: 170px;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .cmc-marquee__meta {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        width: 100%;
        padding-top: 0.7rem;
        text-align: center;
        border-top: 1px solid rgba(0, 59, 115, 0.08);
    }

    .cmc-marquee__name {
        font-size: 0.9rem;
        font-weight: 700;
        color: var(--cmc-navy);
        line-height: 1.3;
    }

    .cmc-marquee__cat {
        font-size: 0.66rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: var(--cmc-cyan);
    }

    @media (max-width: 640px) {
        .cmc-marquee__card {
            width: 200px;
            padding: 1.1rem 1.1rem 0.9rem;
        }

        .cmc-marquee__logo {
            height: 52px;
        }
    }

    /* ── FORM STYLES (contact) ────────────────────────────────────── */
    .cmc-form {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    .cmc-form__row {
        display: grid;
        gap: 1.25rem;
    }

    @media (min-width: 768px) {
        .cmc-form__row--2 { grid-template-columns: 1fr 1fr; }
    }

    .cmc-field {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
    }

    .cmc-field__label {
        font-size: 0.82rem;
        font-weight: 600;
        color: var(--cmc-navy);
        letter-spacing: 0.01em;
    }

    .cmc-field__input,
    .cmc-field__select,
    .cmc-field__textarea {
        width: 100%;
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
        color: var(--cmc-text);
        background: var(--cmc-white);
        border: 1.5px solid rgba(0, 59, 115, 0.14);
        border-radius: 12px;
        transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    }

    .cmc-field__input:focus,
    .cmc-field__select:focus,
    .cmc-field__textarea:focus {
        outline: none;
        border-color: var(--cmc-blue);
        box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.12);
        background: #ffffff;
    }

    .cmc-field__input::placeholder,
    .cmc-field__textarea::placeholder {
        color: var(--cmc-text-muted);
    }

    .cmc-field__textarea {
        min-height: 130px;
        resize: vertical;
    }

    .cmc-field__error {
        font-size: 0.78rem;
        color: #c0392b;
        font-weight: 500;
        display: none;
    }

    .cmc-field.has-error .cmc-field__input,
    .cmc-field.has-error .cmc-field__select,
    .cmc-field.has-error .cmc-field__textarea {
        border-color: #e74c3c;
    }

    .cmc-field.has-error .cmc-field__error {
        display: block;
    }

    /* ── INFO ALERT ──────────────────────────────────────────────── */
    .cmc-alert {
        display: flex;
        align-items: flex-start;
        gap: 0.85rem;
        padding: 1.1rem 1.25rem;
        border-radius: 14px;
        margin-bottom: 1.5rem;
        border: 1px solid transparent;
    }

    .cmc-alert--success {
        background: rgba(21, 148, 71, 0.08);
        border-color: rgba(21, 148, 71, 0.25);
        color: #0b5e2c;
    }

    .cmc-alert--error {
        background: rgba(231, 76, 60, 0.08);
        border-color: rgba(231, 76, 60, 0.25);
        color: #922b21;
    }

    .cmc-alert__title {
        font-weight: 700;
        font-size: 0.95rem;
        margin-bottom: 0.15rem;
    }

    .cmc-alert__text {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .cmc-field__counter {
        font-size: 0.76rem;
        font-weight: 600;
        color: var(--cmc-text-muted);
        white-space: nowrap;
    }

    .cmc-contact-layout {
        display: grid;
        gap: 2rem;
        margin-top: 1rem;
        align-items: start;
    }

    @media (min-width: 1024px) {
        .cmc-contact-layout {
            grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
        }
    }

    .cmc-contact-form-card,
    .cmc-contact-panel,
    .cmc-quick-contact-card,
    .cmc-office-card {
        position: relative;
        overflow: hidden;
        background: var(--cmc-white);
        border: 1px solid var(--cmc-border);
        border-radius: var(--cmc-radius-sm);
        box-shadow: var(--cmc-shadow-soft);
    }

    .cmc-contact-form-card {
        padding: 2rem;
    }

    @media (min-width: 768px) {
        .cmc-contact-form-card {
            padding: 2.5rem;
        }
    }

    .cmc-contact-form-card__header {
        margin-bottom: 1.5rem;
    }

    .cmc-contact-form-card__badge,
    .cmc-contact-panel__eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 0.9rem;
        border-radius: 9999px;
        background: rgba(0, 174, 239, 0.1);
        color: var(--cmc-blue);
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.14em;
    }

    .cmc-contact-form-card__title,
    .cmc-contact-panel__title {
        font-size: clamp(1.45rem, 2vw, 2rem);
        line-height: 1.2;
        font-weight: 700;
        color: var(--cmc-navy);
        margin-bottom: 0.65rem;
    }

    .cmc-contact-form-card__text,
    .cmc-contact-panel__text {
        font-size: 0.94rem;
        line-height: 1.7;
        color: var(--cmc-text-soft);
    }

    .cmc-contact-sidebar {
        display: grid;
        gap: 1.25rem;
    }

    .cmc-contact-panel {
        padding: 1.6rem;
    }

    .cmc-contact-panel--navy {
        /* Explicit light base colour so nested items/icons (color: inherit) stay
           legible on the dark background instead of falling back to dark text. */
        color: rgba(234, 246, 255, 0.92);
        background:
            radial-gradient(circle at top right, rgba(0, 174, 239, 0.22) 0%, rgba(0, 174, 239, 0) 36%),
            linear-gradient(145deg, #00264d 0%, #003B73 48%, #004B86 100%);
        border-color: rgba(0, 174, 239, 0.16);
        box-shadow: 0 24px 48px rgba(0, 38, 77, 0.3);
    }

    .cmc-contact-panel--navy .cmc-contact-panel__eyebrow {
        background: rgba(255, 255, 255, 0.12);
        color: var(--cmc-cyan-soft);
    }

    .cmc-contact-panel--navy .cmc-contact-panel__title {
        color: #ffffff;
    }

    .cmc-contact-panel--navy .cmc-contact-panel__text {
        color: rgba(234, 246, 255, 0.88);
    }

    .cmc-contact-panel--navy .cmc-contact-panel__item {
        color: #ffffff;
    }

    .cmc-contact-panel--navy .cmc-contact-panel__item i {
        color: var(--cmc-cyan-soft);
    }

    .cmc-contact-panel__items {
        display: grid;
        gap: 0.8rem;
        margin-top: 1.4rem;
    }

    .cmc-contact-panel__item,
    .cmc-office-card__item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        font-size: 0.88rem;
        line-height: 1.5;
        color: inherit;
    }

    .cmc-contact-panel__item {
        padding: 0.85rem 1rem;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.12);
        transition: transform 0.3s ease, background 0.3s ease;
    }

    .cmc-contact-panel__item:hover {
        transform: translateY(-2px);
        background: rgba(255, 255, 255, 0.12);
    }

    .cmc-contact-panel__item i,
    .cmc-office-card__item i,
    .cmc-contact-mini-list__item>i {
        width: 1rem;
        height: 1rem;
        flex-shrink: 0;
    }

    .cmc-quick-contact-grid {
        display: grid;
        gap: 1rem;
    }

    .cmc-quick-contact-card {
        padding: 1.25rem;
    }

    .cmc-quick-contact-card__icon,
    .cmc-office-card__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 3rem;
        height: 3rem;
        border-radius: 16px;
        background: linear-gradient(135deg, rgba(0, 174, 239, 0.12) 0%, rgba(21, 148, 71, 0.14) 100%);
        color: var(--cmc-blue);
        margin-bottom: 0.9rem;
    }

    .cmc-quick-contact-card__icon i,
    .cmc-office-card__icon i {
        width: 1.25rem;
        height: 1.25rem;
    }

    .cmc-quick-contact-card__title,
    .cmc-contact-mini-list__title,
    .cmc-office-card__title {
        font-size: 1rem;
        line-height: 1.35;
        font-weight: 700;
        color: var(--cmc-navy);
    }

    .cmc-quick-contact-card__text,
    .cmc-contact-mini-list__link,
    .cmc-office-card__location,
    .cmc-office-card__item {
        font-size: 0.86rem;
        line-height: 1.65;
        color: var(--cmc-text-soft);
    }

    .cmc-contact-mini-list {
        display: grid;
        gap: 0.8rem;
        margin-top: 0.3rem;
    }

    .cmc-contact-mini-list__item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.95rem 1rem;
        border-radius: 14px;
        background: var(--cmc-gray);
        border: 1px solid rgba(0, 59, 115, 0.06);
    }

    .cmc-contact-mini-list__link,
    .cmc-office-card__item a {
        color: var(--cmc-blue);
        text-decoration: none;
    }

    .cmc-contact-mini-list__link:hover,
    .cmc-office-card__item a:hover {
        text-decoration: underline;
    }

    .cmc-office-grid {
        display: grid;
        gap: 1.25rem;
    }

    @media (min-width: 640px) {
        .cmc-office-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (min-width: 1200px) {
        .cmc-office-grid {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
    }

    .cmc-office-card {
        padding: 1.5rem;
        transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s ease;
    }

    .cmc-office-card:hover {
        transform: translateY(-4px);
        border-color: rgba(0, 174, 239, 0.26);
        box-shadow: var(--cmc-shadow);
    }

    .cmc-office-card__head {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .cmc-office-card__icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .cmc-office-card__location {
        margin-top: 0.25rem;
    }

    .cmc-office-card__items {
        display: grid;
        gap: 0.7rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 59, 115, 0.08);
    }

    [dir="rtl"] .cmc-contact-panel__item,
    [dir="rtl"] .cmc-office-card__item,
    [dir="rtl"] .cmc-office-card__head {
        flex-direction: row-reverse;
    }

    [dir="rtl"] .cmc-contact-mini-list__item {
        flex-direction: row-reverse;
        text-align: right;
    }

    /* ── FLOATING DECORATIONS (used on page heroes) ───────────────── */
    .cmc-float-hex {
        position: absolute;
        color: rgba(0, 174, 239, 0.35);
        z-index: 0;
        will-change: transform;
    }

    .cmc-float-hex--1 { animation: spin 28s linear infinite; }
    .cmc-float-hex--2 { animation: spinReverse 36s linear infinite; color: rgba(21, 148, 71, 0.35); }

    /* ── RESPONSIVE TWEAKS ───────────────────────────────────────── */
    @media (max-width: 1023px) {
        .cmc-page-hero__bg-hex { opacity: 0.25; }
    }

    @media (max-width: 640px) {
        .cmc-section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
        .cmc-cta { padding: 3.5rem 1.5rem; border-radius: 24px; }
        .cmc-page-hero { padding-top: 7rem; padding-bottom: 3.5rem; }
    }
}

@layer utilities {
    /* Directional + zoom + blur variants for the data-anim reveal system */
    .animate-on-scroll[data-anim="fade-right"] {
        transform: translateX(-34px);
    }

    .animate-on-scroll[data-anim="fade-right"].is-visible {
        transform: translateX(0);
    }

    [dir="rtl"] .animate-on-scroll[data-anim="fade-right"] {
        transform: translateX(34px);
    }

    [dir="rtl"] .animate-on-scroll[data-anim="fade-right"].is-visible {
        transform: translateX(0);
    }

    .animate-on-scroll[data-anim="fade-left"] {
        transform: translateX(34px);
    }

    .animate-on-scroll[data-anim="fade-left"].is-visible {
        transform: translateX(0);
    }

    [dir="rtl"] .animate-on-scroll[data-anim="fade-left"] {
        transform: translateX(-34px);
    }

    [dir="rtl"] .animate-on-scroll[data-anim="fade-left"].is-visible {
        transform: translateX(0);
    }

    .animate-on-scroll[data-anim="zoom-in"] {
        transform: scale(0.95);
    }

    .animate-on-scroll[data-anim="zoom-in"].is-visible {
        transform: scale(1);
    }

    .animate-on-scroll[data-anim="blur-in"] {
        filter: blur(12px);
        transform: translateY(14px);
    }

    .animate-on-scroll[data-anim="blur-in"].is-visible {
        filter: blur(0);
        transform: translateY(0);
    }

    /* Signature flow-line — draws in when its section reveals */
    .cmc-flow-line {
        transform: scaleX(0);
        transform-origin: left center;
        transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
    }

    [dir="rtl"] .cmc-flow-line {
        transform-origin: right center;
    }

    .animate-on-scroll.is-visible .cmc-flow-line,
    .cmc-flow-line.is-visible {
        transform: scaleX(1);
    }

    /* Pulse ring accent */
    .cmc-pulse-node {
        position: relative;
    }

    .cmc-pulse-node::after {
        content: "";
        position: absolute;
        inset: -8px;
        border-radius: 9999px;
        border: 2px solid rgba(0, 119, 182, 0.45);
        animation: cmcPulse 2.8s ease-out infinite;
        pointer-events: none;
    }
}

@keyframes cmcMarqueeScroll {
    from {
        transform: translateX(0);
    }

    /* Track holds 4 identical groups; shifting by one group (-25%)
       loops seamlessly and keeps the row filled on any screen width. */
    to {
        transform: translateX(-25%);
    }
}

@keyframes cmcPulse {
    0% {
        transform: scale(0.75);
        opacity: 0.85;
    }

    100% {
        transform: scale(1.9);
        opacity: 0;
    }
}

/* ===================================================================
   Decorative motion keyframes
   Referenced throughout the hero / page-hero / floating decor above.
   Defined once here at the top level so the animation names resolve
   globally (keyframe names are not scoped by @layer).
   =================================================================== */

/* Slow drifting glow for the soft background blobs / halos */
@keyframes heroGlow {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.5; }
    50%      { transform: translate3d(18px, -22px, 0) scale(1.12); opacity: 0.72; }
}

/* Gentle vertical float — image frame & floating info cards */
@keyframes floatGentle {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}

/* Alternate float with a whisper of rotation for organic variation */
@keyframes floatAlt {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-11px) rotate(1.1deg); }
}

/* Particles rising and fading across the hero */
@keyframes particleDrift {
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    12%  { opacity: 1; }
    88%  { opacity: 0.7; }
    100% { transform: translateY(-130px) translateX(16px); opacity: 0; }
}

/* Soft breathing pulse for status dots & plus markers */
@keyframes pulseSoft {
    0%, 100% { transform: scale(1); opacity: 0.65; }
    50%      { transform: scale(1.25); opacity: 1; }
}

/* Light sweep across gradient-clipped accent text */
@keyframes shineSweep {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Continuous rotation for the hexagon decorations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes spinReverse {
    to { transform: rotate(-360deg); }
}

/* Travelling dash for the ECG heartbeat line (offset = 10× the 14u
   dash cycle on the hero, and a whole multiple of the 12u page-hero
   cycle, so both loop seamlessly) */
@keyframes ecgDash {
    to { stroke-dashoffset: -168; }
}

@media (prefers-reduced-motion: reduce) {

    .animate-on-scroll,
    .cmc-flow-line {
        transition: none !important;
        transform: none !important;
        filter: none !important;
        opacity: 1 !important;
    }

    .cmc-pulse-node::after,
    .animate-gradient-slow {
        animation: none !important;
    }

    /* Partners marquee: stop auto-scroll, allow manual swipe instead */
    .cmc-marquee__track {
        animation: none !important;
    }

    .cmc-marquee {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .cmc-marquee__row {
        overflow-x: auto;
    }

    /* Hero: respect reduced motion preference */
    .cmc-hero__bg-blob,
    .cmc-hero__halo,
    .cmc-hero__image-frame,
    .cmc-hero__float-card,
    .cmc-hero__hex-deco,
    .cmc-hero__cross,
    .cmc-hero__badge-dot,
    .cmc-hero__bg-ecg-path,
    .cmc-hero__title-accent,
    .cmc-hero__bg-particles span,
    .cmc-hero__scroll-cue span,
    .cmc-page-hero__badge-dot,
    .cmc-page-hero__bg-ecg-path,
    .cmc-page-hero__title-accent {
        animation: none !important;
    }

    .cmc-hero-enter {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

/* ===================================================================
   WOOCOMMERCE — CMC premium store styling
   Unlayered on purpose: loads after woocommerce-general so these
   overrides win the cascade without dequeuing WooCommerce's CSS.
   Scoped under .cmc-woo / .woocommerce for safe specificity.
   =================================================================== */

/* ── Section shell & chrome ─────────────────────────────────────── */
.cmc-woo {
    position: relative;
    padding: 3.5rem 0 5rem;
    background: var(--cmc-gray);
}
.cmc-woo--single { padding-top: 2rem; }
.cmc-woo__content { position: relative; }

.cmc-woo-strip {
    padding: 6.5rem 0 0;
    background: var(--cmc-white);
}
.cmc-woo-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--cmc-text-muted);
}
.cmc-woo-breadcrumb a { color: var(--cmc-blue); text-decoration: none; transition: color 0.2s ease; }
.cmc-woo-breadcrumb a:hover { color: var(--cmc-cyan); }
.cmc-woo-breadcrumb span { color: var(--cmc-navy); font-weight: 600; }
.cmc-woo-breadcrumb__sep { width: 0.9rem; height: 0.9rem; color: var(--cmc-border); }
.cmc-woo-breadcrumb__sep.rotate-180 { transform: rotate(180deg); }

/* ── Filter toolbar ─────────────────────────────────────────────── */
.cmc-woo-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 2.25rem;
    padding: 1rem 1.25rem;
    background: var(--cmc-white);
    border: 1px solid var(--cmc-border);
    border-radius: var(--cmc-radius-sm);
    box-shadow: var(--cmc-shadow-soft);
}
.cmc-woo-filters__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-width: 0;
}
.cmc-woo-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--cmc-text-soft);
    background: var(--cmc-gray);
    border: 1px solid var(--cmc-border);
    border-radius: var(--cmc-radius-pill);
    text-decoration: none;
    transition: all 0.25s ease;
}
.cmc-woo-pill:hover { color: var(--cmc-blue); border-color: rgba(0, 174, 239, 0.4); transform: translateY(-1px); }
.cmc-woo-pill.is-active { color: #fff; background: var(--cmc-gradient-cyan); border-color: transparent; box-shadow: 0 8px 18px rgba(0, 119, 182, 0.25); }
.cmc-woo-pill__count {
    font-size: 0.7rem;
    padding: 0.05rem 0.4rem;
    border-radius: var(--cmc-radius-pill);
    background: rgba(0, 59, 115, 0.08);
    color: inherit;
}
.cmc-woo-pill.is-active .cmc-woo-pill__count { background: rgba(255, 255, 255, 0.25); }

.cmc-woo-search {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 1 280px;
    min-width: 200px;
}
.cmc-woo-search input[type="search"] {
    width: 100%;
    height: 46px;
    padding: 0 3rem 0 1.1rem;
    font-size: 0.9rem;
    color: var(--cmc-text);
    background: var(--cmc-gray);
    border: 1px solid var(--cmc-border);
    border-radius: var(--cmc-radius-pill);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.cmc-woo-search input[type="search"]:focus {
    outline: none;
    border-color: var(--cmc-cyan);
    box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.14);
    background: #fff;
}
.cmc-woo-search button {
    position: absolute;
    right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: var(--cmc-radius-pill);
    background: var(--cmc-gradient-cyan);
    color: #fff;
    cursor: pointer;
    transition: transform 0.25s ease;
}
.cmc-woo-search button:hover { transform: scale(1.06); }
.cmc-woo-search button svg { width: 1.05rem; height: 1.05rem; }
[dir="rtl"] .cmc-woo-search input[type="search"] { padding: 0 1.1rem 0 3rem; }
[dir="rtl"] .cmc-woo-search button { right: auto; left: 6px; }

/* ── WooCommerce toolbar (result count + ordering) ──────────────── */
.woocommerce .cmc-woo__content .woocommerce-result-count {
    margin: 0;
    font-size: 0.88rem;
    color: var(--cmc-text-muted);
    line-height: 46px;
}
.woocommerce .cmc-woo__content .woocommerce-ordering { margin-bottom: 1.5rem; }
.woocommerce .cmc-woo__content .woocommerce-ordering select,
.cmc-woo select.orderby {
    height: 46px;
    min-width: 220px;
    padding: 0 2.5rem 0 1.1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--cmc-navy);
    background-color: #fff;
    border: 1px solid var(--cmc-border);
    border-radius: var(--cmc-radius-pill);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%230077B6' stroke-width='2.4' viewBox='0 0 24 24'><path stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}
[dir="rtl"] .woocommerce .cmc-woo__content .woocommerce-ordering select { padding: 0 1.1rem 0 2.5rem; background-position: left 1rem center; }
.cmc-woo__content::after { content: ""; display: block; clear: both; }

/* ── Product grid & cards ───────────────────────────────────────── */
.woocommerce .cmc-woo__content ul.products,
.woocommerce-page .cmc-woo__content ul.products {
    display: flex !important;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 1.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.woocommerce .cmc-woo__content ul.products::before,
.woocommerce .cmc-woo__content ul.products::after { content: none; display: none; }

.woocommerce ul.products li.product.cmc-product-card,
.woocommerce-page ul.products li.product.cmc-product-card {
    display: flex;
    flex: 0 0 calc((100% - 3.5rem) / 3);
    flex-direction: column;
    width: calc((100% - 3.5rem) / 3) !important;
    max-width: calc((100% - 3.5rem) / 3);
    margin: 0 !important;
    padding: 0;
    background: var(--cmc-white);
    border: 1px solid rgba(0, 59, 115, 0.06);
    border-radius: 15px;
    box-shadow: 0 16px 42px rgba(0, 59, 115, 0.08);
    overflow: hidden;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}
.woocommerce ul.products li.product.cmc-product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.16);
    box-shadow: 0 24px 58px rgba(0, 59, 115, 0.13);
}
.cmc-product-card .woocommerce-LoopProduct-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.cmc-product-card__media {
    position: relative;
    aspect-ratio: 1 / 0.92;
    overflow: hidden;
    background: #ffffff;
}
.cmc-product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0;
    padding: 2.15rem 1.35rem 1.35rem;
    border-radius: 8px;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.cmc-product-card:hover .cmc-product-card__media img { transform: scale(1.04); }

.woocommerce ul.products li.product.cmc-product-card .onsale,
.cmc-product-card .onsale {
    position: absolute;
    top: 1.25rem !important;
    left: 1.25rem !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
    max-width: max-content;
    height: auto !important;
    min-height: 1.65rem;
    min-width: 3.15rem;
    margin: 0;
    padding: 0.28rem 0.72rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
    color: #fff;
    background: #2563eb;
    border: none;
    border-radius: var(--cmc-radius-pill);
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}
[dir="rtl"] .woocommerce ul.products li.product.cmc-product-card .onsale,
[dir="rtl"] .cmc-product-card .onsale { left: auto !important; right: 1.25rem !important; }
.cmc-product-card__stock {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    padding: 0.28rem 0.7rem;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--cmc-radius-pill);
    background: rgba(107, 123, 146, 0.92);
    color: #fff;
}
.cmc-product-card__stock--out { background: rgba(203, 61, 61, 0.92); }
.cmc-product-card__stock--back { background: rgba(214, 143, 30, 0.94); }
[dir="rtl"] .cmc-product-card__stock { right: auto; left: 0.85rem; }

.cmc-product-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.6rem 1rem 0.35rem;
    flex: 1 1 auto;
}
.cmc-product-card__category {
    display: block;
    align-self: flex-start;
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.35;
    color: #9aa0a6;
    background: transparent;
    border: 0;
    border-radius: 0;
}
.cmc-product-card__body .woocommerce-loop-product__title,
.cmc-product-card__body h2.woocommerce-loop-product__title {
    padding: 0;
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.4;
    color: #2f3137;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 1.4em;
    transition: color 0.2s ease;
}
.cmc-product-card:hover .cmc-product-card__body .woocommerce-loop-product__title { color: #2563eb; }
.cmc-product-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.6rem;
}
.cmc-product-card__meta .price,
.woocommerce .cmc-product-card__meta .price {
    margin: 0;
    color: #2563eb;
    font-size: 0.98rem;
    font-weight: 800;
}
.cmc-product-card__meta .price del { color: #a0a5ad; font-weight: 500; font-size: 0.85rem; opacity: 0.82; }
.cmc-product-card__meta .price ins { text-decoration: none; }
.woocommerce .cmc-product-card__meta .star-rating { display: none !important; }

.cmc-product-card__footer {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0.9rem 1rem 1rem;
}
/* Hide WooCommerce's injected post-add "View cart" link — the add-to-cart
   button itself becomes the "View cart" action (handled in main.js). */
.cmc-product-card__footer .added_to_cart,
.woocommerce .cmc-product-card__footer .added_to_cart { display: none !important; }
.cmc-product-card__footer .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.cmc-product-card__footer .cmc-product-card__cart {
    flex: 1 1 100%;
    width: 100%;
    min-height: 44px;
    padding: 0.68rem 1rem;
    font-size: 0.85rem;
    font-weight: 800;
    white-space: nowrap;
    background: #2563eb;
    border-color: #2563eb;
    border-radius: 6px;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}
/* Strong selector (element + container) so WooCommerce's default light-grey
   .woocommerce a.button:hover cannot win the cascade — hover stays dark navy. */
.woocommerce ul.products li.product a.cmc-product-card__cart:hover,
.woocommerce ul.products li.product a.cmc-product-card__cart:focus-visible,
.cmc-product-card__footer .cmc-product-card__cart:hover,
.cmc-product-card__footer .cmc-product-card__cart:focus-visible {
    color: #fff;
    background: #003b73;
    border-color: #003b73;
    box-shadow: 0 12px 24px rgba(0, 59, 115, 0.24);
}
/* "View cart" state after a successful add — solid navy so it reads as a
   go-to-cart action distinct from the primary add-to-cart gradient. */
.woocommerce ul.products li.product a.cmc-product-card__cart.cmc-product-card__cart--view,
.cmc-product-card__footer .cmc-product-card__cart--view {
    color: #fff;
    background: #159447;
    border-color: #159447;
    box-shadow: 0 8px 18px rgba(21, 148, 71, 0.22);
}
.woocommerce ul.products li.product a.cmc-product-card__cart.cmc-product-card__cart--view:hover,
.cmc-product-card__footer .cmc-product-card__cart--view:hover {
    background: #0f7638;
    border-color: #0f7638;
}

/* Compact icon-only "view details" secondary action. */
.cmc-product-card__view {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 50px;
    min-height: 50px;
    color: var(--cmc-navy);
    background: var(--cmc-gray);
    border: 1px solid var(--cmc-border);
    border-radius: var(--cmc-radius-xs);
    text-decoration: none;
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.cmc-product-card__view svg { width: 1.25rem; height: 1.25rem; }
.cmc-product-card__view-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cmc-product-card__view:hover,
.cmc-product-card__view:focus-visible {
    color: #fff;
    background: var(--cmc-navy);
    border-color: var(--cmc-navy);
    transform: translateY(-1px);
}

/* ── Global WooCommerce buttons -> theme buttons ────────────────── */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #place_order,
.cmc-woo .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.7rem;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    background: var(--cmc-gradient-cyan);
    border: 1px solid transparent;
    border-radius: var(--cmc-radius-pill);
    box-shadow: 0 10px 24px rgba(0, 119, 182, 0.28);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #place_order:hover,
.cmc-woo .button:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(0, 119, 182, 0.45);
    color: #fff;
}
/* Secondary / outline buttons (e.g. "Update cart", "Continue shopping") */
.woocommerce a.button.wc-backward,
.woocommerce button[name="update_cart"],
.woocommerce .cart .button:not(.checkout-button):not([name="apply_coupon"]) {
    background: #fff;
    color: var(--cmc-navy);
    border-color: var(--cmc-border);
    box-shadow: var(--cmc-shadow-soft);
}
.woocommerce a.button.wc-backward:hover,
.woocommerce button[name="update_cart"]:hover {
    background: var(--cmc-navy);
    color: #fff;
    border-color: var(--cmc-navy);
}
.woocommerce button[name="apply_coupon"],
.woocommerce .cart button[name="apply_coupon"],
.woocommerce .checkout_coupon button[name="apply_coupon"] {
    color: #fff;
    background: var(--cmc-gradient-cyan);
    border-color: transparent;
}
.woocommerce button[name="apply_coupon"]:hover,
.woocommerce .cart button[name="apply_coupon"]:hover,
.woocommerce .checkout_coupon button[name="apply_coupon"]:hover {
    color: #fff;
    background: var(--cmc-navy);
    border-color: var(--cmc-navy);
}
.woocommerce button[name="update_cart"]:disabled,
.woocommerce button[name="update_cart"][disabled] { opacity: 0.5; }
.woocommerce .button:focus-visible,
.woocommerce input:focus-visible,
.woocommerce select:focus-visible,
.woocommerce textarea:focus-visible { outline: 2px solid var(--cmc-cyan); outline-offset: 2px; }

/* ── Forms & inputs ─────────────────────────────────────────────── */
.woocommerce .cmc-woo form .form-row,
.woocommerce-page .cmc-woo form .form-row { margin: 0 0 1.25rem; }
.woocommerce form .form-row label,
.woocommerce .cmc-woo label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cmc-navy);
}
.woocommerce .cmc-woo input.input-text,
.woocommerce .cmc-woo input[type="text"],
.woocommerce .cmc-woo input[type="email"],
.woocommerce .cmc-woo input[type="tel"],
.woocommerce .cmc-woo input[type="password"],
.woocommerce .cmc-woo input[type="number"],
.woocommerce .cmc-woo input[type="search"],
.woocommerce .cmc-woo textarea,
.woocommerce .cmc-woo select,
.woocommerce .cmc-woo .select2-container .select2-selection--single {
    width: 100%;
    min-height: 50px;
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
    color: var(--cmc-text);
    background: #fff;
    border: 1px solid var(--cmc-border);
    border-radius: var(--cmc-radius-xs);
    box-shadow: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.woocommerce .cmc-woo textarea { min-height: 130px; line-height: 1.6; }
.woocommerce .cmc-woo input.input-text:focus,
.woocommerce .cmc-woo textarea:focus,
.woocommerce .cmc-woo select:focus {
    outline: none;
    border-color: var(--cmc-cyan);
    box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.14);
}
.woocommerce .cmc-woo .select2-container--focus .select2-selection--single { border-color: var(--cmc-cyan); }
.woocommerce .cmc-woo .select2-container .select2-selection--single { display: flex; align-items: center; }
.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid select { border-color: #cb3d3d; box-shadow: 0 0 0 3px rgba(203, 61, 61, 0.12); }
.woocommerce form .form-row.woocommerce-validated input.input-text { border-color: var(--cmc-green); }
.woocommerce .cmc-woo .required { color: #cb3d3d; border: 0; }

/* ── Notices ────────────────────────────────────────────────────── */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin: 0 0 1.75rem;
    padding: 1rem 1.35rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--cmc-navy);
    background: #fff;
    border: 1px solid var(--cmc-border);
    border-left: 4px solid var(--cmc-cyan);
    border-radius: var(--cmc-radius-xs);
    box-shadow: var(--cmc-shadow-soft);
    list-style: none;
}
.woocommerce .woocommerce-message { border-left-color: var(--cmc-green); }
.woocommerce .woocommerce-error, .woocommerce ul.woocommerce-error { border-left-color: #cb3d3d; color: #8a2b2b; }
.woocommerce .woocommerce-info { border-left-color: var(--cmc-blue); }
.woocommerce .cmc-woo .woocommerce-message::before,
.woocommerce .cmc-woo .woocommerce-info::before,
.woocommerce .cmc-woo .woocommerce-error::before,
.woocommerce-page .cmc-woo .woocommerce-message::before,
.woocommerce-page .cmc-woo .woocommerce-info::before,
.woocommerce-page .cmc-woo .woocommerce-error::before {
    display: none;
}
[dir="rtl"] .woocommerce .woocommerce-message,
[dir="rtl"] .woocommerce .woocommerce-info,
[dir="rtl"] .woocommerce .woocommerce-error { border-left: 1px solid var(--cmc-border); border-right: 4px solid var(--cmc-cyan); }
[dir="rtl"] .woocommerce .woocommerce-message { border-right-color: var(--cmc-green); }
[dir="rtl"] .woocommerce .woocommerce-error { border-right-color: #cb3d3d; }
.woocommerce .woocommerce-message .button,
.woocommerce .woocommerce-info .button,
.woocommerce .woocommerce-error .button {
    margin-left: auto;
    padding: 0.5rem 1.1rem;
    font-size: 0.8rem;
}
[dir="rtl"] .woocommerce .woocommerce-message .button { margin-left: 0; margin-right: auto; }

/* ── Single product ─────────────────────────────────────────────── */
.woocommerce div.product {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
    position: relative;
}
.woocommerce div.product .woocommerce-product-gallery {
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    float: none !important;
    margin: 0;
    position: sticky;
    top: 6.5rem;
    z-index: 1;
    opacity: 1 !important;
    overflow: hidden;
}
.woocommerce div.product .woocommerce-product-gallery__wrapper {
    border-radius: var(--cmc-radius);
    overflow: hidden;
    margin-bottom: 1rem;
    transition-duration: 0s !important;
}
.woocommerce div.product .woocommerce-product-gallery .flex-viewport {
    width: 100%;
    max-width: 100%;
    height: auto !important;
    aspect-ratio: 1 / 1;
    border-radius: var(--cmc-radius);
    overflow: hidden;
}
.woocommerce div.product .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__wrapper,
.woocommerce div.product .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image {
    height: 100%;
}
.woocommerce div.product .woocommerce-product-gallery .woocommerce-product-gallery__image {
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--cmc-border);
    border-radius: var(--cmc-radius);
    overflow: hidden;
    background: #fff;
}
.woocommerce div.product .woocommerce-product-gallery__image > a {
    display: flex;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.woocommerce div.product .woocommerce-product-gallery__image img {
    width: 100%;
    height: 100% !important;
    max-height: 100%;
    object-fit: cover;
}
.woocommerce div.product .flex-control-thumbs {
    clear: both;
    margin: 1.35rem 0 0 !important;
    display: flex;
    flex-wrap: nowrap; /* single row of thumbnails under the featured image */
    gap: 0.65rem;
    padding: 2px;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.woocommerce div.product .flex-control-thumbs li {
    width: 78px !important; /* override flexslider's inline per-column width */
    flex: 0 0 78px;
    margin: 0 !important;
    padding: 0;
    float: none !important;
    list-style: none;
}
.woocommerce div.product .flex-control-thumbs li::before { content: none; }
.woocommerce div.product .flex-control-thumbs img {
    border: 1px solid var(--cmc-border);
    border-radius: var(--cmc-radius-xs);
    opacity: 0.65;
    transition: opacity 0.25s ease, border-color 0.25s ease;
}
.woocommerce div.product .flex-control-thumbs img.flex-active,
.woocommerce div.product .flex-control-thumbs img:hover { opacity: 1; border-color: var(--cmc-cyan); }
.woocommerce div.product .onsale {
    position: absolute;
    top: 1rem !important;
    left: 1rem !important;
    z-index: 5;
    min-width: 3rem;
    min-height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.9rem;
    background: var(--cmc-gradient-green);
    color: #fff; border: none;
    border-radius: var(--cmc-radius-pill);
    font-weight: 800; font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase;
}
[dir="rtl"] .woocommerce div.product .onsale { left: auto !important; right: 1rem !important; }

.woocommerce div.product .summary.entry-summary,
.woocommerce div.product .summary {
    width: 100% !important;
    max-width: none;
    min-width: 0;
    float: none !important;
    margin: 0;
}
.cmc-product-summary__inner { display: contents; }
.woocommerce div.product .product_title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--cmc-navy);
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    margin: 0 0 1.1rem;
    color: var(--cmc-blue);
    font-size: 1.75rem;
    font-weight: 800;
}
.woocommerce div.product p.price del { color: var(--cmc-text-muted); font-size: 1.1rem; font-weight: 500; opacity: 0.7; }
.woocommerce div.product p.price ins { text-decoration: none; }
.woocommerce div.product .woocommerce-product-rating { margin-bottom: 1rem; }
.woocommerce .star-rating { color: #f5a623; }
.woocommerce div.product .woocommerce-product-details__short-description {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--cmc-border);
    color: var(--cmc-text-soft);
    line-height: 1.7;
}
.woocommerce div.product form.cart {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.woocommerce div.product form.cart .quantity { margin: 0; }
.woocommerce .quantity {
    display: inline-flex;
    align-items: stretch;
    flex: 0 0 auto;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--cmc-border);
    border-radius: var(--cmc-radius-pill);
    box-shadow: var(--cmc-shadow-soft);
}
.woocommerce .quantity input.qty {
    width: 68px;
    height: 52px;
    padding: 0 0.4rem;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--cmc-navy);
    background: transparent;
    border: none;
    border-radius: 0;
    appearance: textfield;
    -moz-appearance: textfield;
}
.woocommerce .quantity input.qty:focus { outline: none; }
.woocommerce .quantity input.qty::-webkit-outer-spin-button,
.woocommerce .quantity input.qty::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}
.cmc-qty-step {
    width: 46px;
    min-height: 52px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1;
    color: var(--cmc-blue);
    background: var(--cmc-gray);
    border: none;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.cmc-qty-step--minus { border-right: 1px solid var(--cmc-border); }
.cmc-qty-step--plus { border-left: 1px solid var(--cmc-border); }
.cmc-qty-step:hover,
.cmc-qty-step:focus-visible {
    color: #fff;
    background: var(--cmc-blue);
    outline: none;
}
.cmc-qty-step:active { background: var(--cmc-navy); }
.woocommerce div.product form.cart .button.single_add_to_cart_button {
    height: 52px;
    padding: 0 2rem;
    font-size: 0.95rem;
}
.woocommerce div.product form.cart .variations { margin-bottom: 1rem; }
.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th { padding: 0.4rem 0.5rem 0.4rem 0; vertical-align: middle; }
.woocommerce div.product form.cart .variations label { font-weight: 600; color: var(--cmc-navy); }
.woocommerce div.product .product_meta {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--cmc-border);
    font-size: 0.85rem;
    color: var(--cmc-text-muted);
}
.woocommerce div.product .product_meta > span { display: block; margin-bottom: 0.4rem; }
.woocommerce div.product .product_meta a { color: var(--cmc-blue); text-decoration: none; }
.woocommerce div.product .product_meta a:hover { color: var(--cmc-cyan); }

/* Product tabs */
.woocommerce div.product .woocommerce-tabs {
    grid-column: 1 / -1;
    margin-top: 3rem;
}
.woocommerce div.product .woocommerce-tabs ul.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.5rem;
    padding: 0;
    border: none;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
    margin: 0; padding: 0;
    background: #fff;
    border: 1px solid var(--cmc-border);
    border-radius: var(--cmc-radius-pill);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 0.6rem 1.3rem;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--cmc-text-soft);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background: var(--cmc-gradient-cyan);
    border-color: transparent;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #fff; }
.woocommerce div.product .woocommerce-tabs .panel {
    margin: 0;
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--cmc-border);
    border-radius: var(--cmc-radius-sm);
    box-shadow: var(--cmc-shadow-soft);
    color: var(--cmc-text-soft);
    line-height: 1.8;
}
.woocommerce div.product .woocommerce-tabs .panel h2 { color: var(--cmc-navy); }
.woocommerce table.shop_attributes { border: none; }
.woocommerce table.shop_attributes th,
.woocommerce table.shop_attributes td { border-bottom: 1px solid var(--cmc-border); padding: 0.7rem 0.5rem; }

/* Related / upsell products */
.woocommerce .related.products,
.woocommerce .upsells.products {
    grid-column: 1 / -1;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--cmc-border);
}
.woocommerce .related.products > h2,
.woocommerce .upsells.products > h2 {
    margin-bottom: 1.75rem;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--cmc-navy);
}

/* ── Cart ───────────────────────────────────────────────────────── */
.woocommerce .cart-collaterals,
.woocommerce-page .cart-collaterals { width: 100%; }
.woocommerce table.shop_table {
    border: 1px solid var(--cmc-border);
    border-radius: var(--cmc-radius-sm);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--cmc-shadow-soft);
    margin-bottom: 1.75rem;
}
.woocommerce table.shop_table thead th {
    padding: 1rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cmc-navy);
    background: var(--cmc-gray);
    border: none;
}
.woocommerce table.shop_table td {
    padding: 1.1rem 1.25rem;
    border-top: 1px solid var(--cmc-border);
    vertical-align: middle;
    color: var(--cmc-text-soft);
}
.woocommerce table.shop_table td.product-name a { color: var(--cmc-navy); font-weight: 600; text-decoration: none; }
.woocommerce table.shop_table td.product-name a:hover { color: var(--cmc-blue); }
.woocommerce table.shop_table img { width: 68px; border-radius: var(--cmc-radius-xs); border: 1px solid var(--cmc-border); }
.woocommerce a.remove {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px;
    color: #cb3d3d !important;
    border-radius: var(--cmc-radius-pill);
    font-size: 1.1rem; line-height: 1;
    background: rgba(203, 61, 61, 0.08);
    transition: all 0.2s ease;
}
.woocommerce a.remove:hover { background: #cb3d3d; color: #fff !important; }
.woocommerce .cart .product-subtotal .amount { font-weight: 700; color: var(--cmc-navy); }
.woocommerce .cart .quantity input.qty { height: 46px; width: 56px; }
.woocommerce .cart .quantity .cmc-qty-step { width: 40px; min-height: 46px; font-size: 1.2rem; }
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals { float: none; width: 100%; }
.woocommerce .actions .coupon { display: flex; gap: 0.6rem; align-items: center; }
.woocommerce .cart .actions .coupon .input-text {
    height: 50px; min-height: 50px; width: auto; flex: 1 1 auto; max-width: 260px;
    padding: 0 1rem; border: 1px solid var(--cmc-border); border-radius: var(--cmc-radius-xs);
}
.woocommerce table.cart td.actions { padding: 1.25rem; background: var(--cmc-gray); }

.cmc-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}
.woocommerce .cart_totals > h2,
.woocommerce-checkout #order_review_heading {
    margin: 0 0 1.25rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--cmc-navy);
}
.woocommerce .cart_totals table {
    border: 1px solid var(--cmc-border);
    border-radius: var(--cmc-radius-sm);
    overflow: hidden;
    box-shadow: var(--cmc-shadow-soft);
}
.woocommerce .cart_totals table th { background: var(--cmc-gray); color: var(--cmc-navy); font-weight: 700; width: 40%; }
.woocommerce .cart_totals .order-total .amount { color: var(--cmc-blue); font-size: 1.3rem; }
.woocommerce .cart_totals .wc-proceed-to-checkout { padding: 1.25rem 0 0; }
.woocommerce .cart_totals .checkout-button { display: flex; width: 100%; }

/* ── Checkout ───────────────────────────────────────────────────── */
.woocommerce .checkout.woocommerce-checkout,
.cmc-woo--checkout .checkout.woocommerce-checkout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    /* Row 1 hugs the "Your order" heading; row 2 (flexible) absorbs the tall
       billing column so #order_review sits directly under its heading instead
       of being pushed down by even row distribution. */
    grid-template-rows: auto 1fr;
    gap: 1.25rem 2.5rem;
    align-items: start;
}
.woocommerce .checkout #customer_details,
.cmc-woo--checkout .checkout #customer_details {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    width: 100%;
    min-width: 0;
}
.woocommerce-checkout #order_review,
.woocommerce-checkout #order_review_heading { width: 100%; }
.cmc-woo--checkout #order_review_heading {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    width: 100%;
    margin: 0; /* row-gap handles the spacing to #order_review */
}
.cmc-woo--checkout #order_review {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    width: 100%;
    margin: 0;
}
.woocommerce .checkout .col2-set,
.woocommerce .checkout .col2-set .col-1,
.woocommerce .checkout .col2-set .col-2 { width: 100%; float: none; }
.cmc-checkout-panel,
.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2,
.woocommerce-checkout #order_review,
.cmc-woo--checkout #customer_details .col-1,
.cmc-woo--checkout #customer_details .col-2,
.cmc-woo--checkout #order_review {
    background: #fff;
    border: 1px solid var(--cmc-border);
    border-radius: var(--cmc-radius-sm);
    box-shadow: var(--cmc-shadow-soft);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}
.woocommerce-checkout h3,
.cmc-woo--checkout h3 { color: var(--cmc-navy); font-weight: 800; }
.woocommerce-checkout #order_review,
.cmc-woo--checkout #order_review {
    position: sticky;
    top: 6.5rem;
}
.woocommerce-checkout #payment,
.cmc-woo--checkout #payment {
    background: var(--cmc-gray);
    border-radius: var(--cmc-radius-sm);
    border: 1px solid var(--cmc-border);
    margin-top: 1.25rem;
}
.woocommerce-checkout #payment ul.payment_methods,
.cmc-woo--checkout #payment ul.payment_methods {
    padding: 1.25rem;
    border-bottom: 1px solid var(--cmc-border);
}
.woocommerce-checkout #payment ul.payment_methods li,
.cmc-woo--checkout #payment ul.payment_methods li { margin-bottom: 0.5rem; }
.woocommerce-checkout #payment div.payment_box,
.cmc-woo--checkout #payment div.payment_box {
    background: #fff;
    border-radius: var(--cmc-radius-xs);
    color: var(--cmc-text-soft);
}
.woocommerce-checkout #payment div.payment_box::before,
.cmc-woo--checkout #payment div.payment_box::before { display: none; }
.woocommerce-checkout #payment .place-order,
.cmc-woo--checkout #payment .place-order { padding: 1.25rem; }
.woocommerce-checkout #payment #place_order,
.cmc-woo--checkout #payment #place_order { width: 100%; height: 54px; font-size: 1rem; }
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper,
.cmc-woo--checkout .woocommerce-terms-and-conditions-wrapper { margin-bottom: 1rem; }
.woocommerce-checkout-review-order-table { margin-bottom: 0; }
.woocommerce-privacy-policy-text {
    color: var(--cmc-text-soft);
    line-height: 1.7;
}

/* ── Order received / thank you ─────────────────────────────────── */
.cmc-order-received__head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem 1.75rem;
    background: #fff;
    border: 1px solid var(--cmc-border);
    border-left: 4px solid var(--cmc-green);
    border-radius: var(--cmc-radius-sm);
    box-shadow: var(--cmc-shadow-soft);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--cmc-navy);
}
[dir="rtl"] .cmc-order-received__head { border-left: 1px solid var(--cmc-border); border-right: 4px solid var(--cmc-green); }
.cmc-order-received__icon {
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 auto;
    width: 48px; height: 48px;
    color: #fff;
    background: var(--cmc-gradient-green);
    border-radius: var(--cmc-radius-pill);
    box-shadow: 0 8px 18px rgba(21, 148, 71, 0.3);
}
.cmc-order-received__icon svg { width: 1.5rem; height: 1.5rem; }
.woocommerce ul.order_details {
    display: flex; flex-wrap: wrap; gap: 1rem;
    margin: 0 0 2rem; padding: 1.5rem;
    background: #fff; border: 1px solid var(--cmc-border);
    border-radius: var(--cmc-radius-sm); box-shadow: var(--cmc-shadow-soft);
}
.woocommerce ul.order_details li {
    flex: 1 1 auto; margin: 0; padding: 0 1.25rem 0 0;
    border: none; border-right: 1px solid var(--cmc-border);
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--cmc-text-muted);
}
.woocommerce ul.order_details li:last-child { border: none; }
.woocommerce ul.order_details li strong { display: block; margin-top: 0.3rem; font-size: 1.05rem; text-transform: none; letter-spacing: 0; color: var(--cmc-navy); }
[dir="rtl"] .woocommerce ul.order_details li { padding: 0 0 0 1.25rem; border-right: none; border-left: 1px solid var(--cmc-border); }
[dir="rtl"] .woocommerce ul.order_details li:last-child { border: none; }
.woocommerce .woocommerce-order .woocommerce-column__title,
.woocommerce .woocommerce-order h2 { color: var(--cmc-navy); font-weight: 800; }
.woocommerce .woocommerce-customer-details address {
    padding: 1.25rem; border: 1px solid var(--cmc-border);
    border-radius: var(--cmc-radius-xs); color: var(--cmc-text-soft);
}

/* ── My Account ─────────────────────────────────────────────────── */
/* Two-column dashboard: nav sidebar (left) + content (right). Explicit column
   placement + reset of WooCommerce's default floats/widths so it can't collapse
   or swap regardless of source order. */
.woocommerce-account .woocommerce,
.cmc-woo--account .woocommerce {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
    width: 100%;
}
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper,
.cmc-woo--account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
/* When logged out (login/register) there is no nav — span full width */
.woocommerce-account.logged-out .woocommerce,
.woocommerce-account .woocommerce:not(:has(.woocommerce-MyAccount-navigation)) {
    display: block;
    max-width: 960px;
    margin: 0 auto;
}
.woocommerce-account .woocommerce-MyAccount-navigation,
.cmc-woo--account .woocommerce-MyAccount-navigation {
    grid-column: 1;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    float: none !important;
    background: #fff;
    border: 1px solid var(--cmc-border);
    border-radius: var(--cmc-radius-sm);
    box-shadow: var(--cmc-shadow-soft);
    overflow: hidden;
    position: sticky;
    top: 6.5rem;
}
.woocommerce-MyAccount-navigation ul { margin: 0; padding: 0.5rem; list-style: none; }
.woocommerce-MyAccount-navigation ul li { margin: 0; }
.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 0.8rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--cmc-text-soft);
    border-radius: var(--cmc-radius-xs);
    text-decoration: none;
    transition: all 0.2s ease;
}
.woocommerce-MyAccount-navigation ul li a:hover { background: var(--cmc-gray); color: var(--cmc-blue); }
.woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--cmc-gradient-cyan);
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 119, 182, 0.25);
}
.woocommerce-account .woocommerce-MyAccount-content,
.cmc-woo--account .woocommerce-MyAccount-content,
.woocommerce-MyAccount-content {
    grid-column: 2;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    margin: 0 !important;
    float: none !important;
    background: #fff;
    border: 1px solid var(--cmc-border);
    border-radius: var(--cmc-radius-sm);
    box-shadow: var(--cmc-shadow-soft);
    padding: 2rem;
    color: var(--cmc-text-soft);
    line-height: 1.7;
}
.woocommerce-MyAccount-content a:not(.button) { color: var(--cmc-blue); }
.woocommerce-MyAccount-content .woocommerce-info {
    justify-content: flex-start;
    text-align: start;
}
.woocommerce-MyAccount-content table.shop_table {
    table-layout: auto;
    width: 100%;
}
.woocommerce-MyAccount-content .woocommerce-Address { margin-top: 1rem; }
.woocommerce .addresses .col-1,
.woocommerce .addresses .col-2 { width: 100%; float: none; }
.woocommerce .woocommerce-Addresses.col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

/* Login / register forms */
.woocommerce .cmc-woo .u-columns.col2-set,
.woocommerce-account .cmc-woo #customer_login.u-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.woocommerce .cmc-woo form.login,
.woocommerce .cmc-woo form.register {
    padding: 2rem;
    border: 1px solid var(--cmc-border);
    border-radius: var(--cmc-radius-sm);
    box-shadow: var(--cmc-shadow-soft);
    background: #fff;
}
.woocommerce .cmc-woo form.login .button,
.woocommerce .cmc-woo form.register .button { width: 100%; }
.woocommerce-account .cmc-woo h2 { color: var(--cmc-navy); font-weight: 800; margin-bottom: 1.25rem; }

/* ── Pagination ─────────────────────────────────────────────────── */
.woocommerce nav.woocommerce-pagination { margin-top: 2.5rem; text-align: center; }
.woocommerce nav.woocommerce-pagination ul { border: none; display: inline-flex; gap: 0.4rem; }
.woocommerce nav.woocommerce-pagination ul li { border: none; margin: 0; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; height: 44px; padding: 0 0.5rem;
    font-weight: 700; color: var(--cmc-navy);
    background: #fff; border: 1px solid var(--cmc-border);
    border-radius: var(--cmc-radius-xs); transition: all 0.2s ease;
}
.woocommerce nav.woocommerce-pagination ul li a:hover { background: var(--cmc-gray); border-color: var(--cmc-cyan); color: var(--cmc-blue); }
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--cmc-gradient-cyan); color: #fff; border-color: transparent;
}

/* ── Empty states ───────────────────────────────────────────────── */
.woocommerce .cart-empty.woocommerce-info,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,
.woocommerce .woocommerce-no-products-found {
    text-align: center;
}
.cmc-woo .woocommerce-info.cart-empty {
    display: block;
    padding: 3rem 2rem;
    font-size: 1.15rem;
    font-weight: 600;
}
.woocommerce-no-products-found {
    padding: 3rem 1rem;
}
.woocommerce-no-products-found .woocommerce-info {
    display: block;
    text-align: center;
    font-size: 1.1rem;
}
.return-to-shop { margin-top: 1.5rem; text-align: center; }

/* CMC premium footer */
.footer-main {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-top: auto;
    color: #ffffff;
    background:
        radial-gradient(100% 75% at 10% 0%, rgba(0, 174, 239, 0.22) 0%, rgba(0, 174, 239, 0) 58%),
        radial-gradient(80% 60% at 92% 18%, rgba(21, 148, 71, 0.18) 0%, rgba(21, 148, 71, 0) 62%),
        linear-gradient(155deg, #002F5E 0%, #003B73 48%, #004B86 100%);
}

.footer-main::before,
.footer-main::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.footer-main::before {
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
}

.footer-main::after {
    opacity: 0.18;
    background-image: url("data:image/svg+xml,%3Csvg width='900' height='180' viewBox='0 0 900 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%2300AEEF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 95h95l18-36 28 72 22-47h128l18-26 22 50 18-30h160l17-28 28 58 20-38h150l20-30 18 48 22-28h116' opacity='.85'/%3E%3Cpath d='M80 38h90m56 0h70m254 0h120m48 0h76' opacity='.35'/%3E%3Ccircle cx='205' cy='38' r='4' fill='%23159447' stroke='none' opacity='.8'/%3E%3Ccircle cx='528' cy='95' r='4' fill='%23159447' stroke='none' opacity='.8'/%3E%3Ccircle cx='718' cy='38' r='4' fill='%23159447' stroke='none' opacity='.8'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center 18%;
    background-size: min(900px, 100%) auto;
}

.footer-container,
.footer-bottom-inner {
    width: min(100%, 1280px);
    margin-inline: auto;
    padding-inline: 1rem;
}

@media (min-width: 640px) {
    .footer-container,
    .footer-bottom-inner {
        padding-inline: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .footer-container,
    .footer-bottom-inner {
        padding-inline: 2rem;
    }
}

.footer-container {
    padding-block: clamp(3rem, 6vw, 5rem);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(12rem, 0.6fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 4vw, 4.25rem);
    align-items: start;
}

.footer-brand,
.footer-links,
.footer-contact {
    min-width: 0;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: min(100%, 17rem);
    min-height: 5rem;
    margin-bottom: 1.35rem;
    padding: 0.95rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(0, 24, 54, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.footer-logo:hover,
.footer-logo:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(0, 174, 239, 0.22);
    outline: none;
}

.footer-logo img {
    display: block;
    width: auto;
    height: clamp(3rem, 5vw, 4.5rem);
    max-width: 100%;
    object-fit: contain;
}

.footer-brand-title {
    margin: 0 0 0.75rem;
    color: #ffffff;
    font-size: clamp(1.28rem, 2vw, 1.6rem);
    line-height: 1.25;
    font-weight: 800;
}

.footer-description {
    max-width: 35rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.98rem;
    line-height: 1.8;
}

.footer-section-title {
    position: relative;
    display: inline-flex;
    margin: 0 0 1.35rem;
    padding-bottom: 0.65rem;
    color: #ffffff;
    font-size: 1.08rem;
    line-height: 1.3;
    font-weight: 800;
}

.footer-section-title::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 2.25rem;
    height: 0.2rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cmc-cyan, #00AEEF) 0%, var(--cmc-green, #159447) 100%);
}

.footer-section-title--small {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-branches {
    margin-top: 1.75rem;
    padding-top: 1.45rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-branch-grid {
    display: grid;
    grid-template-columns: repeat(4, 6.25rem);
    gap: 0.95rem;
    width: fit-content;
    max-width: 39rem;
}

.footer-branch-card {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 8 / 5;
    min-height: 4.1rem;
    padding: 0.52rem 0.68rem;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(0, 24, 54, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.footer-branch-card:hover,
.footer-branch-card:focus-within {
    transform: translateY(-3px);
    border-color: rgba(0, 174, 239, 0.8);
    box-shadow: 0 16px 30px rgba(0, 174, 239, 0.2);
}

.footer-branch-card img {
    display: block;
    width: auto;
    height: auto;
    max-width: 82%;
    max-height: 2.35rem;
    object-fit: contain;
}

.footer-link-list,
.footer-contact-list {
    display: grid;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    max-width: 100%;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.96rem;
    line-height: 1.45;
    font-weight: 650;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

.footer-link-marker {
    width: 0.45rem;
    height: 0.45rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(0, 174, 239, 0.42);
    box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.08);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
    color: var(--cmc-cyan, #00AEEF);
    transform: translateX(4px);
    outline: none;
}

.footer-link:hover .footer-link-marker,
.footer-link:focus-visible .footer-link-marker {
    background: var(--cmc-cyan, #00AEEF);
    box-shadow: 0 0 0 5px rgba(0, 174, 239, 0.16);
}

.footer-contact-list {
    gap: 1rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    min-width: 0;
    padding: 0.92rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.055);
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.footer-contact-item:hover {
    border-color: rgba(0, 174, 239, 0.34);
    background: rgba(255, 255, 255, 0.075);
    box-shadow: 0 14px 30px rgba(0, 24, 54, 0.16);
}

.footer-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.55rem;
    height: 2.55rem;
    flex: 0 0 2.55rem;
    color: var(--cmc-cyan, #00AEEF);
    border: 1px solid rgba(0, 174, 239, 0.2);
    border-radius: 13px;
    background: rgba(0, 174, 239, 0.1);
}

.footer-contact-icon svg,
.footer-contact-icon i {
    width: 1.18rem;
    height: 1.18rem;
    stroke-width: 2.15;
}

.footer-contact-copy {
    display: grid;
    gap: 0.28rem;
    min-width: 0;
}

.footer-contact-label {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.78rem;
    line-height: 1.35;
    font-weight: 800;
}

.footer-contact-text,
.footer-contact-link {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.93rem;
    line-height: 1.65;
}

.footer-contact-link {
    width: fit-content;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-contact-link:hover,
.footer-contact-link:focus-visible {
    color: var(--cmc-cyan, #00AEEF);
    outline: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 47, 94, 0.78);
    backdrop-filter: blur(10px);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.25rem;
    padding-block: 1rem;
}

.footer-copyright {
    display: flex;
    flex-wrap: wrap;
    gap: 0.32rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
    line-height: 1.55;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
    line-height: 1.45;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
    color: var(--cmc-cyan, #00AEEF);
    outline: none;
}

@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(15rem, 0.9fr);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-branch-grid {
        grid-template-columns: repeat(4, 6.25rem);
    }
}

@media (max-width: 720px) {
    .footer-container {
        padding-block: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.35rem;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-logo {
        margin-inline: auto;
    }

    .footer-description {
        margin-inline: auto;
    }

    .footer-section-title {
        margin-bottom: 1rem;
    }

    .footer-branch-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.45rem;
        width: auto;
        max-width: 100%;
        margin-inline: auto;
    }

    .footer-branch-card {
        min-height: 2.9rem;
        padding: 0.35rem 0.38rem;
        border-radius: 10px;
    }

    .footer-branch-card img {
        max-width: 86%;
        max-height: 1.8rem;
    }

    .footer-bottom-inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .footer-copyright,
    .footer-legal {
        justify-content: center;
    }
}

[dir="rtl"] .footer-main {
    text-align: right;
}

[dir="rtl"] .footer-link:hover,
[dir="rtl"] .footer-link:focus-visible {
    transform: translateX(-4px);
}

[dir="rtl"] .footer-contact-link {
    direction: ltr;
    text-align: right;
}

[dir="rtl"] .footer-bottom-inner {
    direction: rtl;
}

[dir="rtl"] .footer-copyright span[dir="ltr"] {
    direction: ltr;
    unicode-bidi: isolate;
}

@media (max-width: 720px) {
    [dir="rtl"] .footer-brand {
        text-align: center;
    }

    #back-to-top {
        right: 1rem;
        left: auto;
        bottom: 1rem;
        width: 2.75rem;
        height: 2.75rem;
    }

    [dir="rtl"] #back-to-top {
        right: auto;
        left: 1rem;
    }
}

/* ── Header cart count bridge (if theme adds one) ───────────────── */
.cmc-woo .woocommerce-breadcrumb { display: none; } /* we use the hero breadcrumb */

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .woocommerce div.product { grid-template-columns: 1fr; gap: 2rem; }
    .woocommerce div.product .woocommerce-product-gallery {
        position: relative !important;
        top: auto;
        order: 1;
        margin-bottom: 1.5rem;
    }
    .woocommerce div.product .summary { order: 2; }
    .woocommerce div.product .woocommerce-tabs,
    .woocommerce .related.products,
    .woocommerce .upsells.products { order: 3; }
    .cmc-cart-layout { grid-template-columns: 1fr; }
    .woocommerce .checkout.woocommerce-checkout,
    .cmc-woo--checkout .checkout.woocommerce-checkout { grid-template-columns: 1fr; gap: 1.5rem; }
    .woocommerce .checkout #customer_details,
    .cmc-woo--checkout .checkout #customer_details,
    .cmc-woo--checkout #order_review_heading,
    .cmc-woo--checkout #order_review {
        grid-column: 1;
        grid-row: auto;
    }
    .woocommerce-checkout #order_review,
    .cmc-woo--checkout #order_review { position: static; }
    .woocommerce-account .woocommerce,
    .cmc-woo--account .woocommerce { grid-template-columns: 1fr; }
    /* Single column: reset explicit placement so both stack full-width in col 1. */
    .woocommerce-account .woocommerce-MyAccount-navigation,
    .cmc-woo--account .woocommerce-MyAccount-navigation,
    .woocommerce-account .woocommerce-MyAccount-content,
    .cmc-woo--account .woocommerce-MyAccount-content { grid-column: 1; }
    .woocommerce-MyAccount-navigation { position: static; }
}

@media (max-width: 900px) {
    .woocommerce .cmc-woo__content ul.products,
    .woocommerce-page .cmc-woo__content ul.products { gap: 1.25rem; }
    .woocommerce ul.products li.product.cmc-product-card,
    .woocommerce-page ul.products li.product.cmc-product-card {
        flex-basis: calc((100% - 1.25rem) / 2);
        width: calc((100% - 1.25rem) / 2) !important;
        max-width: calc((100% - 1.25rem) / 2);
    }
    .woocommerce .woocommerce-Addresses.col2-set { grid-template-columns: 1fr; }
    .woocommerce .cmc-woo #customer_login.u-columns,
    .woocommerce .cmc-woo .u-columns.col2-set { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .cmc-woo { padding: 2.5rem 0 3.5rem; }
    .cmc-woo-filters { flex-direction: column; align-items: stretch; }
    .cmc-woo-search { flex-basis: auto; }
    .woocommerce .cmc-woo__content ul.products,
    .woocommerce-page .cmc-woo__content ul.products { gap: 1.25rem; }
    .woocommerce ul.products li.product.cmc-product-card,
    .woocommerce-page ul.products li.product.cmc-product-card {
        flex-basis: 100%;
        width: 100% !important;
        max-width: 100%;
    }
    .cmc-product-card__media { aspect-ratio: 16 / 10; }
    .cmc-product-card__footer { align-items: stretch; }
    .cmc-product-card__view { min-width: 74px; }
    .woocommerce div.product .woocommerce-product-gallery { margin-bottom: 2rem; }
    .woocommerce div.product .flex-control-thumbs { gap: 0.5rem; margin-top: 0.85rem; }
    .woocommerce div.product .flex-control-thumbs li { width: 64px; }
    .woocommerce div.product form.cart { align-items: stretch; }
    .woocommerce div.product form.cart .button.single_add_to_cart_button { flex: 1 1 180px; }

    /* Cart & order tables -> stacked cards */
    .woocommerce table.shop_table_responsive,
    .woocommerce-page table.shop_table_responsive { border: none; box-shadow: none; background: transparent; }
    .woocommerce table.shop_table_responsive thead { display: none; }
    .woocommerce table.shop_table_responsive tr {
        display: block;
        margin-bottom: 1rem;
        background: #fff;
        border: 1px solid var(--cmc-border);
        border-radius: var(--cmc-radius-sm);
        box-shadow: var(--cmc-shadow-soft);
        overflow: hidden;
    }
    .woocommerce table.shop_table_responsive tr td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.85rem 1.1rem;
        text-align: right;
        border-top: 1px solid var(--cmc-border-soft);
    }
    .woocommerce table.shop_table_responsive tr td::before {
        content: attr(data-title);
        font-weight: 700;
        color: var(--cmc-navy);
        text-transform: none;
    }
    [dir="rtl"] .woocommerce table.shop_table_responsive tr td { text-align: left; }
    .woocommerce table.shop_table_responsive tr td.product-remove { justify-content: flex-end; }
    .woocommerce-checkout #order_review,
    .cmc-woo--checkout #order_review,
    .cmc-checkout-panel,
    .woocommerce-checkout #customer_details .col-1,
    .woocommerce-checkout #customer_details .col-2,
    .cmc-woo--checkout #customer_details .col-1,
    .cmc-woo--checkout #customer_details .col-2 { padding: 1.25rem; }
    .woocommerce ul.order_details { flex-direction: column; }
    .woocommerce ul.order_details li { border-right: none; border-bottom: 1px solid var(--cmc-border); padding: 0 0 0.75rem; }
    [dir="rtl"] .woocommerce ul.order_details li { border-left: none; border-bottom: 1px solid var(--cmc-border); padding: 0 0 0.75rem; }
    .woocommerce ul.order_details li:last-child { border-bottom: none; }
    .woocommerce .actions .coupon { flex-wrap: wrap; }
}

/* Medical Products catalogue */
.cmc-medical-products {
    position: relative;
    overflow: hidden;
}

.cmc-medical-products::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(0, 174, 239, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21, 148, 71, 0.045) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: 0.65;
}

.cmc-medical-products .container-custom {
    position: relative;
    z-index: 1;
}

.cmc-medical-products__grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .cmc-medical-products__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (min-width: 1180px) {
    .cmc-medical-products__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.75rem;
    }
}

.cmc-medical-product-card {
    min-width: 0;
}

.cmc-medical-product-card__link {
    display: flex;
    height: 100%;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0, 59, 115, 0.12);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(0, 59, 115, 0.09);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.cmc-medical-product-card__link:hover,
.cmc-medical-product-card__link:focus {
    transform: translateY(-5px);
    border-color: rgba(0, 174, 239, 0.45);
    box-shadow: 0 24px 54px rgba(0, 59, 115, 0.16);
    outline: none;
}

.cmc-medical-product-card__link:focus-visible {
    outline: 3px solid rgba(0, 174, 239, 0.45);
    outline-offset: 4px;
}

.cmc-medical-product-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #eaf6fb;
}

.cmc-medical-product-card__image,
.cmc-medical-product-card__placeholder {
    width: 100%;
    height: 100%;
}

.cmc-medical-product-card__image {
    object-fit: cover;
    transition: transform 0.45s ease;
}

.cmc-medical-product-card__link:hover .cmc-medical-product-card__image,
.cmc-medical-product-card__link:focus .cmc-medical-product-card__image {
    transform: scale(1.045);
}

.cmc-medical-product-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0077b6;
    background:
        linear-gradient(135deg, rgba(0, 174, 239, 0.15), rgba(21, 148, 71, 0.11)),
        #f4fbfd;
}

.cmc-medical-product-card__placeholder svg {
    width: 3.25rem;
    height: 3.25rem;
}

.cmc-medical-product-card__overlay {
    position: absolute;
    inset: auto 1rem 1rem 1rem;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.cmc-medical-product-card__overlay span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(0, 59, 115, 0.88);
    color: #fff;
    padding: 0.55rem 0.9rem;
    font-size: 0.8125rem;
    line-height: 1;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(0, 38, 77, 0.22);
}

.cmc-medical-product-card__link:hover .cmc-medical-product-card__overlay,
.cmc-medical-product-card__link:focus .cmc-medical-product-card__overlay {
    opacity: 1;
    transform: translateY(0);
}

.cmc-medical-product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.25rem;
}

.cmc-medical-product-card__label {
    display: inline-flex;
    align-self: flex-start;
    max-width: 100%;
    border-radius: 999px;
    background: rgba(0, 174, 239, 0.12);
    color: #0e6682;
    padding: 0.42rem 0.72rem;
    font-size: 0.75rem;
    line-height: 1.25;
    font-weight: 700;
}

.cmc-medical-product-card__title {
    color: #003b73;
    font-size: 1.15rem;
    line-height: 1.35;
    font-weight: 800;
}

.cmc-medical-product-card__cta {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.5rem;
    margin-top: auto;
    border-radius: 999px;
    background: #003b73;
    color: #fff;
    padding: 0.68rem 1rem;
    font-size: 0.875rem;
    line-height: 1;
    font-weight: 800;
    transition: background-color 0.25s ease;
}

.cmc-medical-product-card__cta svg {
    width: 1rem;
    height: 1rem;
}

.cmc-medical-product-card__link:hover .cmc-medical-product-card__cta,
.cmc-medical-product-card__link:focus .cmc-medical-product-card__cta {
    background: #159447;
}

[dir="rtl"] .cmc-medical-product-card__body {
    text-align: right;
}

[dir="rtl"] .cmc-medical-product-card__overlay {
    justify-content: flex-start;
}

.cmc-medical-products__status {
    min-height: 2.8rem;
    margin-top: 2.5rem;
    text-align: center;
    color: #204074;
    font-weight: 800;
}

.cmc-medical-products__status.is-active::before {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-inline-end: 0.55rem;
    vertical-align: -0.15rem;
    border: 2px solid rgba(0, 174, 239, 0.24);
    border-top-color: #00aeef;
    border-radius: 999px;
    animation: spin 0.8s linear infinite;
}

.cmc-medical-products__empty,
.cmc-medical-product-single__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 18rem;
    border: 1px solid rgba(0, 59, 115, 0.12);
    border-radius: 8px;
    background: #fff;
    color: #204074;
    text-align: center;
    box-shadow: 0 14px 34px rgba(0, 59, 115, 0.08);
}

.cmc-medical-products__empty svg,
.cmc-medical-product-single__empty svg {
    width: 3rem;
    height: 3rem;
    color: #00aeef;
}

.cmc-medical-products__empty h2,
.cmc-medical-product-single__empty p {
    max-width: 34rem;
    font-size: 1.15rem;
    line-height: 1.5;
    font-weight: 800;
}

.cmc-medical-product-single__panel {
    overflow: hidden;
    border: 1px solid rgba(0, 59, 115, 0.12);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 20px 54px rgba(0, 59, 115, 0.11);
}

.cmc-medical-product-single__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 59, 115, 0.1);
}

.cmc-medical-product-single__eyebrow {
    display: inline-flex;
    margin-bottom: 0.55rem;
    color: #159447;
    font-size: 0.78rem;
    line-height: 1;
    font-weight: 800;
}

.cmc-medical-product-single__title {
    color: #003b73;
    font-size: 1.75rem;
    line-height: 1.25;
    font-weight: 800;
}

.cmc-medical-product-single__back,
.cmc-medical-product-single__download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border-radius: 999px;
    font-size: 0.9rem;
    line-height: 1;
    font-weight: 800;
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.cmc-medical-product-single__back {
    flex: 0 0 auto;
    border: 1px solid rgba(0, 59, 115, 0.18);
    color: #003b73;
    padding: 0.75rem 1rem;
}

.cmc-medical-product-single__back:hover,
.cmc-medical-product-single__back:focus {
    transform: translateY(-2px);
    border-color: #00aeef;
    color: #0077b6;
}

.cmc-medical-product-single__back svg,
.cmc-medical-product-single__download svg {
    width: 1rem;
    height: 1rem;
}

.cmc-medical-product-single__content {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 59, 115, 0.1);
}

.cmc-medical-product-single__content > :first-child {
    margin-top: 0;
}

.cmc-medical-product-single__content > :last-child {
    margin-bottom: 0;
}

.cmc-medical-product-single__viewer-wrap {
    padding: 1.25rem;
    background: #f4f8fb;
}

.cmc-medical-product-single__viewer {
    width: 100%;
    height: 800px;
    border: 1px solid rgba(0, 59, 115, 0.14);
    border-radius: 8px;
    background: #fff;
}

.cmc-medical-product-single__mobile-viewer {
    display: none;
    min-height: 28rem;
    overflow: hidden;
    border: 1px solid rgba(0, 59, 115, 0.14);
    border-radius: 8px;
    background: #e9eef3;
}

/* Browsers without an inline PDF viewer (Chrome on Android, Safari on iOS)
   get the PDF.js canvas viewer at any viewport width; the class is toggled
   by assets/js/mobile-pdf-viewer.js based on capability detection. */
.cmc-medical-product-single__viewer-wrap.is-pdfjs .cmc-medical-product-single__viewer { display: none; }

.cmc-medical-product-single__viewer-wrap.is-pdfjs .cmc-medical-product-single__mobile-viewer { display: block; }

.cmc-medical-product-single__pdf-stage {
    display: flex;
    min-height: 24rem;
    align-items: flex-start;
    justify-content: center;
    overflow: auto;
    padding: 0.65rem;
}

.cmc-medical-product-single__pdf-canvas {
    max-width: 100%;
    height: auto;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0, 59, 115, 0.16);
}

.cmc-medical-product-single__pdf-status {
    align-self: center;
    color: #003b73;
    font-size: 0.9rem;
    font-weight: 700;
}

.cmc-medical-product-single__pdf-toolbar[hidden] {
    display: none;
}

.cmc-medical-product-single__pdf-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.7rem;
    border-top: 1px solid rgba(0, 59, 115, 0.14);
    background: #fff;
}

.cmc-medical-product-single__pdf-toolbar button {
    display: inline-flex;
    width: 2.6rem;
    height: 2.6rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: #003b73;
}

.cmc-medical-product-single__pdf-toolbar button:disabled {
    cursor: default;
    opacity: 0.4;
}

.cmc-medical-product-single__pdf-page {
    min-width: 4.5rem;
    color: #003b73;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 800;
}

/* Full-screen zoomable lightbox for a tapped PDF page. */
.cmc-pdf-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    background: rgba(3, 18, 34, 0.94);
}

.cmc-pdf-lightbox[hidden] {
    display: none;
}

body.cmc-pdf-lightbox-open {
    overflow: hidden;
}

.cmc-pdf-lightbox__stage {
    position: relative;
    flex: 1;
    overflow: hidden;
    touch-action: none;
}

.cmc-pdf-lightbox__canvas {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    will-change: transform;
}

.cmc-pdf-lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    display: inline-flex;
    width: 2.9rem;
    height: 2.9rem;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    color: #003b73;
    background: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.cmc-pdf-lightbox__controls {
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    z-index: 2;
    display: flex;
    gap: 0.7rem;
    transform: translateX(-50%);
}

.cmc-pdf-lightbox__zoom {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    color: #fff;
    background: #003b73;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.cmc-pdf-lightbox__hint {
    position: absolute;
    top: 1.2rem;
    left: 50%;
    z-index: 2;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    font-size: 0.78rem;
    transform: translateX(-50%);
    pointer-events: none;
}

.cmc-medical-product-single__actions {
    display: flex;
    justify-content: flex-end;
    padding: 1.25rem 1.5rem 1.5rem;
}

.cmc-medical-product-single__download {
    background: #003b73;
    color: #fff;
    padding: 0.9rem 1.2rem;
    box-shadow: 0 12px 26px rgba(0, 59, 115, 0.18);
}

.cmc-medical-product-single__download:hover,
.cmc-medical-product-single__download:focus {
    transform: translateY(-2px);
    background: #159447;
}

.cmc-medical-product-single__empty {
    margin: 1.25rem;
}

@media (max-width: 900px) {
    .cmc-medical-product-single__viewer {
        height: 650px;
    }
}

@media (max-width: 640px) {
    .cmc-medical-product-card__body {
        padding: 1.1rem;
    }

    .cmc-medical-product-single__header {
        flex-direction: column;
        padding: 1.2rem;
    }

    .cmc-medical-product-single__title {
        font-size: 1.45rem;
    }

    .cmc-medical-product-single__back,
    .cmc-medical-product-single__download {
        width: 100%;
    }

    .cmc-medical-product-single__viewer-wrap {
        padding: 0.85rem;
    }

    .cmc-medical-product-single__content {
        padding: 1.2rem;
    }

    /* No-JS fallback only: the capability-detection JS toggles .is-pdfjs for
       the real switch, since Android/iOS can't embed PDFs at any width. */
    .cmc-medical-product-single__viewer { display: none; }

    .cmc-medical-product-single__mobile-viewer { display: block; }

    .cmc-medical-product-single__actions {
        padding: 1rem;
    }
}

.cmc-about-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
}

.cmc-btn--secondary {
    color: #003b73;
    background: #ffffff;
    border-color: rgba(0, 59, 115, 0.16);
    box-shadow: 0 10px 24px rgba(0, 59, 115, 0.1);
}

.cmc-btn--secondary:hover,
.cmc-btn--secondary:focus {
    transform: translateY(-3px);
    color: #ffffff;
    background: #159447;
    border-color: #159447;
    box-shadow: 0 16px 32px rgba(21, 148, 71, 0.24);
}

.cmc-modal-open {
    overflow: hidden;
}

.cmc-contact-modal,
.cmc-status-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.cmc-contact-modal.is-open,
.cmc-status-modal.is-open {
    display: flex;
}

.cmc-contact-modal__backdrop,
.cmc-status-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 24, 48, 0.62);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.cmc-contact-modal__dialog,
.cmc-status-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 760px);
    max-height: min(92vh, 860px);
    overflow: auto;
    border: 1px solid rgba(0, 174, 239, 0.18);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 28px 72px rgba(0, 24, 48, 0.28);
}

.cmc-contact-modal__dialog {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.cmc-status-modal__dialog {
    width: min(100%, 440px);
    padding: 2rem;
    text-align: center;
}

.cmc-contact-modal__close,
.cmc-status-modal__close {
    position: absolute;
    top: 0.85rem;
    inset-inline-end: 0.85rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid rgba(0, 59, 115, 0.12);
    border-radius: 999px;
    color: #003b73;
    background: #f4f8fb;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.cmc-contact-modal__close:hover,
.cmc-contact-modal__close:focus,
.cmc-status-modal__close:hover,
.cmc-status-modal__close:focus {
    transform: translateY(-1px);
    color: #ffffff;
    background: #003b73;
}

.cmc-contact-modal__close svg,
.cmc-status-modal__close svg {
    width: 1.1rem;
    height: 1.1rem;
}

.cmc-contact-modal__header {
    margin-bottom: 1.35rem;
    padding-inline-end: 2.6rem;
}

.cmc-contact-modal__badge {
    display: inline-flex;
    margin-bottom: 0.65rem;
    border-radius: 999px;
    background: rgba(0, 174, 239, 0.1);
    color: #0077b6;
    padding: 0.38rem 0.72rem;
    font-size: 0.72rem;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
}

.cmc-contact-modal__title {
    color: #003b73;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.2;
    font-weight: 800;
}

.cmc-contact-modal__text {
    max-width: 40rem;
    margin-top: 0.55rem;
    color: #4b5b73;
    font-size: 0.95rem;
    line-height: 1.7;
}

.nilespf-contact-form--compact {
    gap: 1rem;
}

.nilespf-contact-form--compact .cmc-form__row {
    gap: 1rem;
}

.nilespf-contact-form--compact .cmc-field__textarea {
    min-height: 110px;
}

.cmc-status-modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1.1rem;
    border-radius: 999px;
    color: #ffffff;
}

.cmc-status-modal__icon svg {
    width: 1.8rem;
    height: 1.8rem;
}

.cmc-status-modal__icon--success {
    background: linear-gradient(135deg, #2dba6a 0%, #159447 100%);
}

.cmc-status-modal__icon--error {
    background: linear-gradient(135deg, #e74c3c 0%, #b83224 100%);
}

.cmc-status-modal__title {
    color: #003b73;
    font-size: 1.35rem;
    line-height: 1.25;
    font-weight: 800;
}

.cmc-status-modal__text {
    margin-top: 0.6rem;
    color: #4b5b73;
    line-height: 1.7;
}

.cmc-medical-product-single__actions {
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cmc-medical-product-single__order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border-radius: 999px;
    background: #159447;
    color: #ffffff;
    padding: 0.9rem 1.2rem;
    font-size: 0.9rem;
    line-height: 1;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(21, 148, 71, 0.18);
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.cmc-medical-product-single__order:hover,
.cmc-medical-product-single__order:focus {
    transform: translateY(-2px);
    background: #003b73;
}

.cmc-medical-product-single__order svg {
    width: 1rem;
    height: 1rem;
}

.cmc-custom-request-button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: 999px;
    border: 1px solid rgba(21, 148, 71, 0.22);
    background: #159447;
    color: #ffffff;
    padding: 0 1.45rem;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(21, 148, 71, 0.18);
}

.woocommerce div.product .cmc-custom-request-button.button:hover,
.woocommerce div.product .cmc-custom-request-button.button:focus {
    color: #ffffff;
    background: #0b5e2c;
    border-color: #0b5e2c;
    box-shadow: 0 12px 26px rgba(11, 94, 44, 0.28);
}

.woocommerce div.product .cmc-custom-request-fallback {
    display: flex;
    margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
    .cmc-contact-modal,
    .cmc-status-modal {
        padding: 0.75rem;
    }

    .cmc-contact-modal__dialog {
        padding: 1rem;
    }

    .cmc-contact-modal__header {
        padding-inline-end: 2.3rem;
    }

    .cmc-medical-product-single__order,
    .cmc-custom-request-button.button,
    .cmc-about-actions .cmc-btn {
        width: 100%;
    }
}

