/* ===== ANBI Page ===== */
/* Colors inherited from variables.css via layout.css */

.anbi-page {
    background: var(--page-bg);
    padding: 28px 0 60px;
    color: var(--ink);
    transition:
        background 0.3s ease,
        color 0.3s ease;
}

.anbi-wrap {
    max-width: 1100px;
}

.anbi-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 18px 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(135deg, var(--ring-green), var(--ring-gold));
    margin-bottom: 18px;
}

.anbi-title {
    margin: 0;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.anbi-sub {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 21px;
    line-height: 1.6;
}

.anbi-badge {
    padding: 10px 12px;
    border-radius: 999px;
    background: var(--ring-green);
    border: 1px solid var(--btn-ghost-bd);
    color: var(--brand-green-2);
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
}

.anbi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.anbi-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px 16px;
    box-shadow: var(--shadow-sm);
    transition:
        background 0.3s ease,
        border-color 0.3s ease;
}

.anbi-card.span-2 {
    grid-column: span 2;
}

.anbi-h {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 800;
}

.anbi-h3 {
    margin: 14px 0 6px;
    font-size: 18px;
    font-weight: 800;
    color: var(--brand-green-2);
}

.anbi-p {
    margin: 0;
    color: var(--ink);
    line-height: 1.75;
    font-size: 18px;
}

.anbi-note {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.anbi-dl {
    margin: 0;
    display: grid;
    gap: 10px;
}

.anbi-dl .row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.02);
    border: 1px solid rgba(2, 6, 23, 0.06);
}

/* ---- Dark Mode ---- */
[data-theme="dark"] .anbi-dl .row {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.anbi-dl dt {
    color: var(--muted);
    font-weight: 700;
    font-size: 16px;
}

.anbi-dl dd {
    margin: 0;
    font-weight: 700;
    font-size: 16px;
}

.anbi-dl a {
    color: var(--brand-green);
    text-decoration: none;
}
.anbi-dl a:hover {
    text-decoration: underline;
}

.anbi-list {
    margin: 0;
    padding-inline-start: 18px;
    line-height: 1.9;
    font-size: 18px;
}

.anbi-bullets {
    margin: 0;
    padding-inline-start: 18px;
    line-height: 1.9;
    font-size: 18px;
    color: var(--ink);
}

.anbi-bullets.cols-2 {
    columns: 2;
    column-gap: 28px;
}

@media (max-width: 900px) {
    .anbi-grid {
        grid-template-columns: 1fr;
    }
    .anbi-card.span-2 {
        grid-column: auto;
    }
    .anbi-dl .row {
        grid-template-columns: 1fr;
    }
    .anbi-bullets.cols-2 {
        columns: 1;
    }
    .anbi-hero {
        flex-direction: column;
        align-items: flex-start;
    }
    /* اختياري: تقليل حجم النص على الشاشات الصغيرة */
    .anbi-title {
        font-size: 32px;
    }
    .anbi-sub {
        font-size: 18px;
    }
    .anbi-p,
    .anbi-list,
    .anbi-bullets {
        font-size: 16px;
    }
}
