/* ============================================
   Converged Enterprise Network Architecture
   Enhanced Title & Design Styling
   ============================================ */

:root {
    --converged-accent: #0f766e;
    --converged-accent-soft: rgba(15, 118, 110, 0.1);
    --converged-text: #1f2937;
    --converged-muted: #4b5563;
}

/* Navigation Wrapper - Modern Pill Style */
.converged-nav-wrapper {
    max-width: 1160px;
    margin: 0 auto 2rem;
    background: #f8fafc;
    border-radius: 60px;
    padding: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.02);
    overflow-x: auto;
    scrollbar-width: thin;
}

.converged-nav {
    display: flex;
    gap: 1rem;
    min-width: max-content;
    justify-content: center;
    align-items: center;
}

.converged-nav-link {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.6rem 1.4rem;
    border-radius: 40px;
    transition: all 0.25s ease;
    color: #4b5563;
    letter-spacing: -0.01em;
    white-space: nowrap;
    background: transparent;
}

.converged-nav-link:hover {
    color: var(--converged-accent);
    background: var(--converged-accent-soft);
}

.converged-nav-link-active {
    color: var(--converged-accent);
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-weight: 600;
}

/* Title Section - Improved Font Size & Design */
.converged-title-section {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

.converged-title-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
    padding: 0.3rem 1rem;
    border-radius: 40px;
    color: var(--converged-accent);
    margin-bottom: 1rem;
    font-family: inherit;
    border: 1px solid rgba(15, 118, 110, 0.2);
}

/* Main Title - Optimized Size (Not Too Huge) */
.converged-main-title {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1e293b 0%, #2d3a4a 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: #0f172a;
    margin-bottom: 1rem;
    line-height: 1.2;
    word-break: break-word;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .converged-main-title {
        color: transparent;
    }
}

/* Title Description Text */
.converged-title-description {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--converged-muted);
    max-width: 900px;
    margin: 0 auto;
    font-weight: 400;
}

/* Responsive adjustments for title */
@media (max-width: 768px) {
    .converged-main-title {
        font-size: clamp(1.9rem, 7vw, 2.8rem);
    }
    
    .converged-title-description {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
    
    .converged-nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .converged-main-title {
        font-size: 1.65rem;
    }
    
    .converged-nav-wrapper {
        border-radius: 40px;
    }
    
    .converged-nav-link {
        padding: 0.4rem 0.9rem;
        font-size: 0.8rem;
    }
}

/* Section Card Styling - Optional Enhancement */
.offering-section {
    transition: all 0.2s ease;
}

.offering-section-title {
    font-weight: 600;
    letter-spacing: -0.01em;
}

.offering-feature-title {
    font-weight: 600;
    color: #1f2937;
    margin-top: 0;
}

.offering-feature-desc {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--converged-text);
    margin-bottom: 1.35rem;
}

/* Strong text accent color */
.offering-feature-desc strong {
    color: #0b5f69;
    font-weight: 600;
}

/* Unified readable content width/alignment */
.converged-content-wrap {
    max-width: 780px;
    margin: 0 auto;
}

#cen-overview .offering-section-title,
#cen-features .offering-feature-title,
#cen-architecture .offering-feature-title,
#cen-benefits .offering-feature-title {
    max-width: 760px;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    margin-bottom: 1.6rem !important;
}

#cen-overview .offering-feature-desc,
#cen-features .offering-feature-desc,
#cen-benefits .offering-feature-desc,
.offering-cta-banner-card .offering-cta-banner-title,
.offering-cta-banner-card .offering-cta-banner-text {
    max-width: 820px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: left !important;
}

#cen-overview .offering-feature-desc,
#cen-features .offering-feature-desc,
#cen-benefits .offering-feature-desc {
    margin-bottom: 1.9rem !important;
}

.converged-title-description {
    text-align: left;
    max-width: 820px;
}

#cen-overview,
#cen-features,
#cen-architecture,
#cen-benefits {
    margin-bottom: 3.4rem !important;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Architecture image enhancement */
#cen-architecture img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#cen-architecture img:hover {
    transform: scale(1.01);
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.15);
}

/* Section scroll margin adjustment */
section[id] {
    scroll-margin-top: 100px;
}

/* Optional: Add subtle divider between sections */
#cen-features,
#cen-architecture,
#cen-benefits {
    position: relative;
}

