/*
 * Amin Blog Home + Archive
 * Magazine layout inspired by clean public blog patterns.
 */

.amin-blog-home,
.amin-blog-archive {
    direction: rtl;
    width: 100%;
    color: #111827;
    background: #ffffff;
    font-family: AminVazir, Vazirmatn, Tahoma, Arial, sans-serif;
}

.amin-mag-hero {
    width: min(1180px, calc(100% - 44px));
    margin: 34px auto 70px;
    display: grid;
    grid-template-columns: 0.92fr 1.12fr 0.92fr;
    grid-template-areas: "side main intro";
    gap: 38px;
    align-items: start;
}

.amin-mag-hero__intro {
    grid-area: intro;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.amin-mag-hero__main-card {
    grid-area: main;
}

.amin-mag-hero__side-card {
    grid-area: side;
}

.amin-mag-hero__eyebrow,
.amin-blog-archive__eyebrow {
    display: block;
    margin: 0 0 14px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.amin-mag-hero__intro h1 {
    margin: 0 0 24px;
    color: #111827;
    font-size: clamp(34px, 4.3vw, 58px);
    font-weight: 950;
    line-height: 1.22;
    letter-spacing: -1.2px;
}

.amin-mag-hero__intro > p {
    margin: 0;
    max-width: 360px;
    color: #5f6368;
    font-size: 15px;
    line-height: 2;
    font-weight: 500;
}

.amin-mag-jump {
    margin-top: 34px;
}

.amin-mag-jump h3 {
    margin: 0 0 10px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.amin-mag-jump__list {
    width: 100%;
    max-width: 360px;
}

.amin-mag-jump__item {
    border-top: 1px solid #e5e7eb;
}

.amin-mag-jump__item:last-child {
    border-bottom: 1px solid #e5e7eb;
}

.amin-mag-jump__item summary {
    list-style: none;
    cursor: pointer;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #111827;
    font-size: 14px;
    font-weight: 750;
}

.amin-mag-jump__item summary::-webkit-details-marker {
    display: none;
}

.amin-mag-jump__item summary:hover {
    color: #d94b36;
}

.amin-mag-jump__plus {
    width: 20px;
    height: 20px;
    position: relative;
    flex: 0 0 20px;
    transition: transform 0.28s ease;
}

.amin-mag-jump__plus::before,
.amin-mag-jump__plus::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: #f05b45;
    border-radius: 999px;
    transform: translate(-50%, -50%);
}

.amin-mag-jump__plus::before {
    width: 12px;
    height: 2px;
}

.amin-mag-jump__plus::after {
    width: 2px;
    height: 12px;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.amin-mag-jump__item[open] .amin-mag-jump__plus::after {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg);
}

.amin-mag-jump__panel {
    height: 0;
    overflow: hidden;
    transition: height 0.32s ease;
}

.amin-mag-jump__item[open] .amin-mag-jump__panel {
    height: auto;
}

.amin-mag-jump__children {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 0 14px;
}

.amin-mag-jump__children a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569 !important;
    border: 1px solid #e5e7eb;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 800;
    transition: all 0.2s ease;
}

.amin-mag-jump__children a:hover {
    background: #fff1ed;
    border-color: #ffd4c9;
    color: #d94b36 !important;
}

.amin-mag-jump__empty {
    color: #64748b;
    font-size: 13px;
    line-height: 1.9;
}

/* Shared article card style */
.amin-mag-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.amin-mag-card__image {
    display: block;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #f1f5f9;
    text-decoration: none !important;
}

.amin-mag-card--main .amin-mag-card__image {
    height: 285px;
}

.amin-mag-card--side .amin-mag-card__image {
    height: 285px;
}

.amin-mag-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.01);
    transition: transform 0.48s ease;
}

.amin-mag-card:hover .amin-mag-card__image img {
    transform: scale(1.055);
}

.amin-mag-card__body {
    padding: 20px 0 0;
}

.amin-mag-card__cat {
    display: inline-flex;
    margin-bottom: 12px;
    color: #6b7280 !important;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.7;
    text-decoration: none !important;
    text-transform: none;
}

.amin-mag-card__cat:hover {
    color: #d94b36 !important;
}

