.ab-pack--magazine-pro {
    font-family: IRANYekan, Tahoma, sans-serif;
    color: #111827;
}

.ab-pack-list__header h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.ab-pack-list__items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.ab-pack-list__card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: transform .2s ease;
}

.ab-pack-list__card:hover { transform: translateY(-4px); }

.ab-pack-list__image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.ab-pack-list__body { padding: 1rem 1.1rem 1.2rem; }

.ab-pack-list__date {
    color: #64748b;
    font-size: .85rem;
}

.ab-pack-list__title {
    font-size: 1.15rem;
    margin: .35rem 0 .5rem;
    line-height: 1.5;
}

.ab-pack-list__title a { color: inherit; text-decoration: none; }

.ab-pack-list__excerpt {
    color: #475569;
    font-size: .95rem;
    line-height: 1.7;
}

.ab-pack-home__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.ab-pack-home__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.ab-pack-home__card {
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.ab-pack-home__card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.ab-pack-home__meta {
    padding: .75rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.ab-pack-article .ab-article--enhanced {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1.25rem 2.5rem;
}

.ab-pack-article .ab-article__title {
    font-weight: 700;
    letter-spacing: 0;
}

.ab-pack-article .ab-article .ab-content--card {
    font-size: 1rem;
}

.ab-reading-progress {
    background: var(--ab-reading-progress-fill, #2563eb);
}

/* Magazine /blog page */
.ab-mag-page { max-width: 1200px; margin: 0 auto; padding: 0 1rem 2rem; }

.ab-mag-page__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.ab-mag-page__back {
    color: #2563eb;
    text-decoration: none;
    font-size: .95rem;
}

.ab-mag-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2rem;
    align-items: start;
}

.ab-mag-layout__main { min-width: 0; }

.ab-mag-hero {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
    background: #0f172a;
    min-height: 360px;
}

.ab-mag-hero__slide {
    display: none;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    min-height: 360px;
}

.ab-mag-hero__slide.is-active { display: grid; }

.ab-mag-hero__media img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    display: block;
}

.ab-mag-hero__content {
    padding: 2rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

.ab-mag-hero__content time {
    color: #94a3b8;
    font-size: .85rem;
    margin-bottom: .75rem;
}

.ab-mag-hero__content h2 {
    font-size: 1.75rem;
    line-height: 1.35;
    margin: 0 0 .75rem;
}

.ab-mag-hero__content h2 a { color: #fff; text-decoration: none; }
.ab-mag-hero__content p { color: #cbd5e1; line-height: 1.7; margin: 0; }

.ab-mag-hero__dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: .5rem;
}

.ab-mag-hero__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,.35);
    cursor: pointer;
}

.ab-mag-hero__dot.is-active { background: #fff; }

.ab-mag-section { margin-bottom: 2.5rem; }

.ab-mag-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ab-mag-section__head h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
}

.ab-mag-section__more {
    color: #2563eb;
    text-decoration: none;
    font-size: .9rem;
    white-space: nowrap;
}

.ab-mag-section__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.ab-mag-section__grid--featured {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.ab-mag-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: transform .2s ease;
}

.ab-mag-card:hover { transform: translateY(-3px); }

.ab-mag-card__image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.ab-mag-card__body { padding: 1rem 1.1rem 1.15rem; }
.ab-mag-card__date { color: #64748b; font-size: .82rem; }
.ab-mag-card__title { font-size: 1.05rem; margin: .35rem 0 .5rem; line-height: 1.45; }
.ab-mag-card__title a { color: inherit; text-decoration: none; }
.ab-mag-card__excerpt { color: #475569; font-size: .92rem; line-height: 1.65; margin: 0 0 .35rem; }
.ab-mag-card__meta { color: #94a3b8; font-size: .8rem; }

.ab-mag-author {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
}

.ab-mag-author__avatar { border-radius: 50%; object-fit: cover; }

.ab-mag-sidebar {
    position: sticky;
    top: 90px;
}

.ab-mag-sidebar__box {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.ab-mag-sidebar__box h3 {
    font-size: 1rem;
    margin: 0 0 .75rem;
    font-weight: 700;
}

.ab-mag-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ab-mag-sidebar__list li { margin: .45rem 0; }
.ab-mag-sidebar__list a { color: #334155; text-decoration: none; font-size: .92rem; line-height: 1.5; }
.ab-mag-sidebar__list a:hover { color: #2563eb; }

.ab-mag-sidebar__tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.ab-mag-tag {
    display: inline-block;
    padding: .25rem .6rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    text-decoration: none;
    font-size: .82rem;
}

.ab-mag-sidebar__cta { margin-top: .5rem; }

/* Full-width archive — spans both magazine columns */
.ab-mag-archive {
    margin-top: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    width: 100%;
}

.ab-mag-archive .ab-pack-list__items {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.35rem;
}

.ab-pack-list__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1rem;
    margin: 0 0 1.25rem;
    color: #64748b;
    font-size: .92rem;
}

.ab-pack-list__summary {
    margin: 0;
}

.ab-pack-list__pager {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eef2f7;
}

.ab-pack-list__pager .pager,
.ab-pack-list__pager ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .35rem .5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ab-pack-list__pager .pager li,
.ab-pack-list__pager ul li {
    margin: 0;
}

.ab-pack-list__pager .pager a,
.ab-pack-list__pager .pager span,
.ab-pack-list__pager ul a,
.ab-pack-list__pager ul span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    min-height: 2.25rem;
    padding: 0 .65rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    text-decoration: none;
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.2;
}

.ab-pack-list__pager .pager a:hover,
.ab-pack-list__pager ul a:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

.ab-pack-list__pager .pager .current-page span,
.ab-pack-list__pager ul .current-page span,
.ab-pack-list__pager .pager .current-page,
.ab-pack-list__pager ul .current-page {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

@media (min-width: 992px) {
    .ab-mag-archive .ab-pack-list__items {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .ab-mag-layout { grid-template-columns: 1fr; }
    .ab-mag-sidebar { position: static; width: 100%; }
    .ab-mag-hero__slide { grid-template-columns: 1fr; }
    .ab-mag-hero__slide.is-active {
        display: flex;
        flex-direction: column;
    }
    .ab-mag-hero__media img { min-height: 200px; max-height: 260px; height: auto; }
    .ab-pack-list__items,
    .ab-mag-section__grid,
    .ab-mag-section__grid--featured,
    .ab-mag-archive .ab-pack-list__items {
        grid-template-columns: 1fr !important;
    }
    .ab-mag-page {
        max-width: none;
        width: 100%;
        padding-inline: 0.75rem;
    }
    .ab-pack-article .ab-article--enhanced {
        max-width: none;
        width: 100%;
    }
}
