/* .university-docs {
    margin: 40px 0;
} */

.docs-group + .docs-group {
    margin-top: 32px;
}

.docs-group__title {
    margin: 0 0 24px!important;
    font-size: 2.4rem;
    line-height: 1.3!important;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.docs-grid > .doc-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.doc-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 100%;
    padding:10px 20px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 0px 20px rgba(15, 23, 42, 0.15);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.doc-card:hover,
.doc-card:focus {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
    text-decoration: none;
}

.doc-card__icon-wrap {
    display: inline-flex;
    flex: 0 0 60px;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: #d4e2f5;
    color: #2563eb;
}

.doc-card__icon {
    width: 48px;
    height: 48px;
    font-size: 4.8rem;
}

.doc-card__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.doc-card__title {
    color: #111827;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.doc-card__meta {
    color: #6b7280;
    font-size: 1.3rem;
    line-height: 1.4;
}

.docs-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.docs-modal.is-open {
    display: flex;
}

.docs-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
}

.docs-modal__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(1200px, 100%);
    height: min(100vh, 930px);
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
}

.docs-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.docs-modal__title {
    margin: 0;
    color: #111827;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.4;
}

.docs-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    cursor: pointer;
}

.docs-modal__close:hover,
.docs-modal__close:focus {
    background: #dbeafe;
}

.docs-modal__body {
    flex: 1 1 auto;
    background: #f8fafc;
}

.docs-modal__iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #ffffff;
}

@media (max-width: 1366px) {
    .doc-card__icon-wrap {
        flex: 0 0 50px;
        width: 50px;
        height: 50px;
    }
    .doc-card {
        gap: 14px;
        padding: 10px 18px;
    }
}

@media (max-width: 767px) {
    .docs-grid {
        grid-template-columns: 1fr;
    }
    .doc-card {
        padding: 16px;
    }
    .doc-card__icon {
        width: 44px;
        height: 44px;
        font-size: 4.4rem;
    }
}
