/* Page-specific Learning Library styles; shared shop styles remain unchanged. */
.ym-learning-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 28%);
    align-items: center;
    gap: 20px;
    width: 100%;
    min-height: 200px;
    margin: 0 0 20px;
    padding: 18px 32px;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(140deg, transparent 42%, rgba(41, 104, 170, .18) 42%, rgba(41, 104, 170, .18) 66%, transparent 66%),
        linear-gradient(115deg, #102c59 0%, #164d88 62%, #103368 100%);
    color: #fff;
    isolation: isolate;
}

.ym-learning-hero::after {
    position: absolute;
    z-index: -1;
    top: -30%;
    right: -8%;
    width: 32%;
    height: 160%;
    border-radius: 65% 0 0 30%;
    transform: rotate(18deg);
    background: linear-gradient(135deg, #ff9c21, #f16620 75%);
    content: "";
    pointer-events: none;
}

.ym-learning-hero__copy {
    min-width: 0;
}

.ym-learning-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    padding: 5px 10px;
    border: 1px solid #f16620;
    border-radius: 24px;
    background: #f16620;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ym-learning-hero__eyebrow i {
    font-size: 1.4rem;
}

.ym-learning-hero__title {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(28px, 2.4vw, 34px);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -.03em;
}

.ym-learning-hero__title span {
    display: inline;
}

.ym-learning-hero__description {
    margin: 0;
    color: #e4ebf7;
    font-size: 1.6rem;
    line-height: 1.5;
    letter-spacing: 0;
}

.ym-learning-hero__benefits {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.ym-learning-hero__benefits li {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: #edf3ff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.ym-learning-hero__benefit-icon {
    display: inline-flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 2px solid #c1d6f3;
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
}

.ym-learning-hero__benefit-icon .fa-bolt {
    font-size: 16px;
}

.ym-learning-hero__benefit-icon--rocket {
    border: 0;
    font-size: 27px;
}

.ym-learning-hero__art {
    display: block;
    justify-self: end;
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: -18px 0;
    pointer-events: none;
    user-select: none;
}

@media (max-width: 991px) {
    .ym-learning-hero__title span {
        display: block;
    }

    .ym-learning-hero__benefits {
        column-gap: 18px;
    }

    .ym-learning-hero__benefits li {
        font-size: 12px;
    }
}

@media (max-width: 767px) {
    .ym-learning-hero {
        grid-template-columns: minmax(0, 1fr) 140px;
        gap: 16px;
        padding: 18px 24px;
        border-radius: 12px;
    }

    .ym-learning-hero__title {
        font-size: 3rem;
    }

    .ym-learning-hero__description {
        font-size: 15px;
    }

    .ym-learning-hero__art {
        margin: 0;
    }
}

@media (max-width: 575px) {
    .ym-learning-hero {
        display: block;
        padding: 18px 20px;
    }

    .ym-learning-hero::after {
        top: -165px;
        right: -125px;
        width: 240px;
        height: 240px;
    }

    .ym-learning-hero__eyebrow {
        margin-bottom: 32px;
        font-size: 10px;
    }

    .ym-learning-hero__eyebrow i {
        display: none;
    }

    .ym-learning-hero__title {
        font-size: clamp(24px, 6.6vw, 30px);
    }

    .ym-learning-hero__benefits {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: start;
        gap: 10px;
    }

    .ym-learning-hero__benefits li {
        flex-direction: column;
        align-items: flex-start;
        gap: 7px;
        font-size: 12px;
    }

    .ym-learning-hero__art {
        position: absolute;
        top: 8px;
        right: 16px;
        width: 92px;
    }
}

.ym-learning-library {
    width: calc(100% - 40px);
    margin: 20px auto 40px;
}

.ym-learning-library--categories-ready .ym-learning-library__layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

.ym-learning-library__results {
    min-width: 0;
}

.ym-learning-categories {
    align-self: stretch;
    min-width: 0;
    padding: 16px 0 6px;
    border: 1px solid #e0e6ef;
    border-radius: 12px;
    background: #fff;
}

.ym-learning-categories__title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 18px 16px;
    color: #183568;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.ym-learning-categories__title i {
    flex-shrink: 0;
    color: #f16620;
    font-size: 24px;
}

.ym-learning-categories__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ym-learning-categories__list li {
    position: relative;
    margin: 0;
}

.ym-learning-categories__list li + li::before {
    position: absolute;
    top: 0;
    right: 18px;
    left: 18px;
    border-top: 1px solid #e8edf4;
    content: "";
}

