/* Video carousel (shortcode [carrusel_videos]) */
.educ-project__container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.title-box {
    display: flex;
    justify-content: space-between;
}
.educ-project__carousel {
    width: 100%;
    margin-left: 0;
    transform: none;
    padding-bottom: 1rem;
}
.educ-project__carousel-header {
    padding-bottom: 1rem;
}
.educ-project__carousel-title {
    font-weight: bold;
    margin: 0;
    font-size: 1.2rem;
}
.educ-project__carousel-track-wrapper {
    position: relative;
}
.educ-project__carousel-inner {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding: 0 0 1rem;
    scrollbar-width: none;
    justify-content: center;
}
.educ-project__carousel-inner::-webkit-scrollbar {
    display: none;
    height: 6px;
}
.educ-project__carousel-inner::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .18);
    border-radius: 999px;
}
.educ-project__card {
    flex: 0 0 350px;
}
.educ-project__card-media {
    height: 183px;
}
.educ-project__card-media img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.educ-project__video-placeholder {
    background: none;
    padding: 0;
}
.educ-project__video-thumb {
    display: block;
    width: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 0;
    background: none;
}
.educ-project__video-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
/* Darkening overlay on hover */
.educ-project__video-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background .2s ease;
}
.educ-project__video-thumb:hover::after,
.educ-project__video-thumb:focus-visible::after {
    background: rgba(0, 0, 0, .18);
}
.educ-project__video-thumb:hover img,
.educ-project__video-thumb:focus-visible img {
    transform: scale(1.05);
}
/* Play badge */
.educ-project__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .6);
    border-radius: 50%;
    pointer-events: none;
    transition: background .2s ease, transform .2s ease;
}
.educ-project__play svg {
    width: 22px;
    height: 22px;
    color: #fff;
    margin-left: 3px; /* optical centering of the triangle */
}
.educ-project__video-thumb:hover .educ-project__play,
.educ-project__video-thumb:focus-visible .educ-project__play {
    background: rgba(0, 0, 0, .82);
    transform: translate(-50%, -50%) scale(1.08);
}
.educ-project__card-body {
    padding: 1.25rem 1.25rem 1.4rem 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-bottom: 20px;
}
.educ-project__card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}
.educ-project__card-text {
    font-size: .9rem;
    color: #015C3B;
}
.title-box-link {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    text-decoration: none;
    color: inherit;
}
article.educ-project__card--video .educ-project__arrow {
    color: black;
}
.educ-project__arrow {
    width: 16px;
    height: 16px;
}
/* Navigation / arrows */
.educ-project__carousel-nav {
    position: absolute;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: background .2s, border-color .2s, box-shadow .2s;
}
.educ-project__carousel-nav:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}
.educ-project__carousel-nav svg {
    color: #4b5563;
}
.educ-project__carousel-nav--prev {
    left: 0;
    bottom: 0;
}
.educ-project__carousel-nav--next {
    bottom: 0;
    left: 38px;
}
@media (max-width: 480px) {
    .educ-project__carousel-inner {
        display: block;
    }
}