.header-menu .menu-list li.has-ai-matter>a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding-left: 18px;
    padding-right: 28px;
}

.header-menu .menu-list li.has-ai-matter>a::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 55%;
    width: 8px;
    height: 8px;
    border: 0;
    background: #0071BC;
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 0 0 rgba(13, 143, 226, 0.42);
    /*     animation: aiMatterPulse 1.8s ease-in-out infinite; */
}

.header-menu .menu-list li.has-ai-matter.is-mega-active>a::after {
    background: #1aa0ff;
    box-shadow: 0 0 16px rgba(26, 160, 255, 0.9);
}

.ai-matter-nav-gif-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 24px;
    flex-shrink: 0;
    /*     animation: aiMatterSparkle 1.8s ease-in-out infinite; */
    transform-origin: center;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.22));
}

.ai-matter-nav-gif {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.header-menu .menu-list li.has-ai-matter.is-mega-active::after {
    height: 78px;
}

.mega-menu-ai-matter {
    width: min(1480px, calc(96vw - 32px));
    padding: 24px;
    border-radius: 32px;
    background: #0e1117;
    box-shadow: 0 34px 72px rgba(0, 0, 0, 0.5);
}

.ai-matter-layout {
    display: grid;
    grid-template-columns: minmax(290px, 0.95fr) minmax(320px, 1fr) minmax(380px, 1.08fr);
    gap: 24px;
    align-items: stretch;
}

.ai-matter-rail {
    min-width: 0;
    border-radius: 20px;
    padding: 24px 36px;
}

.ai-matter-rail--left {
    display: flex;
    flex-direction: column;
    background-color: #171D26;
}

.ai-matter-left-main {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    flex: 1;
}

.ai-matter-left-tabs {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ai-matter-rail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.ai-matter-nav-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
}

.ai-matter-nav-spark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: aiMatterSparkle 1.8s ease-in-out infinite;
    transform-origin: center;
}

.ai-matter-nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #0071BC;
    box-shadow: 0 0 14px rgba(13, 143, 226, 0.9);
}

.ai-matter-primary-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    padding: 14px 18px 14px 22px;
    border-radius: 14px;
    background: #0071BC;
    color: #ffffff;
    font-size: 17px;
    font-weight: 500;
    transition: transform 0.25s ease, background 0.25s ease;
}

.ai-matter-primary-cta:hover {
    background: #0a7ac1;
    transform: translateY(-1px);
}

.ai-matter-primary-cta-arrow {
    font-size: 20px;
    line-height: 1;
}

.ai-matter-left-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 2px;
}

.ai-matter-left-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #ffffff;
    font-size: 17px;
    font-weight: 500;
}

.ai-matter-left-bullet {
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid #0071BC;
    flex-shrink: 0;
}

.ai-matter-rail-card {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px;
    border-radius: 15px;
    background: #232D3B;
}

.ai-matter-rail-card-wrap {
    display: flex;
    flex-direction: column;
}

.ai-matter-rail-card p {
    margin: 0;
    color: #ffffff;
    font-size: 16px !important;
    font-weight: 500 !important;
}

.ai-matter-rail-button {
    display: inline-flex;
    align-items: center;
    gap: 30px;
    width: fit-content;
    padding: 8px 8px 8px 22px;
    border-radius: 999px;
    background: #0F1217;
    color: #ffffff;
    font-size: 16px !important;
    font-weight: 500 !important;
    transition: transform 0.25s ease, background 0.25s ease;
}

.ai-matter-rail-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #0071BC;
    font-size: 22px;
    line-height: 1;
}

.ai-matter-rail--middle {
    padding: 8px;
    background: transparent;
    box-shadow: none;
}

.ai-matter-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.ai-matter-section-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 400;
}

.ai-matter-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-matter-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    color: #ffffff;
    font-size: 17px !important;
    font-weight: 400;
    line-height: 1.35;
    transition: background 0.25s ease, transform 0.25s ease;
}

.ai-matter-link:hover {
    background: rgba(13, 143, 226, 0.16);
    transform: translateX(0);
}

.ai-matter-link.is-active {
    background: #0071BC;
}

.ai-matter-link-bullet {
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid #0071BC;
    flex-shrink: 0;
}

.ai-matter-link.is-active .ai-matter-link-bullet {
    border-left-color: #ffffff;
}

.ai-matter-rail--right {
    background: #171D26;
}

.ai-matter-featured {
    display: flex;
    flex-direction: column;
    gap: 30px;
    color: #ffffff;
}

.ai-matter-featured-media {
    display: block;
    overflow: hidden;
    border-radius: 22px;
    background: #0d1521;
    aspect-ratio: 1.11 / 1;
}

