.documents-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.document-item {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dde4ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.document-item:hover {
    border-color: #0f5c9c;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
    transform: translateY(-2px);
}

.document-item__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #eef4f8;
}

.document-item__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.document-item__media--file {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.document-item__file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    height: 58px;
    padding: 0 12px;
    border: 2px solid #0f5c9c;
    border-radius: 6px;
    background: #fff;
    color: #0f5c9c;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.document-item__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.document-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.document-item__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid #d7e2ea;
    border-radius: 999px;
    color: #31516d;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
}

.document-item__title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.4;
}

.document-item__title a {
    color: #263c55;
    text-decoration: none;
}

.document-item__title a:hover {
    color: #0f5c9c;
}

.document-item__excerpt {
    display: -webkit-box;
    min-height: 66px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.document-item__filename {
    margin: 0 0 18px;
    overflow: hidden;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-item__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.document-item__view,
.document-item__download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 13px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.document-item__view {
    border: 1px solid #cbd8e3;
    color: #263c55;
    background: #fff;
}

.document-item__download {
    border: 1px solid #0f5c9c;
    background: #0f5c9c;
    color: #fff;
}

.document-item__view:hover {
    border-color: #0f5c9c;
    color: #0f5c9c;
}

.document-item__download:hover {
    background: #0b4c82;
    color: #fff;
}

.documents-pagination {
    margin-top: 24px;
}

.documents-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.documents-pagination a,
.documents-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    line-height: 1;
}

.documents-pagination .current {
    border-color: #0f5c9c;
    background: #0f5c9c;
    color: #fff;
}

.documents-empty {
    margin: 0;
}

.page-numbers{
    justify-content: center;
}

.page-numbers li {
    margin: 0;
    margin-left: 0 !important;
}

@media (max-width: 1024px) {
    .documents-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .documents-list {
        grid-template-columns: 1fr;
    }
}

.training-videos-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.training-video-item {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dde4ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.training-video-item:hover {
    border-color: #0f5c9c;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
    transform: translateY(-2px);
}

.training-video-item__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #eef4f8;
    text-decoration: none;
}

.training-video-item__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.training-video-item__media::after {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.24);
    content: "";
}

.training-video-item__placeholder {
    color: #0f5c9c;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0;
}

.training-video-item__play {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #0f5c9c;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.training-video-item__play:hover {
    background: #0b4c82;
    transform: scale(1.06);
}

.training-video-item__play::before {
    display: block;
    width: 0;
    height: 0;
    margin-left: 4px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid #fff;
    content: "";
}

.training-video-item__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.training-video-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.training-video-item__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid #d7e2ea;
    border-radius: 999px;
    color: #31516d;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
}

.training-video-item__title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.4;
}

.training-video-item__title a {
    color: #263c55;
    text-decoration: none;
}

.training-video-item__title a:hover {
    color: #0f5c9c;
}

.training-video-item__excerpt {
    display: -webkit-box;
    min-height: 66px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.training-video-item__link {
    margin: 0 0 18px;
    overflow: hidden;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.training-video-item__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.training-video-item__view,
.training-video-item__watch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 13px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

.training-video-item__view {
    border: 1px solid #cbd8e3;
    color: #263c55;
    margin-bottom: 0 !important;
    background: #fff;
}

.training-video-item__watch {
    border: 1px solid #0f5c9c;
    background: #0f5c9c;
    color: #fff;
}

.training-video-item__view:hover {
    border-color: #0f5c9c;
    color: #0f5c9c;
}

.training-video-item__watch:hover {
    background: #0b4c82;
    color: #fff;
}

.training-video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.training-video-modal.is-open {
    display: flex;
}

.training-video-modal-open {
    overflow: hidden;
}

.training-video-modal__backdrop {
    position: absolute;
    inset: 0;
    padding: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.74);
    cursor: pointer;
}

.training-video-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.32);
}

.training-video-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.training-video-modal__header h3 {
    margin: 0;
    color: #263c55;
    font-size: 18px;
    line-height: 1.4;
}

.training-video-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    background: #fff;
    color: #263c55;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.training-video-modal__close:hover {
    border-color: #0f5c9c;
    color: #0f5c9c;
}

.training-video-modal__frame {
    aspect-ratio: 16 / 9;
    background: #111827;
}

.training-video-modal__frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.training-video-modal__footer {
    display: flex;
    justify-content: flex-end;
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
}

