.resources__header__wrapper {
    width: 100%;
    background: #deeaf8;
}

.resources__header {
    width: 1300px;
    max-width: 100%;
    padding: 0 20px;
    display: flex;
    margin: 0 auto;
    overflow-x: auto;
}

.resources__header__wrapper .resources__header__link {
    padding: 12px 53px;
    background: transparent;
    color: #9bb0c7;
    display: inline-block;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 800;
    line-height: 19px;
    transition: 0.3s;
}

.resources__header__wrapper .resources__header__link:hover, .resources__header__wrapper .resources__header__link:focus {
    color: #002855;
}

.resources__header__wrapper .resources__header__link.active {
    background: #002855;
    color: #fff;
}

.resources__top-post {
    min-height: 335px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    background: #f3f3f3;
}

@media (max-width: 1023px) {
    .resources__top-post {
        display: flex;
        flex-direction: column;
    }
}

.resources__top-post .post-content-wrapper {
    padding-top: 45px;
    padding-bottom: 45px;
}

.resources__top-post .post-content {
    width: 590px;
    max-width: 100%;
    margin-right: auto;
    padding-right: 20px;
    padding-left: 70px;
}

@media (max-width: 1023px) {
    .resources__top-post .post-content {
        margin-left: 0;
        width: 100%;
        padding-left: 20px;
    }
}

.resources__top-post .post-content .category {
    text-transform: uppercase;
    color: #7a7a7a;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 10px;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.resources__top-post .post-content .title {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 10px;
    font-weight: 800;
    color: #000;
    display: block;
}

.resources__top-post .post-content .excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.5;
    color: #000;
    margin-bottom: 20px;
}

.resources__top-post .post-content .date {
    margin-bottom: 0;
    font-size: 11px;
    line-height: 1.5;
    color: #000;
    opacity: 0.5;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.resources__top-post .post-image {
    position: relative;
    cursor: pointer;
    height: 335px;
    overflow: hidden;
}

.resources__top-post .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resources__top-post .post-image .time-play {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #006FD0;
    padding: 15px;
    font-size: 15px;
    line-height: 1.5;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.resources__top-post .post-image video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 1023px) {
    .resources__top-post .post-image video {
        position: relative;
        height: 200px;
    }
}

.resources__filters {
    display: flex;
    justify-content: space-between;
    width: calc(100% - 40px);
    max-width: 1100px;
    padding: 40px 0 15px;
    border-bottom: 1px solid #dedede;
    margin: 0 auto;
}

.resources__filters .categories {
    display: flex;
    gap: 40px;
}

.resources__filters .categories .category {
    margin-bottom: 0;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9d9d9d;
    cursor: pointer;
}

.resources__filters .categories .category.active {
    color: #002855;
    position: relative;
}

.resources__filters .categories .category.active:after {
    position: absolute;
    content: '';
    width: 100%;
    height: 1px;
    background: #002855;
    bottom: -16px;
    left: 0;
}

.resources__filters .grid {
    display: flex;
    gap: 15px;
}

.resources__filters .grid button {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.resources__filters .grid button.active {
    path {
        fill: #002855;
    }
}

.resources__filters .grid button:hover, .resources__filters .grid button:active, .resources__filters .grid button:focus {
    background: transparent;
}

.resources__posts-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px 30px;
    width: 100%;
    max-width: 1140px;
    padding-top: 45px;
    padding-left: 20px;
    padding-right: 20px;
    margin: 0 auto 55px;
}

@media (max-width: 768px) {
    .resources__posts-wrapper {
        grid-template-columns: 1fr;
    }
}

.resources__posts-wrapper .post-item {
    background: #f3f3f3;
}

.resources__posts-wrapper .post-item .post-video {
    position: relative;
    display: flex;
    aspect-ratio: 348/211;
}

.resources__posts-wrapper .post-item .post-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resources__posts-wrapper .post-item .post-video .time-play {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #002855;
    padding: 9px;
    font-size: 10px;
    line-height: 1.5;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.resources__posts-wrapper .post-item video {
    width: 100%;
    aspect-ratio: 1.65;
    object-fit: cover;
    display: block;
}

.resources__posts-wrapper .post-item .post-content {
    padding: 30px;
}

.resources__posts-wrapper .post-item .post-content .category {
    color: #7a7a7a;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 10px;
    letter-spacing: 0.12em;
    font-weight: 700;
    text-transform: uppercase;
}

.resources__posts-wrapper .post-item .post-content .title {
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 10px;
    font-weight: 800;
    color: #000;
    display: block;
}

.resources__posts-wrapper .post-item .post-content .excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.5;
    color: #000;
    margin-bottom: 0;
}

.resources__posts-wrapper .post-item .post-content .view-button {
    border: none;
    background: #7b7b7b;
    color: #fff;
    font-size: 11px;
    line-height: 1.5;
    font-weight: 600;
    padding: 10px 20px;
    cursor: pointer;
    display: inline-flex;
    margin-top: 20px;
    border-radius: 0;
}

.load-more-wrapper {
    text-align: center;
}

.load-more-wrapper .load-more {
    border: none;
    color: #646464;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 10px 20px;
    cursor: pointer;
    opacity: .7;
    background: transparent;
    display: block;
    margin: 0 auto 80px;
}

.load-more-wrapper .load-more:hover, .load-more-wrapper .load-more:active, .load-more-wrapper .load-more:focus {
    background: transparent;
}

.video-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.video-modal.active { display: flex; }

.video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(4px);
}

.video-modal__content {
    position: relative;
    z-index: 2;
    max-width: 90%;
    max-height: 90%;
    width: 100%;
}

.video-modal__player {
    width: 100%;
    height: auto;
    max-height: 90vh;
    display: block;
    border-radius: 10px;
    background: black;
}

.video-modal__close, .video-modal__close:hover, .video-modal__close:active {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
}

/*list*/

.resources__posts-wrapper.list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.resources__posts-wrapper.list .post-item {
    margin-bottom: 25px;
    background: transparent;
}

.resources__posts-wrapper.list .post-item:not(:last-child) {
    border-bottom: 1px solid #dedede;
}

.resources__posts-wrapper.list .post-video {
    display: none;
}

.resources__posts-wrapper.list .post-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
}

.resources__posts-wrapper.list .post-content .view-button {
    height: fit-content;
    min-width: max-content;
}