:root {
    --zahra-bg: #faf8f4;
    --zahra-paper: #ffffff;
    --zahra-text: #252523;
    --zahra-muted: #736e67;
    --zahra-border: #d8d1c8;
    --zahra-accent: #9a8064;
    --zahra-dark: #242422;
}

.zahra-home {
    font-family: "Vazirmatn", Tahoma, sans-serif;
    direction: rtl;
    color: var(--zahra-text);
    background: var(--zahra-paper);
}

/* Hero */

.home-hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background-image:
        linear-gradient(
            90deg,
            rgba(247, 243, 237, 0.08) 0%,
            rgba(247, 243, 237, 0.20) 38%,
            rgba(247, 243, 237, 0.90) 72%,
            rgba(247, 243, 237, 0.98) 100%
        ),
        url("../images/hero-books.png");

    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;

    border-bottom: 1px solid var(--zahra-border);
}

.home-hero__content {
    width: 46%;
    margin-right: 0;
    margin-left: auto;
    padding: 60px 0 60px 35px;

    direction: rtl;
    text-align: right;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}


.home-hero .zahra-container {
    min-height: 560px;
    display: flex;
    justify-content: flex-start;
    direction: rtl;
}


.home-hero__eyebrow {
    margin: 0 0 18px;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.9;
    color: var(--text-muted);
}

.home-hero__eyebrow,
.home-hero__title,
.home-hero__intro {
    width: 100%;
    text-align: right;
}

.home-hero__title {
    margin: 0;
    font-family: var(--font-primary) !important;
    font-size: clamp(3.4rem, 5vw, 4.4rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.065em;
    color: var(--text-main);
}


.home-hero__divider {
    width: min(430px, 100%);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 25px 0;
}

.home-hero__divider span {
    flex: 1;
    height: 1px;
    background: var(--zahra-muted);
    opacity: 0.45;
}

.home-hero__divider i {
    width: 8px;
    height: 8px;
    display: block;
    border: 1px solid var(--zahra-muted);
    transform: rotate(45deg);
}


.home-hero__intro {
    margin: 0 0 30px;
    font-size: 1.08rem;
    font-weight: 400;
    line-height: 2;
    color: var(--text-main);
}

.home-hero__intro strong {
    display: block;
    margin-top: 5px;
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.8;
}

.home-hero__button {
    display: inline-flex;
    min-width: 120px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
    color: #fff;
    background: var(--zahra-dark);
    border: 1px solid var(--zahra-dark);
    text-decoration: none;
}
@media (max-width: 900px) {
    .home-hero {
        min-height: 520px;

        background-image:
            linear-gradient(
                rgba(247, 243, 237, 0.78),
                rgba(247, 243, 237, 0.94)
            ),
            url("../images/hero-books.png");

        background-position: 28% center;
    }

    .home-hero .zahra-container {
        min-height: 520px;
        align-items: flex-end;
    }

    .home-hero__content {
        width: 100%;
        padding: 60px 0 55px;
    }
}

/* Hero End */

/* Header  */
.zahra-container {
    width: min(calc(100% - 48px), 1240px);
    margin-inline: auto;
}



/* Header End */

/* ==================================================
   Latest articles
   ================================================== */

.home-articles {
    padding: 95px 0 105px;
    background: #fff;
}

.home-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 38px;
}

.home-section-heading__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 400;
}

.home-section-heading__title {
    position: relative;
    margin: 0;
    padding-right: 46px;
    color: var(--text-main);
    font-size: clamp(1.7rem, 2.5vw, 2.15rem);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.035em;
}

.home-section-heading__title::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 32px;
    height: 1px;
    background: #a88e70;
}

.home-section-heading__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 3px;
    color: var(--text-muted);
    border-bottom: 1px solid #c9beb1;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition:
        color 180ms ease,
        border-color 180ms ease;
}

.home-section-heading__link:hover {
    color: var(--text-main);
    border-color: var(--text-main);
}

/* Grid */

.home-articles__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

/* Card */

