/* ==========================================================================
   DNX Solution Co. - Shared Public UX Enhancements (Blue & Green Themes)
   Uses theme CSS custom properties defined in site.css / green/css/site.css
   ========================================================================== */

/* Visually offscreen spam honeypot field */
.dnx-hp-field {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Top Reading Progress Bar */
.dnx-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1090;
    pointer-events: none;
    background: transparent;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dnx-reading-progress.is-active {
    opacity: 1;
}

.dnx-reading-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--dnx-primary-cyan, #00caff), var(--dnx-primary-blue, #0096ff));
    box-shadow: 0 0 10px rgba(0, 195, 255, 0.45);
    transition: width 0.08s linear;
}

/* Sidebar & Mobile Search Triggers */
.dnx-sidebar-search-btn {
    width: clamp(140px, 78%, 180px);
    margin: 0 auto 10px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 195, 255, 0.34);
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.16) 0%, rgba(7, 29, 75, 0.72) 100%);
    color: #e6f3ff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(3, 14, 38, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.14s ease;
}

.dnx-sidebar-search-btn:hover,
.dnx-sidebar-search-btn:focus-visible {
    background: linear-gradient(135deg, rgba(0, 175, 255, 0.28) 0%, rgba(11, 87, 222, 0.45) 100%);
    border-color: var(--dnx-primary-cyan, #00caff);
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(0, 175, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
    outline: none;
}

html[data-theme="green"] .dnx-sidebar-search-btn {
    border-color: rgba(16, 185, 129, 0.38);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(6, 46, 33, 0.76) 100%);
    color: #e4fbf2;
}

html[data-theme="green"] .dnx-sidebar-search-btn:hover,
html[data-theme="green"] .dnx-sidebar-search-btn:focus-visible {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.30) 0%, rgba(5, 150, 105, 0.44) 100%);
    border-color: #34d399;
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.dnx-mobile-search-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.16) 0%, rgba(7, 29, 75, 0.72) 100%);
    border: 1px solid rgba(0, 195, 255, 0.36);
    color: #e6f3ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.dnx-mobile-search-btn:hover,
.dnx-mobile-search-btn:focus-visible {
    background: linear-gradient(135deg, rgba(0, 175, 255, 0.28) 0%, rgba(11, 87, 222, 0.45) 100%);
    border-color: var(--dnx-primary-cyan, #00caff);
    color: #ffffff;
    outline: none;
}

html[data-theme="green"] .dnx-mobile-search-btn {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(6, 46, 33, 0.76) 100%);
    border-color: rgba(16, 185, 129, 0.38);
    color: #e4fbf2;
}

html[data-theme="green"] .dnx-mobile-search-btn:hover,
html[data-theme="green"] .dnx-mobile-search-btn:focus-visible {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.30) 0%, rgba(5, 150, 105, 0.44) 100%);
    border-color: #34d399;
}

/* Global Quick Search Modal — Aligned with DNX Blue & Green Dark-Glass Identity */
.dnx-gsearch-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(3, 12, 30, 0.56);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(20px, 8vh, 84px) 16px 24px;
}

html[data-theme="green"] .dnx-gsearch-overlay {
    background: rgba(3, 24, 17, 0.58);
}

.dnx-gsearch-overlay[hidden] {
    display: none;
}

.dnx-gsearch-dialog {
    width: 100%;
    max-width: 600px;
    background: linear-gradient(165deg, rgba(8, 28, 68, 0.88) 0%, rgba(5, 17, 44, 0.90) 100%);
    backdrop-filter: blur(22px) saturate(1.35);
    -webkit-backdrop-filter: blur(22px) saturate(1.35);
    border-radius: 18px;
    border: 1px solid rgba(0, 195, 255, 0.32);
    box-shadow: 0 24px 64px rgba(2, 10, 28, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 0 36px rgba(0, 165, 255, 0.16);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: min(76vh, 560px);
    color: #f0f7ff;
}

html[data-theme="green"] .dnx-gsearch-dialog {
    background: linear-gradient(165deg, rgba(6, 38, 28, 0.89) 0%, rgba(4, 24, 18, 0.91) 100%);
    border-color: rgba(52, 211, 153, 0.34);
    box-shadow: 0 24px 64px rgba(2, 20, 14, 0.56), 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 0 36px rgba(16, 185, 129, 0.16);
    color: #ecfdf5;
}

.dnx-gsearch-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(0, 195, 255, 0.18);
}

html[data-theme="green"] .dnx-gsearch-head {
    border-bottom-color: rgba(52, 211, 153, 0.2);
}

.dnx-gsearch-icon {
    color: #38bdf8;
    flex-shrink: 0;
}

html[data-theme="green"] .dnx-gsearch-icon {
    color: #34d399;
}

.dnx-gsearch-input {
    border: 0;
    outline: 0;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.98rem;
    font-weight: 500;
    color: #f8fbff;
    background: transparent;
}

.dnx-gsearch-input::-webkit-search-decoration,
.dnx-gsearch-input::-webkit-search-cancel-button,
.dnx-gsearch-input::-webkit-search-results-button,
.dnx-gsearch-input::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
}

.dnx-gsearch-input::placeholder {
    color: rgba(186, 214, 247, 0.65);
}

html[data-theme="green"] .dnx-gsearch-input::placeholder {
    color: rgba(167, 243, 208, 0.62);
}

.dnx-gsearch-close {
    border: 1px solid rgba(0, 195, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: #cfe6ff;
    border-radius: 9px;
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.dnx-gsearch-close:hover,
.dnx-gsearch-close:focus-visible {
    background: rgba(0, 175, 255, 0.24);
    border-color: #38bdf8;
    color: #ffffff;
    outline: none;
}

html[data-theme="green"] .dnx-gsearch-close {
    border-color: rgba(52, 211, 153, 0.30);
    color: #d1fae5;
}

html[data-theme="green"] .dnx-gsearch-close:hover,
html[data-theme="green"] .dnx-gsearch-close:focus-visible {
    background: rgba(16, 185, 129, 0.26);
    border-color: #34d399;
    color: #ffffff;
}

.dnx-gsearch-status {
    padding: 8px 16px 7px;
    font-size: 0.77rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: rgba(186, 214, 247, 0.85);
    background: rgba(4, 15, 38, 0.36);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

html[data-theme="green"] .dnx-gsearch-status {
    color: rgba(167, 243, 208, 0.86);
    background: rgba(3, 22, 16, 0.42);
}

.dnx-gsearch-list {
    list-style: none;
    margin: 0;
    padding: 8px;
    overflow-y: auto;
    flex: 1 1 auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 195, 255, 0.35) transparent;
}

.dnx-gsearch-list::-webkit-scrollbar {
    width: 6px;
}

.dnx-gsearch-list::-webkit-scrollbar-thumb {
    background: rgba(0, 195, 255, 0.35);
    border-radius: 999px;
}

html[data-theme="green"] .dnx-gsearch-list {
    scrollbar-color: rgba(52, 211, 153, 0.35) transparent;
}

html[data-theme="green"] .dnx-gsearch-list::-webkit-scrollbar-thumb {
    background: rgba(52, 211, 153, 0.35);
}

.dnx-gsearch-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 11px;
    border: 1px solid transparent;
    text-decoration: none;
    color: #e6f2ff;
    transition: background-color 0.14s ease, border-color 0.14s ease, transform 0.12s ease;
}

.dnx-gsearch-item a:hover,
.dnx-gsearch-item.is-selected a {
    background: rgba(0, 165, 255, 0.16);
    border-color: rgba(56, 189, 248, 0.36);
    color: #ffffff;
}

html[data-theme="green"] .dnx-gsearch-item a {
    color: #e8fdf4;
}

html[data-theme="green"] .dnx-gsearch-item a:hover,
html[data-theme="green"] .dnx-gsearch-item.is-selected a {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(52, 211, 153, 0.38);
    color: #ffffff;
}

.dnx-gsearch-item-title {
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.35;
}

.dnx-gsearch-item-cat {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(0, 175, 255, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.32);
    color: #7dd3fc;
    white-space: nowrap;
    flex-shrink: 0;
}

html[data-theme="green"] .dnx-gsearch-item-cat {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(52, 211, 153, 0.34);
    color: #6ee7b7;
}

@media (max-width: 575.98px) {
    .dnx-gsearch-dialog {
        max-height: min(82vh, 560px);
        border-radius: 16px;
    }

    .dnx-gsearch-item a {
        padding: 11px 10px;
        gap: 8px;
    }
}

/* Back-to-Top Floating Button */
.dnx-back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1050;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: linear-gradient(135deg, var(--dnx-primary-blue, #0096ff), var(--dnx-primary-deep, #005ce6));
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(7, 26, 67, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.dnx-back-to-top[hidden] {
    display: none;
}

.dnx-back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(7, 26, 67, 0.28);
}

/* Article Meta Bar, Table of Contents & Related Articles */
.dnx-article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
}

.dnx-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dnx-text-body, #475e7f);
}

.dnx-article-toc {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--dnx-card-border, rgba(220, 235, 252, 0.9));
    border-radius: 16px;
    padding: 18px 22px;
    box-shadow: var(--dnx-card-shadow, 0 12px 35px rgba(8, 28, 71, 0.06));
}

.dnx-article-toc-title {
    font-family: var(--dnx-font-display);
    font-weight: 700;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dnx-blue-accent, #0b57de);
    margin-bottom: 10px;
}

.dnx-article-toc-list {
    margin: 0;
    padding-left: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 6px 18px;
}