.ym-learning-categories__button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 0;
    border-left: 4px solid transparent;
    border-radius: 0 8px 8px 0;
    background: transparent;
    color: #183568;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
}

.ym-learning-categories__button i {
    flex: 0 0 22px;
    font-size: 18px;
    text-align: center;
}

.ym-learning-categories__button span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ym-learning-categories__button:hover {
    background: #f3f6fa;
}

.ym-learning-categories__button[aria-pressed="true"] {
    border-left-color: #183568;
    background: #f16620;
    color: #fff;
    font-weight: 700;
}

.ym-learning-categories__button:focus-visible {
    outline: 3px solid #183568;
    outline-offset: -3px;
}

.ym-learning-categories__button[aria-pressed="true"]:focus-visible {
    outline-color: #fff;
    outline-offset: -6px;
}

.ym-learning-social {
    margin: 16px 10px 12px;
    padding: 10px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #f7f9fc;
}

.ym-learning-library .ym-learning-social h3 {
    margin: 0 0 8px;
    color: #183568;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
}

.ym-learning-social__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 82px;
    align-items: center;
    gap: 8px;
}

.ym-learning-social__links {
    display: grid;
    gap: 6px;
}

.ym-learning-social__link {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    min-height: 28px;
    padding: 4px 6px;
    border: 1px solid #dbe3ef;
    border-radius: 5px;
    background: #fff;
    color: #183568;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

.ym-learning-social__link i,
.ym-learning-social__link svg {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    font-size: 15px;
    line-height: 16px;
    text-align: center;
}

.ym-learning-social__link--youtube i { color: #c5221f; }
.ym-learning-social__link--facebook i { color: #1877f2; }
.ym-learning-social__link--whatsapp i { color: #128c4a; }
.ym-learning-social__link--tiktok svg { color: #111; }

.ym-learning-social__link:hover,
.ym-learning-social__link:focus-visible {
    border-color: #183568;
    background: #edf2f9;
    color: #183568;
    text-decoration: none;
}

.ym-learning-social__link:focus-visible {
    outline: 3px solid #183568;
    outline-offset: 3px;
}

.ym-learning-social__qr {
    margin: 0;
    text-align: center;
}

.ym-learning-social__qr img {
    display: block;
    width: 82px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.ym-learning-social__qr figcaption {
    margin-top: 4px;
    color: #526079;
    font-size: 11px;
    line-height: 1.4;
}

.ym-learning-social--mobile {
    display: none;
    margin: 0 0 20px;
}

.ym-learning-social--mobile .ym-learning-social__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ym-learning-social--mobile .ym-learning-social__link {
    min-height: 40px;
    padding: 8px;
}

.ym-learning-library:not(.ym-learning-library--categories-ready) .ym-learning-social--mobile {
    display: block;
}

.ym-learning-categories__mobile {
    display: none;
}

.ym-learning-categories__mobile label {
    flex-shrink: 0;
    margin: 0;
    color: #183568;
    font-size: 14px;
    font-weight: 600;
}

.ym-learning-categories__select {
    flex: 1;
    min-width: 0;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #a6b3c8;
    border-radius: 8px;
    background: #fff;
    color: #183568;
    font-size: 16px;
    line-height: 1.5;
    appearance: auto;
}

.ym-learning-categories__select:focus-visible {
    outline: 3px solid #183568;
    outline-offset: 2px;
}

.ym-learning-library__title {
    margin: 0;
    color: #183568;
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.02em;
}

.ym-learning-library__heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 16px;
}

.ym-learning-library__status {
    margin: 0;
    color: #526079;
    font-size: 14px;
    line-height: 1.5;
}

.ym-learning-library__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 16px;
    margin-left: auto;
}

.ym-learning-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 10px 0 12px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    color: #183568;
}

.ym-learning-sort label {
    margin: 0;
    color: inherit;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.ym-learning-sort select {
    width: 144px;
    height: auto;
    margin: 0;
    padding: 8px 4px;
    border: 0;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    appearance: auto;
    cursor: pointer;
}

.ym-learning-sort:focus-within {
    outline: 3px solid #183568;
    outline-offset: 2px;
}

.ym-learning-sort select:focus {
    outline: none;
    box-shadow: none;
}

.ym-learning-library__metadata-note,
.ym-learning-library__unavailable {
    margin: 0 0 12px;
    color: #526079;
    font-size: 13px;
    line-height: 1.5;
}

.ym-learning-library__unavailable {
    grid-column: 1 / -1;
}

.ym-learning-library [hidden] {
    display: none;
}

.ym-learning-search {
    margin-bottom: 20px;
}

.ym-learning-search__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ym-learning-search__field {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 4px 0 16px;
    border: 1px solid #a6b3c8;
    border-radius: 10px;
    background: #fff;
    color: #183568;
}

.ym-learning-search__field:focus-within {
    outline: 3px solid #183568;
    outline-offset: 2px;
}

.ym-learning-search__field > i {
    flex-shrink: 0;
    font-size: 18px;
}

.ym-learning-search__input {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 12px 0;
    border: 0;
    background: transparent;
    color: #183568;
    font-size: 16px;
    line-height: 1.5;
    box-shadow: none;
}

.ym-learning-search__input:focus {
    outline: none;
    box-shadow: none;
}

.ym-learning-search__input::placeholder {
    color: #526079;
    opacity: 1;
}

.ym-learning-search__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.ym-learning-search__clear {
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #183568;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.ym-learning-search__clear:hover {
    background: #edf2f8;
}

.ym-learning-search__clear:focus-visible {
    outline: 2px solid #183568;
    outline-offset: -2px;
}

.ym-learning-library__empty {
    padding: 32px 20px;
    border: 1px dashed #a6b3c8;
    border-radius: 12px;
    background: #f7f9fc;
    text-align: center;
}

.ym-learning-library__empty h3 {
    margin: 0 0 8px;
    color: #183568;
    font-size: 20px;
    line-height: 1.4;
}

.ym-learning-library__empty p {
    margin: 0;
    color: #526079;
    font-size: 14px;
    line-height: 1.6;
}

.ym-learning-library__reset {
    min-height: 44px;
    margin-top: 16px;
    padding: 8px 16px;
    border: 1px solid #183568;
    border-radius: 8px;
    background: #183568;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.ym-learning-library__reset:hover {
    background: #24477f;
}

.ym-learning-library__reset:focus-visible {
    outline: 3px solid #183568;
    outline-offset: 3px;
}

.ym-learning-library__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.ym-learning-card {
    display: flex;
    min-width: 0;
    margin: 0;
}

.ym-learning-card__link {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px solid #e0e6ef;
    border-radius: 12px;
    background: #fff;
    color: #183568;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(24, 53, 104, .05);
}

.ym-learning-card__link:hover,
.ym-learning-card__link:focus-visible {
    border-color: #9eb0cb;
    color: #183568;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(24, 53, 104, .1);
}

.ym-learning-card__link:focus-visible {
    outline: 3px solid #183568;
    outline-offset: 3px;
}

.ym-learning-card__media {
    position: relative;
    flex-shrink: 0;
    aspect-ratio: 8 / 3;
    max-height: 160px;
    overflow: hidden;
    border-radius: 11px 11px 0 0;
    background: #183568;
}

.ym-learning-card__media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.ym-learning-card__play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: rgba(24, 53, 104, .85);
    color: #fff;
    font-size: 14px;
    pointer-events: none;
}

.ym-learning-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 14px 10px;
}

.ym-learning-card__meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
    width: 100%;
    margin-bottom: 6px;
}

.ym-learning-card__title {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #183568;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.01em;
    overflow-wrap: anywhere;
}

.ym-learning-card__category {
    flex: 1;
    min-width: 0;
    margin: 0;
    color: #526079;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.ym-learning-card__cta {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    color: #183568;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.ym-learning-card__cta i {
    font-size: 12px;
}

.ym-learning-card__link:hover .ym-learning-card__cta,
.ym-learning-card__link:focus-visible .ym-learning-card__cta {
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 1439px) {
    .ym-learning-library__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1199px) {
    .ym-learning-categories__title {
        gap: 8px;
        font-size: 18px;
    }

    .ym-learning-library--categories-ready .ym-learning-library__layout {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 20px;
    }

    .ym-learning-library__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 991px) {
    .ym-learning-library--categories-ready .ym-learning-library__layout {
        display: block;
    }

    .ym-learning-categories {
        display: none;
    }

    .ym-learning-social--mobile {
        display: block;
    }

    .ym-learning-library--categories-ready .ym-learning-categories__mobile {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .ym-learning-library {
        width: calc(100% - 24px);
        margin-top: 12px;
        margin-bottom: 32px;
    }
}

@media (max-width: 575px) {
    .ym-learning-library__controls {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    .ym-learning-library__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
}
