/* Learn Center: product-independent composition using the existing site cards. */
.learn-center {
    padding-bottom: 35px;
}

.learn-center .lc-hero-wrap {
    padding-top: 18px;
}

.learn-center .lc-hero-card {
    padding: 42px 24px;
    height: auto;
    min-height: 330px;
}

.learn-center__eyebrow {
    color: rgba(255,255,255,.91);
    font-weight: 600;
    font-size: 14px;
    margin: 0;
}

.learn-center .lc-hero-title {
    line-height: 1.4;
    margin: 10px 0 10px;
    letter-spacing: normal;
}

.learn-center__hero-subtitle {
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 22px;
    color: #fff;
}

.learn-center .lc-hero-search {
    max-width: 980px;
    margin: 0 auto;
}

.learn-center .hub-lazy-section {
    padding-top: 23px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-radius: 18px;
}

.learn-center .lc-section--alt {
    background: #f8fbff;
    padding-left: 22px;
    padding-right: 22px;
}

.learn-center .hub-lazy-section__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.learn-center .lc-section-head {
    margin-bottom: 0;
}

.learn-center .lc-title {
    margin-bottom: 0;
}

.learn-center .lc-desc {
    margin-top: 12px;
    margin-bottom: 20px;
    max-width: 900px;
}

.learn-center .hub-lazy-section__content .hc-faq {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
}

.learn-center .lc-guide-card,
.learn-center .lc-dev-card,
.learn-center .lc-steps-card,
.learn-center .lc-video-card {
    height: 100%;
}

.learn-center__guide-card {
    display: flex;
    flex-direction: column;
}

.learn-center__guide-card .lc-guide-card-text {
    flex: 1;
}

/* Course descriptions contain readable multi-line text, not compressed labels. */
.learn-center .learn-center__course-description {
    line-height: 1.9;
    margin-top: 5px;
    margin-bottom: 12px;
    min-height: calc(3 * 1.9em);
    -webkit-line-clamp: 3;
    overflow-wrap: break-word;
}

.learn-center__date {
    color: #7b8495;
    font-size: 11px;
    display: block;
    margin-top: 12px;
}

.learn-center__empty {
    padding: 24px;
    margin: 0;
    color: #697386;
    border: 1px dashed #e1e6ec;
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
}

.learn-center__support {
    margin-top: 30px;
}

@media (max-width: 576px) {
    .learn-center .lc-hero-card {
        padding: 35px 16px;
        min-height: 310px;
    }

    .learn-center .lc-hero-title {
        font-size: 27px;
    }

    .learn-center .hub-lazy-section {
        padding-top: 14px;
        padding-bottom: 10px;
    }

    .learn-center .lc-section--alt {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* The reusable search matches the Learning Hero and always has a submit button. */
.learn-center .lc-hero-search .hub-education-search { width: min(100%,760px); margin: 10px auto 12px; }
.learn-center .lc-hero-search .hub-education-search__bar { background: #fff; }
.learn-center .lc-hero-search .hub-education-search__hint { color: rgba(255,255,255,.92); text-align: center; }
.learn-center .lc-hero-search .hub-education-search__suggestions { text-align: right; }

/* V11 — icon and its two-line copy form a single unit in every section. */
.learn-center .hub-lazy-section__heading {
    align-items: center;
    margin-bottom: 20px;
}
.learn-center .lc-section-head {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
}
.learn-center .lc-section-copy { min-width: 0; text-align: right; }
.learn-center .lc-section-icon { flex: 0 0 42px; }
.learn-center .lc-section-copy .lc-title {
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
    color: #2166ae;
}
.learn-center .lc-section-copy .lc-desc {
    max-width: none;
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.9;
    color: #8c97a7;
}
.learn-center .hub-lazy-section__heading .lc-videos-more {
    flex: 0 0 auto;
    margin-inline-start: auto;
    font-size: 12px;
    white-space: nowrap;
}
/* "Latest guides" uses compact two-row cards, no duplicated body copy. */
.learn-center .lc-guide-grid--latest { --bs-gutter-x: 12px; --bs-gutter-y: 12px; margin-top: 0; }
.learn-center .learn-center__latest-card {
    min-height: 94px;
    padding: 13px 14px 12px;
    border-radius: 4px;
    justify-content: space-between;
    background: #f6f7fa;
}
.learn-center .learn-center__latest-card .lc-guide-card-top { margin-bottom: 6px; }
.learn-center .learn-center__latest-card .lc-guide-card-title {
    font-size: 13px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    white-space: normal;
}
.learn-center .learn-center__latest-card .lc-guide-card-arrow { width: 20px; height: 20px; border-radius: 4px; }
.learn-center .learn-center__latest-card .learn-center__date {
    display: block;
    margin-top: 7px;
    color: #8791a2;
    font-size: 10px;
    line-height: 1.8;
    text-align: right;
}
@media (max-width: 575.98px) {
    .learn-center .hub-lazy-section__heading { gap: 12px; }
    .learn-center .lc-section-head { gap: 9px; }
    .learn-center .lc-section-copy .lc-title { font-size: 15px; }
    .learn-center .lc-section-copy .lc-desc { font-size: 11px; }
    .learn-center .hub-lazy-section__heading .lc-videos-more { font-size: 11px; }
}


/* V12: Mobile Learn Center layout.
   The shared .lc-section sets horizontal padding to zero. Bootstrap .row then
   extends past the viewport because of its negative gutter margins. Restore
   section padding instead of hiding overflow on the entire page. */
@media (max-width: 767.98px) {
    .learn-center > .hub-lazy-section.container {
        min-width: 0;
        padding-inline: 16px;
    }

    .learn-center .hub-lazy-section__content,
    .learn-center .hub-skeleton,
    .learn-center .lc-section-head,
    .learn-center .lc-section-copy {
        min-width: 0;
        max-width: 100%;
    }

    .learn-center .hub-lazy-section__content > .row,
    .learn-center .hub-lazy-section__content > .hub-skeleton > .row {
        --bs-gutter-x: 16px;
    }

    .learn-center .hub-lazy-section__content .row > [class*="col-"] {
        min-width: 0;
    }

    .learn-center .hub-lazy-section__content :is(
        .lc-guide-card,
        .lc-steps-card,
        .lc-dev-card,
        .lc-video-card
    ) {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .learn-center .lc-dev-card-top {
        white-space: normal;
    }

    .learn-center .hub-lazy-section__content :is(img, video, iframe) {
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    /* Match the 12px side margins of the Hero card and keep alternating
       section backgrounds inside the same visual container. */
    .learn-center > .hub-lazy-section.container {
        width: calc(100% - 24px);
        max-width: none;
        margin-inline: auto;
        padding-inline: 16px;
    }

    /* At 320px the icon + subtitle + “View all” do not fit on one line.
       Give the action its own row instead of pushing it outside the viewport. */
    .learn-center .hub-lazy-section__heading {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        align-items: start;
        margin-bottom: 14px;
    }

    .learn-center .hub-lazy-section__heading .lc-section-head {
        width: 100%;
        margin: 0;
        align-items: center;
    }

    .learn-center .hub-lazy-section__heading .lc-videos-more {
        margin-inline-start: 0;
        justify-self: end;
        line-height: 1.8;
    }

    .learn-center .lc-section-copy :is(.lc-title, .lc-desc) {
        overflow-wrap: anywhere;
    }

    .learn-center .hub-lazy-section__content .lc-guide-grid {
        margin-top: 0;
    }
}