.training-video-modal__footer a {
    color: #0f5c9c;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.training-video-modal__footer a:hover {
    color: #0b4c82;
}

.training-videos-pagination {
    margin-top: 24px;
}

.training-videos-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.training-videos-pagination li {
    margin: 0 !important;
}

.training-videos-pagination a,
.training-videos-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    line-height: 1;
}

.training-videos-pagination .current {
    border-color: #0f5c9c;
    background: #0f5c9c;
    color: #fff;
}

.training-videos-empty {
    margin: 0;
}

@media (max-width: 1024px) {
    .training-videos-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .training-videos-list {
        grid-template-columns: 1fr;
    }

    .training-video-modal {
        padding: 12px;
    }

    .training-video-modal__header {
        padding: 12px;
    }

    .training-video-modal__header h3 {
        font-size: 16px;
    }
}

.tests-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.test-item {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dde4ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.test-item:hover {
    border-color: #0f5c9c;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
    transform: translateY(-2px);
}

.test-item__media {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #eef4f8;
    text-decoration: none;
}

.test-item__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.test-item__media--placeholder {
    background: #eef4f8;
}

.test-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    height: 58px;
    padding: 0 14px;
    border: 2px solid #0f5c9c;
    border-radius: 6px;
    background: #fff;
    color: #0f5c9c;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0;
}

.test-item__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.test-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.test-item__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid #d7e2ea;
    border-radius: 999px;
    color: #31516d;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
}

.test-item__title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.4;
}

.test-item__title a {
    color: #263c55;
    text-decoration: none;
}

.test-item__title a:hover {
    color: #0f5c9c;
}

.test-item__excerpt {
    display: -webkit-box;
    min-height: 66px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.test-item__note {
    margin: 0 0 18px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
}

.test-item__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.test-item__start {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 13px;
    border: 1px solid #0f5c9c;
    border-radius: 6px;
    background: #0f5c9c;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.test-item__start:hover {
    background: #0b4c82;
    color: #fff;
}

.tests-pagination {
    margin-top: 24px;
}

.tests-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tests-pagination li {
    margin: 0 !important;
}

.tests-pagination a,
.tests-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    line-height: 1;
}

.tests-pagination .current {
    border-color: #0f5c9c;
    background: #0f5c9c;
    color: #fff;
}

.tests-empty {
    margin: 0;
}

@media (max-width: 1024px) {
    .tests-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .tests-list {
        grid-template-columns: 1fr;
    }
}

.form-templates-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.form-template-item {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dde4ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.form-template-item:hover {
    border-color: #0f5c9c;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
    transform: translateY(-2px);
}

.form-template-item__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #eef4f8;
}

.form-template-item__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.form-template-item__media--file {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.form-template-item__file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    height: 58px;
    padding: 0 12px;
    border: 2px solid #0f5c9c;
    border-radius: 6px;
    background: #fff;
    color: #0f5c9c;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.form-template-item__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.form-template-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.form-template-item__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid #d7e2ea;
    border-radius: 999px;
    color: #31516d;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
}

.form-template-item__title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.4;
}

.form-template-item__title a {
    color: #263c55;
    text-decoration: none;
}

.form-template-item__title a:hover {
    color: #0f5c9c;
}

.form-template-item__excerpt {
    display: -webkit-box;
    min-height: 66px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.form-template-item__filename {
    margin: 0 0 18px;
    overflow: hidden;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.form-template-item__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.form-template-item__view,
.form-template-item__download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 13px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.form-template-item__view {
    border: 1px solid #cbd8e3;
    color: #263c55;
    background: #fff;
}

.form-template-item__download {
    border: 1px solid #0f5c9c;
    background: #0f5c9c;
    color: #fff;
}

.form-template-item__view:hover {
    border-color: #0f5c9c;
    color: #0f5c9c;
}

.form-template-item__download:hover {
    background: #0b4c82;
    color: #fff;
}

.form-templates-pagination {
    margin-top: 24px;
}

.form-templates-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.form-templates-pagination li {
    margin: 0 !important;
}

.form-templates-pagination a,
.form-templates-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    line-height: 1;
}

.form-templates-pagination .current {
    border-color: #0f5c9c;
    background: #0f5c9c;
    color: #fff;
}

.form-templates-empty {
    margin: 0;
}

@media (max-width: 1024px) {
    .form-templates-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .form-templates-list {
        grid-template-columns: 1fr;
    }
}