/* Dark mode support - if your site uses dark mode */
@media (prefers-color-scheme: dark) {
    .converged-nav-wrapper {
        background: #1e293b;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }
    
    .converged-nav-link {
        color: #94a3b8;
    }
    
    .converged-nav-link:hover {
        color: #22d3ee;
        background: rgba(34, 211, 238, 0.12);
    }
    
    .converged-nav-link-active {
        color: #22d3ee;
        background: #0f172a;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .converged-title-badge {
        background: linear-gradient(135deg, #082f30 0%, #0b3f41 100%);
        color: #67e8f9;
        border-color: rgba(103, 232, 249, 0.3);
    }
    
    .converged-main-title {
        background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
        background-clip: text;
        -webkit-background-clip: text;
    }
    
    .converged-title-description {
        color: #94a3b8;
    }
    
    .offering-feature-desc {
        color: #cbd5e1;
    }
    
    .offering-feature-title {
        color: #f1f5f9;
    }

    .offering-feature-desc strong {
        color: #27b7ca;
    }
}

/* Theme toggle support used by site script */
html[data-theme='light'] .converged-nav-link:hover {
    color: var(--converged-accent);
    background: var(--converged-accent-soft);
}

html[data-theme='light'] .converged-nav-wrapper {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

html[data-theme='light'] .converged-nav-link {
    color: #111827;
}

html[data-theme='light'] .converged-nav-link-active {
    background: #c9f1f5;
    color: #0a3d4a;
    box-shadow: 0 8px 20px rgba(5, 35, 43, 0.16);
}

html[data-theme='light'] .converged-title-description,
html[data-theme='light'] .offering-feature-desc,
html[data-theme='light'] .offering-cta-banner-text {
    color: #4b5563;
}

html[data-theme='light'] .offering-feature-title,
html[data-theme='light'] .offering-section-title,
html[data-theme='light'] .offering-cta-banner-title,
html[data-theme='light'] .converged-main-title {
    color: #000000;
}

html[data-theme='dark'] .converged-nav-wrapper {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

html[data-theme='dark'] .converged-nav-link {
    color: #0a3d4a;
}

html[data-theme='dark'] .converged-nav-link:hover,
html[data-theme='dark'] .converged-nav-link-active {
    color: #0a3d4a;
}

html[data-theme='dark'] .converged-nav-link:hover {
    background: rgba(10, 61, 74, 0.12);
}

html[data-theme='dark'] .converged-nav-link-active {
    background: #0d4a5c;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(10, 31, 38, 0.22);
}

html[data-theme='dark'] .converged-title-badge {
    background: linear-gradient(135deg, #082f30 0%, #0b3f41 100%);
    color: #67e8f9;
    border-color: rgba(103, 232, 249, 0.3);
}

html[data-theme='dark'] .converged-title-description {
    color: #d7e4e8;
}

/* Industrial page: match Industries heading typography */
.industrial-page-match .industrial-main-heading,
.industrial-page-match #cen-features .offering-feature-title,
.industrial-page-match #cen-architecture .offering-feature-title,
.industrial-page-match #cen-benefits .offering-feature-title {
    margin: 0 0 1.25rem;
    text-align: center !important;
}

.industrial-page-match .industrial-main-heading {
    font-size: clamp(2.35rem, 3.6vw, 4rem) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.04em !important;
    font-weight: 800 !important;
    color: #000000 !important;
    text-align: center !important;
}

.industrial-page-match #cen-features .offering-feature-title,
.industrial-page-match #cen-architecture .offering-feature-title,
.industrial-page-match #cen-benefits .offering-feature-title {
    font-size: clamp(1.55rem, 2.25vw, 2.2rem) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.03em !important;
    font-weight: 800 !important;
}

html[data-theme='dark'] .industrial-page-match .industrial-main-heading,
html[data-theme='dark'] .industrial-page-match #cen-features .offering-feature-title,
html[data-theme='dark'] .industrial-page-match #cen-architecture .offering-feature-title,
html[data-theme='dark'] .industrial-page-match #cen-benefits .offering-feature-title {
    color: #f3fbfd !important;
}

.industrial-page-match .converged-title-description,
.industrial-page-match .offering-feature-desc {
    font-size: clamp(1.08rem, 1.28vw, 1.34rem);
    line-height: 1.72;
    letter-spacing: -0.01em;
}

/* Sidebar Table of Contents layout for secure IoT page */
.toc-sidebar-layout .converged-layout {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(220px, 285px) minmax(0, 1fr);
    gap: 2.25rem;
    align-items: start;
}

/* Keep ancestor overflow visible so sticky sidebar can pin reliably */
.toc-sidebar-layout .offering-section,
.toc-sidebar-layout .container,
.toc-sidebar-layout .converged-layout {
    overflow: visible !important;
}

.toc-sidebar-layout main,
.toc-sidebar-layout .offering-page {
    overflow: visible !important;
}

.toc-sidebar-layout .converged-nav-wrapper {
    position: -webkit-sticky;
    position: sticky !important;
    top: 112px !important;
    z-index: 2;
    align-self: start;
    margin: 0;
    max-height: calc(100vh - 132px);
    height: fit-content;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    padding: 0.9rem 0.8rem 0.75rem;
    background: #f7f7f8;
    border: 0;
    box-shadow: none;
}

.toc-sidebar-layout .converged-toc-title {
    margin: 0;
    padding: 0 0 0.55rem;
    font-size: 1.45rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #0f4c5c;
    border-bottom: 0;
}

.toc-sidebar-layout .converged-nav {
    margin-top: 1rem;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.45rem;
    align-items: stretch;
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    max-width: 92%;
    margin-right: auto;
    padding-right: 0.3rem;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.toc-sidebar-layout .converged-nav::-webkit-scrollbar {
    width: 10px;
}

.toc-sidebar-layout .converged-nav::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 999px;
}

.toc-sidebar-layout .converged-nav::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 999px;
    border: 2px solid transparent;
}

.toc-sidebar-layout .converged-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 118, 110, 0.45);
}

