/* =========================================================
   EILDA — POETRY TRANSLATIONS SINGLE PAGE
   Responsive | Desktop / Tablet / Mobile
========================================================= */

:root {
    --eilda-black: #111111;
    --eilda-white: #ffffff;
    --eilda-red: #951528;
    --eilda-grey: #666666;
    --eilda-light-grey: #f2f2f2;
    --eilda-border: #e7e7e7;

    --page-width: 1400px;
    --content-width: 1240px;

    --transition-fast: 0.25s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;

    font-family: "Doran", sans-serif;
    font-weight: 400;

    color: var(--eilda-black);
    background-color: var(--eilda-white);

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
video {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    -webkit-appearance: none;
    appearance: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--eilda-red);
    outline-offset: 4px;
}



.single-page-poetry-translations-page {
    width: 100%;
    min-width: 0;

    background-color: var(--eilda-white);
    color: var(--eilda-black);
}

.single-page-poetry-translations-media {
    position: relative;

    width: 100%;
    max-width: none;

    height: clamp(190px, 23vw, 280px);

    margin: 0;
    padding: 0;

    overflow: hidden;

    background-color: var(--eilda-light-grey);
}

.single-page-poetry-translations-media-image {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    object-fit: cover;
    object-position: center;

    border: none;
}

.single-page-poetry-translations-media::after {
    content: none;
}


.poetry-translations-featured {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    align-items: center;
    gap: 55px;

    width: 100%;
    max-width: 1100px;

    margin: 0 auto;
    padding: 44px 32px 36px;

    box-sizing: border-box;

    border-bottom: 1px solid var(--eilda-light-grey);
}



.poetry-translations-featured-figure {
    min-width: 0;
    margin: 0;
}

.poetry-translations-featured-image {
    display: block;

    width: 100%;
    height: auto;

    aspect-ratio: 3 / 4;

    object-fit: cover;
    object-position: center;

    background-color: var(--eilda-light-grey);
}

.poetry-translations-featured-caption {
    margin: 10px 0 0;

    color: var(--eilda-grey);

    font-family: "Doran", sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.7;

    text-align: left;

    overflow-wrap: anywhere;
}



.poetry-translations-featured-content {
    display: flex;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 0;
    padding: 12px 8px;

    text-align: center;
}



.poetry-translations-featured-category {
    margin: 0 0 22px;

    color: var(--eilda-black);

    font-family: "Doran", sans-serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.5;

    text-transform: uppercase;
    letter-spacing: 0.3px;
}



.poetry-translations-featured-title {
    max-width: 460px;

    margin: 0 auto 24px;

    color: var(--eilda-black);

    font-family: "Bodoni Moda", "Didot", "Times New Roman", serif;
    font-size: clamp(25px, 2.7vw, 36px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.4px;

    text-align: center;

    overflow-wrap: break-word;
}


/* =========================================================
   9. AUTHOR AND PUBLICATION DATE
========================================================= */

.poetry-translations-featured-meta {
    display: flex;

    flex-direction: column;
    align-items: center;
    gap: 3px;

    margin: 0;
}

.poetry-translations-featured-author,
.poetry-translations-featured-date {
    margin: 0;

    color: var(--eilda-black);

    font-family: "Doran", sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.6;

    text-align: center;
}


/* =========================================================
   10. POETRY SECTION
========================================================= */

.poetry-translation {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;
    padding: 30px 32px 55px;

    box-sizing: border-box;

    background: var(--eilda-white);
    color: var(--eilda-black);

    font-family: "Doran", sans-serif;
}


/* =========================================================
   11. SECTION HEADING
========================================================= */

.poetry-header {
    width: 100%;

    margin: 0 auto 30px;

    text-align: center;
}


.poetry-header h2 {
    font-family: "Doran", Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

/* Poetry Subtitle */

.poetry-header h3 {
    font-family: "Doran", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
}
.poetry-divider {
    width: 100%;
    max-width: 330px;

    height: 1px;

    margin: 19px auto 0;

    background: #d0d0d0;
}


/* =========================================================
   12. TWO-COLUMN MAGAZINE LAYOUT
========================================================= */

.poetry-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1.65fr)
        minmax(0, 0.9fr);

    column-gap: 42px;
    align-items: start;

    width: 100%;
}

