.doc-hero {
    background: linear-gradient(135deg, rgba(var(--primary-rgb, 13, 110, 253), 0.12) 0%, rgba(var(--primary-rgb, 13, 110, 253), 0.02) 100%);
    border: 1px solid rgba(var(--primary-rgb, 13, 110, 253), 0.12);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.doc-hero__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.doc-search {
    max-width: 420px;
}

.doc-category {
    margin-bottom: 2.5rem;
}

.doc-category__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.doc-category__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb, 13, 110, 253), 0.12);
    color: var(--primary);
    font-size: 1.1rem;
}

.doc-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: inherit;
    text-decoration: none !important;
}

.doc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
    color: inherit;
}

.doc-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #eef4ff 0%, #f8fafc 100%);
    overflow: hidden;
}

.doc-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doc-card__media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2rem;
}

.doc-card__badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 600;
}

.doc-card__body {
    padding: 1.1rem 1.15rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.doc-card__title {
    font-weight: 700;
    margin-bottom: 0.45rem;
    line-height: 1.35;
}

.doc-card__description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex: 1;
}

.doc-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #6c757d;
}

.doc-guide-hero {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    margin-bottom: 1.5rem;
}

.doc-guide-hero__screenshot img {
    width: 100%;
    display: block;
}

.doc-guide-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1.5rem;
}

@media (max-width: 991.98px) {
    .doc-guide-layout {
        grid-template-columns: 1fr;
    }
}

.doc-guide-content {
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    padding: 1.5rem;
}

.doc-guide-sidebar {
    position: sticky;
    top: 1rem;
    align-self: start;
}

.doc-related-card {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 0.65rem;
    color: inherit;
    text-decoration: none !important;
    background: #fff;
}

.doc-related-card:hover {
    border-color: rgba(var(--primary-rgb, 13, 110, 253), 0.35);
    color: inherit;
}

.doc-steps {
    counter-reset: guide-step;
    list-style: none;
}

.doc-steps .doc-step {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    list-style: none;
}

.doc-steps .doc-step::before {
    content: counter(guide-step);
    counter-increment: guide-step;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(var(--primary-rgb, 13, 110, 253), 0.12);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    grid-row: 1;
    grid-column: 1;
}

.doc-steps .doc-step__number {
    display: none;
}

.doc-steps .doc-step > .doc-step__content,
.doc-steps .doc-step > div:not(.doc-step__number) {
    grid-column: 2;
}

.doc-steps .doc-step:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.doc-step__number {
    display: none;
}

.doc-step__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    display: block;
    list-style: none;
}

.doc-step__body {
    color: #495057;
    display: block;
    list-style: none;
}

.doc-steps ol,
.doc-steps ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.doc-content .ql-content img,
.doc-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin: 1rem 0;
}

.doc-empty {
    border: 1px dashed rgba(0, 0, 0, 0.12);
    border-radius: 1rem;
    padding: 3rem 1.5rem;
    text-align: center;
    color: #6c757d;
}