.home-article-card {
    min-width: 0;
    background: #fff;
    border: 1px solid #e4ded7;
    transition:
        transform 220ms ease,
        box-shadow 220ms ease;
}

.home-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 38px rgba(53, 43, 34, 0.07);
}

.home-article-card__image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eee8e0;
}

.home-article-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.72);
    transition:
        transform 300ms ease,
        filter 300ms ease;
}

.home-article-card:hover .home-article-card__image img {
    transform: scale(1.025);
    filter: saturate(0.92);
}

.home-article-card__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background:
        linear-gradient(
            135deg,
            #e7ddd1,
            #f6f2ed
        );
    color: #817468;
}

.home-article-card__placeholder span {
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.home-article-card__content {
    padding: 24px 25px 27px;
}

.home-article-card__meta {
    margin-bottom: 9px;
    color: var(--text-muted);
    font-size: 0.76rem;
    line-height: 1.7;
}

.home-article-card__title {
    margin: 0 0 12px;
    font-size: 1.08rem;
    font-weight: 650;
    line-height: 1.85;
    letter-spacing: -0.02em;
}

.home-article-card__title a {
    color: var(--text-main);
    text-decoration: none;
}

.home-article-card__excerpt {
    color: var(--text-muted);
    font-size: 0.91rem;
    font-weight: 400;
    line-height: 2;
}

.home-article-card__read-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 20px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 500;
}

.home-article-card__read-more span {
    transition: transform 180ms ease;
}

.home-article-card__read-more:hover span {
    transform: translateX(-4px);
}

.home-section-empty {
    padding: 30px;
    color: var(--text-muted);
    background: #faf8f5;
    text-align: center;
}

/* Tablet */

@media (max-width: 900px) {
    .home-articles {
        padding: 75px 0 85px;
    }

    .home-articles__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-article-card:last-child {
        grid-column: 1 / -1;
        max-width: calc(50% - 15px);
        width: 100%;
        justify-self: center;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .home-articles {
        padding: 60px 0 70px;
    }

    .home-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 17px;
        margin-bottom: 28px;
    }

    .home-section-heading__title {
        padding-right: 38px;
        font-size: 1.65rem;
    }

    .home-section-heading__title::before {
        width: 25px;
    }

    .home-articles__grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .home-article-card:last-child {
        grid-column: auto;
        max-width: none;
    }

    .home-article-card__content {
        padding: 21px 20px 24px;
    }
}


/* ==================================================
   Books
   ================================================== */

.home-books {
    padding: 95px 0 105px;
    background: #f7f3ed;
    border-top: 1px solid #ebe4dc;
    border-bottom: 1px solid #ebe4dc;
}

.home-books__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 38px;
    align-items: start;
}

.home-book-card {
    min-width: 0;
    text-align: right;
}

/* Cover */

.home-book-card__cover {
    position: relative;
    display: block;
    width: min(100%, 190px);
    aspect-ratio: 2 / 3;
    margin: 0 auto 22px;
    overflow: hidden;

    background: #ddd1c3;
    box-shadow:
        0 14px 30px rgba(52, 42, 33, 0.12),
        0 2px 5px rgba(52, 42, 33, 0.08);

    transition:
        transform 220ms ease,
        box-shadow 220ms ease;
}

.home-book-card:hover .home-book-card__cover {
    transform: translateY(-5px);
    box-shadow:
        0 20px 42px rgba(52, 42, 33, 0.16),
        0 3px 7px rgba(52, 42, 33, 0.08);
}

.home-book-card__cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder */

.home-book-card__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 24px 16px;

    color: #40372f;
    background:
        linear-gradient(
            145deg,
            #d2c0aa,
            #ece3d8
        );

    text-align: center;
}

.home-book-card__placeholder span {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 2;
}

/* Text */

.home-book-card__content {
    max-width: 210px;
    margin-inline: auto;
}

.home-book-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.9;
    letter-spacing: -0.018em;
}

.home-book-card__title a {
    color: var(--text-main);
    text-decoration: none;
}

.home-book-card__excerpt {
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.9;
}