.dnx-article-toc-list a {
    color: var(--dnx-navy-title, #071a43);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
}

.dnx-article-toc-list a:hover {
    color: var(--dnx-blue-accent, #0b57de);
    text-decoration: underline;
}

.dnx-article-section-anchor {
    scroll-margin-top: 84px;
}

.dnx-related-header {
    margin-bottom: 18px;
}

.dnx-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.dnx-related-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--dnx-card-border, rgba(220, 235, 252, 0.85));
    box-shadow: var(--dnx-card-shadow, 0 12px 30px rgba(8, 28, 71, 0.06));
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dnx-related-card:hover {
    transform: translateY(-3px);
    border-color: var(--dnx-primary-blue, #0096ff);
    box-shadow: 0 16px 36px rgba(8, 28, 71, 0.1);
}

.dnx-related-card-title {
    font-family: var(--dnx-font-display);
    font-size: 1.06rem;
    font-weight: 700;
    color: var(--dnx-navy-title, #071a43);
    margin-bottom: 8px;
}

.dnx-related-card-excerpt {
    font-size: 0.88rem;
    color: var(--dnx-text-body, #475e7f);
    line-height: 1.5;
    flex: 1 1 auto;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dnx-related-card-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dnx-blue-accent, #0b57de);
}

@media (max-width: 991.98px) {
    .dnx-related-grid {
        grid-template-columns: 1fr;
    }
}

/* Portfolio Filter Pills */
.dnx-portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dnx-filter-pill {
    border: 1px solid var(--dnx-card-border, rgba(200, 222, 250, 0.95));
    background: rgba(255, 255, 255, 0.9);
    color: var(--dnx-text-body, #475e7f);
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.dnx-filter-pill:hover {
    border-color: var(--dnx-primary-blue, #0096ff);
    color: var(--dnx-navy-title, #071a43);
}

.dnx-filter-pill.is-active {
    background: var(--dnx-blue-accent, #0b57de);
    border-color: var(--dnx-blue-accent, #0b57de);
    color: #ffffff;
}

/* Defensive wrapping for long CMS content, unbroken URLs, emails, and search results */
.dnx-hero-title,
.dnx-hero-description,
.dnx-inner-title,
.dnx-inner-subtitle,
.dnx-detail-lead-desc,
.dnx-service-card-title,
.dnx-service-card-desc,
.dnx-card-text,
.dnx-article-prose,
.dnx-legal-content,
.dnx-channel-main,
.dnx-gsearch-item-title,
.dnx-related-card-title,
.dnx-related-card-excerpt {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.dnx-gsearch-item a>span:first-child,
.dnx-channel-meta,
.dnx-hero-content,
.dnx-main-content>* {
    min-width: 0;
}

.dnx-inner-page-content,
.dnx-page-container {
    overflow-x: clip;
}

/* Public Maintenance / Under Edit Mode & Staff Preview Pill */
.dnx-staff-maint-pill {
    position: fixed;
    top: 16px;
    right: 20px;
    z-index: 1090;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.92);
    color: #fef3c7;
    border: 1px solid rgba(251, 191, 36, 0.45);
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.78rem;
    font-weight: 600;
    max-width: calc(100vw - 40px);
}

@media (max-width: 991.98px) {
    .dnx-staff-maint-pill {
        top: auto;
        bottom: 14px;
        right: auto;
        left: 14px;
    }
}

.dnx-staff-maint-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.25);
    flex-shrink: 0;
}

.dnx-staff-maint-pill a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 700;
    margin-left: 4px;
}

.dnx-maint-body {
    margin: 0;
    min-height: 100vh;
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #e6f2ff;
    background:
        radial-gradient(circle at 18% 18%, rgba(0, 175, 255, 0.22), transparent 46%),
        radial-gradient(circle at 85% 80%, rgba(11, 87, 222, 0.28), transparent 48%),
        linear-gradient(145deg, #040d21 0%, #071b40 55%, #030a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

html[data-theme="green"] .dnx-maint-body {
    color: #ecfdf5;
    background:
        radial-gradient(circle at 18% 18%, rgba(16, 185, 129, 0.24), transparent 46%),
        radial-gradient(circle at 85% 80%, rgba(5, 150, 105, 0.28), transparent 48%),
        linear-gradient(145deg, #03150f 0%, #062b1f 55%, #020f0b 100%);
}

.dnx-maint-shell {
    width: 100%;
    max-width: 580px;
}

.dnx-maint-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(7, 24, 58, 0.78);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 20px;
    padding: clamp(28px, 5vw, 44px);
    text-align: center;
    box-shadow: 0 26px 64px rgba(2, 10, 28, 0.56);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

html[data-theme="green"] .dnx-maint-card {
    background: rgba(5, 34, 24, 0.80);
    border-color: rgba(52, 211, 153, 0.30);
    box-shadow: 0 26px 64px rgba(1, 16, 11, 0.62);
}

.dnx-maint-logo {
    max-height: 46px;
    width: auto;
    margin-bottom: 22px;
}

.dnx-maint-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #bae6fd;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

html[data-theme="green"] .dnx-maint-badge {
    background: rgba(52, 211, 153, 0.14);
    border-color: rgba(52, 211, 153, 0.36);
    color: #a7f3d0;
}

.dnx-maint-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #38bdf8;
}

html[data-theme="green"] .dnx-maint-badge-dot {
    background: #34d399;
}

.dnx-maint-title {
    font-size: clamp(1.55rem, 3.4vw, 2.15rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.dnx-maint-message {
    font-size: 1rem;
    line-height: 1.65;
    color: #cbdcf5;
    margin-bottom: 22px;
    overflow-wrap: anywhere;
}

html[data-theme="green"] .dnx-maint-message {
    color: #cdeee0;
}

.dnx-maint-estimate {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f0f9ff;
    font-size: 0.9rem;
    margin-bottom: 22px;
    overflow-wrap: anywhere;
}

.dnx-maint-contact {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 18px;
    font-size: 0.86rem;
    color: #9ec0eb;
}

html[data-theme="green"] .dnx-maint-contact {
    color: #98dac0;
}

.dnx-maint-links {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
}

.dnx-maint-links a {
    color: #7dd3fc;
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.dnx-maint-links a:hover {
    text-decoration: underline;
    color: #ffffff;
}

html[data-theme="green"] .dnx-maint-links a {
    color: #6ee7b7;
}

/* Sidebar Services Accordion Submenu (Blue & Green Themes) */
.dnx-nav-link-row {
    position: relative;
    display: flex;
    align-items: center;
}

.dnx-nav-item-has-sub .dnx-nav-link {
    flex: 1 1 auto;
    padding-right: 16px;
}

.dnx-nav-dropdown-trigger {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
}

.dnx-nav-chevron {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.88);
    transition: transform 0.22s ease;
    flex-shrink: 0;
}

.dnx-nav-item-has-sub.is-expanded .dnx-nav-chevron {
    transform: rotate(180deg);
}

.dnx-nav-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.20) transparent;
}

.dnx-nav-submenu {
    list-style: none;
    margin: 5px 0 6px 12px;
    padding: 2px 0 2px 11px;
    border-left: 1px solid rgba(125, 211, 252, 0.24);
    display: none;
    flex-direction: column;
    gap: 7px;
}

html[data-theme="green"] .dnx-nav-submenu {
    border-left-color: rgba(110, 231, 183, 0.26);
}

.dnx-nav-item-has-sub.is-expanded>.dnx-nav-submenu {
    display: flex;
}

.dnx-nav-sublink {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 3px 8px;
    border-radius: 7px;
    color: rgba(226, 238, 255, 0.86);
    text-decoration: none;
    font-size: 0.785rem;
    font-weight: 500;
    line-height: 1.18;
    transition: color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.dnx-nav-sublink:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
    transform: translateX(2px);
}

.dnx-nav-sublink.is-active {
    color: #ffffff;
    font-weight: 700;
    background: rgba(56, 189, 248, 0.18);
}

html[data-theme="green"] .dnx-nav-sublink.is-active {
    background: rgba(52, 211, 153, 0.20);
}

.dnx-nav-subdot {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: rgba(186, 230, 253, 0.58);
    margin-top: 5px;
    flex-shrink: 0;
}

.dnx-nav-sublink.is-active .dnx-nav-subdot {
    background: #ffffff;
    box-shadow: 0 0 8px rgba(125, 211, 252, 0.95);
}

html[data-theme="green"] .dnx-nav-sublink.is-active .dnx-nav-subdot {
    box-shadow: 0 0 8px rgba(110, 231, 183, 0.95);
}

/* Service Detail 3-Band Redesign */
.dnx-sd-page-content {
    padding-top: clamp(16px, 2.2vh, 26px);
    padding-bottom: clamp(18px, 2.6vh, 30px);
}

.dnx-sd-hero {
    margin-bottom: clamp(16px, 2.4vh, 24px);
}

.dnx-sd-hero-title {
    margin-top: 6px;
    margin-bottom: 10px;
    line-height: 1.09;
}

.dnx-sd-hero-desc {
    max-width: 580px;
    font-size: clamp(0.98rem, 1.15vw, 1.08rem);
    line-height: 1.54;
    color: #1e3354;
    margin-bottom: 0;
}

.dnx-sd-hero-media {
    position: relative;
    border-radius: 22px;
    padding: 8px;
    background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.24), rgba(11, 87, 222, 0.05) 70%, transparent 100%);
}

html[data-theme="green"] .dnx-sd-hero-media {
    background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.24), rgba(5, 150, 105, 0.05) 70%, transparent 100%);
}

.dnx-sd-hero-glow {
    position: absolute;
    inset: 14px;
    border-radius: 20px;
    box-shadow: 0 22px 46px rgba(0, 120, 255, 0.22);
    pointer-events: none;
}

html[data-theme="green"] .dnx-sd-hero-glow {
    box-shadow: 0 22px 46px rgba(16, 185, 129, 0.22);
}

.dnx-sd-hero-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 330px;
    object-fit: cover;
    border-radius: 18px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(186, 224, 255, 0.55);
}

html[data-theme="green"] .dnx-sd-hero-img {
    border-color: rgba(167, 243, 208, 0.55);
}

/* Split Translucent Value & Why Choose Us Card */
.dnx-sd-split-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.44) 0%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0.32) 100%),
        url('/images/split-card-bg.webp') center / cover no-repeat;
    border: 1px solid rgba(203, 228, 253, 0.95);
    border-radius: 22px;
    padding: clamp(24px, 3.4vw, 40px);
    box-shadow: 0 20px 52px rgba(5, 36, 94, 0.09);
    margin-bottom: clamp(22px, 3.5vh, 30px);
}

html[data-theme="green"] .dnx-sd-split-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.44) 0%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0.32) 100%),
        url('/green/images/split-card-bg.webp') center / cover no-repeat;
    border-color: rgba(167, 243, 208, 0.95);
    box-shadow: 0 20px 52px rgba(4, 70, 48, 0.09);
}

.dnx-sd-split-wave {
    display: none;
}

.dnx-sd-split-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: clamp(8px, 2vw, 28px);
    z-index: 1;
}

.dnx-sd-split-bar {
    width: 34px;
    height: 3.5px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0b57de, #00caff);
    margin-bottom: 14px;
}

