/* ==========================================================================
   Info Center page (/info-center/) -- templates/info-center-template.php
   Sizes, colors and spacing follow the former Elementor page.
   The smart search ([article_ai_chat]) and the events ([upcoming_webinars])
   keep their own stylesheets.
   ========================================================================== */

.nvm-ic-page {
    --nvm-ic-purple: #6f4165;
    --nvm-ic-purple-soft: #766786;
    --nvm-ic-purple-dark: #47184f;
    --nvm-ic-band: #f9f8fa;
    --nvm-ic-teal: #2fa7af;
    --nvm-ic-teal-light: #5bd1d1;
    --nvm-ic-current: #58d0f5;
    --nvm-ic-max: 1140px;
    /* Fixed site header: 80px from 992px up, 60px below (navigation.css). */
    --nvm-ic-header: 60px;

    direction: rtl;
    background: #fff;
    color: #333;
}

@media (min-width: 992px) {
    .nvm-ic-page {
        --nvm-ic-header: 80px;
    }
}

.nvm-ic-page *,
.nvm-ic-page *::before,
.nvm-ic-page *::after {
    box-sizing: border-box;
}

/* Section anchors land below the header and the sticky in-page menu. */
.nvm-ic-page [id^="info-center-"] {
    scroll-margin-top: calc(var(--nvm-ic-header) + 46px);
}

.nvm-ic-section-title {
    margin: 0;
    font-family: "Heebo", sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    color: var(--nvm-ic-purple);
    text-align: center;
}

.nvm-ic-section-sub {
    margin: 20px 0 0;
    font-family: "Assistant", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    color: var(--nvm-ic-purple);
    text-align: center;
}

.nvm-ic-section-sub-strong {
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Top band: hero, title
   -------------------------------------------------------------------------- */

.nvm-ic-top {
    /* The band's top 15px slides under the fixed 80px header, as on the
       professional page. */
    padding: 65px 0 20px;
    background: var(--nvm-ic-band);
}

.nvm-ic-hero {
    max-width: var(--nvm-ic-max);
    height: 380px;
    margin: 0 auto;
    border-radius: 7px;
    overflow: hidden;
}

.nvm-ic-hero img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.nvm-ic-page .nvm-ic-title {
    margin: 20px 0 0;
    padding: 0;
    font-family: "Heebo", sans-serif;
    font-size: 46px;
    font-weight: 700;
    line-height: 1;
    color: var(--nvm-ic-purple);
    text-align: center;
}

/* --------------------------------------------------------------------------
   In-page menu (sticky under the site header)
   -------------------------------------------------------------------------- */

/* The header stays at the top of the window even when the admin bar is
   shown (the bar covers its top), so the offset is the header alone. */
.nvm-ic-subnav {
    position: sticky;
    top: var(--nvm-ic-header);
    z-index: 90;
    background: var(--nvm-ic-band);
}

.nvm-ic-subnav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    max-width: var(--nvm-ic-max);
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.nvm-ic-subnav-list li {
    margin: 0;
    padding: 0;
}

.nvm-ic-page a.nvm-ic-subnav-link {
    display: block;
    padding: 8px 16px;
    font-family: "Assistant", sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
    color: #1f2124;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s;
}

.nvm-ic-page a.nvm-ic-subnav-link:hover,
.nvm-ic-page a.nvm-ic-subnav-link:focus-visible,
.nvm-ic-page a.nvm-ic-subnav-link.is-current {
    color: var(--nvm-ic-current);
}

/* --------------------------------------------------------------------------
   Smart search + articles
   -------------------------------------------------------------------------- */

.nvm-ic-articles-band {
    padding: 80px 10px 0;
}

.nvm-ic-articles {
    max-width: var(--nvm-ic-max);
    margin: 40px auto 0;
}

.nvm-ic-articles-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 25px;
    row-gap: 35px;
}

.nvm-ic-articles-grid + .nvm-ic-articles-grid {
    margin-top: 40px;
}

.nvm-ic-article-card {
    display: flex;
    flex-direction: column;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
    text-align: center;
}

.nvm-ic-article-thumb {
    display: block;
    position: relative;
    aspect-ratio: 100 / 66;
    margin-bottom: 7px;
    overflow: hidden;
}

.nvm-ic-article-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.nvm-ic-article-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 7px;
    margin-bottom: 3px;
}

.nvm-ic-page .nvm-ic-article-title {
    margin: 0 0 2px;
    font-family: "Heebo", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--nvm-ic-purple-soft);
}

.nvm-ic-page .nvm-ic-article-title a {
    color: inherit;
    text-decoration: none;
}

.nvm-ic-article-excerpt {
    margin-bottom: 10px;
}