.ai-matter-featured-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai-matter-featured-copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-matter-featured-title {
    font-size: 18px;
    font-weight: 400;
}

.ai-matter-featured-text {
    color: #9aa7bb;
    font-size: 14px;
    line-height: 1.6;
    max-width: 36ch;
}

.drawer-ai-matter-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.drawer-ai-matter-feature {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: #0f1217;
    color: #ffffff;
}

.drawer-ai-matter-feature-image {
    width: 108px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.drawer-ai-matter-feature-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.drawer-ai-matter-feature-title {
    color: #9aa7bb;
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.drawer-ai-matter-feature-text {
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 500;
    line-height: 1.4;
}

.drawer-ai-matter-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer-ai-matter-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #2b3440;
    font-size: 0.95rem;
    font-weight: 500;
}

.drawer-ai-matter-link::before {
    content: "";
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid #0071BC;
    flex-shrink: 0;
}

.drawer-ai-matter-link.is-active {
    color: #0071BC;
}

.ai-matter-rail-button span {
    transition: transform 0.3s ease;
}

.ai-matter-rail-button span:hover {
    transform: rotate(40deg);
}

@keyframes aiMatterSparkle {

    0%,
    100% {
        transform: translateY(0) scale(0.92) rotate(0deg);
    }

    50% {
        transform: translateY(-1px) scale(1.08) rotate(18deg);
    }
}

@keyframes aiMatterPulse {

    0%,
    100% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 0 0 rgba(13, 143, 226, 0.42);
    }

    50% {
        transform: translateY(-50%) scale(1.12);
        box-shadow: 0 0 0 8px rgba(13, 143, 226, 0.06);
    }
}

@media (max-width: 1400px) {
    .mega-menu-ai-matter {
        width: min(1400px, calc(94vw - 24px));
        padding: 22px;
    }

    .ai-matter-layout {
        grid-template-columns: minmax(270px, 0.9fr) minmax(300px, 1fr) minmax(340px, 1.05fr);
        gap: 20px;
    }


    .ai-matter-nav-title {
        font-size: 24px;
    }
}

@media (max-width: 1200px) {
    .mega-menu-ai-matter {
        padding: 20px;
    }

    .ai-matter-layout {
        grid-template-columns: minmax(250px, 0.88fr) minmax(250px, 1fr) minmax(320px, 1fr);
        gap: 10px;
    }


    .ai-matter-link {
        font-size: 15px;
    }

    .ai-matter-featured-text {
        font-size: 13px;
    }

    .ai-matter-rail-card p,
    .ai-matter-rail-button {
        font-size: 13px !important;
    }

    .ai-matter-rail {
        padding: 20px;
    }

    .ai-matter-featured-title {
        font-size: 14px;
    }
}

@media (max-width: 1100px) {
    .ai-matter-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    }

    /* 
    .ai-matter-rail--right {
        grid-column: 1 / -1;
    } */

    .ai-matter-rail--left {
        min-height: auto;
    }
}

@media (max-width: 900px) {
    .mega-menu-ai-matter {
        border-radius: 24px;
        padding: 18px;
    }

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

    .ai-matter-rail--left {
        gap: 18px;
    }

    .ai-matter-rail-card {
        margin-top: 0;
    }

    .ai-matter-featured-media {
        aspect-ratio: 1.35 / 1;
    }

    .header-menu .menu-list li.has-ai-matter>a {
        padding-left: 24px;
        padding-right: 22px;
    }

    .header-menu .menu-list li.has-ai-matter>a::after {
        right: -1px;
    }

    .ai-matter-left-link {
        min-height: 46px;
        padding: 12px 16px 12px 18px;
    }
}

@media (max-width: 767px) {
    .ai-matter-nav-title {
        font-size: 22px;
    }

    .drawer-ai-matter-feature {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .drawer-ai-matter-feature-image {
        width: 92px;
        height: 72px;
    }
}

@media (min-width: 992px) {
    .mobile-hamburger {
        display: none;
    }

    .header-cta,
    .header-cta.d-none {
        display: block;
    }

    .header-menu,
    .header-menu.d-none {
        display: block;
    }
}

.ai-matter-nav-sparks {
    position: relative;
    display: inline-block;
    width: 28px;
    height: 24px;
    margin-right: 2px;
    flex-shrink: 0;
}

.ai-matter-nav-spark {
    position: absolute;
    display: block;
    background: #ffffff;
    clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.38);
    transform-origin: center;
    animation: aiMatterSparkle 1.8s ease-in-out infinite;
}

.ai-matter-nav-spark--sm {
    width: 5px;
    height: 5px;
    top: 4px;
    left: 0;
    animation-delay: 0s;
}