html[data-theme="green"] .dnx-sd-split-bar {
    background: linear-gradient(90deg, #059669, #34d399);
}

.dnx-sd-split-title {
    font-size: clamp(1.38rem, 2.15vw, 1.85rem);
    font-weight: 800;
    color: var(--dnx-navy-title, #071a43);
    line-height: 1.22;
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}

.dnx-sd-split-desc {
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--dnx-text-body, #475e7f);
    margin-bottom: 0;
    overflow-wrap: anywhere;
}

.dnx-sd-split-right {
    z-index: 1;
}

@media (min-width: 992px) {
    .dnx-sd-split-right {
        border-left: 1px solid rgba(11, 87, 222, 0.14);
        padding-left: clamp(24px, 3vw, 40px);
    }

    html[data-theme="green"] .dnx-sd-split-right {
        border-left-color: rgba(5, 150, 105, 0.16);
    }
}

.dnx-sd-why-title {
    font-size: clamp(1.16rem, 1.5vw, 1.38rem);
    font-weight: 800;
    color: var(--dnx-navy-title, #071a43);
    margin-bottom: 16px;
}

.dnx-sd-why-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.dnx-sd-why-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dnx-sd-why-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(145deg, #e0f2fe 0%, #bae6fd 100%);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #0369a1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

html[data-theme="green"] .dnx-sd-why-icon {
    background: linear-gradient(145deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: rgba(52, 211, 153, 0.38);
    color: #047857;
}

.dnx-sd-why-text {
    font-size: 0.94rem;
    line-height: 1.48;
    color: var(--dnx-text-body, #334155);
    overflow-wrap: anywhere;
}

.dnx-sd-why-text strong {
    color: var(--dnx-navy-title, #071a43);
    font-weight: 700;
}

/* Bottom Dark Collaboration Banner */
.dnx-sd-cta-section {
    margin-bottom: 10px;
}

.dnx-sd-cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: clamp(20px, 2.8vw, 28px) clamp(22px, 3.2vw, 36px);
    border-radius: 18px;
    color: #ffffff;
    background:
        radial-gradient(ellipse 55% 110% at 62% 85%, rgba(0, 210, 255, 0.42), transparent 62%),
        radial-gradient(circle at 18% 12%, rgba(0, 195, 255, 0.24), transparent 48%),
        linear-gradient(125deg, #032056 0%, #0642a3 55%, #05327d 100%);
    border: 1px solid rgba(56, 189, 248, 0.30);
    box-shadow: 0 20px 44px rgba(3, 28, 76, 0.24);
}

html[data-theme="green"] .dnx-sd-cta-banner {
    background:
        radial-gradient(circle at 20% 10%, rgba(52, 211, 153, 0.25), transparent 48%),
        linear-gradient(125deg, #04291e 0%, #056647 58%, #044a34 100%);
    border-color: rgba(52, 211, 153, 0.30);
    box-shadow: 0 20px 44px rgba(2, 44, 30, 0.26);
}

.dnx-sd-cta-left {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.dnx-sd-cta-icon {
    color: #e0f2fe;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

html[data-theme="green"] .dnx-sd-cta-icon {
    color: #d1fae5;
}

.dnx-sd-cta-divider {
    width: 1px;
    height: 46px;
    background: rgba(255, 255, 255, 0.28);
    flex-shrink: 0;
}

.dnx-sd-cta-copy {
    min-width: 0;
}

.dnx-sd-cta-title {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.dnx-sd-cta-sub {
    font-size: 0.96rem;
    color: rgba(224, 242, 254, 0.88);
    overflow-wrap: anywhere;
}

html[data-theme="green"] .dnx-sd-cta-sub {
    color: rgba(209, 250, 229, 0.90);
}

.dnx-sd-cta-right {
    flex-shrink: 0;
}

.dnx-sd-cta-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 999px;
    background: #ffffff;
    color: #071a43;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(2, 16, 48, 0.24);
    transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
    white-space: nowrap;
}

.dnx-sd-cta-pill-btn:hover {
    color: #041230;
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(2, 16, 48, 0.30);
}

html[data-theme="green"] .dnx-sd-cta-pill-btn {
    color: #064e3b;
}

html[data-theme="green"] .dnx-sd-cta-pill-btn:hover {
    color: #022c22;
    background: #ecfdf5;
}

@media (max-width: 991.98px) {
    .dnx-inner-page {
        height: auto;
        overflow-y: visible;
    }

    .dnx-inner-page>.dnx-inner-page-content,
    .dnx-inner-page>.dnx-sd-page-content {
        padding: 14px 16px 24px;
    }

    .dnx-sd-hero {
        margin-bottom: 16px;
    }

    .dnx-sd-hero-title {
        font-size: clamp(1.68rem, 6.2vw, 2.25rem);
        line-height: 1.1;
        margin-bottom: 10px;
    }

    .dnx-sd-hero-desc {
        font-size: 0.97rem;
        line-height: 1.52;
    }

    .dnx-sd-split-card {
        padding: 20px 18px;
        margin-bottom: 16px;
        border-radius: 18px;
    }

    .dnx-sd-split-title {
        font-size: clamp(1.32rem, 4.8vw, 1.62rem);
        margin-bottom: 8px;
    }

    .dnx-sd-split-desc {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .dnx-sd-why-title {
        font-size: 1.18rem;
        margin-bottom: 12px;
    }

    .dnx-sd-why-list {
        gap: 10px;
    }

    .dnx-sd-why-text {
        font-size: 0.93rem;
        line-height: 1.42;
    }

    .dnx-sd-cta-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 20px;
        gap: 14px;
    }

    .dnx-sd-cta-right,
    .dnx-sd-cta-pill-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .dnx-sd-cta-left {
        align-items: flex-start;
        gap: 12px;
    }

    .dnx-sd-cta-divider {
        display: none;
    }

    .dnx-sd-why-item {
        align-items: flex-start;
    }
}

/* ==========================================================================
   No-Footer Inner Page Normalization & Non-Scrollable Viewport Fit (>= 992px)
   ========================================================================== */
.dnx-inner-page {
    padding: 0 !important;
}

.dnx-inner-page::after {
    display: none !important;
}

.dnx-inner-page>.dnx-inner-page-content {
    padding: clamp(18px, 2.6vh, 30px) clamp(20px, 3vw, 40px) clamp(20px, 3vh, 32px);
}

.dnx-inner-page .dnx-banner-box {
    margin-bottom: 0;
}

@media (min-width: 992px) {

    /* Compact sidebar height spacing so expanded 9-service menu + theme switcher fit cleanly */
    .dnx-sidebar-header {
        padding: clamp(10px, 1.6vh, 18px) 16px clamp(6px, 1vh, 12px);
    }

    .dnx-sidebar-logo {
        max-height: clamp(46px, 6.6vh, 66px);
    }

    .dnx-nav-list {
        gap: clamp(2px, 0.55vh, 6px);
    }

    .dnx-nav-link {
        padding: clamp(6px, 0.9vh, 10px) clamp(14px, 1.3vw, 18px);
    }

    .dnx-nav-submenu {
        margin: 5px 0 6px 12px;
        gap: 7px;
    }

    .dnx-nav-sublink {
        padding: 3px 8px;
        font-size: 0.78rem;
        line-height: 1.18;
    }

    .dnx-sidebar-footer {
        padding: clamp(6px, 1vh, 12px) 0 clamp(8px, 1.2vh, 14px);
    }

    /* Single-screen Viewport Fit for 3-Band Service Detail Pages & Compact Fit Pages (Contact, WhyDnx, StatusCode, Error) */
    .dnx-inner-page.dnx-sd-fit-page,
    .dnx-inner-page.dnx-fit-page {
        height: 100%;
        overflow-y: auto;
    }

    .dnx-inner-page.dnx-sd-fit-page>.dnx-sd-page-content {
        min-height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: clamp(12px, 1.75vh, 18px);
        padding: clamp(12px, 1.75vh, 20px) clamp(22px, 2.8vw, 38px) clamp(12px, 1.75vh, 20px);
    }

    .dnx-sd-fit-page .dnx-sd-hero {
        margin-bottom: 0;
    }

    .dnx-sd-fit-page .dnx-breadcrumb {
        font-size: 0.88rem;
        margin-bottom: clamp(6px, 1vh, 10px);
    }

    .dnx-sd-fit-page .dnx-kicker {
        margin-top: clamp(6px, 1vh, 12px) !important;
        margin-bottom: clamp(4px, 0.7vh, 8px);
    }

    .dnx-sd-fit-page .dnx-kicker-text {
        font-size: clamp(0.84rem, 0.96vw, 0.94rem);
        letter-spacing: 0.14em;
    }

    .dnx-sd-fit-page .dnx-sd-hero-title {
        font-size: clamp(1.98rem, 2.45vw + 0.95vh, 2.75rem);
        line-height: 1.08;
        margin-top: 4px;
        margin-bottom: clamp(8px, 1.15vh, 13px);
    }

    .dnx-sd-fit-page .dnx-sd-hero-desc {
        max-width: 560px;
        font-size: clamp(0.97rem, 1.24vh + 0.25vw, 1.09rem);
        line-height: 1.5;
        color: #1e3354;
    }

    .dnx-sd-fit-page .dnx-sd-hero-img {
        max-height: clamp(145px, 25vh, 250px);
    }

    .dnx-sd-fit-page .dnx-sd-split-card {
        padding: clamp(16px, 2.25vh, 26px) clamp(24px, 3vw, 36px);
        margin-bottom: 0;
    }

    .dnx-sd-fit-page .dnx-sd-split-left {
        flex: 0 0 42%;
        max-width: 42%;
        padding-right: clamp(16px, 2.2vw, 30px);
    }

    .dnx-sd-fit-page .dnx-sd-split-right {
        flex: 0 0 58%;
        max-width: 58%;
        padding-left: clamp(22px, 2.8vw, 38px);
    }

    .dnx-sd-fit-page .dnx-sd-split-bar {
        margin-bottom: clamp(8px, 1.1vh, 12px);
    }

    .dnx-sd-fit-page .dnx-sd-split-title {
        font-size: clamp(1.42rem, 1.72vw + 0.7vh, 1.92rem);
        line-height: 1.15;
        margin-bottom: clamp(7px, 1vh, 11px);
    }

    .dnx-sd-fit-page .dnx-sd-split-desc {
        font-size: clamp(0.95rem, 1.18vh + 0.24vw, 1.06rem);
        line-height: 1.5;
        color: #263f61;
    }

    .dnx-sd-fit-page .dnx-sd-mv-heading {
        font-size: clamp(1.22rem, 1.52vw, 1.48rem);
    }

    .dnx-sd-fit-page .dnx-sd-why-title {
        font-size: clamp(1.22rem, 1.48vw + 0.55vh, 1.54rem);
        margin-bottom: clamp(10px, 1.4vh, 15px);
    }

    .dnx-sd-fit-page .dnx-sd-why-list {
        gap: clamp(7px, 1vh, 11px);
    }

    .dnx-sd-fit-page .dnx-sd-why-icon {
        width: clamp(30px, 3.9vh, 36px);
        height: clamp(30px, 3.9vh, 36px);
        border-radius: 10px;
    }

    .dnx-sd-fit-page .dnx-sd-why-text {
        font-size: clamp(0.92rem, 1.14vh + 0.22vw, 1.04rem);
        line-height: 1.4;
    }

    .dnx-sd-fit-page .dnx-sd-cta-section {
        margin-bottom: 0;
    }

    .dnx-sd-fit-page .dnx-sd-cta-banner {
        padding: clamp(13px, 1.8vh, 20px) clamp(24px, 3vw, 36px);
    }

    .dnx-sd-fit-page .dnx-sd-cta-title {
        font-size: clamp(1.2rem, 1.48vw + 0.52vh, 1.58rem);
    }

    .dnx-sd-fit-page .dnx-sd-cta-sub {
        font-size: clamp(0.91rem, 1.12vh + 0.2vw, 1.02rem);
    }

    .dnx-sd-fit-page .dnx-sd-cta-pill-btn {
        padding: clamp(10px, 1.4vh, 14px) clamp(22px, 2.2vw, 28px);
        font-size: clamp(0.92rem, 1.12vh + 0.2vw, 1.02rem);
    }

    @media (min-height: 780px) {
        .dnx-inner-page.dnx-sd-fit-page>.dnx-sd-page-content {
            justify-content: space-between;
            gap: clamp(18px, 2.6vh, 36px);
            padding: clamp(20px, 2.8vh, 38px) clamp(28px, 3.2vw, 52px) clamp(22px, 3vh, 38px);
            max-width: 1580px;
            width: 100%;
            margin-left: auto;
            margin-right: auto;
        }

        .dnx-view-contact .dnx-inner-page.dnx-sd-fit-page > .dnx-sd-page-content {
            justify-content: center;
            gap: clamp(22px, 3vh, 38px);
        }

        .dnx-sd-fit-page .dnx-sd-hero {
            padding-top: clamp(4px, 0.8vh, 14px);
        }

        .dnx-sd-fit-page .dnx-kicker-text {
            font-size: clamp(0.86rem, 0.55vw + 0.3vh, 1.02rem);
        }

        .dnx-sd-fit-page .dnx-sd-hero-title {
            font-size: clamp(2.25rem, 2.1vw + 1.05vh, 3.35rem);
        }

        .dnx-sd-fit-page .dnx-sd-hero-desc {
            max-width: 650px;
            font-size: clamp(1.04rem, 0.72vw + 0.45vh, 1.24rem);
            line-height: 1.56;
        }

        .dnx-sd-fit-page .dnx-sd-hero-globe-wrap {
            height: clamp(335px, 43vh, 520px);
        }

        .dnx-sd-fit-page .dnx-sd-hero-media.is-floating-scene {
            height: clamp(320px, 42vh, 470px);
            width: clamp(560px, 50vw, 820px);
        }

        .dnx-sd-fit-page .dnx-sd-split-card {
            flex: 0 0 auto;
            padding: clamp(24px, 3.4vh, 42px) clamp(28px, 3.2vw, 46px);
        }

        .dnx-sd-fit-page .dnx-sd-split-title {
            font-size: clamp(1.58rem, 1.5vw + 0.65vh, 2.25rem);
            margin-bottom: clamp(10px, 1.3vh, 16px);
        }

        .dnx-sd-fit-page .dnx-sd-mv-heading {
            font-size: clamp(1.26rem, 1.1vw + 0.45vh, 1.66rem);
        }

        .dnx-sd-fit-page .dnx-sd-split-desc {
            font-size: clamp(1rem, 0.62vw + 0.42vh, 1.18rem);
            line-height: 1.58;
        }

        .dnx-sd-fit-page .dnx-sd-why-title {
            font-size: clamp(1.32rem, 1.25vw + 0.5vh, 1.76rem);
            margin-bottom: clamp(12px, 1.6vh, 20px);
        }

        .dnx-sd-fit-page .dnx-sd-why-icon {
            width: clamp(34px, 2.2vw, 42px);
            height: clamp(34px, 2.2vw, 42px);
            border-radius: 11px;
        }

        .dnx-sd-fit-page .dnx-page-link-grid {
            gap: clamp(8px, 1vh, 14px) clamp(14px, 1.8vw, 24px);
            max-width: 720px;
        }

        .dnx-sd-fit-page .dnx-page-link-title {
            font-size: clamp(0.94rem, 0.48vw + 0.4vh, 1.12rem);
        }

        .dnx-sd-fit-page .dnx-page-link-desc {
            font-size: clamp(0.78rem, 0.34vw + 0.34vh, 0.92rem);
        }

        .dnx-sd-fit-page .dnx-sd-why-list {
            gap: clamp(10px, 1.45vh, 16px);
        }

        .dnx-sd-fit-page .dnx-sd-why-text {
            font-size: clamp(0.98rem, 0.6vw + 0.4vh, 1.16rem);
        }

        .dnx-sd-fit-page .dnx-sd-cta-banner {
            padding: clamp(16px, 2.2vh, 26px) clamp(28px, 3.2vw, 44px);
        }

        .dnx-sd-fit-page .dnx-sd-cta-title {
            font-size: clamp(1.3rem, 1.2vw + 0.5vh, 1.74rem);
        }

        .dnx-sd-fit-page .dnx-sd-cta-pill-btn {
            padding: clamp(11px, 1.3vh, 15px) clamp(24px, 2vw, 32px);
            font-size: clamp(0.95rem, 0.55vw + 0.4vh, 1.08rem);
        }

        .dnx-sd-latest-split-card {
            padding: clamp(18px, 2.4vh, 30px) clamp(28px, 3.2vw, 46px) !important;
        }

        .dnx-sd-latest-split-card .dnx-latest-posts-list {
            max-height: clamp(135px, 16.5vh, 224px);
        }

        .dnx-sd-latest-split-card .dnx-latest-post-card {
            padding: 8px 10px;
            gap: 3px;
        }

        .dnx-sd-latest-split-card .dnx-latest-post-title {
            font-size: clamp(1rem, 0.55vw + 0.4vh, 1.16rem);
        }
    }

    @media (max-width: 1199.98px) {
        .dnx-sd-fit-page .dnx-sd-hero-title {
            font-size: clamp(1.52rem, 2.05vw, 1.98rem);
        }

        .dnx-sd-fit-page .dnx-sd-hero-globe-wrap {
            height: clamp(220px, 33vh, 280px);
        }

        .dnx-sd-fit-page .dnx-sd-hero-media.is-floating-scene {
            width: clamp(410px, 49vw, 520px);
            height: clamp(210px, 34vh, 275px);
        }

        .dnx-sd-fit-page .dnx-sd-split-title {
            font-size: clamp(1.18rem, 1.6vw, 1.48rem);
        }
    }

    @media (max-height: 795px) {
        .dnx-inner-page.dnx-sd-fit-page>.dnx-sd-page-content {
            gap: clamp(9px, 1.35vh, 14px);
            padding: clamp(10px, 1.45vh, 16px) clamp(20px, 2.5vw, 34px);
        }

        .dnx-sd-fit-page .dnx-kicker {
            margin-top: 4px !important;
            margin-bottom: 4px;
        }

        .dnx-sd-fit-page .dnx-breadcrumb {
            margin-bottom: 4px;
            font-size: 0.82rem;
        }

        .dnx-sd-fit-page .dnx-sd-hero-title {
            font-size: clamp(1.55rem, 2.05vw + 0.65vh, 2.2rem);
            margin-bottom: 5px;
        }

        .dnx-sd-fit-page .dnx-sd-hero-desc {
            font-size: clamp(0.87rem, 1.08vh + 0.18vw, 0.96rem);
            line-height: 1.42;
        }

        .dnx-sd-fit-page .dnx-sd-hero-globe-wrap {
            height: clamp(215px, 32vh, 275px);
        }

        .dnx-sd-fit-page .dnx-sd-hero-media.is-floating-scene {
            height: clamp(215px, 35vh, 285px);
            padding-top: 4px;
        }

        .dnx-sd-fit-page .dnx-sd-hero-media.is-contact-scene {
            height: clamp(185px, 27vh, 235px);
        }

        .dnx-sd-fit-page .dnx-sd-split-card {
            padding: clamp(13px, 1.8vh, 20px) clamp(20px, 2.4vw, 30px);
        }

        .dnx-sd-fit-page .dnx-sd-split-title {
            font-size: clamp(1.2rem, 1.4vw + 0.5vh, 1.54rem);
            margin-bottom: 5px;
        }

        .dnx-sd-fit-page .dnx-sd-split-desc {
            font-size: clamp(0.86rem, 1vh + 0.16vw, 0.94rem);
            line-height: 1.4;
        }

        .dnx-sd-fit-page .dnx-sd-why-title {
            font-size: clamp(1.08rem, 1.28vw, 1.24rem);
            margin-bottom: 8px;
        }

        .dnx-sd-fit-page .dnx-sd-cta-banner {
            padding: 11px 24px;
        }

        .dnx-sd-fit-page .dnx-sd-cta-title {
            font-size: clamp(1.06rem, 1.3vw + 0.4vh, 1.34rem);
        }

        .dnx-sd-fit-page .dnx-contact-field .dnx-sd-inline-input {
            padding: 7px 11px 7px 36px;
            min-height: 36px;
            font-size: 0.85rem;
        }

        .dnx-sd-fit-page .dnx-contact-field .dnx-sd-inline-textarea {
            min-height: clamp(54px, 8vh, 76px);
            padding-top: 8px;
        }

        .dnx-sd-fit-page .dnx-sd-contact-split-card .dnx-sd-inline-form>.row {
            --bs-gutter-y: 7px;
        }

        .dnx-sd-fit-page .dnx-sd-contact-split-card .dnx-sd-inline-submit {
            min-height: 38px;
            padding: 8px 18px;
            font-size: 0.88rem;
        }

        .dnx-sd-fit-page .dnx-latest-posts-list {
            max-height: clamp(135px, 21vh, 185px);
            gap: 6px;
        }

        .dnx-sd-fit-page .dnx-latest-post-card {
            padding: 7px 11px;
            gap: 2px;
        }

        .dnx-sd-fit-page .dnx-latest-post-excerpt {
            display: none;
        }

        .dnx-sd-fit-page .dnx-latest-cat-pills {
            margin-top: 6px;
        }
    }

    .dnx-sd-fit-page .dnx-sd-contact-split-card .dnx-sd-split-left,
    .dnx-sd-fit-page .dnx-sd-latest-split-card .dnx-sd-split-left {
        flex: 0 0 56%;
        max-width: 56%;
        justify-content: flex-start;
        padding-right: clamp(18px, 2.2vw, 32px);
    }

    .dnx-sd-fit-page .dnx-sd-contact-split-card .dnx-sd-split-right,
    .dnx-sd-fit-page .dnx-sd-latest-split-card .dnx-sd-split-right {
        flex: 0 0 44%;
        max-width: 44%;
        padding-left: clamp(20px, 2.4vw, 34px);
    }

    .dnx-sd-fit-page .dnx-sd-about-split-card .dnx-sd-split-left {
        flex: 0 0 42%;
        max-width: 42%;
        padding-right: clamp(16px, 2.2vw, 30px);
    }

    .dnx-sd-fit-page .dnx-sd-about-split-card .dnx-sd-split-right {
        flex: 0 0 58%;
        max-width: 58%;
        padding-left: clamp(22px, 2.8vw, 38px);
    }

    /* Single-screen fit for Contact, Why DNX, StatusCode, Error & Home desktop */
    .dnx-view-index .dnx-page-container {
        height: 100%;
        max-height: 100%;
        overflow: hidden;
    }

    .dnx-inner-page.dnx-fit-page>.dnx-inner-page-content {
        min-height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: clamp(14px, 2.2vh, 26px) clamp(22px, 3vw, 40px);
    }

    .dnx-fit-page .dnx-breadcrumb {
        margin-bottom: clamp(8px, 1.4vh, 16px);
    }

    .dnx-fit-page .dnx-inner-header {
        margin-bottom: clamp(10px, 1.8vh, 20px);
    }

    .dnx-fit-page .dnx-contact-form-card,
    .dnx-fit-page .dnx-contact-info-card {
        padding: clamp(18px, 2.6vh, 30px) clamp(18px, 2.4vw, 30px);
    }

    .dnx-fit-page .dnx-form-textarea {
        min-height: clamp(84px, 12vh, 125px);
    }

    .dnx-fit-page .dnx-portfolio-overview-card {
        margin-bottom: 0;
        padding: clamp(18px, 2.5vh, 30px);
    }
}

/* Short-laptop desktop viewports (620px - 730px inner height): keep sidebar + all 3-band pages non-scrollable */
@media (min-width: 992px) and (max-height: 730px) {
    .dnx-sidebar-header {
        padding: 8px 14px 4px;
    }

    .dnx-sidebar-logo {
        max-height: 40px;
    }

    .dnx-nav-list {
        gap: 1px;
    }

    .dnx-nav-link {
        padding: 4.5px 14px;
        font-size: 0.84rem;
    }

    .dnx-nav-submenu {
        margin: 4px 0 5px 11px;
        gap: 6px;
    }

    .dnx-nav-sublink {
        padding: 2.5px 7px;
        font-size: 0.75rem;
        line-height: 1.16;
    }

    .dnx-sidebar-footer {
        padding: 4px 0 6px;
    }

    .dnx-inner-page.dnx-sd-fit-page>.dnx-sd-page-content {
        gap: clamp(8px, 1.4vh, 14px);
        padding: clamp(10px, 1.5vh, 16px) clamp(20px, 2.6vw, 34px) clamp(10px, 1.5vh, 16px);
    }

    .dnx-sd-fit-page .dnx-kicker {
        margin-top: 4px !important;
        margin-bottom: 3px;
    }

    .dnx-sd-fit-page .dnx-kicker-text {
        font-size: 0.78rem;
    }

    .dnx-sd-fit-page .dnx-sd-hero-title {
        font-size: clamp(1.62rem, 2.05vw + 0.75vh, 2.24rem);
        margin-bottom: 5px;
    }

    .dnx-sd-fit-page .dnx-sd-hero-desc {
        font-size: clamp(0.87rem, 1.1vh + 0.22vw, 0.96rem);
        line-height: 1.42;
    }

    .dnx-sd-fit-page .dnx-sd-hero-img {
        max-height: clamp(120px, 22vh, 175px);
    }

    .dnx-sd-fit-page .dnx-sd-hero-media.is-floating-scene {
        height: clamp(220px, 42vh, 305px);
        padding-top: 4px;
    }

    .dnx-sd-fit-page .dnx-sd-split-card {
        padding: clamp(13px, 1.9vh, 20px) clamp(20px, 2.6vw, 32px);
    }

    .dnx-sd-fit-page .dnx-sd-split-title {
        font-size: clamp(1.22rem, 1.45vw + 0.56vh, 1.56rem);
        margin-bottom: 5px;
    }

    .dnx-sd-fit-page .dnx-sd-split-desc {
        font-size: clamp(0.87rem, 1.04vh + 0.18vw, 0.95rem);
        line-height: 1.4;
    }

    .dnx-sd-fit-page .dnx-sd-mv-heading {
        font-size: 1.12rem;
    }

    .dnx-sd-fit-page .dnx-sd-why-title {
        font-size: clamp(1.1rem, 1.3vw, 1.26rem);
        margin-bottom: 7px;
    }

    .dnx-sd-fit-page .dnx-sd-why-list {
        gap: 6px;
    }

    .dnx-sd-fit-page .dnx-sd-why-icon {
        width: 28px;
        height: 28px;
        border-radius: 8px;
    }

    .dnx-sd-fit-page .dnx-sd-why-text {
        font-size: clamp(0.84rem, 1.02vh + 0.18vw, 0.92rem);
        line-height: 1.32;
    }

    .dnx-sd-fit-page .dnx-sd-cta-banner {
        padding: 11px 24px;
    }

    .dnx-sd-fit-page .dnx-sd-cta-title {
        font-size: clamp(1.06rem, 1.3vw + 0.45vh, 1.34rem);
    }

    .dnx-sd-fit-page .dnx-sd-cta-sub {
        font-size: 0.86rem;
    }

    .dnx-sd-fit-page .dnx-sd-cta-pill-btn {
        padding: 9px 20px;
        font-size: 0.88rem;
    }

    .dnx-sd-fit-page .dnx-sd-inline-input {
        padding: 6px 10px;
        font-size: 0.82rem;
    }

    .dnx-sd-fit-page .dnx-sd-inline-textarea {
        min-height: 46px;
    }

    .dnx-sd-fit-page .dnx-sd-inline-submit {
        padding: 7px 16px;
        font-size: 0.84rem;
    }
}

/* About Mission/Vision Stack & Contact Page Details inside Split Card */
.dnx-sd-mv-stack {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.8vh, 18px);
}

.dnx-sd-mv-heading {
    font-size: clamp(1.06rem, 1.35vw, 1.28rem);
    font-weight: 800;
    color: var(--dnx-navy-title, #071a43);
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}

.dnx-sd-contact-details {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.6vh, 14px);
}

.dnx-sd-contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dnx-sd-contact-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--dnx-navy-title, #071a43);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dnx-sd-contact-link {
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--dnx-blue-accent, #0b57de);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.dnx-sd-contact-link:hover {
    text-decoration: underline;
}

html[data-theme="green"] .dnx-sd-contact-link {
    color: #047857;
}

/* Inline Contact Form Inside Split Card ("Let's Get Started!" Area) */
.dnx-sd-contact-split-card.is-highlighted {
    animation: dnxContactFocusRing 0.9s ease;
}

@keyframes dnxContactFocusRing {
    0% {
        box-shadow: 0 0 0 0 rgba(11, 87, 222, 0.35), 0 20px 52px rgba(5, 36, 94, 0.09);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(11, 87, 222, 0.22), 0 20px 52px rgba(5, 36, 94, 0.14);
    }

    100% {
        box-shadow: 0 20px 52px rgba(5, 36, 94, 0.09);
    }
}

.dnx-sd-contact-heading {
    margin-bottom: 4px !important;
}

.dnx-sd-inline-form {
    margin-top: 6px;
}

.dnx-sd-inline-input {
    width: 100%;
    padding: clamp(7px, 1vh, 9px) 12px;
    border-radius: 10px;
    border: 1px solid rgba(180, 208, 240, 0.95);
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
    font-size: 0.86rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dnx-sd-inline-input:focus {
    border-color: #0b57de;
    box-shadow: 0 0 0 3px rgba(11, 87, 222, 0.14);
}

html[data-theme="green"] .dnx-sd-inline-input {
    border-color: rgba(167, 243, 208, 0.95);
}

html[data-theme="green"] .dnx-sd-inline-input:focus {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.dnx-sd-inline-textarea {
    resize: vertical;
    min-height: clamp(54px, 7.5vh, 72px);
}

.dnx-sd-inline-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: clamp(8px, 1.1vh, 10px) 18px;
    border-radius: 999px;
    border: 0;
    background: linear-gradient(90deg, #0b57de 0%, #0099ff 100%);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(11, 87, 222, 0.22);
    transition: filter 0.15s ease, transform 0.15s ease;
}

.dnx-sd-inline-submit:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.dnx-sd-inline-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

html[data-theme="green"] .dnx-sd-inline-submit {
    background: linear-gradient(90deg, #059669 0%, #10b981 100%);
    box-shadow: 0 8px 18px rgba(5, 150, 105, 0.22);
}

.dnx-sd-inline-feedback {
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.dnx-sd-inline-feedback.is-success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.dnx-sd-inline-feedback.is-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* Floating Animated Service Hero Visual (Transparent Laptop + Independent Icon Cubes) */
.dnx-sd-page-content {
    position: relative;
}

.dnx-sd-hero-media.is-floating-scene {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    padding: 0;
}

.dnx-sd-hero-media.is-floating-scene .dnx-sd-hero-stage {
    position: relative;
    width: 100%;
    max-width: clamp(325px, 40vw, 470px);
    aspect-ratio: 460 / 340;
    overflow: visible;
}

@media (min-width: 992px) {
    .dnx-sd-page-content .dnx-sd-hero:has(.is-floating-scene)>.row>.col-lg-6:first-child {
        position: relative;
        z-index: 2;
        width: 52%;
        max-width: 52%;
    }

    .dnx-sd-page-content .dnx-sd-hero:has(.is-floating-scene)>.row>.col-lg-6:last-child {
        position: static;
    }

    .dnx-sd-fit-page .dnx-sd-hero-media.is-floating-scene {
        position: absolute;
        top: 0;
        right: 0;
        width: clamp(540px, 55vw, 790px);
        height: clamp(290px, 43vh, 430px);
        justify-content: flex-end;
        align-items: flex-start;
        padding-top: clamp(4px, 1vh, 12px);
        padding-right: clamp(20px, 2.5vw, 42px);
        pointer-events: none;
        z-index: 1;
        overflow: visible;
    }

    .dnx-sd-fit-page .dnx-sd-hero-media.is-floating-scene .dnx-sd-hero-stage {
        width: auto;
        height: 98%;
        max-width: none !important;
        aspect-ratio: 460 / 340;
    }

    .dnx-sd-fit-page .dnx-sd-split-card,
    .dnx-sd-fit-page .dnx-sd-cta-section {
        position: relative;
        z-index: 2;
    }
}

.dnx-hero-ambient-aura {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: 24px;
    background:
        radial-gradient(ellipse 68% 58% at 56% 52%, rgba(14, 165, 233, 0.28), rgba(56, 189, 248, 0.12) 48%, transparent 72%);
}

html[data-theme="green"] .dnx-hero-ambient-aura {
    background:
        radial-gradient(ellipse 68% 58% at 56% 52%, rgba(16, 185, 129, 0.20), rgba(52, 211, 153, 0.08) 48%, transparent 72%);
}

@media (min-width: 992px) {
    .dnx-hero-ambient-aura {
        border-radius: 0;
        background:
            linear-gradient(218deg, rgba(4, 102, 224, 0.72) 0%, rgba(14, 165, 233, 0.44) 36%, rgba(56, 189, 248, 0.16) 62%, transparent 82%),
            radial-gradient(ellipse 68% 58% at 68% 56%, rgba(14, 165, 233, 0.42), rgba(56, 189, 248, 0.18) 50%, transparent 76%),
            radial-gradient(ellipse 48% 24% at 60% 87%, rgba(0, 208, 255, 0.44), transparent 72%);
        -webkit-mask-image:
            linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.55) 22%, #000 46%, #000 100%),
            linear-gradient(to top, transparent 0%, rgba(0, 0, 0, 0.8) 12%, #000 28%, #000 100%);
        -webkit-mask-composite: source-in;
        mask-image:
            linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.55) 22%, #000 46%, #000 100%),
            linear-gradient(to top, transparent 0%, rgba(0, 0, 0, 0.8) 12%, #000 28%, #000 100%);
        mask-composite: intersect;
    }

    html[data-theme="green"] .dnx-hero-ambient-aura {
        background:
            linear-gradient(218deg, rgba(4, 120, 87, 0.44) 0%, rgba(5, 150, 105, 0.24) 34%, rgba(16, 185, 129, 0.08) 58%, transparent 78%),
            radial-gradient(ellipse 62% 52% at 68% 56%, rgba(16, 185, 129, 0.24), transparent 72%),
            radial-gradient(ellipse 44% 22% at 60% 87%, rgba(52, 211, 153, 0.26), transparent 70%);
    }
}

.dnx-hero-orbit-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: visible;
}

.dnx-orbit-track {
    fill: none;
    stroke: rgba(56, 189, 248, 0.24);
    stroke-width: 1.5;
}

.dnx-orbit-pulse {
    fill: none;
    stroke-linecap: round;
}

.dnx-orbit-pulse-1 {
    stroke: rgba(186, 230, 253, 0.92);
    stroke-width: 2.4;
    stroke-dasharray: 120 740;
    animation: dnxOrbitTravel 5.2s linear infinite;
}

.dnx-orbit-pulse-2 {
    stroke: rgba(14, 165, 233, 0.78);
    stroke-width: 2.0;
    stroke-dasharray: 75 785;
    animation: dnxOrbitTravel 5.2s linear infinite -2.6s;
}

.dnx-orbit-base {
    stroke: rgba(125, 211, 252, 0.75);
    stroke-width: 2.0;
    stroke-dasharray: 90 480;
    animation: dnxOrbitTravelReverse 6.4s linear infinite;
}

.dnx-hero-spark {
    fill: #7dd3fc;
    transform-box: fill-box;
    transform-origin: center;
    animation: dnxSparkTwinkle 3.2s ease-in-out infinite;
}

.dnx-spark-2 {
    animation-delay: 0.6s;
}

.dnx-spark-3 {
    animation-delay: 1.3s;
}

.dnx-spark-4 {
    animation-delay: 1.9s;
}

.dnx-spark-5 {
    animation-delay: 0.9s;
}

html[data-theme="green"] .dnx-orbit-track {
    stroke: rgba(16, 185, 129, 0.24);
}

html[data-theme="green"] .dnx-orbit-pulse-1 {
    stroke: rgba(167, 243, 208, 0.92);
}

html[data-theme="green"] .dnx-orbit-pulse-2 {
    stroke: rgba(16, 185, 129, 0.78);
}

html[data-theme="green"] .dnx-orbit-base {
    stroke: rgba(110, 231, 183, 0.76);
}

html[data-theme="green"] .dnx-hero-spark {
    fill: #a7f3d0;
}

.dnx-sd-hero-media.is-floating-scene .dnx-hero-globe-layer {
    position: absolute;
    left: 16%;
    top: 2%;
    width: 78%;
    height: 92%;
    z-index: 3;
    pointer-events: none;
}

.dnx-sd-hero-media.is-floating-scene .dnx-hero-globe-layer .dnx-sd-hero-globe-wrap,
.dnx-sd-fit-page .dnx-sd-hero-media.is-floating-scene .dnx-hero-globe-layer .dnx-sd-hero-globe-wrap {
    width: 100%;
    height: 100% !important;
}

@media (max-width: 991.98px) {
    .dnx-sd-hero-media.is-floating-scene .dnx-sd-hero-stage {
        width: min(100%, 440px);
        aspect-ratio: 460 / 340;
        margin: 0 auto;
    }
}

.dnx-float-tile-img {
    position: absolute;
    z-index: 4;
    height: auto;
    pointer-events: none;
    object-fit: contain;
    filter: drop-shadow(0 8px 14px rgba(14, 165, 233, 0.32));
    will-change: transform;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

html[data-theme="green"] .dnx-float-tile-img {
    filter: drop-shadow(0 8px 14px rgba(5, 150, 105, 0.30));
}

.dnx-tile-code {
    left: 22%;
    top: 4%;
    width: 17.5%;
    animation: dnxTileFloatCode 5.0s ease-in-out infinite;
}

.dnx-tile-gear {
    left: 4%;
    top: 24%;
    width: 16.5%;
    animation: dnxTileFloatGear 5.6s ease-in-out infinite -1.2s;
}

.dnx-tile-cloud {
    left: 8%;
    top: 56%;
    width: 17%;
    animation: dnxTileFloatCloud 5.3s ease-in-out infinite -0.6s;
}

.dnx-tile-db {
    left: 80%;
    top: 44%;
    width: 17.5%;
    animation: dnxTileFloatDb 5.8s ease-in-out infinite -2.0s;
}

.dnx-tile-phone {
    left: 74%;
    top: 7%;
    width: 16%;
    z-index: 5;
    animation: dnxTileFloatPhone 5.4s ease-in-out infinite -0.9s;
}

@keyframes dnxLaptopFloat {

    0%,
    100% {
        transform: translate3d(0, 0px, 0);
    }

    50% {
        transform: translate3d(0, -5px, 0);
    }
}

@keyframes dnxTileFloatCode {

    0%,
    100% {
        transform: translate3d(0, 0px, 0) rotate(0deg);
    }

    50% {
        transform: translate3d(0, -9px, 0) rotate(-1.2deg);
    }
}

@keyframes dnxTileFloatGear {

    0%,
    100% {
        transform: translate3d(0, 2px, 0) rotate(0deg);
    }

    50% {
        transform: translate3d(2px, -7px, 0) rotate(1.5deg);
    }
}

@keyframes dnxTileFloatCloud {

    0%,
    100% {
        transform: translate3d(0, 2px, 0) rotate(0deg);
    }

    50% {
        transform: translate3d(-2px, -8px, 0) rotate(-1.2deg);
    }
}

@keyframes dnxTileFloatDb {

    0%,
    100% {
        transform: translate3d(0, 2px, 0) rotate(0deg);
    }

    50% {
        transform: translate3d(0, -8px, 0) rotate(1.3deg);
    }
}

@keyframes dnxTileFloatPhone {

    0%,
    100% {
        transform: translate3d(0, 3px, 0) rotate(0deg);
    }

    50% {
        transform: translate3d(0, -9px, 0) rotate(1.1deg);
    }
}

@keyframes dnxOrbitTravel {
    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: -860;
    }
}

@keyframes dnxOrbitTravelReverse {
    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: 570;
    }
}

@keyframes dnxSparkTwinkle {

    0%,
    100% {
        opacity: 0.25;
        transform: scale(0.75);
    }

    50% {
        opacity: 1;
        transform: scale(1.25);
    }
}

/* Non-interactive Ambient Animated Globe (Solutions, Industries, About Us, Why DNX) */
.dnx-sd-hero-globe-wrap {
    width: 100%;
    height: clamp(300px, 45vh, 420px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dnx-sd-hero-globe-container {
    width: 100%;
    height: 100%;
    position: relative;
}

#hero-container[data-globe-mode="ambient"] {
    -webkit-mask-image: radial-gradient(ellipse 98% 98% at 50% 48%, #000 80%, transparent 100%);
    mask-image: radial-gradient(ellipse 98% 98% at 50% 48%, #000 80%, transparent 100%);
}

.dnx-sd-hero-globe-wrap,
#hero-container[data-globe-mode="ambient"],
#hero-container[data-globe-mode="ambient"] #sceneCanvas,
#hero-container[data-globe-mode="ambient"] #sceneCanvas:active {
    pointer-events: none !important;
    cursor: default !important;
    user-select: none;
    touch-action: auto !important;
}

@media (min-width: 992px) {
    .dnx-sd-hero:has(.dnx-sd-hero-globe-wrap)>.row>.col-lg-6:first-child {
        flex: 0 0 45%;
        width: 45%;
        max-width: 45%;
    }

    .dnx-sd-hero:has(.dnx-sd-hero-globe-wrap)>.row>.col-lg-6:last-child {
        flex: 0 0 55%;
        width: 55%;
        max-width: 55%;
    }
}

@media (min-width: 992px) and (max-height: 730px) {
    .dnx-sd-hero-globe-wrap {
        height: clamp(215px, 34vh, 270px);
    }
}

@media (max-width: 991.98px) {
    .dnx-sd-hero-globe-wrap {
        height: 325px;
    }
}

/* Frameless Floating 3D Contact Hero Illustration */
.dnx-sd-hero-media.is-contact-scene,
html[data-theme="green"] .dnx-sd-hero-media.is-contact-scene {
    position: relative;
    width: 100%;
    height: auto;
    padding: clamp(20px, 3.4vh, 34px) 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border-radius: 0;
    pointer-events: none;
    overflow: visible;
}

.dnx-contact-stage {
    position: relative;
    width: auto;
    max-width: min(100%, 490px);
    height: clamp(220px, 33vh, 290px);
    aspect-ratio: 620 / 408;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.dnx-sd-hero-media.is-contact-scene .dnx-hero-ambient-aura {
    border-radius: 0;
    background: radial-gradient(ellipse 68% 60% at 50% 56%, rgba(14, 165, 233, 0.25), rgba(56, 189, 248, 0.08) 54%, transparent 76%);
    -webkit-mask-image: none;
    mask-image: none;
    will-change: transform, opacity;
    animation: dnxContactAuraPulse 6s ease-in-out infinite;
}

html[data-theme="green"] .dnx-sd-hero-media.is-contact-scene .dnx-hero-ambient-aura {
    background: radial-gradient(ellipse 68% 60% at 50% 56%, rgba(16, 185, 129, 0.21), rgba(52, 211, 153, 0.07) 54%, transparent 76%);
}

.dnx-contact-orbit-svg {
    z-index: 1;
}

.dnx-sd-hero-media.is-contact-scene .dnx-contact-hero-layer,
.dnx-sd-fit-page .dnx-sd-hero-media.is-contact-scene .dnx-contact-hero-layer {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    border: 0;
    border-radius: 0;
    background: transparent;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 16px 24px rgba(11, 87, 222, 0.22));
    will-change: transform;
    animation: dnxLaptopFloat 5.8s ease-in-out infinite;
}

html[data-theme="green"] .dnx-sd-hero-media.is-contact-scene .dnx-contact-hero-layer {
    filter: drop-shadow(0 16px 24px rgba(4, 120, 87, 0.22));
}

@keyframes dnxContactAuraPulse {

    0%,
    100% {
        transform: scale3d(0.97, 0.97, 1);
        opacity: 0.78;
    }

    50% {
        transform: scale3d(1.04, 1.04, 1);
        opacity: 1;
    }
}

@media (min-width: 992px) {
    .dnx-sd-hero:has(.is-contact-scene)>.row>.col-lg-6:first-child {
        flex: 0 0 47%;
        width: 47%;
        max-width: 47%;
    }

    .dnx-sd-hero:has(.is-contact-scene)>.row>.col-lg-6:last-child {
        flex: 0 0 53%;
        width: 53%;
        max-width: 53%;
    }
}

@media (min-width: 992px) and (max-height: 730px) {

    .dnx-sd-hero-media.is-contact-scene,
    html[data-theme="green"] .dnx-sd-hero-media.is-contact-scene {
        padding-top: 14px;
    }

    .dnx-sd-fit-page .dnx-sd-hero-media.is-contact-scene .dnx-contact-stage {
        height: clamp(160px, 25vh, 200px);
    }
}

@media (max-width: 991.98px) {

    .dnx-sd-hero-media.is-contact-scene,
    html[data-theme="green"] .dnx-sd-hero-media.is-contact-scene {
        padding: 12px 0 6px;
    }

    .dnx-contact-stage {
        width: min(94%, 355px);
        height: auto;
    }
}

/* Improved Contact Split Card Layout, Field Icons & Channel Cards */
.dnx-sd-contact-head {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: clamp(8px, 1.3vh, 12px);
}

.dnx-sd-contact-head-icon {
    margin-top: 2px;
    flex-shrink: 0;
}

.dnx-contact-field {
    position: relative;
}

.dnx-contact-field-label {
    display: block;
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #1f4172;
    margin: 0 0 5px 2px;
}

html[data-theme="green"] .dnx-contact-field-label {
    color: #0d5c45;
}

.dnx-contact-field .dnx-sd-inline-input,
.dnx-sd-fit-page .dnx-contact-field .dnx-sd-inline-input {
    padding: clamp(9px, 1.25vh, 12px) 14px clamp(9px, 1.25vh, 12px) 40px;
    min-height: 44px;
    font-size: 0.92rem;
    border-radius: 12px;
    background: #f8fbff;
}

.dnx-contact-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 38px !important;
    cursor: pointer;
    color: #0b2447;
}

.dnx-contact-select:has(option[value=""]:checked) {
    color: #6b84a3;
}

.dnx-contact-select-chevron {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #5b789b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

html[data-theme="green"] .dnx-contact-select-chevron {
    color: #4f7b6b;
}

.dnx-contact-field .dnx-sd-inline-textarea,
.dnx-sd-fit-page .dnx-contact-field .dnx-sd-inline-textarea {
    min-height: clamp(84px, 11.5vh, 114px);
    padding-top: 11px;
}

.dnx-contact-field-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #5b789b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: color 0.16s ease;
    z-index: 2;
}

.dnx-contact-field.is-textarea .dnx-contact-field-icon {
    top: 14px;
    transform: none;
}

.dnx-sd-contact-split-card .dnx-sd-inline-form {
    margin-top: clamp(8px, 1.2vh, 14px);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dnx-sd-contact-split-card .dnx-sd-inline-form>.row {
    --bs-gutter-y: clamp(9px, 1.3vh, 12px);
}

.dnx-sd-contact-split-card .dnx-sd-inline-submit,
.dnx-sd-fit-page .dnx-sd-contact-split-card .dnx-sd-inline-submit {
    min-height: 46px;
    padding: clamp(10px, 1.45vh, 13px) 22px;
    font-size: 0.95rem;
    margin-top: 2px;
}

.dnx-contact-field:focus-within .dnx-contact-field-icon {
    color: var(--dnx-blue-accent, #0b57de);
}

html[data-theme="green"] .dnx-contact-field-icon {
    color: #4f7b6b;
}

html[data-theme="green"] .dnx-contact-field:focus-within .dnx-contact-field-icon {
    color: #059669;
}

html[data-theme="green"] .dnx-contact-field .dnx-sd-inline-input,
html[data-theme="green"] .dnx-sd-fit-page .dnx-contact-field .dnx-sd-inline-input {
    background: #f6fdf9;
}

.dnx-sd-contact-split-card .dnx-sd-contact-details {
    gap: clamp(7px, 1.1vh, 10px);
}

.dnx-sd-contact-row-card {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: clamp(5px, 0.75vh, 8px) 8px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid transparent;
    text-decoration: none;
    transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.dnx-sd-contact-row-card:hover {
    border-color: rgba(186, 219, 252, 0.7);
    background: rgba(255, 255, 255, 0.52);
    transform: translateX(2px);
}

html[data-theme="green"] .dnx-sd-contact-row-card {
    background: transparent;
    border-color: transparent;
}

html[data-theme="green"] .dnx-sd-contact-row-card:hover {
    border-color: rgba(167, 243, 208, 0.75);
    background: rgba(255, 255, 255, 0.55);
}

.dnx-sd-contact-meta {
    min-width: 0;
    flex: 1;
}

.dnx-sd-contact-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #294566;
    line-height: 1.32;
}

html[data-theme="green"] .dnx-sd-contact-text {
    color: #164836;
}

.dnx-sd-contact-chevron {
    color: #5b89c4;
    font-size: 0.92rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: transform 0.16s ease, color 0.16s ease;
}

.dnx-sd-contact-row-card:hover .dnx-sd-contact-chevron {
    color: var(--dnx-blue-accent, #0b57de);
    transform: translateX(2px);
}

html[data-theme="green"] .dnx-sd-contact-chevron {
    color: #2d8a68;
}

html[data-theme="green"] .dnx-sd-contact-row-card:hover .dnx-sd-contact-chevron {
    color: #059669;
}

.dnx-sd-contact-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: clamp(8px, 1.2vh, 12px);
}

.dnx-sd-contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef6ff;
    border: 1px solid rgba(186, 219, 252, 0.95);
    color: #0b4db8;
    font-size: 0.74rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.16s ease, border-color 0.16s ease;
}

.dnx-sd-contact-badge.is-link:hover {
    background: #e0f0ff;
    border-color: #60a5fa;
}

html[data-theme="green"] .dnx-sd-contact-badge {
    background: #ebfbf3;
    border-color: rgba(167, 243, 208, 0.95);
    color: #047857;
}

html[data-theme="green"] .dnx-sd-contact-badge.is-link:hover {
    background: #d7f7e7;
    border-color: #34d399;
}

@media (min-width: 992px) and (max-height: 730px) {
    .dnx-sd-fit-page .dnx-sd-contact-head {
        margin-bottom: 6px;
        gap: 9px;
    }

    .dnx-sd-fit-page .dnx-contact-field-label {
        font-size: 0.71rem;
        margin-bottom: 3px;
    }

    .dnx-sd-fit-page .dnx-contact-field .dnx-sd-inline-input {
        padding: 5px 10px 5px 33px;
        min-height: 30px;
        font-size: 0.81rem;
    }

    .dnx-sd-fit-page .dnx-contact-field .dnx-sd-inline-textarea {
        min-height: clamp(42px, 6.2vh, 56px);
        padding-top: 6px;
    }

    .dnx-sd-fit-page .dnx-sd-contact-split-card .dnx-sd-inline-form>.row {
        --bs-gutter-y: 5px;
    }

    .dnx-sd-fit-page .dnx-contact-field-icon {
        left: 10px;
    }

    .dnx-sd-fit-page .dnx-sd-contact-split-card .dnx-sd-inline-submit {
        min-height: 38px;
        padding: 8px 18px;
        font-size: 0.87rem;
    }

    .dnx-sd-fit-page .dnx-sd-contact-row-card {
        padding: 6px 10px;
        gap: 9px;
    }

    .dnx-sd-fit-page .dnx-sd-contact-text {
        font-size: 0.78rem;
        line-height: 1.25;
    }

    .dnx-sd-fit-page .dnx-sd-contact-link {
        font-size: 0.88rem;
    }

    .dnx-sd-fit-page .dnx-sd-contact-badges {
        margin-top: 7px;
        gap: 5px;
    }

    .dnx-sd-fit-page .dnx-sd-contact-badge {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}

/* Clean Wave Background for Services Area (Blue & Green Themes) */
body.dnx-section-services,
body.dnx-section-services .dnx-main-content {
    background: #ffffff url('/images/services-bg.webp') center / cover fixed no-repeat;
}

html[data-theme="green"] body.dnx-section-services,
html[data-theme="green"] body.dnx-section-services .dnx-main-content {
    background: #ffffff url('/green/images/services-bg.webp') center / cover fixed no-repeat;
}

@media (max-width: 991.98px) {

    body.dnx-section-services,
    body.dnx-section-services .dnx-main-content,
    html[data-theme="green"] body.dnx-section-services,
    html[data-theme="green"] body.dnx-section-services .dnx-main-content {
        background-attachment: scroll;
    }
}


/* Latest Page (Posts & Explore Page Links) */
.dnx-latest-posts-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    max-height: clamp(210px, 31vh, 300px);
    overflow-y: auto;
    padding-right: 4px;
}

.dnx-latest-post-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 6px;
    border: 0;
    border-bottom: 1px solid rgba(186, 219, 252, 0.55);
    border-radius: 8px;
    background: transparent;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.16s ease, background-color 0.16s ease;
}

.dnx-latest-post-card:last-child {
    border-bottom: 0;
}

.dnx-latest-post-card:hover {
    transform: translateX(2px);
    background: rgba(255, 255, 255, 0.48);
}

html[data-theme="green"] .dnx-latest-post-card {
    background: transparent;
    border-bottom-color: rgba(167, 243, 208, 0.6);
}

html[data-theme="green"] .dnx-latest-post-card:hover {
    background: rgba(255, 255, 255, 0.52);
}

.dnx-latest-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.dnx-latest-post-cat {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(11, 87, 222, 0.1);
    color: #0b57de;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

html[data-theme="green"] .dnx-latest-post-cat {
    background: rgba(5, 150, 105, 0.11);
    color: #047857;
}

.dnx-latest-post-date {
    font-size: 0.76rem;
    font-weight: 600;
    color: #5b789b;
}

html[data-theme="green"] .dnx-latest-post-date {
    color: #3f7562;
}

.dnx-latest-post-title {
    margin: 0;
    font-size: 1.03rem;
    font-weight: 800;
    color: #071a43;
    line-height: 1.3;
}

html[data-theme="green"] .dnx-latest-post-title {
    color: #063727;
}

.dnx-latest-post-excerpt {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.42;
    color: #355073;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

html[data-theme="green"] .dnx-latest-post-excerpt {
    color: #215743;
}

.dnx-latest-post-more {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0b57de;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

html[data-theme="green"] .dnx-latest-post-more {
    color: #059669;
}

.dnx-latest-cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.dnx-latest-cat-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(238, 246, 255, 0.9);
    border: 1px solid rgba(186, 219, 252, 0.95);
    color: #0b4db8;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.16s ease, border-color 0.16s ease;
}

.dnx-latest-cat-pill:hover {
    background: #ffffff;
    border-color: #0b57de;
}

html[data-theme="green"] .dnx-latest-cat-pill {
    background: rgba(235, 251, 243, 0.9);
    border-color: rgba(167, 243, 208, 0.95);
    color: #047857;
}

html[data-theme="green"] .dnx-latest-cat-pill:hover {
    background: #ffffff;
    border-color: #059669;
}

.dnx-page-link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 14px;
}

@media (max-width: 575.98px) {
    .dnx-page-link-grid {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

.dnx-page-link-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 7px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid transparent;
    text-decoration: none;
    transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.dnx-page-link-card:hover {
    transform: translateX(2px);
    background: rgba(255, 255, 255, 0.52);
    border-color: rgba(186, 219, 252, 0.65);
}

html[data-theme="green"] .dnx-page-link-card {
    background: transparent;
    border-color: transparent;
}

html[data-theme="green"] .dnx-page-link-card:hover {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(167, 243, 208, 0.7);
}

.dnx-page-link-text {
    min-width: 0;
    flex: 1;
}

.dnx-page-link-title {
    font-size: 0.91rem;
    font-weight: 800;
    color: #071a43;
    line-height: 1.22;
}

html[data-theme="green"] .dnx-page-link-title {
    color: #063727;
}

.dnx-page-link-desc {
    font-size: 0.74rem;
    color: #496588;
    line-height: 1.25;
    margin-top: 1px;
}

html[data-theme="green"] .dnx-page-link-desc {
    color: #29634e;
}

.dnx-page-link-arrow {
    color: #5b89c4;
    font-weight: 700;
    font-size: 0.92rem;
    transition: transform 0.16s ease, color 0.16s ease;
}

.dnx-page-link-card:hover .dnx-page-link-arrow {
    color: #0b57de;
    transform: translateX(2px);
}

html[data-theme="green"] .dnx-page-link-arrow {
    color: #2d8a68;
}

html[data-theme="green"] .dnx-page-link-card:hover .dnx-page-link-arrow {
    color: #059669;
}


/* Sidebar Footer Legal Links */
.dnx-sidebar-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 12px 6px;
    text-align: center;
}

.dnx-sidebar-legal-link {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(203, 213, 225, 0.84);
    text-decoration: none;
    line-height: 1.25;
    transition: color 0.16s ease;
}

.dnx-sidebar-legal-link:hover,
.dnx-sidebar-legal-link.is-active {
    color: #38bdf8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

html[data-theme="green"] .dnx-sidebar-legal-link:hover,
html[data-theme="green"] .dnx-sidebar-legal-link.is-active {
    color: #34d399;
}

.dnx-sidebar-legal-sep {
    font-size: 0.7rem;
    color: rgba(148, 163, 184, 0.55);
}

@media (min-width: 992px) and (max-height: 730px) {
    .dnx-sidebar-legal {
        padding-top: 3px;
        padding-bottom: 4px;
        gap: 5px;
    }

    .dnx-sidebar-legal-link {
        font-size: 0.67rem;
    }

    .dnx-sidebar-divider {
        margin-bottom: 5px;
    }

    .dnx-sidebar-copyright {
        font-size: 0.67rem;
    }

    .dnx-sd-fit-page .dnx-sd-split-right .dnx-page-link-grid {
        gap: 3px 12px;
    }

    .dnx-sd-fit-page .dnx-sd-split-right .dnx-page-link-card {
        padding: 3px 5px;
    }
}

.dnx-sd-fit-page .dnx-sd-split-right .dnx-page-link-card {
    padding: 5px 6px;
    gap: 9px;
}

/* Responsive Legal Pages (Privacy Policy & Terms and Conditions) */
.dnx-legal-page .dnx-legal-top-shell,
.dnx-legal-page .dnx-legal-container {
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.dnx-legal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 14px;
}

.dnx-legal-switcher {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(186, 219, 252, 0.9);
    box-shadow: 0 6px 18px rgba(7, 26, 67, 0.05);
}

html[data-theme="green"] .dnx-legal-switcher {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(167, 243, 208, 0.92);
    box-shadow: 0 6px 18px rgba(4, 70, 48, 0.05);
}

.dnx-legal-switch-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #294566;
    text-decoration: none;
    transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.dnx-legal-switch-pill:hover {
    color: #0b57de;
}

.dnx-legal-switch-pill.is-active {
    background: linear-gradient(135deg, #0b57de 0%, #0ea5e9 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(11, 87, 222, 0.24);
}

html[data-theme="green"] .dnx-legal-switch-pill {
    color: #164836;
}

html[data-theme="green"] .dnx-legal-switch-pill:hover {
    color: #059669;
}

html[data-theme="green"] .dnx-legal-switch-pill.is-active {
    background: linear-gradient(135deg, #047857 0%, #10b981 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.24);
}

.dnx-legal-header {
    text-align: left;
    margin-bottom: clamp(18px, 2.8vh, 28px);
}

.dnx-legal-header .dnx-kicker {
    justify-content: flex-start;
}

.dnx-legal-header .dnx-inner-subtitle {
    margin-left: 0;
    margin-right: 0;
}

.dnx-legal-page .dnx-legal-container {
    margin-bottom: clamp(20px, 3vh, 36px);
}

.dnx-legal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(16px, 2.4vw, 26px);
    align-items: start;
}

@media (min-width: 1100px) {
    .dnx-legal-layout.has-toc {
        grid-template-columns: 270px minmax(0, 1fr);
    }
}

.dnx-legal-toc {
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(196, 222, 250, 0.92);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 12px 30px rgba(5, 36, 94, 0.06);
}

@media (min-width: 1100px) {
    .dnx-legal-toc {
        position: sticky;
        top: 18px;
    }
}

html[data-theme="green"] .dnx-legal-toc {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(167, 243, 208, 0.92);
    box-shadow: 0 12px 30px rgba(4, 70, 48, 0.06);
}

.dnx-legal-toc-title {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #496588;
    margin-bottom: 10px;
}

html[data-theme="green"] .dnx-legal-toc-title {
    color: #2c6e56;
}

.dnx-legal-toc-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

@media (max-width: 1099.98px) {
    .dnx-legal-toc-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }
}

.dnx-legal-toc-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 7px;
    border-radius: 8px;
    font-size: 0.81rem;
    font-weight: 600;
    color: #1f3d64;
    text-decoration: none;
    line-height: 1.3;
    background: transparent;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dnx-legal-toc-link:hover {
    background: rgba(244, 249, 255, 0.85);
    border-color: rgba(56, 189, 248, 0.45);
    color: #0b57de;
}

html[data-theme="green"] .dnx-legal-toc-link {
    color: #164836;
    background: transparent;
}

html[data-theme="green"] .dnx-legal-toc-link:hover {
    background: rgba(242, 253, 248, 0.88);
    border-color: rgba(16, 185, 129, 0.45);
    color: #059669;
}

.dnx-legal-toc-num {
    font-size: 0.7rem;
    font-weight: 800;
    color: #0b57de;
    background: rgba(11, 87, 222, 0.1);
    padding: 2px 6px;
    border-radius: 6px;
    flex-shrink: 0;
}

html[data-theme="green"] .dnx-legal-toc-num {
    color: #047857;
    background: rgba(5, 150, 105, 0.12);
}

.dnx-legal-toc-footer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(196, 222, 250, 0.75);
}

html[data-theme="green"] .dnx-legal-toc-footer {
    border-top-color: rgba(167, 243, 208, 0.75);
}

.dnx-legal-toc-contact {
    font-size: 0.79rem;
    font-weight: 700;
    color: #0b57de;
    text-decoration: none;
}

.dnx-legal-toc-contact:hover {
    text-decoration: underline;
}

html[data-theme="green"] .dnx-legal-toc-contact {
    color: #059669;
}

.dnx-legal-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(196, 222, 250, 0.92);
    border-radius: clamp(16px, 2.2vw, 22px);
    padding: clamp(18px, 3.2vw, 40px);
    box-shadow: 0 18px 44px rgba(5, 36, 94, 0.08);
    margin-bottom: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

html[data-theme="green"] .dnx-legal-card {
    border-color: rgba(167, 243, 208, 0.92);
    box-shadow: 0 18px 44px rgba(4, 70, 48, 0.08);
}

.dnx-legal-section {
    scroll-margin-top: 24px;
}

@media (max-width: 991.98px) {
    .dnx-legal-section {
        scroll-margin-top: 84px;
    }
}

.dnx-legal-sec-header {
    flex-wrap: wrap;
    gap: 8px 12px;
}

.dnx-legal-parties {
    font-size: clamp(0.88rem, 1.4vw, 1.02rem);
}

.dnx-legal-emphasis {
    font-weight: 600;
    color: #0b57de;
}

html[data-theme="green"] .dnx-legal-emphasis {
    color: #047857;
}

html[data-theme="green"] .dnx-legal-contact-card {
    background: linear-gradient(135deg, #f5fdf9 0%, #eafaf2 100%);
    border-color: rgba(167, 243, 208, 0.9);
}

@media (max-width: 575.98px) {
    .dnx-legal-switcher {
        width: 100%;
    }

    .dnx-legal-switch-pill {
        flex: 1 1 auto;
        justify-content: center;
        font-size: 0.76rem;
        padding: 6px 10px;
    }

    .dnx-legal-sec-title {
        font-size: 1.08rem;
    }

    .dnx-legal-contact-card {
        padding: 14px 16px;
    }
}

/* ============================================================
   CONTACT PAGE: Two Separate Frosted Containers + Compact 2x2 Inputs
   ============================================================ */
.dnx-contact-split-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: clamp(16px, 2.2vw, 26px);
    align-items: stretch;
    margin-bottom: clamp(14px, 2.2vh, 22px);
}

.dnx-contact-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    border-radius: clamp(16px, 2vw, 22px);
    padding: clamp(18px, 2.4vw, 30px) clamp(18px, 2.6vw, 32px);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.72) 0%, rgba(239, 247, 255, 0.56) 100%);
    border: 1px solid rgba(196, 223, 252, 0.92);
    box-shadow: 0 14px 36px rgba(5, 36, 94, 0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dnx-contact-panel.is-highlighted {
    animation: dnxContactFocusRing 0.9s ease;
}

html[data-theme="green"] .dnx-contact-panel {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.72) 0%, rgba(236, 253, 245, 0.56) 100%);
    border-color: rgba(167, 243, 208, 0.92);
    box-shadow: 0 14px 36px rgba(4, 70, 48, 0.07);
}

.dnx-contact-form-panel .dnx-sd-inline-form {
    margin-top: 0;
    max-width: 100%;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dnx-contact-form-panel .dnx-sd-inline-form>.row {
    --bs-gutter-x: 10px;
    --bs-gutter-y: clamp(8px, 1.2vh, 12px);
}

.dnx-contact-form-panel .dnx-contact-field .dnx-sd-inline-input,
.dnx-sd-fit-page .dnx-contact-form-panel .dnx-contact-field .dnx-sd-inline-input {
    min-height: 41px;
    padding: 8px 12px 8px 37px;
    font-size: 0.89rem;
    border-radius: 11px;
}

.dnx-contact-form-panel .dnx-contact-field .dnx-sd-inline-textarea,
.dnx-sd-fit-page .dnx-contact-form-panel .dnx-contact-field .dnx-sd-inline-textarea {
    min-height: clamp(72px, 10vh, 98px);
    padding-top: 10px;
}

.dnx-contact-form-panel .dnx-sd-inline-submit {
    margin-top: 4px;
    align-self: flex-start;
    width: auto;
    min-width: 196px;
    max-width: 100%;
}

.dnx-contact-info-panel .dnx-sd-contact-details {
    margin-top: clamp(8px, 1.2vh, 14px);
    gap: clamp(8px, 1.2vh, 12px);
}

.dnx-contact-info-panel .dnx-sd-contact-badges {
    margin-top: auto;
    padding-top: clamp(14px, 2vh, 20px);
}

@media (max-width: 991.98px) {
    .dnx-contact-split-grid {
        grid-template-columns: 1fr;
    }

    .dnx-contact-form-panel .dnx-sd-inline-form {
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .dnx-contact-panel {
        padding: 16px;
        border-radius: 16px;
    }

    .dnx-contact-form-panel .dnx-sd-inline-submit {
        width: 100%;
    }
}

@media (min-width: 992px) and (max-height: 760px) {
    .dnx-sd-fit-page .dnx-contact-panel {
        padding: clamp(14px, 1.8vh, 20px) clamp(18px, 2.2vw, 24px);
    }

    .dnx-sd-fit-page .dnx-contact-form-panel .dnx-sd-inline-form {
        margin-top: 8px;
    }

    .dnx-sd-fit-page .dnx-contact-form-panel .dnx-contact-field .dnx-sd-inline-input {
        min-height: 35px;
        padding: 6px 10px 6px 34px;
        font-size: 0.84rem;
    }

    .dnx-sd-fit-page .dnx-contact-form-panel .dnx-contact-field .dnx-sd-inline-textarea {
        min-height: clamp(50px, 7vh, 68px);
        padding-top: 7px;
    }

    .dnx-sd-fit-page .dnx-contact-form-panel .dnx-sd-inline-submit {
        min-height: 38px;
        padding: 8px 18px;
        font-size: 0.87rem;
    }
}

/* ============================================================
   POSTS & ARTICLES: Container-Light Editorial Redesign
   ============================================================ */
.dnx-posts-content {
    max-width: 1120px;
    margin: 0 auto;
}

.dnx-posts-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 28px;
    padding-bottom: 20px;
    margin-bottom: 26px;
    border-bottom: 1px solid rgba(11, 87, 222, 0.14);
}

html[data-theme="green"] .dnx-posts-header {
    border-bottom-color: rgba(5, 150, 105, 0.16);
}

.dnx-posts-header-copy {
    flex: 1 1 380px;
    min-width: 0;
}

.dnx-posts-search-inline {
    flex: 0 1 380px;
    width: 100%;
    min-width: 0;
}

.dnx-posts-search-inline .dnx-search-box {
    gap: 8px;
}

.dnx-posts-search-inline .dnx-search-input {
    min-height: 40px;
    font-size: 0.88rem;
}

.dnx-posts-search-inline .dnx-search-submit {
    padding: 8px 16px;
    font-size: 0.86rem;
    flex-shrink: 0;
}

.dnx-posts-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: clamp(24px, 3.2vw, 44px);
    align-items: start;
}

.dnx-posts-feed {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dnx-post-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px 6px;
    border-bottom: 1px solid rgba(11, 87, 222, 0.12);
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.dnx-post-row:first-child {
    padding-top: 4px;
}

.dnx-post-row:last-child {
    border-bottom: 0;
}

.dnx-post-row.has-thumb {
    grid-template-columns: 200px minmax(0, 1fr);
    align-items: center;
}

.dnx-post-row:hover {
    border-bottom-color: rgba(0, 150, 255, 0.34);
}

html[data-theme="green"] .dnx-post-row {
    border-bottom-color: rgba(5, 150, 105, 0.14);
}

html[data-theme="green"] .dnx-post-row:hover {
    border-bottom-color: rgba(16, 185, 129, 0.38);
}

.dnx-post-thumb-link {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: rgba(7, 26, 67, 0.08);
    border: 1px solid rgba(196, 223, 252, 0.72);
}

html[data-theme="green"] .dnx-post-thumb-link {
    border-color: rgba(167, 243, 208, 0.72);
}

.dnx-post-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.dnx-post-row:hover .dnx-post-thumb {
    transform: scale(1.03);
}

.dnx-post-row-body {
    min-width: 0;
}

.dnx-post-row-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    font-size: 0.82rem;
    color: var(--dnx-text-body, #475e7f);
    margin-bottom: 8px;
}

.dnx-post-row-title {
    font-size: clamp(1.18rem, 1.6vw, 1.48rem);
    font-weight: 800;
    line-height: 1.26;
    color: var(--dnx-navy-title, #071a43);
    margin-bottom: 8px;
}

.dnx-post-row-title a {
    color: inherit;
    text-decoration: none;
}

.dnx-post-row-title a:hover {
    color: var(--dnx-blue-accent, #0b57de);
}

html[data-theme="green"] .dnx-post-row-title a:hover {
    color: #059669;
}

.dnx-post-row-excerpt {
    font-size: 0.92rem;
    line-height: 1.56;
    color: var(--dnx-text-body, #475e7f);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dnx-post-read-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--dnx-blue-accent, #0b57de);
    text-decoration: none;
    transition: gap 0.16s ease;
}

.dnx-post-row:hover .dnx-post-read-link {
    gap: 9px;
}

html[data-theme="green"] .dnx-post-read-link {
    color: #047857;
}

.dnx-posts-aside {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
    padding-left: 24px;
    border-left: 1px solid rgba(11, 87, 222, 0.12);
}

html[data-theme="green"] .dnx-posts-aside {
    border-left-color: rgba(5, 150, 105, 0.15);
}

.dnx-posts-aside-heading {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dnx-blue-accent, #0b57de);
    margin-bottom: 12px;
}

html[data-theme="green"] .dnx-posts-aside-heading {
    color: #059669;
}

.dnx-posts-cat-list,
.dnx-posts-recent-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.dnx-posts-cat-list {
    gap: 6px;
}

.dnx-posts-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 11px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dnx-navy-title, #071a43);
    text-decoration: none;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.dnx-posts-cat-link:hover,
.dnx-posts-cat-link.is-active {
    background: rgba(255, 255, 255, 0.62);
    color: var(--dnx-blue-accent, #0b57de);
}

html[data-theme="green"] .dnx-posts-cat-link:hover,
html[data-theme="green"] .dnx-posts-cat-link.is-active {
    background: rgba(255, 255, 255, 0.62);
    color: #047857;
}

.dnx-posts-cat-count {
    font-size: 0.74rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(11, 87, 222, 0.08);
    color: var(--dnx-blue-accent, #0b57de);
}

html[data-theme="green"] .dnx-posts-cat-count {
    background: rgba(5, 150, 105, 0.10);
    color: #047857;
}

.dnx-posts-recent-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(11, 87, 222, 0.10);
}

.dnx-posts-recent-item:first-child {
    padding-top: 2px;
}

.dnx-posts-recent-item:last-child {
    border-bottom: 0;
}

.dnx-posts-recent-item a {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--dnx-navy-title, #071a43);
    text-decoration: none;
}

.dnx-posts-recent-item a:hover {
    color: var(--dnx-blue-accent, #0b57de);
}

html[data-theme="green"] .dnx-posts-recent-item {
    border-bottom-color: rgba(5, 150, 105, 0.12);
}

html[data-theme="green"] .dnx-posts-recent-item a:hover {
    color: #059669;
}

.dnx-posts-recent-item time {
    font-size: 0.75rem;
    color: var(--dnx-text-body, #627d98);
}

@media (max-width: 991.98px) {
    .dnx-posts-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .dnx-posts-aside {
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid rgba(11, 87, 222, 0.14);
        padding-top: 22px;
    }

    html[data-theme="green"] .dnx-posts-aside {
        border-top-color: rgba(5, 150, 105, 0.16);
    }
}

@media (max-width: 575.98px) {
    .dnx-post-row.has-thumb {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .dnx-posts-search-inline {
        flex: 1 1 100%;
    }
}

/* Article Detail Container-Light Redesign */
.dnx-article-shell {
    max-width: 960px;
    margin: 0 auto;
}

.dnx-article-head {
    max-width: 780px;
    margin: 0 auto 24px;
    text-align: center;
}

.dnx-article-head .dnx-kicker {
    align-items: center;
}

.dnx-article-page .dnx-article-head .dnx-kicker-bar {
    margin-left: auto !important;
    margin-right: auto !important;
}

.dnx-article-headline {
    margin-top: 8px;
    margin-bottom: 12px;
}

.dnx-article-sub {
    max-width: 660px;
}

.dnx-article-hero-frame {
    margin: 0 auto 26px;
    border-radius: 18px;
    overflow: hidden;
    max-height: 410px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 14px 36px rgba(7, 26, 67, 0.09);
}

.dnx-article-stats-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px 20px;
    padding: 16px 6px;
    margin: 0 auto 26px;
    max-width: 820px;
    border-top: 1px solid rgba(11, 87, 222, 0.14);
    border-bottom: 1px solid rgba(11, 87, 222, 0.14);
    text-align: center;
}

html[data-theme="green"] .dnx-article-stats-strip {
    border-color: rgba(5, 150, 105, 0.16);
}

.dnx-article-stat-val {
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 800;
    color: var(--dnx-blue-accent, #0b57de);
    line-height: 1.1;
}

html[data-theme="green"] .dnx-article-stat-val {
    color: #059669;
}

.dnx-article-stat-lbl {
    font-size: 0.82rem;
    color: var(--dnx-text-body, #475e7f);
    margin-top: 4px;
}

.dnx-article-toc-strip {
    max-width: 820px;
    margin: 0 auto 28px;
    padding: 8px 0 8px 18px;
    border-left: 3px solid var(--dnx-primary-blue, #0096ff);
}

html[data-theme="green"] .dnx-article-toc-strip {
    border-left-color: #10b981;
}

.dnx-article-page .dnx-article-body {
    max-width: 820px;
    min-width: 0;
}

.dnx-article-page .dnx-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.dnx-article-page .dnx-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.dnx-article-page .dnx-card {
    background: rgba(255, 255, 255, 0.36);
    border: 1px solid rgba(186, 219, 252, 0.50);
    box-shadow: none;
    border-radius: 14px;
    padding: 16px 18px;
    min-width: 0;
    overflow-wrap: anywhere;
}

html[data-theme="green"] .dnx-article-page .dnx-card {
    border-color: rgba(167, 243, 208, 0.55);
}

@media (max-width: 767.98px) {
    .dnx-article-page .dnx-grid-2,
    .dnx-article-page .dnx-grid-3 {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
}

.dnx-article-page .dnx-fieldnote-card,
.dnx-article-page .dnx-art-card,
.dnx-article-page .dnx-art-takeaways,
.dnx-article-page .dnx-art-stat {
    background: rgba(255, 255, 255, 0.42);
    border-color: rgba(186, 219, 252, 0.55);
    box-shadow: none;
}

.dnx-article-page .dnx-fieldnote-card {
    border: 0;
    border-left: 3px solid rgba(0, 150, 255, 0.55);
    border-radius: 0 12px 12px 0;
    padding: 14px 18px;
}

html[data-theme="green"] .dnx-article-page .dnx-fieldnote-card {
    border-left-color: rgba(16, 185, 129, 0.60);
}

html[data-theme="green"] .dnx-article-page .dnx-art-card,
html[data-theme="green"] .dnx-article-page .dnx-art-takeaways,
html[data-theme="green"] .dnx-article-page .dnx-art-stat {
    border-color: rgba(167, 243, 208, 0.58);
}

.dnx-related-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.dnx-related-item {
    display: flex;
    flex-direction: column;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(186, 219, 252, 0.55);
    text-decoration: none;
    color: inherit;
    transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.dnx-related-item:hover {
    background: rgba(255, 255, 255, 0.72);
    border-color: var(--dnx-primary-blue, #0096ff);
    transform: translateY(-2px);
}

html[data-theme="green"] .dnx-related-item {
    border-color: rgba(167, 243, 208, 0.58);
}

html[data-theme="green"] .dnx-related-item:hover {
    border-color: #10b981;
}

@media (max-width: 991.98px) {
    .dnx-related-list {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   INDUSTRIES 50/50 WHY CHOOSE US SPLIT + EXPANDED LATEST POSTS
   ============================================================ */
@media (min-width: 992px) {
    .dnx-sd-fit-page .dnx-sd-industries-split-card .dnx-sd-split-left {
        flex: 0 0 50%;
        max-width: 50%;
        padding-right: clamp(20px, 2.8vw, 36px);
    }

    .dnx-sd-fit-page .dnx-sd-industries-split-card .dnx-sd-split-right {
        flex: 0 0 50%;
        max-width: 50%;
        padding-left: clamp(24px, 3vw, 42px);
    }
}

.dnx-latest-expanded-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px 20px;
    margin-bottom: clamp(12px, 1.8vh, 18px);
}

.dnx-latest-expanded-copy {
    min-width: 0;
    flex: 1 1 340px;
}

.dnx-latest-posts-expanded {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 1.6vw, 18px);
    max-height: clamp(220px, 32vh, 320px);
    overflow-y: auto;
    padding-right: 4px;
}

.dnx-latest-posts-expanded.is-single {
    grid-template-columns: minmax(0, 1fr);
}

.dnx-latest-post-expanded-item {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 14px;
    padding: clamp(11px, 1.5vh, 15px) clamp(13px, 1.6vw, 18px);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(196, 223, 252, 0.88);
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    min-width: 0;
}

.dnx-latest-post-expanded-item:hover {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(0, 150, 255, 0.55);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(5, 36, 94, 0.07);
}

html[data-theme="green"] .dnx-latest-post-expanded-item {
    background: rgba(255, 255, 255, 0.56);
    border-color: rgba(167, 243, 208, 0.88);
}

html[data-theme="green"] .dnx-latest-post-expanded-item:hover {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(16, 185, 129, 0.58);
    box-shadow: 0 10px 24px rgba(4, 70, 48, 0.07);
}

.dnx-latest-post-thumb-wrap {
    flex: 0 0 clamp(96px, 9.5vw, 136px);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(7, 26, 67, 0.08);
    align-self: center;
    aspect-ratio: 16 / 11;
}

.dnx-latest-post-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.dnx-latest-post-expanded-item:hover .dnx-latest-post-thumb {
    transform: scale(1.04);
}

.dnx-latest-post-item-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.dnx-latest-post-expanded-item .dnx-latest-post-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .dnx-latest-posts-expanded {
        grid-template-columns: minmax(0, 1fr);
        max-height: none;
        overflow-y: visible;
    }
}

@media (max-width: 575.98px) {
    .dnx-latest-post-expanded-item {
        flex-direction: column;
        gap: 10px;
    }

    .dnx-latest-post-thumb-wrap {
        flex: none;
        width: 100%;
        aspect-ratio: 16 / 9;
    }
}

@media (min-width: 992px) and (max-height: 760px) {
    .dnx-sd-fit-page .dnx-latest-posts-expanded {
        max-height: clamp(135px, 21vh, 195px);
        gap: 10px;
    }

    .dnx-sd-fit-page .dnx-latest-post-expanded-item {
        padding: 8px 12px;
        gap: 10px;
    }

    .dnx-sd-fit-page .dnx-latest-post-thumb-wrap {
        flex: 0 0 88px;
    }
}

/* Staff Draft / Scheduled Preview Banner */
.dnx-draft-preview-banner {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #92400e;
    font-size: 0.84rem;
    line-height: 1.35;
}

html[data-theme="green"] .dnx-draft-preview-banner {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(5, 150, 105, 0.42);
    color: #065f46;
}

/* Reduced Motion Accessibility (preserve globe, orbit & floating icon hero animations) */
@media (prefers-reduced-motion: reduce) {
    .dnx-scroll-up,
    .dnx-scroll-left,
    .dnx-scroll-right,
    .dnx-scroll-fade,
    .dnx-reading-progress-bar {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}
