/* ===============================
   HEADER
================================= */

.document-header {
    max-width: 720px;
    margin: 0 auto;
}

.document-label,
.document-section-label {
    display: inline-block;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.document-label {
    padding: 6px 16px;
    border-radius: 30px;
    background: rgba(94, 25, 146, 0.08);
    color: #5e1992;
    font-size: 0.75rem;
}

.document-section-label {
    font-size: 0.78rem;
    color: #7b4aa0;
    margin-bottom: 8px;
}

.document-title-main {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    color: #3d105f;
    margin-top: 16px;
}

.document-section-title {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.25;
    color: #3d105f;
}

.document-subtitle {
    max-width: 640px;
    margin: 14px auto 0;
    font-size: 1rem;
    line-height: 1.8;
    color: #6f6f6f;
}

/* ===============================
   SEARCH
================================= */

.document-search-wrap {
    max-width: 700px;
    margin: 0 auto;
}

.document-search-box {
    display: flex;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(94, 25, 146, 0.08);
}

.document-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 16px 18px;
}

.document-search-btn {
    border: none;
    padding: 0 24px;
    background: #5e1992;
    color: white;
    font-weight: 600;
}

/* ===============================
   CARD
================================= */

.document-card,
.document-feature-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(94, 25, 146, 0.08);
    transition: 0.25s ease;
}

.document-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
}

.document-feature-card {
    padding: 24px;
}

.document-card:hover,
.document-feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(94, 25, 146, 0.2);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

.document-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ===============================
   ICON
================================= */

.document-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f7f1ff, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: transform 0.25s ease, background 0.25s ease;
}

.document-icon.small {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    margin: 0;
    border-radius: 14px;
    background: rgba(94, 25, 146, 0.08);
    font-size: 22px;
}

/* ===============================
   TEXT
================================= */

.document-name {
    font-weight: 700;
    color: #3d105f;
    line-height: 1.5;
}

.document-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 14px 0;
    font-size: 0.82rem;
    color: #777;
}

.document-meta.small {
    flex-wrap: wrap;
    flex-direction: row;
    gap: 10px;
    margin: 10px 0 14px;
}

/* ===============================
   BUTTON
================================= */

.document-btn,
.document-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    transition: 0.25s;
}

.document-btn {
    padding: 10px 18px;
    border-radius: 10px;
    background: #5e1992;
    color: white;
    font-size: 0.85rem;
}

.document-btn:hover {
    background: #47106f;
    color: white;
}

.document-btn-outline {
    width: fit-content;
    margin-top: auto;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid #5e1992;
    color: #5e1992;
    font-size: 0.78rem;
}

.document-btn-outline:hover {
    background: #5e1992;
    color: white;
}

/* ===============================
   CATEGORY
================================= */

.document-category-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 4px;
}

.document-category {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 30px;
    text-decoration: none;
    background: rgba(94, 25, 146, 0.05);
    color: #5e1992;
    font-size: 0.82rem;
    font-weight: 600;
    transition: 0.2s ease;
}

.document-category:hover {
    background: rgba(94, 25, 146, 0.1);
    color: #5e1992;
}

.document-category.active {
    background: #5e1992;
    color: white;
}

/* ===============================
   EMPTY
================================= */

.document-empty {
    padding: 40px;
    border-radius: 18px;
    background: #fff;
    border: 1px dashed rgba(94, 25, 146, 0.15);
}

/* ===============================
   SPACING
================================= */

.document-page > div {
    margin-bottom: 5rem;
}

/* ===============================
   ANIMATION
================================= */

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===============================
   MOBILE
================================= */

@media (max-width: 768px) {
    .document-header {
        text-align: center;
    }

    .document-title-main {
        font-size: 1.8rem;
    }

    .document-section-title {
        font-size: 1.3rem;
    }

    .document-subtitle {
        font-size: 0.92rem;
        line-height: 1.7;
    }

    .document-section-label {
        font-size: 0.72rem;
    }

    .document-search-box {
        flex-direction: column;
    }

    .document-search-btn {
        padding: 14px;
    }

    .document-category-wrap {
        gap: 8px;
        justify-content: center;
    }

    .document-category {
        padding: 7px 14px;
        font-size: 0.75rem;
        border-radius: 20px;
    }

    .document-card {
        padding: 16px;
        gap: 14px;
    }

    .document-name.small {
        font-size: 0.9rem;
    }
}
.document-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.document-content {
    width: 100%;
}

.document-meta.small {
    justify-content: center;
}

.document-btn-outline {
    margin-left: auto;
    margin-right: auto;
}

.document-icon.small {
    margin: 0 auto 16px;
}

.document-feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;

    padding: 24px;
    border-radius: 18px;

    background: #fff;
    border: 1px solid rgba(94, 25, 146, 0.08);

    transition: 0.25s ease;
    text-align: center;
}

.document-feature-card:hover {
    transform: translateY(-4px);

    border-color: rgba(94, 25, 146, 0.2);

    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
}

.document-feature-card .document-content {
    width: 100%;
}

.document-feature-card .document-meta {
    align-items: center;
    justify-content: center;
}

.document-feature-card .document-btn {
    margin: 18px auto 0;
}

.document-section-header {
    margin-bottom: 2rem;
}

.document-section-title {
    margin: 8px 0 10px;
}

.document-section-subtitle {
    margin: 0;
    color: #777;
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 620px;
}

.document-section-header {
    margin-bottom: 2.5rem;
}

.document-section-title {
    margin: 10px 0 12px;
}

.document-section-subtitle {
    max-width: 620px;
    margin: 0 auto;

    color: #777;
    font-size: 0.95rem;
    line-height: 1.7;
}

.document-section-label {
    display: inline-block;

    margin-bottom: 10px;

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;

    text-transform: uppercase;

    color: #7b4aa0;
}

.document-section-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;

    color: #3d105f;

    margin: 0;
}

.document-section .document-title-main {
    font-size: 2rem;
}

.document-section .document-subtitle {
    max-width: 700px;
}

@media (max-width: 768px) {
    .document-section .document-title-main {
        font-size: 1.5rem;
    }
}

.document-section-alt {
    padding: 90px 0;

    background: #f5f5f7;
}

.document-section-alt .document-header {
    margin-bottom: 4rem;
}

.document-section-alt .document-feature-card {
    background: #fff;

    border: 1px solid rgba(94, 25, 146, 0.06);

    box-shadow: 0 4px 20px rgba(94, 25, 146, 0.04);
}

.document-feature-card {
    background: #fff;

    border: 1px solid rgba(0, 0, 0, 0.04);

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.document-section-alt {
    position: relative;

    width: 100vw;

    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    padding: 90px 0;

    background: #f6f7f9;
}

.document-search-full {
    width: 100%;
    max-width: 1000px;

    margin-left: auto;
    margin-right: auto;
}

.document-search-box {
    width: 100%;
    height: 64px;

    border-radius: 18px;

    background: #fff;

    border: 1px solid rgba(0, 0, 0, 0.06);

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.document-search-input {
    font-size: 0.95rem;
    background: transparent;
}

.document-search-btn {
    min-width: 130px;

    border-radius: 14px;

    margin: 8px;

    background: #5e1992;
}

/* ===============================
   DOCUMENT DIVIDER
================================= */

.document-divider {
    width: 64px;
    height: 4px;
    margin: 18px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #5e1992 0%, #7d2bb8 55%, #efa735 100%);
    position: relative;
}

.document-divider::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
    filter: blur(10px);
    opacity: 0.35;
}
@media (max-width: 768px) {
    .document-divider {
        width: 52px;
        margin-top: 14px;
    }
}