.ai-matter-nav-spark--md {
    width: 7px;
    height: 7px;
    top: 2px;
    left: 14px;
    animation-delay: 0.22s;
}

.ai-matter-nav-spark--lg {
    width: 10px;
    height: 10px;
    top: 12px;
    left: 2px;
    animation-delay: 0.44s;
}

.ai-matter-tab,
.ai-matter-left-link {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.ai-matter-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 48px;
    padding: 14px 18px 14px 20px;
    border-radius: 14px;
    background: #0071bc;
    color: #ffffff;
    font-family: "DM Sans", sans-serif;
    font-size: 18px;
    font-weight: 400;
    transition: transform 0.25s ease, background 0.25s ease;
}

.ai-matter-tab:hover {
    transform: translateY(-1px);
}

.ai-matter-tab:not(.is-active) {
    position: relative;
    background: transparent;
    color: #ffffff;
    padding-left: 26px;
    padding-right: 16px;
}

.ai-matter-tab:not(.is-active)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid #0071bc;
    transform: translateY(-50%);
}

.ai-matter-tab:not(.is-active) .ai-matter-primary-cta-arrow {
    display: none;
}

.ai-matter-tab:not(.is-active):hover {
    background: rgba(0, 113, 188, 0.08);
}

.ai-matter-left-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 48px;
    padding: 14px 18px 14px 20px;
    border-radius: 14px;
    background: transparent;
    color: #ffffff;
    font-family: "DM Sans", sans-serif;
    font-size: 18px;
    font-weight: 400;
    opacity: 0.82;
    transition: background 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.ai-matter-left-link .ai-matter-primary-cta-arrow {
    display: none;
    margin-left: auto;
    font-size: 16px;
    line-height: 1;
}

.ai-matter-left-gif-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 24px;
    flex-shrink: 0;
    /* animation: aiMatterSparkle 1.8s ease-in-out infinite; */
    transform-origin: center;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.22));
}

.ai-matter-left-gif {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.ai-matter-nav-gif-wrap,
.ai-matter-nav-gif {
    will-change: transform, opacity;
}

.ai-matter-left-link:hover {
    background: rgba(0, 113, 188, 0.08);
    opacity: 1;
}

.ai-matter-left-link:hover,
.ai-matter-left-link.is-active {
    opacity: 1;
    color: #ffffff;
}

.ai-matter-left-link.is-active {
    background: #0071bc;
}

.ai-matter-left-link.is-active .ai-matter-left-bullet {
    display: none;
}

.ai-matter-left-link.is-active .ai-matter-primary-cta-arrow {
    display: inline-block;
}

.ai-matter-primary-cta-arrow {
    font-size: 16px;
    line-height: 1;
}

.ai-matter-section-head--blogs {
    justify-content: space-between;
}

.ai-matter-section-link {
    color: #0071bc !important;
    font-family: "DM Sans", sans-serif;
    font-size: 15px !important;
    font-weight: 400 !important;
    text-decoration: underline;
    white-space: nowrap;
}


.ai-matter-featured-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: #0071bc;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-decoration: underline;
    background: transparent;
}

.ai-matter-featured-text {
    display: none;
}

.ai-matter-blog-list {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.ai-matter-blog-card {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.25s ease;
}

.ai-matter-blog-card:hover {
    background: rgba(13, 143, 226, 0.16);
}

.ai-matter-blog-thumb {
    display: block;
    width: 110px;
    height: 76px;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.ai-matter-blog-thumb img,
.ai-matter-blog-thumb-fallback {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai-matter-blog-thumb-fallback {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
}

.ai-matter-blog-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.ai-matter-blog-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
}

.ai-matter-blog-excerpt {
    color: #8794AA;
    font-size: 15px;
}

.ai-matter-panel[hidden] {
    display: none !important;
}


@media (max-width: 1200px) {
    .ai-matter-tab {
        font-size: 14px;
    }

    .ai-matter-left-link,
    .ai-matter-link {
        font-size: 14px !important;
    }

    .ai-matter-blog-card {
        grid-template-columns: 1fr;
    }

    .ai-matter-blog-thumb {
        display: none;
    }

    .ai-matter-section-title {
        font-size: 14px;
    }

    .ai-matter-section-link {
        font-size: 13px;
    }

    .ai-matter-blog-title {
        font-size: 14px;

    }

    .ai-matter-blog-excerpt {
        font-size: 12px;
    }

}

@media (max-width: 900px) {
    .ai-matter-tab {
        font-size: 17px;
    }

    .ai-matter-blog-card {
        grid-template-columns: 88px minmax(0, 1fr);
    }

}