.amin-mag-card__title {
    margin: 0 0 12px;
    color: #111827;
    font-size: 22px;
    font-weight: 920;
    line-height: 1.45;
    letter-spacing: -0.3px;
}

.amin-mag-card--main .amin-mag-card__title {
    font-size: 23px;
}

.amin-mag-card__title a {
    color: #111827 !important;
    text-decoration: none !important;
}

.amin-mag-card__title a:hover {
    color: #d94b36 !important;
}

.amin-mag-card__summary {
    margin: 0 0 18px;
    color: #5f6368;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.9;
}

.amin-mag-card__meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 750;
}

.amin-mag-card__meta img {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    object-fit: cover;
}

/* Archive */
.amin-blog-archive {
    width: min(1180px, calc(100% - 44px));
    margin: 36px auto 74px;
}

.amin-blog-archive__header {
    margin: 0 0 34px;
    max-width: 760px;
}

.amin-blog-archive__header h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 950;
    line-height: 1.35;
    letter-spacing: -0.8px;
}

.amin-blog-archive__description {
    margin-top: 14px;
    color: #5f6368;
    font-size: 15px;
    line-height: 2;
}

.amin-blog-archive__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 42px 34px;
}

.amin-mag-card--archive .amin-mag-card__image {
    height: 235px;
}

.amin-blog-pagination {
    margin-top: 42px;
}

.amin-blog-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.amin-blog-pagination a,
.amin-blog-pagination span {
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    color: #111827 !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 850;
}

.amin-blog-pagination .current,
.amin-blog-pagination a:hover {
    background: #111827;
    color: #ffffff !important;
    border-color: #111827;
}

.amin-blog-empty {
    padding: 28px;
    border-radius: 18px;
    background: #f8fafc;
    color: #64748b;
    font-size: 14px;
    line-height: 2;
}

@media (max-width: 1020px) {
    .amin-mag-hero {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "intro intro"
            "main side";
        gap: 28px;
    }

    .amin-mag-hero__intro {
        min-height: auto;
    }

    .amin-mag-hero__intro > p,
    .amin-mag-jump__list {
        max-width: 100%;
    }

    .amin-blog-archive__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .amin-mag-hero,
    .amin-blog-archive {
        width: min(100% - 24px, 1180px);
    }

    .amin-mag-hero {
        margin-top: 22px;
        grid-template-columns: 1fr;
        grid-template-areas:
            "intro"
            "main"
            "side";
        gap: 30px;
    }

    .amin-mag-hero__intro h1 {
        font-size: 34px;
    }

    .amin-mag-card__image,
    .amin-mag-card--main .amin-mag-card__image,
    .amin-mag-card--side .amin-mag-card__image,
    .amin-mag-card--archive .amin-mag-card__image {
        height: 220px;
    }

    .amin-mag-card__title,
    .amin-mag-card--main .amin-mag-card__title {
        font-size: 21px;
    }

    .amin-blog-archive__grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }
}

.amin-mag-trending {
    width: min(1180px, calc(100% - 32px));
    margin: 20px auto 70px;
    direction: rtl;
}

.amin-mag-trending__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.amin-mag-trending__head h2 {
    margin: 0;
    font-size: 13px;
    font-weight: 900;
    color: #64748b;
    letter-spacing: 0.04em;
}

.amin-mag-trending__arrows {
    display: flex;
    align-items: center;
    gap: 12px;
}

.amin-mag-trending__arrows button {
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: #111827;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.amin-mag-trending__arrows button:hover {
    opacity: 0.65;
    transform: translateY(-1px);
}

.amin-mag-trending__track {
    display: flex;
    gap: 34px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0 0 16px;
    direction: ltr;
    scrollbar-width: none;
}

.amin-mag-trending__track::-webkit-scrollbar {
    display: none;
}

.amin-mag-trending-card {
    flex: 0 0 330px;
    direction: rtl;
    background: #ffffff;
}

.amin-mag-trending-card__image {
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f1f5f9;
    text-decoration: none !important;
}

.amin-mag-trending-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.amin-mag-trending-card:hover .amin-mag-trending-card__image img {
    transform: scale(1.055);
}

