/* Safar Pay — Guides / Knowledge base */

.guides-page {
    background: #f8fafc;
}

[data-theme="dark"] .guides-page {
    background: var(--bg);
}

.guides-main {
    padding: 2rem 1.25rem 4rem;
}

.guides-container {
    max-width: 920px;
    margin: 0 auto;
}

.guides-container-narrow {
    max-width: 760px;
}

.guides-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.8125rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.guides-breadcrumb a {
    color: var(--blue-600);
    text-decoration: none;
}

.guides-breadcrumb a:hover { text-decoration: underline; }

.guides-breadcrumb i {
    font-size: 0.65rem;
    opacity: 0.5;
}

.guides-hero {
    margin-bottom: 2rem;
}

.guides-title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 1rem;
    color: var(--text);
}

.guides-lead {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--muted);
    max-width: 720px;
}

.guides-promo {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0.02) 100%);
    border: 1px solid rgba(37, 99, 235, 0.15);
    margin-bottom: 1.25rem;
}

.guides-promo-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--blue-600);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.guides-promo-label {
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue-600);
    margin-bottom: 0.35rem;
}

.guides-promo-body h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.guides-promo-body p {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    color: var(--muted);
    line-height: 1.6;
}

.guides-promo-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.guides-promo-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--blue-600);
}

.guides-start-tip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 0.875rem;
    margin-bottom: 2.5rem;
}

.guides-start-tip i { color: #eab308; }

.guides-start-tip a {
    color: var(--blue-600);
    font-weight: 600;
}

.guides-category {
    margin-bottom: 2.75rem;
}

.guides-category-head {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    align-items: flex-start;
}

.guides-category-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--blue-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.guides-category-title {
    font-size: 1.375rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

.guides-category-count {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--muted);
    margin-left: 0.5rem;
}

.guides-category-desc {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--muted);
    line-height: 1.55;
}

.guides-articles {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.guides-article-card {
    display: block;
    padding: 1.125rem 1.25rem;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.guides-article-card:hover {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    color: inherit;
}

.guides-article-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.guides-article-card p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.55;
}

.guides-disclaimer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.guides-disclaimer p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--muted);
    line-height: 1.6;
}

/* Article page */
.guide-article {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2rem;
}

.guide-article-meta {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--blue-600);
    margin-bottom: 0.75rem;
}

.guide-article-title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 400;
    margin: 0 0 0.75rem;
    line-height: 1.2;
}

.guide-article-excerpt {
    font-size: 1.0625rem;
    color: var(--muted);
    line-height: 1.65;
    margin: 0 0 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border);
}

.guide-article-body {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--text);
}

.guide-article-body p,
.guide-article-body ul,
.guide-article-body ol {
    margin: 0 0 1rem;
}

.guide-article-body li { margin-bottom: 0.35rem; }

.guide-article-body code {
    background: rgba(37, 99, 235, 0.08);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.85em;
}

.guide-article-body a {
    color: var(--blue-600);
    font-weight: 600;
}

.guide-article-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.guides-back {
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.guides-back:hover { color: var(--blue-600); }

.landing-nav-link.is-active {
    color: var(--blue-600);
    background: var(--accent-soft);
}

@media (max-width: 575px) {
    .guides-promo { flex-direction: column; }
    .guide-article { padding: 1.25rem; }
    .guide-article-footer { flex-direction: column; align-items: stretch; }
    .guide-article-footer .btn-sp-primary { text-align: center; justify-content: center; }
}