.poems-column,
.translator-column {
    min-width: 0;
}


/* =========================================================
   13. POEMS
========================================================= */

.poem {
    margin: 0 0 27px;
    padding: 0;
}

.poem:last-child {
    margin-bottom: 0;
}

.poem h4 {
    margin: 0 0 9px;

    font-family: "Doran", sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;

    letter-spacing: 0.01em;
}

.poem p {
    margin: 0;

    font-family: "Doran", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.85;

    letter-spacing: 0.015em;

    overflow-wrap: break-word;
}


/* =========================================================
   14. TRANSLATOR PROFILE
========================================================= */

.translator-column {
    width: 100%;

    margin: 0;
    padding: 0;
}

.translator-image {
    display: block;

    width: 100%;
    max-width: 170px;

    aspect-ratio: 1 / 1;
    height: auto;

    margin: 0 0 8px;

    object-fit: cover;
    object-position: center;

    background: var(--eilda-light-grey);
}

.translator-column h4 {
    margin: 0 0 16px;

    font-family: "Doran", sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;

    text-align: left;
}

.translator-column p {
    width: 100%;
    max-width: 190px;

    margin: 0;

    font-family: "Doran", sans-serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.8;

    text-align: left;

    overflow-wrap: break-word;
}


/* =========================================================
   15. TABLET RESPONSIVE DESIGN
========================================================= */

@media (max-width: 900px) {

    .poetry-translation {
        padding: 26px 25px 45px;
    }

    .poetry-layout {
        column-gap: 28px;
    }

    .poetry-header h2 {
        font-size: 17px;
    }

    .poetry-header h3 {
        font-size: 13px;
    }

    .poem {
        margin-bottom: 23px;
    }

    .poem h4 {
        font-size: 12px;
    }

    .poem p {
        font-size: 11px;
        line-height: 1.8;
    }

    .translator-image {
        max-width: 200px;
    }

    .translator-column h4 {
        font-size: 11px;
    }

    .translator-column p {
        font-size: 10px;
        line-height: 1.8;
    }
}

@media (max-width: 768px) {

    .poetry-translations-featured {
        gap: 30px;

        padding-right: 24px;
        padding-left: 24px;
    }

    .poetry-translations-featured-title {
        font-size: clamp(24px, 3.5vw, 31px);
    }
}


/* =========================================================
   17. MOBILE FEATURED ARTICLE
========================================================= */

@media (max-width: 640px) {

    .single-page-poetry-translations-media {
        height: clamp(170px, 48vw, 240px);
    }

    .poetry-translations-featured {
        grid-template-columns: minmax(0, 1fr);

        gap: 28px;

        padding: 28px 20px 26px;
    }

    .poetry-translations-featured-figure {
        width: 100%;
    }

    .poetry-translations-featured-image {
        aspect-ratio: 4 / 5;
    }

    .poetry-translations-featured-caption {
        margin-top: 10px;
        font-size: 10px;
    }

    .poetry-translations-featured-content {
        padding: 0;
    }

    .poetry-translations-featured-category {
        margin-bottom: 16px;
    }

    .poetry-translations-featured-title {
        max-width: 480px;

        margin-bottom: 20px;

        font-size: clamp(26px, 7vw, 34px);
    }
}