.home-book-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-top: 12px;
    padding-bottom: 2px;

    color: var(--text-main);
    border-bottom: 1px solid #c7b9aa;

    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
}

.home-book-card__link span {
    transition: transform 180ms ease;
}

.home-book-card__link:hover span {
    transform: translateX(-4px);
}

/* Tablet */

@media (max-width: 1050px) {
    .home-books__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 45px 30px;
    }
}

@media (max-width: 700px) {
    .home-books {
        padding: 65px 0 75px;
    }

    .home-books__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 38px 18px;
    }

    .home-book-card__cover {
        width: min(100%, 165px);
    }

    .home-book-card__title {
        font-size: 0.94rem;
    }
}

@media (max-width: 430px) {
    .home-books__grid {
        grid-template-columns: 1fr;
    }

    .home-book-card__cover {
        width: 175px;
    }

    .home-book-card__content {
        text-align: center;
    }
}


/* ==================================================
   Podcast
   ================================================== */

.home-podcast {
    padding: 95px 0 105px;
    background: #fff;
}

.home-podcast__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.home-podcast-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    min-height: 210px;
    overflow: hidden;

    background: #faf8f5;
    border: 1px solid #e4ded7;

    transition:
        transform 220ms ease,
        box-shadow 220ms ease;
}

.home-podcast-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 38px rgba(53, 43, 34, 0.07);
}

/* Image */

.home-podcast-card__image {
    position: relative;
    display: block;
    min-height: 100%;
    overflow: hidden;
    background: #ded4c8;
}

.home-podcast-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.65);
    transition:
        transform 280ms ease,
        filter 280ms ease;
}

.home-podcast-card:hover .home-podcast-card__image img {
    transform: scale(1.035);
    filter: saturate(0.9);
}

.home-podcast-card__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 210px;

    color: #685b4f;
    background:
        linear-gradient(
            145deg,
            #d8c9b8,
            #eee7de
        );
}

.home-podcast-card__mic {
    font-size: 2rem;
}

/* Play button */

.home-podcast-card__play {
    position: absolute;
    right: 50%;
    bottom: 20px;

    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    padding-right: 3px;

    color: #fff;
    background: rgba(36, 36, 34, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;

    transform: translateX(50%);
    transition:
        background 180ms ease,
        transform 180ms ease;
}

.home-podcast-card:hover .home-podcast-card__play {
    background: #242422;
    transform: translateX(50%) scale(1.06);
}

/* Content */

.home-podcast-card__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 22px;
}

.home-podcast-card__date {
    margin-bottom: 7px;
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.7;
}

.home-podcast-card__title {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.85;
    letter-spacing: -0.018em;
}

.home-podcast-card__title a {
    color: var(--text-main);
    text-decoration: none;
}

.home-podcast-card__excerpt {
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.95;
}

.home-podcast-card__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-top: auto;
    padding-top: 16px;

    color: var(--text-main);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
}

.home-podcast-card__link span {
    transition: transform 180ms ease;
}

.home-podcast-card__link:hover span {
    transform: translateX(-4px);
}

/* Tablet */

@media (max-width: 1100px) {
    .home-podcast__grid {
        grid-template-columns: 1fr;
    }

    .home-podcast-card {
        grid-template-columns: 210px minmax(0, 1fr);
        min-height: 190px;
    }
}

/* Mobile */

@media (max-width: 650px) {
    .home-podcast {
        padding: 65px 0 75px;
    }

    .home-podcast-card {
        display: block;
    }

    .home-podcast-card__image {
        aspect-ratio: 16 / 8;
        min-height: 0;
    }

    .home-podcast-card__placeholder {
        min-height: 220px;
    }

    .home-podcast-card__content {
        padding: 22px 20px 25px;
    }

    .home-podcast-card__link {
        margin-top: 8px;
    }
}


/* ==================================================
   Poetry
   ================================================== */

.home-poetry {
    padding: 95px 0 105px;
    background: #f7f3ed;
    border-top: 1px solid #ebe4dc;
    border-bottom: 1px solid #ebe4dc;
}

