/* Bài viết con trong từng thẻ Hoạt động giáo dục. */

.dt-education__card {
    display: flex;
    flex-direction: column;
}

.dt-education__card>a {
    flex: 0 0 auto;
}

.dt-education__articles {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px 12px;
    background: #f7fcff;
    border-top: 1px solid #e5f0f4;
}

.dt-education__article {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 9px;
    padding: 5px 6px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #fff;
    color: #12365a;
    text-decoration: none;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.dt-education__article:hover,
.dt-education__article:focus-visible {
    border-color: #b9e3e6;
    background: #f0fbfb;
    box-shadow: 0 5px 14px rgba(20, 96, 125, .12);
    transform: translateX(3px);
}

.dt-education__article:focus-visible {
    outline: 3px solid rgba(245, 183, 52, .5);
    outline-offset: 2px;
}

.dt-education__article-image {
    display: block;
    flex: 0 0 90px;
    width: 90px;
    height: 54px;
    overflow: hidden;
    border-radius: 7px;
    background: #dcecf5;
}

.dt-education__article-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dt-education__article-copy {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.dt-education__article-copy strong,
.dt-education__article-copy small {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

.dt-education__article-copy strong {
    color: #0745c1;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    font-family: 'Inter_24pt-SemiBold';
}

.dt-education__article-copy small {
    color: #5b7183;
    font-size: 13px;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    margin-top: 1px;
    display: none;
}

@media (max-width: 1199px) {
    .dt-education__articles {
        padding-right: 10px;
        padding-left: 10px;
    }
    .dt-education__article-image {
        flex-basis: 56px;
        width: 56px;
        height: 44px;
    }
}

@media (max-width: 767px) {
    .dt-education__cards.swiper .dt-education__card {
        height: auto;
    }
    .dt-education__articles {
        gap: 7px;
        padding: 9px 10px 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dt-education__article {
        transition: none;
    }
    .dt-education__article:hover,
    .dt-education__article:focus-visible {
        transform: none;
    }
}


/* Figma activity */

.dt-education__container {
    width: min(1225px, calc(100% - 40px));
    max-width: 1225px;
    margin: 0 auto;
}

.dt-education__heading {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    margin: 0;
}

.dt-education__heading h2 {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    height: 72px;
    padding: 0 0 0 32px;
    color: #092d91;
    font: 700 23px/1 'Inter_24pt-Bold', Arial, sans-serif;
    letter-spacing: .575px;
    text-transform: uppercase;
}

.dt-education__heading-mark {
    position: absolute;
    top: -4px;
    left: -1px;
    display: block;
    width: 72px;
    height: 72px;
    background: url('/Design/img/Figma/Education/activity-heading-mark.svg') center / 100% 100% no-repeat;
    pointer-events: none;
    z-index: -1;
}

.dt-education__heading>a {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 43px;
    padding: 0 24px;
    border-radius: 29px;
    color: #0c2997;
    background: #fdde51 !important;
    font: 600 16px/1.37 'Inter_24pt-SemiBold', Arial, sans-serif;
    text-decoration: none;
}

.dt-education__tabs {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    min-height: 42px;
    margin: -4px 0 18px;
    overflow-x: auto;
    scrollbar-width: none;
}

.dt-education__tabs::-webkit-scrollbar {
    display: none;
}

.dt-education__tab {
    flex: 0 0 auto;
    min-height: 27px;
    padding: 8px 4px;
    border: 0;
    border-radius: 20px;
    color: #092d91;
    background: transparent;
    font: 600 16px/17px 'Inter_24pt-Medium';
    cursor: pointer;
    transition: color .22s ease, background-color .22s ease, padding .22s ease, box-shadow .22s ease;
}

.dt-education__tab.is-active {
    padding-right: 13px;
    padding-left: 13px;
    color: #fff;
    background: #092d91;
    box-shadow: 0 4px 10px rgba(9, 45, 145, .12);
}

.dt-education__tab:hover,
.dt-education__tab:focus-visible {
    color: #e72229;
}

.dt-education__tab.is-active:hover,
.dt-education__tab.is-active:focus-visible {
    color: #fff;
    background: #0745c1;
}

.dt-education__tab:focus-visible {
    outline: 3px solid rgba(36, 174, 245, .38);
    outline-offset: 2px;
}

.dt-education__panel {
    display: none;
}

.dt-education__panel.is-active {
    display: block;
}

.dt-education__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 27px;
}

.dt-education__card {
    min-width: 0;
    margin: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.dt-education__card>a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.dt-education__image {
    display: block;
    width: 100%;
    height: 218px;
    overflow: hidden;
    border-radius: 5px;
    background: #eaf2f7;
}

.dt-education__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.dt-education__card>a:hover .dt-education__image img,
.dt-education__card>a:focus-visible .dt-education__image img {
    transform: scale(1.025);
}

.dt-education__card strong {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 10px;
    color: #092D91;
    font: 600 17px/1.37 'Inter_24pt-SemiBold', Arial, sans-serif;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.dt-education__card>a:focus-visible {
    outline: 3px solid rgba(36, 174, 245, .38);
    outline-offset: 3px;
}

@media (max-width: 991px) {
    .dt-education__container {
        width: calc(100% - 32px);
        max-width: none;
    }
    .dt-education__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 18px;
    }
    .dt-education__image {
        height: 210px;
    }
}

@media (max-width: 767px) {
    .dt-education {
        padding-bottom: 28px;
    }
    .dt-education__heading,
    .dt-education__heading h2 {
        height: 57px;
    }
    .dt-education__heading h2 {
        font-size: 16px;
        padding-left: 16px;
    }
    .dt-education__heading-mark {
        width: 57px;
        height: 57px;
    }
    .dt-education__heading>a {
        height: 38px;
        padding: 0 12px;
        font-size: 14px;
    }
    .dt-education__tabs {
        justify-content: flex-start;
        gap: 14px;
        margin: -1px 0 16px;
        padding-bottom: 2px;
    }
    .dt-education__tab {
        font-size: 12px;
    }
    .dt-education__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
    .dt-education__card strong {
        font-size: 15px;
    }
    .dt-education__image {
        height: 150px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dt-education__tab,
    .dt-education__image img {
        transition: none;
    }
}