.amin-mag-trending-card__body {
    padding-top: 18px;
}

.amin-mag-trending-card__cat {
    display: inline-flex;
    margin-bottom: 10px;
    color: #64748b !important;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.amin-mag-trending-card h3 {
    margin: 0 0 12px;
    font-size: 19px;
    line-height: 1.55;
    font-weight: 950;
    color: #071426;
}

.amin-mag-trending-card h3 a {
    color: #071426 !important;
    text-decoration: none !important;
}

.amin-mag-trending-card h3 a:hover {
    color: #8a6a2d !important;
}

.amin-mag-trending-card p {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.9;
}

.amin-mag-trending-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.amin-mag-trending-card__author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.amin-mag-trending-card__author img {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    object-fit: cover;
}

.amin-mag-trending-card__views {
    white-space: nowrap;
    color: #8a6a2d;
    font-weight: 900;
}

@media (max-width: 640px) {
    .amin-mag-trending {
        width: min(100% - 22px, 1180px);
        margin-bottom: 46px;
    }

    .amin-mag-trending__track {
        gap: 20px;
    }

    .amin-mag-trending-card {
        flex-basis: 285px;
    }

    .amin-mag-trending-card__image {
        height: 190px;
    }
}
/* Amin Blog Latest Articles */

.amin-mag-latest {
    width: min(1080px, calc(100% - 32px));
    margin: 28px auto 76px;
    direction: rtl;
}

.amin-mag-latest__head {
    margin-bottom: 24px;
}

.amin-mag-latest__head h2 {
    margin: 0;
    font-size: 13px;
    font-weight: 900;
    color: #64748b;
    letter-spacing: 0.04em;
}

/* Amin Blog Latest Articles - Horizontal Scroll */

.amin-mag-latest {
    width: min(1080px, calc(100% - 32px));
    margin: 28px auto 76px;
    direction: rtl;
}

.amin-mag-latest__head {
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.amin-mag-latest__head h2 {
    margin: 0;
    font-size: 13px;
    font-weight: 900;
    color: #64748b;
    letter-spacing: 0.04em;
}

.amin-mag-latest__arrows {
    display: flex;
    align-items: center;
    gap: 12px;
}

.amin-mag-latest__arrows button {
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: #111827;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.amin-mag-latest__arrows button:hover {
    opacity: 0.65;
    transform: translateY(-1px);
}

.amin-mag-latest__track {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 0 0 16px;
    direction: ltr;
    scrollbar-width: none;
}

.amin-mag-latest__track::-webkit-scrollbar {
    display: none;
}

.amin-mag-latest-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    direction: rtl;
    background: #ffffff;
    min-width: 0;
}

.amin-mag-latest-card__image {
    display: block;
    width: 100%;
    height: 175px;
    overflow: hidden;
    background: #f1f5f9;
    text-decoration: none !important;
}

.amin-mag-latest-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.amin-mag-latest-card:hover .amin-mag-latest-card__image img {
    transform: scale(1.055);
}

.amin-mag-latest-card__body {
    padding-top: 15px;
}

.amin-mag-latest-card__cat {
    display: inline-flex;
    margin-bottom: 8px;
    color: #64748b !important;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.amin-mag-latest-card h3 {
    margin: 0 0 9px;
    font-size: 16px;
    line-height: 1.65;
    font-weight: 950;
    color: #071426;
}

.amin-mag-latest-card h3 a {
    color: #071426 !important;
    text-decoration: none !important;
}

.amin-mag-latest-card h3 a:hover {
    color: #8a6a2d !important;
}

.amin-mag-latest-card p {
    margin: 0 0 15px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.9;
}

.amin-mag-latest-card__meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.amin-mag-latest-card__meta img {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    object-fit: cover;
}

@media (max-width: 640px) {
    .amin-mag-latest {
        width: min(100% - 22px, 1080px);
        margin: 18px auto 52px;
    }

    .amin-mag-latest__track {
        gap: 20px;
        padding-bottom: 12px;
    }

    .amin-mag-latest-card {
        flex-basis: 260px;
    }

    .amin-mag-latest-card__image {
        height: 165px;
    }

    .amin-mag-latest-card h3 {
        font-size: 15px;
    }

    .amin-mag-latest__arrows button {
        width: 34px;
        height: 34px;
        font-size: 25px;
    }
}