.toc-sidebar-layout .converged-nav-link {
    white-space: normal;
    padding: 0.7rem 0.8rem;
    border-radius: 0;
    border-left: 3px solid #d4d4d8;
    background: transparent;
    color: #111827;
    font-size: 0.88rem;
    line-height: 1.45;
    text-align: left;
}

.toc-sidebar-layout .converged-nav-link:hover {
    background: #f1f5f9;
    border-left-color: #0f766e;
    color: #0f172a;
}

.toc-sidebar-layout .converged-nav-link-active {
    background: #d8f1ef;
    border-left-color: #0f766e;
    color: #0f172a;
    box-shadow: none;
}

.toc-sidebar-layout .converged-content-wrap {
    max-width: 860px;
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.toc-sidebar-layout .offering-cta-banner-text,
.toc-sidebar-layout .converged-title-description,
.toc-sidebar-layout .offering-feature-desc {
    font-size: clamp(1.08rem, 1.28vw, 1.34rem) !important;
    line-height: 1.72 !important;
}

/* Desktop: keep the entire TOC panel fixed while only content scrolls */
@media (min-width: 981px) {
    .toc-sidebar-layout .converged-layout {
        display: block;
    }

    .toc-sidebar-layout .converged-nav-wrapper {
        position: fixed !important;
        top: 112px !important;
        left: max(16px, calc((100vw - 1180px) / 2));
        width: 248px;
        max-height: calc(100vh - 132px);
    }

    .toc-sidebar-layout .converged-content-wrap {
        margin-left: calc(248px + 2rem);
    }
}

/* Left-align writeups and titles in this page layout */
.toc-sidebar-layout .converged-title-section,
.toc-sidebar-layout .offering-feature-title,
.toc-sidebar-layout .offering-feature-desc,
.toc-sidebar-layout .converged-title-description,
.toc-sidebar-layout .offering-cta-banner-title,
.toc-sidebar-layout .offering-cta-banner-text {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

html[data-theme='light'] .toc-sidebar-layout .converged-nav-wrapper,
html[data-theme='dark'] .toc-sidebar-layout .converged-nav-wrapper {
    background: #f7f7f8;
    border-color: #dedee2;
}

html[data-theme='light'] .toc-sidebar-layout .converged-nav-link,
html[data-theme='dark'] .toc-sidebar-layout .converged-nav-link {
    color: #111827;
}

html[data-theme='light'] .toc-sidebar-layout .converged-nav-link-active,
html[data-theme='dark'] .toc-sidebar-layout .converged-nav-link-active {
    background: #d8f1ef;
    color: #0f172a;
}

@media (max-width: 980px) {
    .toc-sidebar-layout .converged-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .toc-sidebar-layout .converged-nav-wrapper {
        position: -webkit-sticky;
        position: sticky !important;
        top: 96px !important;
        max-height: calc(100vh - 112px);
    }

    .toc-sidebar-layout .converged-nav {
        overscroll-behavior: auto;
    }

    .toc-sidebar-layout .converged-content-wrap {
        max-width: 100%;
        max-height: none;
        overflow: visible;
        overscroll-behavior: auto;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .industrial-page-match .industrial-main-heading {
        font-size: 2.35rem !important;
        line-height: 1.08 !important;
    }

    .industrial-page-match #cen-features .offering-feature-title,
    .industrial-page-match #cen-architecture .offering-feature-title,
    .industrial-page-match #cen-benefits .offering-feature-title {
        font-size: 1.55rem !important;
        line-height: 1.12 !important;
    }

    .industrial-page-match .converged-title-description,
    .industrial-page-match .offering-feature-desc {
        font-size: 1.05rem;
        line-height: 1.65;
    }
}

html[data-theme='dark'] .offering-feature-desc {
    color: #cbd5e1;
}

html[data-theme='dark'] .offering-feature-title {
    color: #f1f5f9;
}

html[data-theme='dark'] .offering-feature-desc strong {
    color: #4fc3d4;
}