@media (max-width: 600px) {

    .poetry-translation {
        padding: 22px 18px 38px;
    }

    .poetry-header {
        margin-bottom: 23px;
    }

    .poetry-header h2 {
        font-size: 14px;
        line-height: 1.6;
    }

    .poetry-header h3 {
        font-size: 11px;
        line-height: 1.7;
    }

    .poetry-divider {
        max-width: 230px;
        margin-top: 14px;
    }

    .poetry-layout {
        grid-template-columns:
            minmax(0, 1.5fr)
            minmax(0, 1fr);

        column-gap: 17px;
    }

    .poem {
        margin-bottom: 21px;
    }

    .poem h4 {
        margin-bottom: 7px;

        font-size: 10px;
        line-height: 1.6;
    }

    .poem p {
        font-size: 10px;
        line-height: 1.8;
        letter-spacing: 0;
    }

    .translator-image {
        max-width: 100%;

        aspect-ratio: 4 / 5;

        margin-bottom: 8px;
    }

    .translator-column h4 {
        margin-bottom: 7px;
        font-size: 10px;
    }

    .translator-column p {
        font-size: 9px;
        line-height: 1.7;
    }
}


@media (max-width: 360px) {

    .poetry-translation {
        padding-right: 13px;
        padding-left: 13px;
    }

    .poetry-layout {
        grid-template-columns:
            minmax(0, 1.45fr)
            minmax(0, 1fr);

        column-gap: 12px;
    }

    .poetry-header h2 {
        font-size: 12px;
    }

    .poetry-header h3 {
        font-size: 10px;
    }

    .poem h4 {
        font-size: 9px;
    }

    .poem p {
        font-size: 9px;
        line-height: 1.75;
    }

    .translator-column h4 {
        font-size: 9px;
    }

    .translator-column p {
        font-size: 8px;
        line-height: 1.65;
    }
}

.poetry-header {
    border-top: none !important;
    border-bottom: none !important;
}


.poetry-header::before,
.poetry-header::after {
    display: none !important;
    content: none !important;
}



.poetry-header .poetry-divider {
    display: block;
    width: 35%;
    max-width: 500px;
    height: 1px;
    background-color: #cccccc;
    margin: 30px auto 0;
    border: none;
}


.poetry-translation > .poetry-header {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background-image: none !important;
}

.poetry-translation > .poetry-header::before,
.poetry-translation > .poetry-header::after {
    content: none !important;
    display: none !important;
}


.poetry-header .poetry-divider {
    display: block;
    width: 35%;
    max-width: 500px;
    height: 1px;
    margin: 25px auto 0;
    background-color: #cccccc;
    border: none;
}


.poems-column .poem {
    border: none !important;
    box-shadow: none !important;
    background-image: none !important;
}

.poems-column .poem::before,
.poems-column .poem::after {
    content: none !important;
    display: none !important;
}
/* =========================================================
   RTL — ARABIC POETRY TRANSLATIONS
========================================================= */

/* Main Page */
html[dir="rtl"] .single-page-poetry-translations-page {
    direction: rtl;
}

/* Featured Section */
html[dir="rtl"] .poetry-translations-featured {
    direction: rtl;
}

html[dir="rtl"] .poetry-translations-featured-caption {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .poetry-translations-featured-category,
html[dir="rtl"] .poetry-translations-featured-author,
html[dir="rtl"] .poetry-translations-featured-date {
    direction: rtl;
    letter-spacing: normal;
}

html[dir="rtl"] .poetry-translations-featured-title {
    direction: rtl;
    font-family: "Doran", sans-serif;
    letter-spacing: normal;
}

/* Poetry Section */
html[dir="rtl"] .poetry-translation {
    direction: rtl;
}

html[dir="rtl"] .poetry-header {
    direction: rtl;
    text-align: center;
}

html[dir="rtl"] .poetry-header h2,
html[dir="rtl"] .poetry-header h3 {
    direction: rtl;
    font-family: "Doran", sans-serif;
    letter-spacing: normal;
    text-align: center;
}

/* Two-Column Layout */
html[dir="rtl"] .poetry-layout {
    direction: rtl;
}

/* Poems */
html[dir="rtl"] .poems-column {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .poem {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .poem h4,
html[dir="rtl"] .poem p {
    direction: rtl;
    text-align: right;
    font-family: "Doran", sans-serif;
    letter-spacing: normal;
}

/* Translator Profile */
html[dir="rtl"] .translator-column {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .translator-column h4,
html[dir="rtl"] .translator-column p {
    direction: rtl;
    text-align: right;
    font-family: "Doran", sans-serif;
}