.amin-mag-latest-card {
    background: #ffffff;
    min-width: 0;
}

.amin-mag-latest-card__image {
    display: block;
    width: 100%;
    height: 185px;
    overflow: hidden;
    background: #f1f5f9;
    text-decoration: none !important;
}

.amin-mag-latest-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.amin-mag-latest-card:hover .amin-mag-latest-card__image img {
    transform: scale(1.055);
}

.amin-mag-latest-card__body {
    padding-top: 16px;
}

.amin-mag-latest-card__cat {
    display: inline-flex;
    margin-bottom: 9px;
    color: #64748b !important;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.amin-mag-latest-card h3 {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.65;
    font-weight: 950;
    color: #071426;
}

.amin-mag-latest-card h3 a {
    color: #071426 !important;
    text-decoration: none !important;
}

.amin-mag-latest-card h3 a:hover {
    color: #8a6a2d !important;
}

.amin-mag-latest-card p {
    margin: 0 0 16px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.9;
}

.amin-mag-latest-card__meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.amin-mag-latest-card__meta img {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    object-fit: cover;
}

/* Responsive */

@media (max-width: 980px) {
    .amin-mag-latest__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px;
    }
}

@media (max-width: 640px) {
    .amin-mag-latest {
        width: min(100% - 22px, 1080px);
        margin: 18px auto 52px;
    }

    .amin-mag-latest__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .amin-mag-latest-card__image {
        height: 190px;
    }

    .amin-mag-latest-card h3 {
        font-size: 16px;
    }
}
/* Amin Blog Small Horizontal Sections */

.amin-mag-small-section {
    width: min(1080px, calc(100% - 32px));
    margin: 26px auto 54px;
    direction: rtl;
}

.amin-mag-small-section__head {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.amin-mag-small-section__head h2 {
    margin: 0;
    font-size: 13px;
    font-weight: 900;
    color: #64748b;
    letter-spacing: 0.04em;
}

.amin-mag-small-section__arrows {
    display: flex;
    align-items: center;
    gap: 10px;
}

.amin-mag-small-section__arrows button {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #111827;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.amin-mag-small-section__arrows button:hover {
    opacity: 0.65;
    transform: translateY(-1px);
}

.amin-mag-small-section__track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 0 0 14px;
    direction: ltr;
    scrollbar-width: none;
}

.amin-mag-small-section__track::-webkit-scrollbar {
    display: none;
}

.amin-mag-small-card {
    flex: 0 0 155px;
    direction: rtl;
    scroll-snap-align: start;
    background: #ffffff;
    min-width: 0;
}

.amin-mag-small-card__image {
    display: block;
    width: 100%;
    height: 88px;
    overflow: hidden;
    background: #f1f5f9;
    text-decoration: none !important;
}

.amin-mag-small-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.amin-mag-small-card:hover .amin-mag-small-card__image img {
    transform: scale(1.055);
}

.amin-mag-small-card__body {
    padding-top: 10px;
}

.amin-mag-small-card__cat {
    display: inline-flex;
    margin-bottom: 6px;
    color: #64748b !important;
    text-decoration: none !important;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.5;
}

.amin-mag-small-card h3 {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.7;
    font-weight: 950;
    color: #071426;
}

.amin-mag-small-card h3 a {
    color: #071426 !important;
    text-decoration: none !important;
}

.amin-mag-small-card h3 a:hover {
    color: #8a6a2d !important;
}

.amin-mag-small-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .amin-mag-small-section {
        width: min(100% - 22px, 1080px);
        margin: 22px auto 42px;
    }

    .amin-mag-small-section__track {
        gap: 14px;
    }

    .amin-mag-small-card {
        flex-basis: 145px;
    }

    .amin-mag-small-card__image {
        height: 82px;
    }

    .amin-mag-small-card h3 {
        font-size: 11.5px;
    }
}




.amin-article-like-btn.is-liked .amin-article-like-btn__heart,
.amin-article-like-btn.is-liked strong {
    color: #ef4444;
}

.amin-article-like-btn:disabled {
    cursor: default;
}