/* =====================================================
   LEARNING LAB SECTION
   ===================================================== */

.cp-learning-lab {
    padding: 104px 0 140px;
}

/* Header row */

.cp-learning-lab__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 31px;
}

.cp-learning-lab__heading {
    margin: 0;
    font-family: "SF UI Display", sans-serif;
    font-size: 54px;
    font-weight: 300;
    line-height: 62px;
    letter-spacing: -0.04em;
    color: #F7F7F7;
    text-transform: none;
}

.cp-learning-lab__all-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 6px 15px 6px;
    border: 1px solid #B9B9BA;
    border-radius: 100px;
    font-family: "SF UI Display", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #F7F7F7 !important;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.22s ease, background 0.22s ease;
    margin-top: -4px;
}

.cp-learning-lab__all-btn:hover {
    border-color: rgba(247, 247, 247, 0.5);
    background: rgba(247, 247, 247, 0.05);
}

/* Slider area */

.cp-learning-lab__slider {
    position: relative;
}

.cp-learning-lab__viewport {
    overflow: hidden;
}

.cp-learning-lab__track {
    display: flex;
    gap: 32px;
    transition: transform 0.48s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Card */

.cp-learning-lab__card {
    flex: 0 0 calc((100% - 2 * 24px) / 3);
    min-width: 0;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background-color: #141517;
    border-radius: 12px;
    padding: 4px;
}

.cp-learning-lab__card:hover .cp-learning-lab__img {
    transform: scale(1.03);
}

.cp-learning-lab__img-wrap {
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 28px;
    aspect-ratio: 16 / 9;
    background: #1E1E1F;
}

.cp-learning-lab__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.48s ease;
}

.cp-learning-lab__card-content{
    padding: 0 26px 34px;
}

.cp-learning-lab__date {
    margin-bottom: 12px;
    font-family: 'MonoBlack', sans-serif;
    color: #86868B;
    font-weight: 400;
    font-size: 12px;
    line-height: 20px;
    letter-spacing: 10%;
}

.cp-learning-lab__title {
    margin: 0 0 21px;
    font-family: "SF UI Display", sans-serif;
    color: #F7F7F7;
    text-transform: none;
    transition: color 0.22s ease;
    font-weight: 400;
    font-size: 20px;
    line-height: 28px;
    letter-spacing: 3%;
}

.cp-learning-lab__card:hover .cp-learning-lab__title {
    color: #FF9626;
}

.cp-learning-lab__excerpt {
    margin: 0 0 21px;
    font-family: "SF UI Display", sans-serif;
    color: #B9B9BA;
    flex: 1;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 1%;
}

.cp-learning-lab__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cp-learning-lab__tag {
    padding: 3px 12px;
    border-radius: 100px;
    background: #F7F7F71A;
    font-family: "SF UI Display", sans-serif;
    color: #FF9626;
    white-space: nowrap;
    font-weight: 400;
    font-size: 11px;
    line-height: 18px;
    letter-spacing: 0%;
}

/* Arrow buttons */

.cp-learning-lab__arrow {
    position: absolute;
    top: 30%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1E1E1F;
    border: 1px solid rgba(247, 247, 247, 0.1);
    cursor: pointer;
    transition: background 0.22s ease, border-color 0.22s ease;
}

.cp-learning-lab__arrow:hover {
    background: #2A2A2B;
    border-color: rgba(247, 247, 247, 0.25);
}

.cp-learning-lab__arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.cp-learning-lab__arrow--prev { left: -64px; }
.cp-learning-lab__arrow--next { right: -64px; }

/* Mobile dots */

.cp-learning-lab__dots {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.cp-learning-lab__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(247, 247, 247, 0.2);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cp-learning-lab__dot.is-active {
    background: #FF9626;
    transform: scale(1.15);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1200px) {
    .cp-learning-lab__arrow--prev { left: -52px; }
    .cp-learning-lab__arrow--next { right: -52px; }
}

@media (max-width: 1024px) {
    .cp-learning-lab__card {
        flex: 0 0 calc((100% - 24px) / 2);
    }
}

@media (max-width: 768px) {
    .cp-learning-lab {
        padding: 80px 0 100px;
    }

    .cp-learning-lab__card {
        flex: 0 0 100%;
    }

    .cp-learning-lab__arrow {
        display: none;
    }

    .cp-learning-lab__dots {
        display: flex;
    }

    .cp-learning-lab__title {
        font-size: 20px;
    }

    /* Hide the header button, show the duplicate below dots */
    .cp-learning-lab__header .cp-learning-lab__all-btn {
        display: none;
    }

    .cp-learning-lab__all-btn--mobile {
        display: block;
        max-width: max-content;
        margin: 24px auto 0;
    }
}

@media (min-width: 769px) {
    .cp-learning-lab__all-btn--mobile {
        display: none;
    }
}
