/* Start custom CSS *//* Homepage Mobile Responsive & Perfected Telemetry */
.aim-map-container,
.aim-map-container.aim-osm-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    /* Section & Container Padding Across All Sections */
    .elementor-element-222241a1,
    .elementor-element-751368c0,
    .elementor-element-34a0600b,
    .elementor-element-5f2bff4e,
    .elementor-element-24823b81,
    .elementor-element-39b7697e {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
    .elementor-element-4ca784a7,
    .elementor-element-590f5213,
    .elementor-element-72f25f1c,
    .elementor-element-666a0a2b,
    .elementor-element-785758ed,
    .elementor-element-4bf139ed {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .elementor-element-222241a1 {
        padding-top: 36px !important;
        padding-bottom: 32px !important;
    }

    /* Hero Typography */
    .elementor-element-6dcaf2b3 h1 {
        font-size: clamp(22px, 6vw, 32px) !important;
        line-height: 1.25 !important;
    }

    .elementor-element-727674 p {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    /* Hero Buttons */
    .elementor-element-367d81af {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .elementor-element-367d81af .elementor-element {
        width: 100% !important;
    }

    .elementor-element-367d81af a,
    .elementor-element-367d81af button {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* Perfected 2x2 Telemetry Dashboard */
    .aim-telemetry-dashboard {
        width: 100% !important;
        max-width: 100% !important;
        margin: 20px 0 0 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .aim-telemetry-kpis {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .aim-stat-box {
        width: 100% !important;
        min-width: 0 !important;
        padding: 14px 12px !important;
        box-sizing: border-box !important;
        background: #0E1626 !important;
        border: 1px solid var(--aim-border, #1E293B) !important;
        border-radius: 8px !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .aim-stat-box:nth-child(1),
    .aim-stat-box-fatalities {
        border-left: 3px solid #EF4444 !important;
    }
    .aim-stat-box:nth-child(2) {
        border-left: 3px solid #06B6D4 !important;
    }
    .aim-stat-box:nth-child(3) {
        border-left: 3px solid #F59E0B !important;
    }
    .aim-stat-box:nth-child(4),
    .aim-stat-box-citations {
        border-left: 3px solid #38BDF8 !important;
    }

    .aim-stat-top {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin-bottom: 6px !important;
        width: 100% !important;
    }

    .aim-stat-label {
        font-family: var(--aim-font-mono, 'JetBrains Mono', monospace) !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        color: #64748B !important;
        letter-spacing: 0.6px !important;
        text-transform: uppercase !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .aim-stat-dot {
        width: 7px !important;
        height: 7px !important;
        border-radius: 50% !important;
        background: #EF4444 !important;
        box-shadow: 0 0 8px rgba(239, 68, 68, 0.8) !important;
        flex-shrink: 0 !important;
        margin-left: 6px !important;
    }

    .aim-stat-number {
        font-family: var(--aim-font-mono, 'JetBrains Mono', monospace) !important;
        font-size: 26px !important;
        font-weight: 800 !important;
        color: #F8FAFC !important;
        line-height: 1.1 !important;
        margin: 2px 0 4px 0 !important;
        letter-spacing: -0.5px !important;
    }

    .aim-stat-desc {
        font-size: 11px !important;
        color: #94A3B8 !important;
        line-height: 1.3 !important;
        margin: 0 !important;
    }

    .aim-telemetry-domains {
        width: 100% !important;
        max-width: 100% !important;
        background: #0E1626 !important;
        border: 1px solid var(--aim-border, #1E293B) !important;
        border-radius: 8px !important;
        padding: 14px !important;
        box-sizing: border-box !important;
    }

    .aim-domains-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 12px !important;
        border-bottom: 1px solid #162032 !important;
        padding-bottom: 8px !important;
    }

    .aim-domains-total {
        font-family: var(--aim-font-mono, 'JetBrains Mono', monospace) !important;
        font-size: 10px !important;
        font-weight: 600 !important;
        color: #38BDF8 !important;
        background: rgba(56, 189, 248, 0.1) !important;
        border: 1px solid rgba(56, 189, 248, 0.25) !important;
        border-radius: 12px !important;
        padding: 2px 8px !important;
        letter-spacing: 0.4px !important;
    }

    .aim-domains-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .aim-domain-chip {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        background: #080D15 !important;
        border: 1px solid #1A2638 !important;
        border-radius: 6px !important;
        padding: 10px 12px !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
    }

    .aim-domain-info {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }

    .aim-domain-name {
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #E2E8F0 !important;
    }

    .aim-domain-count {
        font-family: var(--aim-font-mono, 'JetBrains Mono', monospace) !important;
        font-size: 11px !important;
        color: #94A3B8 !important;
    }

    .aim-domain-bar {
        height: 5px !important;
        background: #162032 !important;
        border-radius: 4px !important;
        overflow: hidden !important;
        width: 100% !important;
    }

    .aim-domain-bar-fill {
        height: 100% !important;
        border-radius: 4px !important;
    }

    .aim-domain-chip[data-tech*="automated-driving"] .aim-domain-bar-fill {
        background: linear-gradient(90deg, #38BDF8, #0EA5E9) !important;
    }
    .aim-domain-chip[data-tech*="conversational-ai"] .aim-domain-bar-fill {
        background: linear-gradient(90deg, #A855F7, #C084FC) !important;
    }
    .aim-domain-chip[data-tech*="clinical"] .aim-domain-bar-fill,
    .aim-domain-chip[data-tech*="healthcare"] .aim-domain-bar-fill {
        background: linear-gradient(90deg, #10B981, #34D399) !important;
    }
    .aim-domain-chip[data-tech*="robotic"] .aim-domain-bar-fill,
    .aim-domain-chip[data-tech*="industrial"] .aim-domain-bar-fill {
        background: linear-gradient(90deg, #F59E0B, #FBBF24) !important;
    }

    /* Map Section on Homepage */
    .aim-map-container,
    .aim-map-container.aim-osm-container {
        padding: 12px 10px !important;
        margin: 16px auto !important;
    }
    .aim-osm-map {
        height: 320px !important;
        width: 100% !important;
    }
    .aim-map-stage {
        overflow: hidden !important;
        border-radius: 6px !important;
        width: 100% !important;
    }
    .aim-map-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    .aim-map-header-right {
        width: 100% !important;
        justify-content: flex-end !important;
        gap: 8px !important;
    }
    .aim-map-interactive-banner {
        font-size: 10px !important;
        padding: 4px 8px !important;
        max-width: 95% !important;
        white-space: normal !important;
        line-height: 1.3 !important;
        bottom: 8px !important;
    }
    .aim-map-filter-bar {
        padding-bottom: 6px !important;
        margin-bottom: 10px !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .aim-map-filter-chip {
        padding: 4px 10px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
    }

    /* Cases Directory & Cards */
    .aim-directory-wrapper {
        padding: 0 !important;
        margin: 16px 0 32px 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .aim-case-card {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 16px 14px !important;
    }
    .aim-card-bottom {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
    }
    .aim-card-metrics {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    .aim-card-cta {
        flex-shrink: 0 !important;
    }

    /* Technology Domains Grid */
    div.elementor-17 .elementor-element-5653dcce,
    .elementor-17 div[class*="dom_grid"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        width: 100% !important;
    }
    .elementor-17 div.elementor-element-5653dcce > .e-con,
    .elementor-17 div[class*="dom_card_"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 18px 16px !important;
    }

    /* Articles Grid */
    div.elementor-17 .elementor-element-280c3326,
    .elementor-17 div[class*="art_grid"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        width: 100% !important;
    }
    .elementor-17 div.elementor-element-280c3326 > .e-con,
    .elementor-17 div[class*="art_card_"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 18px 16px !important;
    }

    /* Case Submissions Protocol Card */
    .elementor-element-54675b85 {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 20px 16px !important;
        box-sizing: border-box !important;
    }
    .elementor-element-4c0783f5 {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        gap: 10px !important;
    }
    .elementor-element-4c0783f5 a,
    .elementor-element-4c0783f5 button {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }
}/* End custom CSS */