.home-poetry__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.home-poetry-card {
    position: relative;
    min-height: 300px;

    display: flex;
    flex-direction: column;

    padding: 34px 32px 28px;

    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #ddd4ca;

    transition:
        transform 220ms ease,
        background 220ms ease,
        box-shadow 220ms ease;
}

.home-poetry-card:hover {
    transform: translateY(-4px);
    background: #fff;
    box-shadow: 0 16px 38px rgba(53, 43, 34, 0.07);
}

.home-poetry-card__quote {
    height: 35px;
    color: #a58b6d;
    font-family: Georgia, serif;
    font-size: 3.8rem;
    line-height: 1;
    opacity: 0.85;
}

.home-poetry-card__type {
    display: block;
    margin-top: 10px;

    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 500;
}

.home-poetry-card__title {
    margin: 10px 0 14px;

    font-size: 1.12rem;
    font-weight: 650;
    line-height: 1.9;
    letter-spacing: -0.02em;
}

.home-poetry-card__title a {
    color: var(--text-main);
    text-decoration: none;
}

.home-poetry-card__excerpt {
    color: #5f5952;
    font-size: 0.94rem;
    font-weight: 400;
    line-height: 2.25;
    white-space: pre-line;
}

.home-poetry-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-top: auto;
    padding-top: 22px;

    color: var(--text-muted);
    border-top: 1px solid #e5ddd4;

    font-size: 0.77rem;
}

.home-poetry-card__footer a {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
}

.home-poetry-card__footer a span {
    transition: transform 180ms ease;
}

.home-poetry-card__footer a:hover span {
    transform: translateX(-4px);
}

/* Tablet */

@media (max-width: 900px) {
    .home-poetry__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-poetry-card:last-child {
        grid-column: 1 / -1;
        max-width: calc(50% - 15px);
        width: 100%;
        justify-self: center;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .home-poetry {
        padding: 65px 0 75px;
    }

    .home-poetry__grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .home-poetry-card {
        min-height: 270px;
        padding: 28px 24px 24px;
    }

    .home-poetry-card:last-child {
        grid-column: auto;
        max-width: none;
    }

    .home-poetry-card__excerpt {
        font-size: 0.92rem;
        line-height: 2.15;
    }
}

/* ==================================================
   Notes
   ================================================== */

.home-notes {
    padding: 95px 0 105px;
    background: #fff;
}

.home-notes__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 30px;
}

.home-note-card {
    position: relative;
    min-height: 230px;

    display: flex;
    flex-direction: column;

    padding: 30px 32px;

    background: #faf8f5;
    border: 1px solid #e5dfd8;

    transition:
        transform 220ms ease,
        box-shadow 220ms ease,
        background 220ms ease;
}

.home-note-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;

    width: 3px;
    height: 55px;

    background: #a88e70;
}

.home-note-card:hover {
    transform: translateY(-3px);
    background: #fff;
    box-shadow: 0 14px 32px rgba(53, 43, 34, 0.06);
}

.home-note-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 12px;

    color: var(--text-muted);
    font-size: 0.76rem;
    line-height: 1.7;
}

.home-note-card__title {
    margin: 0 0 13px;

    font-size: 1.12rem;
    font-weight: 650;
    line-height: 1.9;
    letter-spacing: -0.02em;
}

.home-note-card__title a {
    color: var(--text-main);
    text-decoration: none;
}

.home-note-card__excerpt {
    color: var(--text-muted);
    font-size: 0.91rem;
    line-height: 2.05;
}

.home-note-card__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-top: auto;
    padding-top: 20px;

    color: var(--text-main);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
}

.home-note-card__link span {
    transition: transform 180ms ease;
}

.home-note-card__link:hover span {
    transform: translateX(-4px);
}

/* Mobile */

@media (max-width: 700px) {
    .home-notes {
        padding: 65px 0 75px;
    }

    .home-notes__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .home-note-card {
        min-height: 210px;
        padding: 26px 24px;
    }
}