.nvm-ic-page .nvm-ic-article-excerpt p {
    margin: 0;
    font-family: "Assistant", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #777;
}

.nvm-ic-page a.nvm-ic-article-more {
    font-family: "Assistant", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--nvm-ic-purple-dark);
    text-decoration: underline;
}

.nvm-ic-all-articles {
    margin: 10px 0 0;
    padding: 13px;
    text-align: center;
    font-family: "Heebo", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.nvm-ic-page .nvm-ic-all-articles a {
    color: var(--nvm-ic-teal);
    text-decoration: underline;
}

.nvm-ic-page .nvm-ic-all-articles a:hover,
.nvm-ic-page .nvm-ic-all-articles a:focus-visible {
    color: var(--nvm-ic-teal-light);
}

/* --------------------------------------------------------------------------
   Banner
   -------------------------------------------------------------------------- */

.nvm-ic-banner {
    padding: 10px;
}

.nvm-ic-banner a {
    display: block;
    max-width: var(--nvm-ic-max);
    margin: 0 auto;
}

.nvm-ic-banner img {
    display: block;
    width: 100%;
    height: auto;
}

/* --------------------------------------------------------------------------
   Events + podcasts (grey band)
   -------------------------------------------------------------------------- */

.nvm-ic-grey {
    padding: 10px;
    background: var(--nvm-ic-band);
}

.nvm-ic-events {
    max-width: var(--nvm-ic-max);
    margin: 60px auto 0;
    padding: 20px;
}

.nvm-ic-podcasts-wrap {
    max-width: var(--nvm-ic-max);
    margin: 100px auto 0;
}

.nvm-ic-podcasts {
    margin-top: 32px;
}

/* --------------------------------------------------------------------------
   Carousels (podcasts, conversation cards) -- nvm-info-center.js
   -------------------------------------------------------------------------- */

.nvm-ic-carousel {
    --nvm-ic-per-view: 3;
    --nvm-ic-gap: 10px;
    position: relative;
}

.nvm-ic-carousel-track {
    display: flex;
    gap: var(--nvm-ic-gap);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.nvm-ic-carousel-track::-webkit-scrollbar {
    display: none;
}

.nvm-ic-carousel-track:focus-visible {
    outline: 2px solid var(--nvm-ic-purple);
    outline-offset: 2px;
}

.nvm-ic-carousel-slide {
    flex: 0 0 calc((100% - (var(--nvm-ic-per-view) - 1) * var(--nvm-ic-gap)) / var(--nvm-ic-per-view));
    scroll-snap-align: start;
}

.nvm-ic-page .nvm-ic-carousel-arrow {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: rgba(238, 238, 238, 0.9);
    cursor: pointer;
    line-height: 1;
}

.nvm-ic-page .nvm-ic-carousel-arrow:hover,
.nvm-ic-page .nvm-ic-carousel-arrow:focus {
    background: transparent;
    color: rgba(238, 238, 238, 0.9);
}

.nvm-ic-page .nvm-ic-carousel-arrow:focus-visible {
    outline: 2px solid var(--nvm-ic-purple);
}

.nvm-ic-page .nvm-ic-carousel-arrow[hidden] {
    display: none;
}

.nvm-ic-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.nvm-ic-page .nvm-ic-carousel-dot {
    width: 6px;
    height: 6px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #000;
    opacity: 0.2;
    cursor: pointer;
}

.nvm-ic-page .nvm-ic-carousel-dot:hover,
.nvm-ic-page .nvm-ic-carousel-dot:focus {
    background: #000;
}

.nvm-ic-page .nvm-ic-carousel-dot.is-active {
    opacity: 1;
}

/* Podcasts */
.nvm-ic-podcast-slide {
    padding: 10px;
}

.nvm-ic-podcast-slide iframe {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 12px;
}

.nvm-ic-podcasts .nvm-ic-carousel-arrow {
    top: 186px;
    font-size: 25px;
    transform: translateY(-50%);
}

.nvm-ic-podcasts .nvm-ic-carousel-prev {
    right: 0;
}

.nvm-ic-podcasts .nvm-ic-carousel-next {
    left: 0;
}

.nvm-ic-podcasts .nvm-ic-carousel-dots {
    height: 22px;
    align-items: flex-end;
}

/* --------------------------------------------------------------------------
   Organizations (tabs)
   -------------------------------------------------------------------------- */

.nvm-ic-orgs {
    padding: 100px 10px 10px;
}

.nvm-ic-tabs {
    max-width: var(--nvm-ic-max);
    margin: 20px auto 0;
    padding-top: 8px;
}

.nvm-ic-tabs-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.nvm-ic-page .nvm-ic-tab {
    margin: 0;
    padding: 15px 35px;
    border: 0;
    border-radius: 10px;
    background: #f1f2f3;
    box-shadow: none;
    color: var(--nvm-ic-purple-soft);
    font-family: "Heebo", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
    text-transform: none;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.nvm-ic-page .nvm-ic-tab:hover {
    background: #c2bbc9;
    color: #fff;
}

.nvm-ic-page .nvm-ic-tab:focus {
    outline: none;
}

.nvm-ic-page .nvm-ic-tab:focus-visible {
    outline: 2px solid var(--nvm-ic-purple);
    outline-offset: 2px;
}

.nvm-ic-page .nvm-ic-tab[aria-selected="true"] {
    background: var(--nvm-ic-purple);
    color: #fff;
}

.nvm-ic-tabpanel {
    margin-top: 10px;
    padding: 10px;
}

.nvm-ic-tabpanel[hidden] {
    display: none;
}

.nvm-ic-orgs-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.nvm-ic-org {
    margin: 0;
    padding: 10px;
}

.nvm-ic-org a {
    display: block;
}

.nvm-ic-org-logo {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s;
}

.nvm-ic-org a:hover .nvm-ic-org-logo,
.nvm-ic-org a:focus-visible .nvm-ic-org-logo {
    transform: scale(1.1);
}

.nvm-ic-org-name {
    display: block;
    padding: 40px 10px;
    font-family: "Heebo", sans-serif;
    font-weight: 700;
    color: var(--nvm-ic-purple);
    text-align: center;
}

/* --------------------------------------------------------------------------
   Conversation cards
   -------------------------------------------------------------------------- */

.nvm-ic-cards {
    padding: 80px 10px;
}

.nvm-ic-cards-carousel {
    max-width: var(--nvm-ic-max);
    margin: 20px auto 0;
}

.nvm-ic-card-slide {
    height: 200px;
}

.nvm-ic-card-link {
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
}

.nvm-ic-card-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.nvm-ic-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    opacity: 0;
    transition: opacity 0.5s;
}

.nvm-ic-card-link:hover .nvm-ic-card-overlay,
.nvm-ic-card-link:focus-visible .nvm-ic-card-overlay {
    opacity: 1;
}

.nvm-ic-cards-carousel .nvm-ic-carousel-arrow {
    top: 100px;
    width: 24px;
    height: 24px;
    padding: 2px;
    border-radius: 50%;
    background: #c0c0c0;
    font-size: 20px;
    transform: translateY(-50%);
}

.nvm-ic-page .nvm-ic-cards-carousel .nvm-ic-carousel-arrow:hover,
.nvm-ic-page .nvm-ic-cards-carousel .nvm-ic-carousel-arrow:focus {
    background: #c0c0c0;
}

.nvm-ic-cards-carousel .nvm-ic-carousel-prev {
    right: 10px;
}

.nvm-ic-cards-carousel .nvm-ic-carousel-next {
    left: 10px;
}

.nvm-ic-cards-carousel .nvm-ic-carousel-dots {
    height: 30px;
    align-items: center;
    padding-top: 2px;
}

/* --------------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .nvm-ic-articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nvm-ic-carousel {
        --nvm-ic-per-view: 2;
    }
}

/* --------------------------------------------------------------------------
   Phone
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
    .nvm-ic-hide-mobile {
        display: none;
    }

    .nvm-ic-top {
        padding-bottom: 0;
    }

    .nvm-ic-page .nvm-ic-title {
        margin: 22px 2px -4px;
    }

    .nvm-ic-subnav-list {
        flex-wrap: nowrap;
        gap: 0;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .nvm-ic-subnav-list::-webkit-scrollbar {
        display: none;
    }

    .nvm-ic-articles-grid {
        grid-template-columns: minmax(0, 275px);
        justify-content: center;
    }

    .nvm-ic-articles-featured .nvm-ic-article-thumb {
        aspect-ratio: 100 / 60;
    }

    .nvm-ic-articles-latest .nvm-ic-article-thumb {
        aspect-ratio: 100 / 50;
    }

    .nvm-ic-banner a {
        display: none;
    }

    .nvm-ic-carousel {
        --nvm-ic-per-view: 1;
    }

    .nvm-ic-tabs-list {
        justify-content: flex-start;
    }

    .nvm-ic-page .nvm-ic-tab {
        padding: 6px;
    }

    .nvm-ic-orgs-grid {
        grid-template-columns: minmax(0, 315px);
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nvm-ic-carousel-track {
        scroll-behavior: auto;
    }

    .nvm-ic-org-logo,
    .nvm-ic-card-overlay {
        transition: none;
    }
}
