/* ================================
   Page: Tài liệu
================================ */

.docs-page {
    background: #f6f7f9;
    color: #111827;
}

.docs-page .container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.docs-hero {
    padding: 72px 0 54px;
    background:
        radial-gradient(circle at top right, rgba(210, 0, 0, 0.12), transparent 34%),
        linear-gradient(135deg, #111827 0%, #1f2937 52%, #111827 100%);
    color: #fff;
}

.docs-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 36px;
    align-items: center;
}

.docs-eyebrow,
.docs-section__label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.12);
    color: #dc2626;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.docs-hero .docs-eyebrow {
    background: rgba(255, 255, 255, 0.12);
    color: #fecaca;
}

.docs-hero__title {
    max-width: 780px;
    margin: 18px 0 16px;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.04;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.docs-hero__desc {
    max-width: 760px;
    margin: 0;
    color: #d1d5db;
    font-size: 17px;
    line-height: 1.75;
}

.docs-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.docs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.docs-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.docs-btn--primary {
    background: #dc2626;
    color: #fff;
    box-shadow: 0 14px 30px rgba(220, 38, 38, 0.28);
}

.docs-btn--primary:hover {
    background: #b91c1c;
    color: #fff;
}

.docs-btn--ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.docs-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.docs-hero__panel {
    display: flex;
    justify-content: flex-end;
}

.docs-panel-card {
    width: 100%;
    max-width: 360px;
    padding: 26px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(12px);
}

.docs-panel-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 28px;
}

.docs-panel-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.25;
}

.docs-panel-card p {
    margin: 0;
    color: #d1d5db;
    line-height: 1.7;
}

.docs-section {
    padding: 64px 0;
}

.docs-section--soft {
    background: #fff;
}

.docs-section__head {
    max-width: 760px;
    margin-bottom: 28px;
}

.docs-section__head h2 {
    margin: 16px 0 10px;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.14;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: #111827;
}

.docs-section__head p {
    margin: 0;
    color: #6b7280;
    font-size: 16px;
    line-height: 1.75;
}

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

.docs-card {
    padding: 24px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.docs-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: #fee2e2;
    font-size: 26px;
}

.docs-card h3 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 800;
}

.docs-card p {
    margin: 0 0 16px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.65;
}

.docs-card__list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.docs-card__list li {
    position: relative;
    padding-left: 18px;
    color: #374151;
    font-size: 14px;
    line-height: 1.45;
}

.docs-card__list li::before {
    content: "";
    position: absolute;
    top: 0.65em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #dc2626;
}

.docs-posts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.docs-post {
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.docs-post__thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 190px;
    background: linear-gradient(135deg, #111827, #374151);
    color: #fff;
    text-decoration: none;
    overflow: hidden;
}

.docs-post__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.docs-post:hover .docs-post__thumb img {
    transform: scale(1.04);
}

.docs-post__thumb span {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.docs-post__body {
    padding: 20px;
}

.docs-post__meta {
    margin-bottom: 8px;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 700;
}

.docs-post__title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
}

.docs-post__title a {
    color: #111827;
    text-decoration: none;
}

.docs-post__title a:hover {
    color: #dc2626;
}

.docs-post__excerpt {
    margin: 0 0 14px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.65;
}

.docs-post__more {
    display: inline-flex;
    color: #dc2626;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.docs-post__more:hover {
    color: #991b1b;
}

.docs-empty {
    padding: 28px;
    border-radius: 22px;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
}

.docs-empty h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.docs-empty p {
    margin: 0;
    color: #6b7280;
    line-height: 1.65;
}

.docs-cta {
    padding: 56px 0 72px;
    background: #fff;
}

.docs-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 34px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(220, 38, 38, 0.18), transparent 34%),
        #111827;
    color: #fff;
}

.docs-cta__inner h2 {
    max-width: 720px;
    margin: 16px 0 10px;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.15;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.docs-cta__inner p {
    max-width: 760px;
    margin: 0;
    color: #d1d5db;
    line-height: 1.7;
}

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

    .docs-posts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .docs-hero {
        padding: 54px 0 42px;
    }

    .docs-hero__inner {
        grid-template-columns: 1fr;
    }

    .docs-hero__panel {
        justify-content: flex-start;
    }

    .docs-panel-card {
        max-width: none;
    }

    .docs-cta__inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .docs-page .container {
        width: min(100% - 24px, 1180px);
    }

    .docs-section {
        padding: 46px 0;
    }

    .docs-grid,
    .docs-posts {
        grid-template-columns: 1fr;
    }

    .docs-card,
    .docs-post__body {
        padding: 18px;
    }

    .docs-post__thumb {
        height: 170px;
    }

    .docs-cta__inner {
        padding: 24px;
        border-radius: 22px;
    }
}