/* ==================================================
   Single post
   ================================================== */

.zahra-single {
    width: 100%;
    background: #fff;
}

.single-entry {
    color: var(--text-main);
}


/* ==================================================
   Meta
   ================================================== */

.single-entry__meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 16px;

    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.8;
}


/* ==================================================
   Featured image
   ================================================== */

.single-entry__featured {
    padding: 42px 0 0;
    background: #fff;
}

.single-entry__featured-figure {
    width: fit-content;
    max-width: 100%;
    margin: auto 0;
    text-align: center;
}

.single-entry__featured-figure img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 560px;
    height: auto;
    margin-inline: auto;
    object-fit: contain;
}

.single-entry__featured-figure figcaption {
    margin-top: 10px;

    color: var(--text-muted);

    font-size: 0.78rem;
    line-height: 1.8;
    text-align: center;
}


/* ==================================================
   Content
   ================================================== */

.single-entry__body {
    padding: 68px 0 100px;
}

.single-entry__layout {
    width: 100%;
}

.single-entry__content {
    width: 100%;
    max-width: 780px;
    margin-right: 0;
    margin-left: auto;

    color: #37332f;

    font-family: var(--font-primary);
    font-size: 1.08rem;
    font-weight: 400;
    line-height: 2.25;
    text-align: right;
}

.single-entry__content > *:first-child {
    margin-top: 0;
}

.single-entry__content > *:last-child {
    margin-bottom: 0;
}

.single-entry__content p {
    margin: 0 0 1.7em;
}


/* ==================================================
   Headings
   ================================================== */

.single-entry__content h2,
.single-entry__content h3,
.single-entry__content h4 {
    color: var(--text-main);

    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.75;
    letter-spacing: -0.025em;
}

.single-entry__content h2 {
    margin: 2.2em 0 0.8em;
    font-size: 1.7rem;
}

.single-entry__content h3 {
    margin: 2em 0 0.75em;
    font-size: 1.38rem;
}

.single-entry__content h4 {
    margin: 1.8em 0 0.7em;
    font-size: 1.14rem;
}


/* ==================================================
   Links and lists
   ================================================== */

.single-entry__content a {
    color: #795f46;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.single-entry__content ul,
.single-entry__content ol {
    margin: 0 0 1.6em;
    padding-right: 1.5em;
}

.single-entry__content li {
    margin-bottom: 0.55em;
}


/* ==================================================
   Blockquote
   ================================================== */

.single-entry__content blockquote {
    position: relative;

    margin: 2.2em 0;
    padding: 24px 30px 24px 20px;

    color: #454039;
    background: #f6f1eb;
    border: 0;
}

.single-entry__content blockquote::before {
    position: absolute;
    top: 18px;
    right: 0;
    bottom: 18px;

    width: 3px;

    background: #a88e70;
    content: "";
}

.single-entry__content blockquote p:last-child {
    margin-bottom: 0;
}


/* ==================================================
   Images and figures
   ================================================== */

.single-entry__content img {
    display: block;
    max-width: 100%;
    height: auto;
}

.single-entry__content figure {
    margin: 2.2em 0;
}

.single-entry__content figure img {
    margin-inline: auto;
}

.single-entry__content figcaption {
    margin-top: 8px;

    color: var(--text-muted);

    font-size: 0.78rem;
    line-height: 1.8;
    text-align: center;
}


/* ==================================================
   Separators and tables
   ================================================== */

.single-entry__content hr {
    width: 100%;
    height: 1px;
    margin: 3em 0;

    background: #ded7cf;
    border: 0;
}

.single-entry__content table {
    width: 100%;
    margin: 2em 0;

    border-collapse: collapse;

    font-size: 0.92rem;
}

.single-entry__content th,
.single-entry__content td {
    padding: 12px 14px;

    border: 1px solid #ded7cf;
    text-align: right;
}

.single-entry__content th {
    background: #f5f1ec;
    font-weight: 650;
}


/* ==================================================
   Page links
   ================================================== */

.single-entry__pages {
    margin-top: 40px;
    padding-top: 25px;

    border-top: 1px solid #e2dbd4;
}


/* ==================================================
   Footer area
   ================================================== */

.single-entry__footer {
    padding: 0 0 90px;
}

.single-entry__footer-inner {
    width: 100%;
    padding-top: 35px;

    border-top: 1px solid #e1dad2;
}

.single-entry__tags,
.single-entry__navigation {
    width: 100%;
    max-width: 780px;
    margin-right: 0;
    margin-left: auto;
}


/* ==================================================
   Tags
   ================================================== */

.single-entry__tags {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;

    margin-bottom: 44px;
}

.single-entry__tags-label {
    padding-top: 6px;

    color: var(--text-muted);

    font-size: 0.82rem;
}

.single-entry__tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.single-entry__tags-list a {
    display: inline-block;
    padding: 5px 11px;

    color: #665c52;
    background: #f5f1ec;
    border: 1px solid #ddd5cc;

    text-decoration: none;

    font-size: 0.78rem;
    line-height: 1.7;

    transition:
        color 180ms ease,
        background 180ms ease,
        border-color 180ms ease;
}

.single-entry__tags-list a:hover {
    color: var(--text-main);
    background: #fff;
    border-color: #bcae9f;
}


/* ==================================================
   Previous / next
   ================================================== */

.single-entry__navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.single-entry__navigation--single {
    grid-template-columns: 1fr;
}

.single-entry__navigation-item {
    min-width: 0;
    padding: 23px 25px;

    background: #faf8f5;
    border: 1px solid #e4ded7;

    transition:
        transform 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.single-entry__navigation-item:hover {
    transform: translateY(-2px);

    background: #fff;
    box-shadow: 0 12px 28px rgba(53, 43, 34, 0.06);
}

.single-entry__navigation-item span {
    display: block;
    margin-bottom: 7px;

    color: var(--text-muted);

    font-size: 0.75rem;
}

.single-entry__navigation-item a {
    color: var(--text-main);
    text-decoration: none;

    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.9;
}

.single-entry__navigation-item--next {
    text-align: left;
}


/* ==================================================
   Not found
   ================================================== */

.single-entry-not-found {
    padding: 100px 0;
    text-align: center;
}


/* ==================================================
   Tablet
   ================================================== */

@media (max-width: 900px) {
    .single-entry__featured {
        padding-top: 32px;
    }

    .single-entry__featured-figure img {
        max-height: 520px;
    }

    .single-entry__body {
        padding: 58px 0 82px;
    }
}


/* ==================================================
   Mobile
   ================================================== */

@media (max-width: 650px) {
    .single-entry__meta {
        display: block;
        margin-top: 12px;
    }

    .single-entry__meta span {
        margin-inline: 4px;
    }

    .single-entry__featured {
        padding-top: 24px;
    }

    .single-entry__featured-figure {
        width: 100%;
    }

    .single-entry__featured-figure img {
        max-width: 90%;
        max-height: none;
    }

    .single-entry__body {
        padding: 46px 0 68px;
    }

    .single-entry__content {
        max-width: 100%;
        font-size: 1rem;
        line-height: 2.18;
    }

    .single-entry__content h2 {
        font-size: 1.45rem;
    }

    .single-entry__content h3 {
        font-size: 1.25rem;
    }

    .single-entry__content blockquote {
        padding: 20px 23px 20px 16px;
    }

    .single-entry__footer {
        padding-bottom: 65px;
    }

    .single-entry__tags,
    .single-entry__navigation {
        max-width: 100%;
    }

    .single-entry__navigation {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .single-entry__navigation-item--next {
        text-align: right;
    }
}
