﻿:root {
    --site-green: #5B2BBF;
    --site-green-deep: #17622d;
    --site-green-soft: #edf7ef;
    --site-green-glow: rgba(47, 157, 66, 0.18);
    --site-text: #162116;
    --site-muted: #667366;
    --site-border: #d7e6d9;
    --site-border-strong: #c2d7c6;
    --site-bg: #f6f9f5;
    --site-panel: #ffffff;
    --site-panel-soft: rgba(255, 255, 255, 0.84);
    --site-shadow: 0 20px 44px rgba(22, 98, 45, 0.08);
    --site-shadow-strong: 0 30px 60px rgba(22, 98, 45, 0.14);
    --site-radius: 26px;
    --site-font-ar: "Sakkal Majalla", "Traditional Arabic", "Arabic Typesetting", Tahoma, Arial, serif;
    --site-font-en: Cambria, Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html[lang="ar"] {
    font-size: 18px;
}

body.site-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 19px;
    line-height: 1.82;
    font-family: var(--site-font-ar);
    background:
        radial-gradient(circle at top right, rgba(47, 157, 66, 0.08), transparent 28%),
        linear-gradient(180deg, #fbfdfb 0%, var(--site-bg) 100%);
    color: var(--site-text);
}

html[lang="ar"] body.site-body {
    font-size: 20px;
    font-weight: 600;
}

html[lang="ar"] .chip,
html[lang="ar"] .card-section-strip {
    font-size: 1rem;
    font-weight: 800;
}

html[lang="ar"] .social-link-card,
html[lang="ar"] .home-info-label,
html[lang="ar"] .home-info-value,
html[lang="ar"] .home-join-intro,
html[lang="ar"] .news-list-card .card-body p,
html[lang="ar"] .page-simple-text,
html[lang="ar"] .candidate-program-text,
html[lang="ar"] .member-info-heading,
html[lang="ar"] .member-info-content,
html[lang="ar"] .office-directory-card h3,
html[lang="ar"] .contact-line strong,
html[lang="ar"] .contact-line span {
    font-size: 1.06rem;
}

html[lang="ar"] .news-list-card .card-body h3,
html[lang="ar"] .home-section-strip,
html[lang="ar"] .page-head h1,
html[lang="ar"] .news-head-strip h1,
html[lang="ar"] .news-head-strip h2 {
    font-weight: 800;
}

html[lang="ar"] input,
html[lang="ar"] select,
html[lang="ar"] textarea,
html[lang="ar"] button {
    font-size: 1rem;
    font-weight: 700;
}

body.site-body > main {
    flex: 1 0 auto;
    display: block;
}

html[lang="en"] body.site-body {
    font-family: var(--site-font-en);
}

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

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

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header .container {
    width: min(1460px, calc(100% - 32px));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(215, 230, 217, 0.9);
    backdrop-filter: blur(10px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 84px;
    padding: 8px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: 0;
}

.brand-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.brand-mark {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #75d66e, var(--site-green));
    color: white;
    border-radius: 18px;
    font-size: 1.4rem;
}

.brand-copy {
    display: flex;
    align-items: center;
}

.brand-copy strong {
    display: block;
    font-size: 1.56rem;
    font-weight: 800;
    line-height: 1.1;
    color: #18301e;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 18px;
    flex-wrap: nowrap;
}

.site-nav > a {
    color: #315238;
    font-weight: 800;
    font-size: 1.14rem;
    line-height: 1.35;
    white-space: nowrap;
}

.site-nav > a.active,
.site-nav > a:hover {
    color: var(--site-green-deep);
}

.locale-switch {
    padding: 8px 14px;
    background: #f4fbf4;
    border: 1px solid #cfe2d2;
    border-radius: 999px;
    color: var(--site-green-deep);
    font-size: 1.06rem;
}

html[lang="ar"] .brand-copy strong {
    font-size: 1.72rem;
}

html[lang="ar"] .site-nav > a {
    font-size: 1.28rem;
}

html[lang="en"] .brand-copy strong {
    font-size: 1.24rem;
    line-height: 1.16;
    white-space: nowrap;
}

html[lang="en"] .site-nav {
    gap: 16px;
}

html[lang="ar"] .site-nav,
html[lang="en"] .site-nav {
    padding-inline: 18px;
}

html[lang="en"] .site-nav > a,
html[lang="en"] .locale-switch {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

html[lang="en"] .site-nav > a {
    font-size: 1rem;
    font-weight: 700;
}

html[lang="en"] .locale-switch {
    padding: 8px 16px;
    font-size: 1rem;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--site-border);
    background: white;
    padding: 8px 12px;
    border-radius: 12px;
    font: inherit;
    color: var(--site-green-deep);
}

.back-nav-shell {
    padding-top: 18px;
    padding-bottom: 8px;
}

.back-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--site-green-deep), var(--site-green));
    box-shadow: 0 16px 30px rgba(23, 98, 45, 0.24);
    color: #ffffff;
}

html[dir="rtl"] .back-link-button {
    flex-direction: row-reverse;
}

.back-link-icon {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}

.hero {
    background:
        linear-gradient(110deg, rgba(24, 50, 29, 0.86), rgba(24, 50, 29, 0.44)),
        linear-gradient(135deg, #274130 0%, #9fb09f 100%);
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02)),
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 24%);
}

.hero-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    min-height: 540px;
    align-items: center;
    padding: 126px 0 96px;
    color: white;
}

.hero-copy {
    width: min(100%, 560px);
    margin: 0 auto;
    display: grid;
    justify-items: center;
    align-content: center;
    text-align: center;
}

.hero-site-title {
    margin: 0 0 18px;
    font-size: clamp(2.15rem, 3.7vw, 3.15rem);
    line-height: 1.2;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 10px 24px rgba(12, 38, 19, 0.22);
}

.hero-motto-image {
    width: min(470px, 100%);
    margin: 0;
    object-fit: contain;
    filter: drop-shadow(0 16px 30px rgba(10, 30, 13, 0.34));
    animation: heroMottoPulse 4.4s ease-in-out infinite;
}

.hero-motto-text {
    margin: 0;
    max-width: 720px;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.35;
    font-family: "Aldhabi", "Diwani Letter", "Arabic Typesetting", var(--site-font-ar);
    color: rgba(255, 255, 255, 0.96);
    animation: heroTextPulse 4.4s ease-in-out infinite;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.92rem;
    font-weight: 700;
}

.card,
.highlight-box {
    background: var(--site-panel);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    box-shadow: var(--site-shadow);
}

.hero-logo-display {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

.hero-logo-image {
    width: min(330px, 100%);
    max-height: 360px;
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(13, 42, 19, 0.28));
    animation: heroStarSwing 4.8s ease-in-out infinite;
    transform-origin: center;
}

@keyframes heroStarSwing {
    0%,
    100% {
        transform: translateY(0) rotate(-2deg) scale(1);
    }
    25% {
        transform: translateY(-6px) rotate(4deg) scale(1.04);
    }
    50% {
        transform: translateY(3px) rotate(-5deg) scale(0.99);
    }
    75% {
        transform: translateY(-5px) rotate(4deg) scale(1.03);
    }
}

@keyframes heroMottoPulse {
    0%,
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: drop-shadow(0 16px 30px rgba(10, 30, 13, 0.34)) brightness(1);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-4px) scale(1.04);
        filter: drop-shadow(0 20px 34px rgba(180, 224, 187, 0.24)) brightness(1.14);
    }
}

@keyframes heroTextPulse {
    0%,
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        text-shadow: 0 12px 24px rgba(10, 30, 13, 0.24);
    }
    50% {
        opacity: 0.82;
        transform: translateY(-4px) scale(1.04);
        text-shadow: 0 16px 32px rgba(196, 232, 201, 0.22);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-motto-image,
    .hero-motto-text,
    .hero-logo-image {
        animation: none !important;
        transform: none !important;
    }
}

.section {
    padding: 72px 0;
}

.section-alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    margin-bottom: 26px;
}

.section-heading h2,
.page-head h1 {
    margin: 0;
    font-size: clamp(2.1rem, 3vw, 3.1rem);
    line-height: 1.15;
}

.page-head,
.news-page-head {
    padding: 0;
    margin-top: 0;
    background: linear-gradient(180deg, #eef8ef 0%, #e3f3e6 100%);
    border-bottom: 1px solid #d3e7d7;
}

.page-head > .container,
.news-page-head > .container {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-head-strip {
    width: 100%;
    padding: 12px 6px;
}

.page-head h1,
.news-head-strip h1 {
    margin: 0;
    text-align: center;
    font-size: clamp(1.82rem, 2.7vw, 2.45rem);
    line-height: 1.28;
}

.news-head-strip h2 {
    margin: 0;
    text-align: center;
    font-size: clamp(1.72rem, 2.5vw, 2.3rem);
}

.page-head .news-head-strip h1 {
    margin: 0;
}

.card-grid {
    display: grid;
    gap: 22px;
}

.three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.member-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nested-grid {
    margin-top: 4px;
}

.card {
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--site-shadow-strong);
    border-color: var(--site-border-strong);
}

.card-body {
    padding: 22px;
}

.news-list-card {
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.news-list-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.news-list-card:hover {
    transform: translateY(-4px);
    border-color: #bad8c0;
    box-shadow: 0 24px 48px rgba(22, 98, 45, 0.12);
}

.news-list-card .card-image {
    aspect-ratio: 16 / 11;
    object-fit: contain;
    padding: 16px;
    background: linear-gradient(180deg, #f8fcf9 0%, #edf7ef 100%);
}

.news-list-card .card-body {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.news-list-card .card-body h3 {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.5;
}

.news-list-card .card-body p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #35523c;
}

.news-list-section {
    padding-top: 18px;
}

.biography-timeline-section {
    padding-top: 34px;
}

.biography-timeline-shell {
    width: min(900px, calc(100% - 32px));
}

.biography-timeline {
    position: relative;
    display: grid;
    gap: 0;
    padding-block: 4px;
}

.biography-timeline::before {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: 18px;
    width: 1px;
    background: var(--site-border);
}

html[dir="rtl"] .biography-timeline::before {
    inset-inline-start: auto;
    inset-inline-end: 18px;
}

.biography-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 18px;
    color: inherit;
}

html[dir="rtl"] .biography-timeline-item {
    grid-template-columns: minmax(0, 1fr) 38px;
}

.biography-timeline-marker {
    z-index: 1;
    width: 13px;
    height: 13px;
    margin: 13px auto 0;
    border-radius: 999px;
    border: 2px solid var(--site-green-deep);
    background: var(--site-bg);
}

html[dir="rtl"] .biography-timeline-marker {
    grid-column: 2;
    grid-row: 1;
}

.biography-timeline-content {
    display: grid;
    gap: 8px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--site-border);
}

html[dir="rtl"] .biography-timeline-content {
    grid-column: 1;
    grid-row: 1;
}

.biography-timeline-item:last-child .biography-timeline-content {
    border-bottom: none;
    padding-bottom: 0;
}

.biography-timeline-content time {
    color: var(--site-muted);
    font-size: 0.96rem;
    line-height: 1.3;
}

.biography-timeline-content strong {
    color: var(--site-green-deep);
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    line-height: 1.45;
}

.biography-timeline-content span {
    color: var(--site-text);
    font-size: 1.06rem;
    line-height: 1.8;
}

.home-front-sections {
    padding-top: 40px;
}

.home-sections-stack {
    display: grid;
    gap: 34px;
}

.home-section-block {
    display: grid;
    gap: 18px;
}

.home-section-strip {
    width: 100%;
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: var(--site-radius);
    border: 1px solid #d0e4d4;
    background: linear-gradient(180deg, #eef8ef 0%, #e1f1e4 100%);
    box-shadow: 0 18px 36px rgba(23, 98, 45, 0.08);
    color: var(--site-green-deep);
    text-align: center;
    font-size: clamp(1.62rem, 2.4vw, 2rem);
    font-weight: 800;
    line-height: 1.35;
}

.home-section-strip-link {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-section-strip-link:hover {
    transform: translateY(-3px);
    border-color: #bfd8c3;
    box-shadow: 0 24px 44px rgba(23, 98, 45, 0.12);
}

.home-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.home-info-card .card-body {
    min-height: 100%;
    display: grid;
    gap: 12px;
    align-content: center;
    justify-items: center;
    text-align: center;
}

.home-info-card-wide {
    grid-column: 1 / -1;
}

.home-info-label {
    font-size: 1.16rem;
    font-weight: 800;
    color: #23432a;
}

.home-info-value {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.85;
    color: #18301e;
    word-break: break-word;
}

.home-info-value-ltr {
    direction: ltr;
    unicode-bidi: plaintext;
}

.home-social-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.home-social-grid .social-link-card {
    min-height: 72px;
    font-size: 1.18rem;
}

.home-office-grid {
    gap: 20px;
}

.home-office-card .card-body {
    display: grid;
    gap: 14px;
}

.home-office-card h3 {
    margin: 0;
    font-size: 1.34rem;
    text-align: center;
}

.home-office-line,
.home-office-address {
    margin: 0;
    text-align: center;
}

.home-office-line {
    display: grid;
    gap: 4px;
}

.home-join-card {
    width: min(980px, 100%);
    margin: 0 auto;
}

.home-join-card .card-body {
    display: grid;
    gap: 18px;
}

.home-join-intro {
    margin: 0;
    text-align: center;
    font-size: 1.14rem;
    line-height: 1.95;
    color: #27472f;
}

.home-empty-card .card-body {
    display: grid;
    place-items: center;
    min-height: 120px;
}

.about-card-grid {
    align-items: stretch;
}

.about-entry-card .card-body,
.about-subcard .card-body {
    display: grid;
    gap: 14px;
    justify-items: center;
    text-align: center;
}

.about-entry-card .card-body h3,
.about-subcard .card-body h3 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.45;
}

.about-entry-card .card-body p,
.about-subcard .card-body p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.9;
    color: #27472f;
    text-align: center;
}

.about-subcard-grid {
    align-items: start;
}

.about-subcard {
    min-height: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #f8fcf9 100%);
}

.about-subcard-accent {
    border-top: 5px solid var(--site-green);
}

.info-card-text {
    text-align: center;
    font-size: 1.08rem;
    line-height: 1.95;
    color: #27472f;
}

.about-dynamic-card .card-body {
    min-height: 220px;
    align-content: center;
}

.about-dynamic-card .card-cover-link {
    z-index: 4;
}

.about-dynamic-card .card-body > :not(.card-cover-link) {
    z-index: 2;
    pointer-events: none;
}

.card-section-strip {
    width: 100%;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #eef8ef 0%, #e3f3e6 100%);
    color: var(--site-green-deep);
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
}

.card-image,
.article-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: linear-gradient(135deg, #e9f4ea, #d7ead9);
}

.article-image {
    border-bottom: 1px solid var(--site-border);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--site-green-soft);
    color: var(--site-green-deep);
    font-size: 0.82rem;
    font-weight: 700;
}

.muted {
    color: var(--site-muted);
}

.text-link {
    color: var(--site-green-deep);
    font-weight: 700;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--site-green), #42b157);
    color: white;
    cursor: pointer;
    font-weight: 700;
    font: inherit;
}

.outline-button,
.muted-button {
    background: transparent;
    color: var(--site-green-deep);
    border: 1px solid rgba(255, 255, 255, 0.32);
}

.card .outline-button,
.card .muted-button,
.sidebar-stack .outline-button {
    border-color: var(--site-border);
}

.hero-actions,
.pager,
.card-inline-links {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.flash-message {
    width: min(1180px, calc(100% - 32px));
    margin: 18px auto 0;
    padding: 15px 18px;
    background: #e7f6ea;
    color: var(--site-green-deep);
    border: 1px solid #b8dbbe;
    border-radius: 18px;
}

.article-layout,
.detail-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
}

.news-detail-shell {
    width: min(980px, 100%);
    display: grid;
    gap: 24px;
}

.news-featured-card {
    overflow: hidden;
}

.news-featured-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 440px;
    object-fit: contain;
    padding: 16px;
    background: linear-gradient(180deg, #f8fcf9 0%, #edf7ef 100%);
    display: block;
}

.news-image-link {
    display: block;
    cursor: zoom-in;
}

.news-detail-stack {
    display: grid;
    gap: 20px;
}

.news-detail-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fcf9 100%);
}

.news-title-card {
    background: linear-gradient(180deg, #e3f5e5 0%, #d1edd6 100%);
    border-color: #bfdcc5;
}

.news-summary-card {
    background: linear-gradient(180deg, #f7fcf7 0%, #eef8f0 100%);
}

.news-body-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
}

.news-detail-center {
    text-align: center;
    display: grid;
    gap: 14px;
    justify-items: center;
}

.news-detail-center h2,
.news-detail-center h3 {
    margin: 0;
}

.news-title-card h2 {
    font-size: clamp(1.95rem, 3.2vw, 2.7rem);
    line-height: 1.5;
}

.news-detail-center p {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.95;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.news-rich-text {
    text-align: center;
    font-size: 1.24rem;
    line-height: 2.05;
    width: min(100%, 760px);
    margin: 0 auto;
    overflow-wrap: anywhere;
}

.news-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 999px;
    background: #eef8f0;
    border: 1px solid #c5dfca;
    color: var(--site-green-deep);
    font-weight: 700;
    font-size: 1rem;
    word-break: break-word;
}

.news-video-frame,
.news-gallery-grid {
    margin-top: 0;
}

.news-related-block {
    display: grid;
    gap: 14px;
}

.news-related-strip {
    overflow: hidden;
    border: 1px solid #d3e7d7;
    border-radius: var(--site-radius);
    background: linear-gradient(180deg, #eef8ef 0%, #e3f3e6 100%);
}

.member-detail-shell {
    width: min(980px, 100%);
    display: grid;
    gap: 22px;
}

.member-portrait-card {
    overflow: hidden;
}

.member-portrait-image {
    width: 100%;
    min-height: 460px;
    max-height: 620px;
    object-fit: contain;
    padding: 22px;
    background: linear-gradient(180deg, #f8fcf9 0%, #edf7ef 100%);
}

.member-biography-text {
    text-align: center;
    font-size: 1.2rem;
    line-height: 2;
    width: min(100%, 780px);
    margin: 0 auto;
}

.member-info-stack {
    display: grid;
    gap: 14px;
}

.member-info-row {
    display: flex;
    border: 1px solid var(--site-border);
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fcf9 100%);
    box-shadow: var(--site-shadow);
}

html[dir="rtl"] .member-info-row {
    flex-direction: row;
}

.member-info-heading {
    flex: 0 0 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 22px;
    background: linear-gradient(180deg, #eef8ef 0%, #e3f3e6 100%);
    border-inline-end: 1px solid var(--site-border);
    font-size: 1.1rem;
    font-weight: 800;
    color: #204127;
    text-align: center;
}

.member-info-content {
    flex: 1;
    padding: 18px 24px;
    font-size: 1.08rem;
    line-height: 1.9;
    color: #244129;
    text-align: start;
    white-space: pre-wrap;
    word-break: break-word;
}

html[lang="en"] .member-info-content {
    direction: ltr;
    text-align: left;
}

.member-info-link {
    color: var(--site-green-deep);
    font-weight: 800;
}

.detail-grid {
    grid-template-columns: minmax(0, 1.18fr) 0.82fr;
}

.single-column {
    max-width: 920px;
}

.sidebar-list,
.mini-item,
.office-card,
.sidebar-stack,
.accordion-list,
.accordion-body,
.candidate-panel,
.contact-form,
.join-form {
    display: grid;
    gap: 16px;
}

.citizen-affairs-card {
    width: min(920px, 100%);
    margin: 0 auto;
}

.citizen-affairs-body {
    display: grid;
    gap: 18px;
}

.citizen-affairs-intro {
    margin: 0;
    text-align: center;
    font-size: 1.1rem;
}

.contact-page-stack {
    display: grid;
    gap: 24px;
}

.contact-top-grid {
    align-items: stretch;
}

.contact-top-grid > .card {
    height: 100%;
}

.contact-top-grid > .card > .card-body {
    height: 100%;
    display: grid;
    gap: 18px;
    align-content: start;
}

.contact-lines {
    display: grid;
    gap: 14px;
}

.contact-line {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid var(--site-border);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fcf9 100%);
}

.social-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.contact-top-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-info-card .card-body {
    text-align: center;
    align-content: center;
    justify-items: center;
}

.contact-info-card .chip {
    min-width: min(320px, 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-inline: auto;
}

.contact-info-value-center,
.contact-info-card .home-info-value,
.contact-info-card .home-info-value-ltr {
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-inline: auto;
}

.social-link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 12px 14px;
    border: 1px solid var(--site-border);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f4fbf5 100%);
    color: var(--site-green-deep);
    font-weight: 800;
    text-align: center;
}

.office-directory-grid {
    margin-top: 16px;
}

.office-directory-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fcf9 100%);
}

.office-directory-card .card-body {
    display: grid;
    gap: 14px;
}

.office-directory-card h3 {
    margin: 0;
    font-size: 1.34rem;
}

.office-directory-entry {
    display: grid;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--site-border);
}

.office-directory-entry:first-of-type {
    padding-top: 0;
    border-top: none;
}

.office-directory-entry p {
    margin: 0;
}

.join-form {
    margin-top: 4px;
}

.join-form .form-grid {
    gap: 14px;
}

.join-date-input {
    direction: ltr;
    text-align: left;
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    unicode-bidi: plaintext;
}

html[dir="rtl"] .join-date-input {
    direction: ltr;
    text-align: left;
}

.form-help {
    display: block;
    color: var(--site-muted);
    font-size: 0.96rem;
    line-height: 1.7;
}

.sidebar-list a,
.mini-item a {
    padding: 12px 0;
    border-bottom: 1px solid var(--site-border);
}

.sidebar-list a:last-child,
.mini-item a:last-child {
    border-bottom: none;
}

.article-body,
.rich-text {
    line-height: 1.95;
    font-size: 1.12rem;
}

.highlight-box {
    padding: 20px;
    margin-bottom: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fcf9 100%);
}

.highlight-box h3,
.highlight-box h4 {
    margin-top: 0;
}

.video-frame iframe,
.native-video {
    width: 100%;
    min-height: 320px;
    border: 0;
    border-radius: 18px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.gallery-image {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
}

.accordion-item,
.candidate-detail {
    background: var(--site-panel);
    border: 1px solid var(--site-border);
    border-radius: 22px;
    padding: 0 20px;
    box-shadow: var(--site-shadow);
}

.accordion-item summary,
.candidate-detail summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 0;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.accordion-item summary::-webkit-details-marker,
.candidate-detail summary::-webkit-details-marker {
    display: none;
}

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

input,
textarea,
select {
    width: 100%;
    padding: 14px 15px;
    border-radius: 16px;
    border: 1px solid var(--site-border);
    background: white;
    color: var(--site-text);
    font: inherit;
}

textarea {
    resize: vertical;
}

.clickable-card {
    position: relative;
}

.card-cover-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.card-body > :not(.card-cover-link) {
    position: relative;
    z-index: 2;
}

.card-body a.text-link,
.card-inline-links a,
.highlight-box a,
.button {
    position: relative;
    z-index: 3;
}

.news-list-card .card-body h3,
.member-card .card-body h3,
.candidate-card .card-body h3 {
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.4;
}

.member-card-compact .card-image {
    aspect-ratio: 4 / 3;
    object-fit: contain;
    padding: 18px;
    background: linear-gradient(180deg, #f8fcf9 0%, #edf7ef 100%);
}

.member-card-compact .card-body {
    padding: 18px 20px 22px;
    text-align: center;
}

.member-card-compact .card-body h3 {
    margin: 0;
    font-size: 1.22rem;
    line-height: 1.6;
}

.parliament-card {
    border-top: 5px solid var(--site-green);
}

.provincial-card {
    border-top: 5px solid #90c86f;
    background: linear-gradient(180deg, #ffffff 0%, #f3fbf4 100%);
}

.candidate-card {
    border-top: 5px solid #5aaa48;
}

.election-card,
.province-square-card {
    overflow: hidden;
    min-height: 230px;
    background: linear-gradient(180deg, #ffffff 0%, #f4fbf5 100%);
}

.election-card .card-body,
.province-square-card .card-body {
    min-height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 26px;
    text-align: center;
}

.election-card .card-body h2,
.province-square-card .card-body h2 {
    margin: 0;
    font-size: clamp(1.42rem, 2.15vw, 1.8rem);
    line-height: 1.7;
    color: #18301e;
}

.province-square-card {
    aspect-ratio: 1 / 1;
}

.candidate-card {
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
}

.candidate-card .card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    padding: 18px;
    background: linear-gradient(180deg, #f8fcf9 0%, #edf7ef 100%);
}

.candidate-card-empty-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(180deg, #f8fcf9 0%, #edf7ef 100%);
}

.candidate-card .card-body {
    padding: 18px 20px 24px;
    text-align: center;
}

.candidate-card .card-body h3 {
    margin: 0;
    font-size: 1.24rem;
    line-height: 1.7;
    color: #1e3824;
}

.candidate-detail-shell {
    width: min(980px, 100%);
    display: grid;
    gap: 22px;
}

.candidate-program-text {
    width: min(100%, 780px);
    margin: 0 auto;
    font-size: 1.18rem;
    line-height: 2;
    text-align: center;
}

.office-card {
    padding-top: 14px;
    border-top: 1px solid var(--site-border);
}

.office-card:first-child {
    padding-top: 0;
    border-top: none;
}

.office-card-strong {
    background: linear-gradient(180deg, #ffffff 0%, #f4fbf5 100%);
}

.office-compact-card {
    background: linear-gradient(180deg, #ffffff 0%, #f9fdf9 100%);
}

.pillars-list {
    margin: 0;
    padding-inline-start: 20px;
    display: grid;
    gap: 8px;
}

.empty-state {
    padding: 22px;
    background: white;
    border-radius: 18px;
    border: 1px dashed var(--site-border);
    color: var(--site-muted);
}

@media (max-width: 960px) {
    .election-card-grid,
    .province-card-grid,
    .election-candidate-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.site-footer {
    margin-top: auto;
    background: #ffffff;
    border-top: 1px solid #dcebdc;
    padding: 12px 0;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-copy {
    margin: 0;
    width: 100%;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.35;
    color: #18301e;
}

.page-simple-body {
    display: grid;
    gap: 18px;
}

.page-text-block {
    margin-bottom: 0;
}

.page-simple-text {
    text-align: center;
    font-size: 1.16rem;
    line-height: 2;
    color: #244129;
}

@media (max-width: 1024px) {
    .three-col,
    .two-col,
    .hero-content,
    .article-layout,
    .detail-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        min-height: auto;
        padding-top: 96px;
        padding-bottom: 72px;
    }

    .news-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-social-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .member-card-grid,
    .election-card-grid,
    .province-card-grid,
    .election-candidate-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .nav-wrap {
        min-height: 76px;
        padding: 10px 0;
        gap: 10px;
    }

    .brand {
        gap: 10px;
        flex: 1 1 auto;
    }

    .brand-logo {
        width: 50px;
        height: 50px;
    }

    html[lang="ar"] .brand-copy strong {
        font-size: 1.42rem;
    }

    html[lang="en"] .brand-copy strong {
        font-size: 1rem;
        line-height: 1.08;
    }

    .nav-toggle {
        display: inline-flex;
        padding: 12px 16px;
        font-size: 1rem;
        flex-shrink: 0;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 76px;
        left: 16px;
        right: 16px;
        background: white;
        border: 1px solid var(--site-border);
        border-radius: 20px;
        padding: 16px;
        box-shadow: var(--site-shadow-strong);
        flex-wrap: wrap;
    }

    .site-nav.is-open {
        display: grid;
        gap: 14px;
    }

    .form-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .news-featured-image {
        aspect-ratio: 16 / 10;
        min-height: 300px;
    }

    .member-info-row,
    html[dir="rtl"] .member-info-row {
        flex-direction: row;
        align-items: stretch;
    }

    .member-info-heading {
        flex: 0 0 122px;
        width: 122px;
        min-width: 122px;
        padding: 16px 14px;
        border-bottom: none;
        border-inline-end: 1px solid var(--site-border);
    }

    .member-info-content {
        flex: 1 1 auto;
        padding: 16px 18px;
        font-size: 0.98rem;
        line-height: 1.8;
        text-align: start;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .section {
        padding: 56px 0;
    }

    .hero-content {
        padding: 82px 0 62px;
    }

    .news-head-strip {
        padding: 14px 8px;
    }

    .news-card-grid,
    .member-card-grid,
    .election-card-grid,
    .province-card-grid,
    .election-candidate-grid,
    .home-contact-grid,
    .home-social-grid {
        grid-template-columns: 1fr;
    }

    .province-square-card,
    .election-card,
    .province-square-card .card-body,
    .election-card .card-body {
        min-height: 190px;
        aspect-ratio: auto;
    }

    .hero-site-title {
        font-size: 2.05rem;
    }

    .hero-motto-image {
        width: min(360px, 100%);
        margin-bottom: 20px;
    }

    .hero-motto-text {
        margin-bottom: 20px;
        font-size: clamp(1.62rem, 6vw, 2.3rem);
    }

    .hero-logo-image {
        width: min(230px, 72%);
        max-height: 270px;
    }

    .home-sections-stack {
        gap: 26px;
    }

    .home-section-strip {
        min-height: 72px;
        padding: 12px 16px;
        font-size: 1.42rem;
    }

    .news-list-card .card-body h3 {
        font-size: 1.08rem;
    }

    .news-list-card .card-body p,
    .news-rich-text {
        font-size: 1.06rem;
    }

    .card-body {
        padding: 18px;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    html[lang="ar"] {
        font-size: 16px;
    }

    html[lang="ar"] body.site-body {
        font-size: 18px;
    }

    .brand-logo {
        width: 44px;
        height: 44px;
    }

    html[lang="ar"] .brand-copy strong {
        font-size: 1.26rem;
    }

    html[lang="en"] .brand-copy strong {
        font-size: 0.94rem;
    }

    .nav-toggle {
        padding: 10px 14px;
        font-size: 0.96rem;
    }

    .member-info-heading {
        flex: 0 0 104px;
        width: 104px;
        min-width: 104px;
        padding: 14px 12px;
        font-size: 0.94rem;
    }

    .member-info-content {
        padding: 14px;
        font-size: 0.92rem;
        line-height: 1.7;
    }
}

/* Premium Saja Albayati theme */
:root {
    --site-green: #5B2BBF;
    --site-green-deep: #f1d48f;
    --site-green-soft: #17120b;
    --site-green-glow: rgba(91, 43, 191, 0.24);
    --site-text: #f4e6be;
    --site-muted: #c3ae80;
    --site-border: #3a2b15;
    --site-border-strong: #6f5224;
    --site-bg: #040404;
    --site-panel: #0b0b0d;
    --site-panel-soft: rgba(11, 11, 13, 0.92);
    --site-shadow: 0 28px 60px rgba(0, 0, 0, 0.4);
    --site-shadow-strong: 0 40px 86px rgba(0, 0, 0, 0.55);
    --site-font-ar: Tahoma, "Segoe UI", Arial, sans-serif;
    --site-font-en: Georgia, "Times New Roman", serif;
}

body.site-body {
    background:
        radial-gradient(circle at top right, rgba(91, 43, 191, 0.18), transparent 24%),
        radial-gradient(circle at 10% 24%, rgba(91, 43, 191, 0.12), transparent 16%),
        linear-gradient(180deg, #020202 0%, #080808 42%, #050505 100%);
    color: var(--site-text);
}

html[lang="ar"] body.site-body {
    font-weight: 700;
}

.site-header {
    background: rgba(4, 4, 5, 0.94);
    border-bottom: 1px solid rgba(91, 43, 191, 0.22);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.brand-logo {
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid rgba(91, 43, 191, 0.28);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
}

.brand-copy strong {
    color: #fff4d0;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.site-nav > a,
.locale-switch,
.nav-toggle {
    color: var(--site-green-deep);
}

.site-nav > a.active,
.site-nav > a:hover,
.locale-switch:hover,
.nav-toggle:hover {
    color: #fff8e8;
}

.locale-switch,
.nav-toggle {
    background: rgba(91, 43, 191, 0.08);
    border-color: rgba(91, 43, 191, 0.28);
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 20%, rgba(91, 43, 191, 0.26), transparent 18%),
        radial-gradient(circle at 20% 80%, rgba(91, 43, 191, 0.14), transparent 20%),
        linear-gradient(125deg, #020202 0%, #0c0b08 42%, #16120d 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 34%),
        linear-gradient(180deg, rgba(91, 43, 191, 0.08), transparent 58%);
    pointer-events: none;
}

.hero-overlay {
    position: relative;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.12));
}

.hero-content {
    min-height: 640px;
    gap: 64px;
}

.hero-copy {
    margin: 0;
    justify-items: start;
    text-align: start;
}

html[dir="rtl"] .hero-copy {
    text-align: right;
    justify-items: start;
}

html[dir="ltr"] .hero-copy {
    text-align: left;
    justify-items: start;
}

.hero-site-title {
    color: #fff8e6;
    text-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.hero-motto-text,
.page-simple-text,
.news-rich-text,
.member-biography-text,
.candidate-program-text,
.article-body,
.rich-text,
.home-join-intro,
.home-info-value,
.news-list-card .card-body p,
.contact-line span,
.contact-line strong,
.member-info-content {
    color: #f0ddb0;
}

.hero-logo-image {
    width: min(370px, 100%);
    max-height: 480px;
    object-fit: cover;
    border-radius: 34px;
    border: 1px solid rgba(91, 43, 191, 0.24);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
    padding: 10px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.card,
.highlight-box,
.news-detail-card,
.news-featured-card,
.contact-info-card,
.contact-social-card,
.home-join-card,
.office-directory-card,
.member-info-row,
.election-card,
.province-square-card,
.candidate-card,
.about-subcard,
.about-entry-card {
    background: linear-gradient(180deg, rgba(12, 12, 15, 0.98), rgba(8, 8, 10, 0.98));
    border-color: rgba(91, 43, 191, 0.2);
}

.card:hover,
.highlight-box:hover,
.news-list-card:hover,
.election-card:hover,
.province-square-card:hover,
.candidate-card:hover,
.about-subcard:hover,
.about-entry-card:hover {
    border-color: rgba(91, 43, 191, 0.4);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
}

.home-section-strip,
.news-related-strip,
.page-head,
.news-page-head {
    background:
        linear-gradient(180deg, rgba(27, 21, 13, 0.98), rgba(15, 12, 8, 0.98));
    border-color: rgba(91, 43, 191, 0.24);
}

.page-head,
.news-page-head {
    border-bottom: 1px solid rgba(91, 43, 191, 0.16);
}

.home-section-strip,
.page-head h1,
.news-head-strip h1,
.news-head-strip h2,
.news-list-card .card-body h3,
.home-info-label,
.office-directory-card h3,
.about-entry-card .card-body h3,
.about-subcard .card-body h3,
.member-card-compact .card-body h3,
.candidate-card .card-body h3,
.member-info-heading,
.contact-line strong,
.footer-copy {
    color: var(--site-green-deep);
}

.home-section-strip-link:hover {
    border-color: rgba(91, 43, 191, 0.4);
    box-shadow: 0 28px 54px rgba(0, 0, 0, 0.42);
}

.chip,
.card-section-strip,
.news-link-button,
.social-link-card,
.contact-line {
    background: rgba(91, 43, 191, 0.07);
    border-color: rgba(91, 43, 191, 0.2);
    color: var(--site-green-deep);
}

.button {
    background: linear-gradient(135deg, #9f7425, #e1bd74);
    color: #100b03;
    box-shadow: 0 18px 30px rgba(91, 43, 191, 0.24);
}

.outline-button,
.muted-button {
    background: transparent;
    border-color: rgba(91, 43, 191, 0.24);
    color: var(--site-green-deep);
}

.news-list-card .card-image,
.member-card-compact .card-image,
.candidate-card .card-image,
.article-image,
.news-featured-image {
    padding: 0;
    background: linear-gradient(180deg, #0f0c08 0%, #16110c 100%);
}

.news-list-card .card-image,
.member-card-compact .card-image,
.candidate-card .card-image {
    aspect-ratio: 4 / 4.6;
    object-fit: cover;
}

.news-featured-image {
    min-height: 480px;
    object-fit: cover;
}

.news-title-card {
    background: linear-gradient(180deg, rgba(44, 32, 14, 0.98), rgba(18, 14, 8, 0.98));
    border-color: rgba(91, 43, 191, 0.28);
}

.news-summary-card,
.news-body-card {
    background: linear-gradient(180deg, rgba(15, 15, 18, 0.98), rgba(9, 9, 11, 0.98));
}

.news-title-card h2,
.news-detail-center h3,
.election-card .card-body h2,
.province-square-card .card-body h2 {
    color: #fff4d1;
}

.member-info-heading {
    background: linear-gradient(180deg, #1b150d 0%, #120f09 100%);
    border-inline-end: 1px solid rgba(91, 43, 191, 0.16);
}

.member-info-content {
    color: #f2ddb0;
}

.member-info-link,
.text-link {
    color: #ffd98a;
}

.empty-state {
    background: rgba(91, 43, 191, 0.03);
    border-color: rgba(91, 43, 191, 0.16);
    color: var(--site-muted);
}

.site-footer {
    background: #040404;
    border-top: 1px solid rgba(91, 43, 191, 0.16);
}

.footer-copy {
    color: #b99854;
}

.flash-message {
    background: rgba(91, 43, 191, 0.12);
    color: #fff1cb;
    border-color: rgba(91, 43, 191, 0.26);
}

input,
textarea,
select {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(91, 43, 191, 0.18);
    color: #f6ebcb;
}

input::placeholder,
textarea::placeholder {
    color: #ae9a6f;
}

@media (max-width: 860px) {
    .site-nav {
        background: rgba(7, 7, 8, 0.98);
        border-color: rgba(91, 43, 191, 0.22);
    }
}

@media (max-width: 640px) {
    .hero-content {
        padding: 76px 0 56px;
        gap: 34px;
    }

    .hero-copy {
        justify-items: center;
        text-align: center;
    }

    html[dir="rtl"] .hero-copy,
    html[dir="ltr"] .hero-copy {
        justify-items: center;
        text-align: center;
    }

    .hero-logo-image {
        width: min(260px, 100%);
        max-height: 320px;
    }

    .news-list-card .card-image,
    .member-card-compact .card-image,
    .candidate-card .card-image {
        aspect-ratio: 4 / 4.2;
    }

    .news-featured-image {
        min-height: 320px;
    }
}

/* Client final resume timeline */
.about-resume-section {
    background: #2b2545;
    color: #ffffff;
    padding: 86px 0 104px;
    overflow: hidden;
}

.about-resume-shell {
    width: min(1450px, calc(100% - 48px));
    margin-inline: auto;
}

.about-resume-title {
    position: relative;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 84px;
    color: #ff5757;
    font-family: var(--font-heading);
    font-size: clamp(3.4rem, 6vw, 6.6rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: 0;
    text-align: center;
}

.about-resume-title::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: -18px;
    width: 92px;
    height: 3px;
    border-radius: 999px;
    background: #ff5757;
    transform: translateX(50%);
}

.about-resume-grid {
    direction: ltr;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(52px, 6vw, 92px);
    align-items: start;
}

.about-resume-track {
    position: relative;
    display: grid;
    gap: 38px;
}

.about-resume-track::before {
    content: "";
    position: absolute;
    top: 30px;
    bottom: 30px;
    left: 30px;
    width: 4px;
    border-radius: 999px;
    background: #ff5757;
}

.about-resume-entry {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 0;
    align-items: start;
    min-height: 176px;
}

.about-resume-marker {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-top: 0;
    border-radius: 50%;
    background: #ff5757;
    box-shadow: 0 0 0 6px rgba(43, 37, 69, 1);
}

.about-resume-track-work .about-resume-marker::before {
    content: "";
    width: 27px;
    height: 19px;
    border: 2px solid #ffffff;
    border-radius: 3px;
    box-sizing: border-box;
    background: transparent;
}

.about-resume-track-work .about-resume-marker::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 6px;
    top: 18px;
    border: 2px solid #ffffff;
    border-bottom: 0;
    border-radius: 3px 3px 0 0;
}

.about-resume-track-education .about-resume-marker::before {
    content: "";
    width: 28px;
    height: 7px;
    border: 2px solid #ffffff;
    border-radius: 3px;
    transform: rotate(45deg);
    box-sizing: border-box;
}

.about-resume-track-education .about-resume-marker::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    right: 17px;
    bottom: 19px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid #ffffff;
    transform: rotate(45deg);
}

.about-resume-card {
    direction: rtl;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 176px;
    margin-top: 0;
    padding: 30px 30px 28px;
    border: 1.5px solid #ff5757;
    border-radius: 8px;
    background: #2b2545;
    text-align: right;
}

.about-resume-card h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: clamp(1.28rem, 1.65vw, 1.72rem);
    font-weight: 900;
    line-height: 1.35;
}

.about-resume-card time {
    display: block;
    margin-bottom: 12px;
    color: #ff5757;
    font-size: clamp(1.05rem, 1.25vw, 1.3rem);
    font-weight: 900;
    line-height: 1.2;
}

.about-resume-card p {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.05rem, 1.35vw, 1.4rem);
    font-weight: 700;
    line-height: 1.75;
}

html[dir="ltr"] .about-resume-card {
    direction: ltr;
    text-align: left;
}

@media (max-width: 980px) {
    .about-resume-section {
        padding: 72px 0 84px;
    }

    .about-resume-shell {
        width: min(760px, calc(100% - 32px));
    }

    .about-resume-title {
        margin-bottom: 60px;
        font-size: clamp(2.8rem, 12vw, 4.5rem);
    }

    .about-resume-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .about-resume-track {
        gap: 30px;
    }
}

@media (max-width: 620px) {
    .about-resume-section {
        padding: 58px 0 68px;
    }

    .about-resume-shell {
        width: min(100% - 22px, 560px);
    }

    .about-resume-title {
        margin-bottom: 48px;
        font-size: clamp(2.35rem, 14vw, 3.2rem);
    }

    .about-resume-track::before {
        left: 25px;
        width: 3px;
    }

    .about-resume-entry {
        grid-template-columns: 54px minmax(0, 1fr);
        min-height: 150px;
    }

    .about-resume-marker {
        width: 50px;
        height: 50px;
        box-shadow: 0 0 0 5px rgba(43, 37, 69, 1);
    }

    .about-resume-card {
        min-height: 150px;
        padding: 24px 20px 22px;
        border-radius: 7px;
    }
}

/* Final resume layout requested by client */
.about-resume-section {
    margin-top: 0;
    padding: 84px 0 96px;
    background: #2b2545;
    color: #ffffff;
    overflow: hidden;
}

.about-resume-shell {
    width: min(1450px, calc(100% - 48px));
}

.about-resume-title {
    margin: 0 0 86px;
    color: #ff5757;
    text-align: center;
    font-size: clamp(3rem, 6.2vw, 5.8rem);
    font-weight: 900;
    line-height: 1.05;
}

.about-resume-title::after {
    content: "";
    display: block;
    width: 120px;
    height: 2px;
    margin: 18px auto 0;
    background: #ff5757;
}

.about-resume-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(48px, 6vw, 92px);
    direction: ltr;
    align-items: start;
}

.about-resume-track {
    position: relative;
    display: grid;
    gap: 38px;
}

.about-resume-track::before {
    content: "";
    position: absolute;
    top: 30px;
    bottom: 30px;
    left: 30px;
    width: 4px;
    border-radius: 999px;
    background: #ff5757;
}

.about-resume-entry {
    position: relative;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 0;
    min-height: 176px;
    align-items: start;
}

.about-resume-marker {
    position: relative;
    z-index: 2;
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #ff5757;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
}

.about-resume-track-work .about-resume-marker::before {
    content: "";
    width: 25px;
    height: 18px;
    border: 2px solid #ffffff;
    border-radius: 3px;
    box-shadow: inset 0 7px 0 rgba(255, 255, 255, 0.12);
}

.about-resume-track-work .about-resume-marker::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 7px;
    top: 17px;
    border: 2px solid #ffffff;
    border-bottom: 0;
    border-radius: 4px 4px 0 0;
}

.about-resume-track-education .about-resume-marker::before {
    content: "";
    width: 28px;
    height: 7px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    transform: rotate(45deg);
}

.about-resume-track-education .about-resume-marker::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    margin-left: 19px;
    margin-top: 19px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(45deg);
}

.about-resume-card {
    min-height: 176px;
    display: grid;
    align-content: center;
    gap: 12px;
    padding: 34px 32px;
    border: 1px solid #ff5757;
    border-radius: 12px;
    background: #2b2545;
    box-shadow: none;
    direction: rtl;
    text-align: right;
}

.about-resume-card h3 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.28rem, 2vw, 1.62rem);
    font-weight: 900;
    line-height: 1.45;
}

.about-resume-card time {
    color: #ff5757;
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    font-size: 1.14rem;
    font-weight: 900;
    line-height: 1.3;
}

.about-resume-card p {
    margin: 0;
    color: #ffffff;
    font-size: 1.14rem;
    font-weight: 700;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

@media (max-width: 920px) {
    .about-resume-section {
        padding: 68px 0;
    }

    .about-resume-title {
        margin-bottom: 54px;
        font-size: clamp(2.4rem, 10vw, 4rem);
    }

    .about-resume-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }
}

@media (max-width: 640px) {
    .about-resume-shell {
        width: min(100% - 24px, 1450px);
    }

    .about-resume-track {
        gap: 24px;
    }

    .about-resume-track::before {
        left: 25px;
    }

    .about-resume-entry {
        grid-template-columns: 52px minmax(0, 1fr);
        min-height: auto;
    }

    .about-resume-marker {
        width: 52px;
        height: 52px;
    }

    .about-resume-card {
        min-height: 150px;
        padding: 24px 20px;
    }
}

/* Final correction for about-page image sizing */
.about-profile-grid {
    align-items: start;
    grid-template-columns: minmax(300px, 460px) minmax(0, 1fr);
}

.about-profile-image-card {
    align-self: start;
    height: auto;
}

.about-profile-image-card:hover {
    transform: none;
}

.about-profile-image-card .card-body {
    height: auto;
    display: block;
    padding: 14px;
}

.about-profile-image-link,
.about-profile-image-placeholder {
    width: 100%;
    height: clamp(430px, 58vw, 680px);
    max-height: min(78vh, 680px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--site-border-strong);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(91, 43, 191, 0.08), rgba(255, 255, 255, 0.015)),
        rgba(0, 0, 0, 0.22);
}

.about-profile-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 14px;
}

@media (max-width: 900px) {
    .about-profile-grid {
        grid-template-columns: 1fr;
    }

    .about-profile-image-link,
    .about-profile-image-placeholder {
        height: clamp(360px, 86vw, 620px);
        max-height: none;
    }
}

@media (max-width: 520px) {
    .about-profile-image-card .card-body {
        padding: 10px;
    }

    .about-profile-image-link,
    .about-profile-image-placeholder {
        height: clamp(300px, 112vw, 520px);
        border-radius: 14px;
    }
}

/* Resume section matched to the reference layout */
.about-resume-section {
    margin-top: 8px;
    padding: 86px 0 92px;
    background:
        radial-gradient(circle at 50% -8%, rgba(255, 79, 79, 0.1), transparent 22%),
        linear-gradient(180deg, #2b2545 0%, #2a2444 100%);
    color: #ffffff;
    overflow: hidden;
}

.about-resume-shell {
    width: min(1420px, calc(100% - 48px));
}

.about-resume-title {
    margin: 0 0 86px;
    color: #ff5757;
    text-align: center;
    font-size: clamp(3rem, 6vw, 5.4rem);
    font-weight: 900;
    line-height: 1.08;
}

.about-resume-title::after {
    content: "";
    display: block;
    width: min(116px, 22vw);
    height: 2px;
    margin: 18px auto 0;
    background: #ff5757;
}

.about-resume-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(52px, 6vw, 96px);
    align-items: start;
}

.about-resume-track {
    position: relative;
    display: grid;
    gap: 38px;
    direction: ltr;
}

.about-resume-track::before {
    content: "";
    position: absolute;
    top: 30px;
    bottom: 30px;
    left: 30px;
    width: 4px;
    border-radius: 999px;
    background: #ff5757;
}

.about-resume-entry {
    position: relative;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 0;
    align-items: start;
    min-height: 176px;
}

.about-resume-marker {
    z-index: 2;
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #ff5757;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.about-resume-track-work .about-resume-marker::before {
    content: "";
    width: 25px;
    height: 18px;
    border: 2px solid #ffffff;
    border-radius: 3px;
    box-shadow: inset 0 7px 0 rgba(255, 255, 255, 0.12);
}

.about-resume-track-work .about-resume-marker::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 6px;
    margin-top: -22px;
    border: 2px solid #ffffff;
    border-bottom: 0;
    border-radius: 3px 3px 0 0;
}

.about-resume-track-education .about-resume-marker::before {
    content: "";
    width: 27px;
    height: 6px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    transform: rotate(45deg);
}

.about-resume-track-education .about-resume-marker::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    margin-left: 18px;
    margin-top: 18px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(45deg);
}

.about-resume-card {
    min-height: 176px;
    display: grid;
    align-content: center;
    gap: 12px;
    padding: 34px 32px;
    border: 1px solid #ff5757;
    border-radius: 12px;
    background: rgba(43, 37, 69, 0.88);
    color: #ffffff;
    direction: rtl;
    text-align: right;
}

html[dir="ltr"] .about-resume-card {
    direction: ltr;
    text-align: left;
}

.about-resume-card h3 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.25rem, 2vw, 1.62rem);
    font-weight: 900;
    line-height: 1.45;
}

.about-resume-card time {
    color: #ff5757;
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    font-size: 1.12rem;
    font-weight: 900;
    line-height: 1.3;
}

.about-resume-card p {
    margin: 0;
    color: #ffffff;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

@media (max-width: 920px) {
    .about-resume-section {
        padding: 68px 0;
    }

    .about-resume-title {
        margin-bottom: 54px;
        font-size: clamp(2.4rem, 10vw, 4rem);
    }

    .about-resume-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }
}

@media (max-width: 640px) {
    .about-resume-shell {
        width: min(100% - 24px, 1420px);
    }

    .about-resume-track {
        gap: 24px;
    }

    .about-resume-entry {
        grid-template-columns: 52px minmax(0, 1fr);
        min-height: auto;
    }

    .about-resume-track::before {
        left: 25px;
    }

    .about-resume-marker {
        width: 52px;
        height: 52px;
    }

    .about-resume-card {
        min-height: 150px;
        padding: 24px 20px;
    }
}

/* Final simple professional biography block */
.about-biography-head {
    margin-top: 0;
}

.about-biography-head > .container {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-biography-head .news-head-strip {
    width: 100%;
    padding: 12px 6px;
}

.about-biography-head h2 {
    margin: 0;
    color: var(--site-green-deep);
    text-align: center;
    font-size: clamp(1.82rem, 2.7vw, 2.45rem);
    font-weight: 900;
    line-height: 1.28;
}

.about-biography-cards-section {
    padding-top: 28px;
}

.about-biography-cards-shell {
    width: min(1120px, calc(100% - 32px));
}

.about-biography-rect-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.about-biography-rect {
    min-height: 170px;
    display: grid;
    align-content: center;
    gap: 10px;
    padding: 28px 30px;
    border: 1px solid var(--site-border-strong);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(13, 13, 15, 0.98), rgba(7, 7, 9, 0.98));
    box-shadow: var(--site-shadow);
    text-align: center;
}

.about-biography-rect h3 {
    margin: 0;
    color: #fff0c8;
    font-size: clamp(1.28rem, 2vw, 1.7rem);
    font-weight: 900;
    line-height: 1.5;
}

.about-biography-rect time {
    color: var(--site-green-deep);
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.3;
}

.about-biography-rect p {
    margin: 0;
    color: var(--site-text);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    .about-biography-cards-shell {
        width: min(100% - 24px, 1120px);
    }

    .about-biography-rect-grid {
        grid-template-columns: 1fr;
    }

    .about-biography-rect {
        min-height: 150px;
        padding: 24px 20px;
    }
}

/* Stable about-page image layout */
.about-profile-shell {
    width: min(1180px, calc(100% - 32px));
}

.about-profile-grid {
    display: grid;
    grid-template-columns: minmax(280px, 440px) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

.about-profile-image-card {
    min-height: 100%;
}

.about-profile-image-card .card-body {
    height: 100%;
    display: grid;
    place-items: center;
    padding: 16px;
}

.about-profile-image-link,
.about-profile-image-placeholder {
    width: 100%;
    height: clamp(360px, 48vw, 640px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(91, 43, 191, 0.08), rgba(255, 255, 255, 0.015)),
        rgba(0, 0, 0, 0.18);
}

.about-profile-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 16px;
}

.about-profile-image-placeholder {
    padding: 24px;
    color: var(--site-muted);
    text-align: center;
}

.about-profile-strips {
    display: grid;
    gap: 18px;
    align-content: start;
}

@media (max-width: 900px) {
    .about-profile-grid {
        grid-template-columns: 1fr;
    }

    .about-profile-image-link,
    .about-profile-image-placeholder {
        height: clamp(320px, 72vw, 560px);
    }
}

@media (max-width: 520px) {
    .about-profile-shell {
        width: min(100% - 24px, 1180px);
    }

    .about-profile-image-card .card-body {
        padding: 12px;
    }

    .about-profile-image-link,
    .about-profile-image-placeholder {
        height: clamp(280px, 88vw, 460px);
        border-radius: 16px;
    }
}

/* About biography final presentation */
.about-biography-section {
    padding: 0 0 72px;
}

.about-biography-heading {
    margin-bottom: 38px;
}

.about-biography-heading > .container {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-biography-heading .news-head-strip {
    width: 100%;
    padding: 12px 6px;
}

.about-biography-heading h2 {
    margin: 0;
    color: var(--site-green-deep);
    text-align: center;
    font-size: clamp(1.82rem, 2.7vw, 2.45rem);
    font-weight: 900;
    line-height: 1.28;
}

.about-biography-shell {
    width: min(920px, calc(100% - 32px));
}

.about-biography-list {
    display: grid;
    gap: 18px;
}

.about-biography-panel {
    position: relative;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    padding: 20px;
    border: 1px solid rgba(91, 43, 191, 0.24);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(91, 43, 191, 0.1), transparent 36%),
        linear-gradient(180deg, rgba(15, 15, 18, 0.98), rgba(7, 7, 9, 0.98));
    box-shadow: var(--site-shadow);
    overflow: hidden;
}

.about-biography-panel::before {
    content: "";
    position: absolute;
    inset-block: 20px;
    inset-inline-start: 0;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--site-green-deep), var(--site-green));
}

html[dir="rtl"] .about-biography-panel::before {
    inset-inline-start: auto;
    inset-inline-end: 0;
}

.about-biography-year {
    display: grid;
    place-items: center;
    min-height: 100%;
    padding: 12px;
    border: 1px solid rgba(91, 43, 191, 0.26);
    border-radius: 18px;
    background: rgba(91, 43, 191, 0.08);
    color: #fff0c8;
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    font-size: 1.24rem;
    font-weight: 900;
    line-height: 1;
}

.about-biography-copy {
    display: grid;
    gap: 12px;
    align-content: center;
    min-width: 0;
    text-align: center;
}

.about-biography-copy h3 {
    margin: 0;
    color: #fff4d1;
    font-size: clamp(1.32rem, 2.3vw, 1.85rem);
    font-weight: 900;
    line-height: 1.45;
}

.about-biography-summary {
    width: min(100%, 680px);
    margin: 0 auto;
    color: var(--site-text);
    font-size: 1.14rem;
    line-height: 1.9;
}

.about-biography-details {
    width: min(100%, 720px);
    margin: 0 auto;
    padding: 16px 18px;
    border: 1px solid rgba(91, 43, 191, 0.18);
    border-radius: 18px;
    background: rgba(91, 43, 191, 0.055);
    color: #f8e7bd;
    font-size: 1.08rem;
    line-height: 1.95;
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    .about-biography-section {
        padding-bottom: 56px;
    }

    .about-biography-shell {
        width: min(100% - 24px, 920px);
    }

    .about-biography-panel {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .about-biography-panel::before {
        inset-inline: 24px;
        inset-block: 0 auto;
        width: auto;
        height: 4px;
    }

    html[dir="rtl"] .about-biography-panel::before {
        inset-inline: 24px;
    }

    .about-biography-year {
        min-height: 48px;
        width: min(180px, 100%);
        margin-inline: auto;
    }
}

.about-biography-section {
    padding-top: 16px;
}

.about-biography-shell {
    width: min(1360px, calc(100% - 32px));
}

.about-biography-title {
    margin: 0 0 74px;
    color: var(--site-green-deep);
    font-size: clamp(2.4rem, 5vw, 4.1rem);
    font-weight: 900;
    line-height: 1.18;
    text-align: center;
}

.about-biography-title::after {
    content: "";
    display: block;
    width: min(110px, 24vw);
    height: 2px;
    margin: 18px auto 0;
    background: var(--site-green);
}

.about-biography-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(42px, 6vw, 96px);
    align-items: start;
}

.about-biography-track {
    position: relative;
    display: grid;
    gap: 38px;
}

.about-biography-track::before {
    content: "";
    position: absolute;
    inset-block: 34px 34px;
    inset-inline-start: 31px;
    width: 3px;
    background: linear-gradient(180deg, transparent, var(--site-green), transparent);
    opacity: 0.88;
}

html[dir="rtl"] .about-biography-track::before {
    inset-inline-start: auto;
    inset-inline-end: 31px;
}

.about-biography-item {
    position: relative;
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

html[dir="rtl"] .about-biography-item {
    grid-template-columns: minmax(0, 1fr) 66px;
}

.about-biography-marker {
    z-index: 2;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-top: 0;
    border: 2px solid var(--site-green);
    border-radius: 999px;
    background: var(--site-bg);
    box-shadow: 0 0 0 7px rgba(91, 43, 191, 0.1), 0 18px 34px rgba(0, 0, 0, 0.32);
}

.about-biography-marker::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid var(--site-green-deep);
    border-radius: 5px;
    box-shadow: inset 0 0 0 2px rgba(91, 43, 191, 0.15);
}

html[dir="rtl"] .about-biography-marker {
    grid-column: 2;
    grid-row: 1;
}

.about-biography-card {
    min-height: 176px;
    display: grid;
    align-content: center;
    gap: 10px;
    padding: 30px 34px;
    border: 1px solid var(--site-green);
    border-radius: 12px;
    background: rgba(11, 11, 13, 0.46);
    box-shadow: inset 0 1px 0 rgba(255, 223, 164, 0.08), var(--site-shadow);
}

html[dir="rtl"] .about-biography-card {
    grid-column: 1;
    grid-row: 1;
    text-align: right;
}

html[dir="ltr"] .about-biography-card {
    text-align: left;
}

.about-biography-card h3 {
    margin: 0;
    color: #fff4d1;
    font-size: clamp(1.32rem, 2vw, 1.78rem);
    font-weight: 900;
    line-height: 1.45;
}

.about-biography-card time {
    color: var(--site-green-deep);
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.3;
}

.about-biography-card p {
    margin: 0;
    color: var(--site-text);
    font-size: 1.1rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .about-biography-title {
        margin-bottom: 42px;
    }

    .about-biography-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }
}

@media (max-width: 640px) {
    .about-biography-shell {
        width: min(100% - 24px, 1360px);
    }

    .about-biography-item,
    html[dir="rtl"] .about-biography-item {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .about-biography-track::before {
        display: none;
    }

    .about-biography-marker,
    html[dir="rtl"] .about-biography-marker {
        grid-column: 1;
        width: 46px;
        height: 46px;
        margin-inline: auto;
    }

    .about-biography-marker::before {
        width: 14px;
        height: 14px;
    }

    .about-biography-card,
    html[dir="rtl"] .about-biography-card {
        grid-column: 1;
        text-align: center;
        min-height: 150px;
        padding: 24px 20px;
    }
}

/* Premium black and purple finish for the Saja Albayati site */
:root {
    --site-green: #5B2BBF;
    --site-green-deep: #f2cf86;
    --site-green-soft: #120f0a;
    --site-green-glow: rgba(91, 43, 191, 0.24);
    --site-text: #f5e9c9;
    --site-muted: #b9a47b;
    --site-border: rgba(91, 43, 191, 0.18);
    --site-border-strong: rgba(91, 43, 191, 0.34);
    --site-bg: #050505;
    --site-panel: #0b0b0d;
    --site-panel-soft: rgba(13, 13, 15, 0.9);
    --site-shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
    --site-shadow-strong: 0 34px 76px rgba(0, 0, 0, 0.54);
    --site-radius: 28px;
    --site-font-ar: "Sakkal Majalla", "Traditional Arabic", "Arabic Typesetting", Tahoma, Arial, serif;
    --site-font-en: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

body.site-body {
    background:
        radial-gradient(circle at top right, rgba(91, 43, 191, 0.11), transparent 25%),
        radial-gradient(circle at left center, rgba(91, 43, 191, 0.06), transparent 26%),
        linear-gradient(180deg, #050505 0%, #09090b 42%, #040404 100%);
    color: var(--site-text);
}

html[lang="ar"] body.site-body {
    font-weight: 700;
}

.site-header {
    background: rgba(4, 4, 5, 0.96);
    border-bottom: 1px solid rgba(91, 43, 191, 0.14);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.brand-logo {
    filter: drop-shadow(0 12px 28px rgba(91, 43, 191, 0.18));
}

.brand-copy strong,
.site-nav > a.active,
.site-nav > a:hover,
.locale-switch,
.home-section-strip,
.page-head h1,
.news-head-strip h1,
.news-head-strip h2,
.news-list-card .card-body h3,
.member-info-heading,
.footer-copy,
.contact-line strong,
.home-info-label,
.office-directory-card h3,
.about-entry-card .card-body h3,
.about-subcard .card-body h3 {
    color: var(--site-green-deep);
}

.site-nav > a {
    color: #d7c19a;
    letter-spacing: 0.02em;
}

.locale-switch,
.nav-toggle {
    background: rgba(91, 43, 191, 0.08);
    border: 1px solid rgba(91, 43, 191, 0.22);
    color: var(--site-green-deep);
}

.hero {
    background-color: #050505;
    position: relative;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(4, 4, 5, 0.96) 0%, rgba(8, 8, 10, 0.9) 52%, rgba(20, 15, 10, 0.82) 100%);
}

.hero-content {
    min-height: 84vh;
    align-items: center;
}

.hero-copy {
    gap: 20px;
}

.hero-site-title {
    font-size: clamp(2.9rem, 5vw, 5rem);
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #f8deb0;
    text-shadow: 0 22px 54px rgba(0, 0, 0, 0.5);
}

.hero-motto-text {
    font-size: clamp(1.3rem, 2vw, 2rem);
    font-weight: 700;
    color: #f3dca9;
}

.page-simple-text,
.news-rich-text,
.member-biography-text,
.candidate-program-text,
.article-body,
.rich-text,
.home-join-intro,
.home-info-value,
.news-list-card .card-body p,
.contact-line span,
.member-info-content {
    color: #ecd9b4;
}

.hero-logo-display {
    display: flex;
    justify-content: center;
}

.hero-logo-image {
    width: min(430px, 100%);
    max-height: 560px;
    object-fit: cover;
    border-radius: 34px;
    border: 1px solid rgba(91, 43, 191, 0.24);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
    padding: 10px;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.58);
}

.home-section-strip,
.news-related-strip,
.page-head,
.news-page-head {
    background:
        linear-gradient(180deg, rgba(28, 22, 14, 0.98), rgba(15, 12, 8, 0.98));
    border: 1px solid rgba(91, 43, 191, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 223, 164, 0.08), var(--site-shadow);
}

.card,
.highlight-box,
.news-detail-card,
.news-featured-card,
.contact-info-card,
.contact-social-card,
.home-join-card,
.office-directory-card,
.member-info-row,
.election-card,
.province-square-card,
.candidate-card,
.about-subcard,
.about-entry-card,
.home-info-card,
.news-list-card {
    background: linear-gradient(180deg, rgba(11, 11, 13, 0.98), rgba(6, 6, 8, 0.98));
    border: 1px solid rgba(91, 43, 191, 0.16);
    box-shadow: var(--site-shadow);
}

.card:hover,
.news-list-card:hover,
.about-subcard:hover,
.about-entry-card:hover,
.candidate-card:hover,
.office-directory-card:hover,
.home-info-card:hover {
    transform: translateY(-4px);
    border-color: rgba(91, 43, 191, 0.34);
    box-shadow: var(--site-shadow-strong);
}

.chip,
.card-section-strip,
.news-link-button,
.social-link-card,
.contact-line,
.back-link-button {
    background: rgba(91, 43, 191, 0.08);
    border-color: rgba(91, 43, 191, 0.22);
    color: var(--site-green-deep);
}

.button {
    background: linear-gradient(135deg, #a9771c, #f0c775);
    color: #120c04;
    border: none;
    box-shadow: 0 20px 34px rgba(91, 43, 191, 0.22);
}

.outline-button,
.muted-button {
    background: transparent;
    border-color: rgba(91, 43, 191, 0.26);
    color: #f0d9a6;
}

.news-list-card .card-image,
.member-card-compact .card-image,
.candidate-card .card-image,
.article-image,
.news-featured-image {
    padding: 0;
    background: linear-gradient(180deg, #0f0c08 0%, #16110c 100%);
}

.news-list-card .card-image,
.member-card-compact .card-image,
.candidate-card .card-image {
    aspect-ratio: 4 / 4.8;
    object-fit: cover;
}

.news-featured-image {
    min-height: 520px;
    object-fit: cover;
}

.news-title-card {
    background: linear-gradient(180deg, rgba(42, 31, 14, 0.98), rgba(18, 14, 8, 0.98));
    border-color: rgba(91, 43, 191, 0.28);
}

.news-summary-card,
.news-body-card {
    background: linear-gradient(180deg, rgba(13, 13, 15, 0.98), rgba(8, 8, 10, 0.98));
}

.news-title-card h2,
.news-detail-center h3,
.election-card .card-body h2,
.province-square-card .card-body h2 {
    color: #fff0c8;
}

.member-info-heading {
    background: linear-gradient(180deg, #1d160d 0%, #130f09 100%);
    border-inline-end: 1px solid rgba(91, 43, 191, 0.16);
}

.member-info-link,
.text-link {
    color: #ffd98a;
}

.empty-state {
    background: rgba(91, 43, 191, 0.03);
    border-color: rgba(91, 43, 191, 0.16);
    color: var(--site-muted);
}

.site-footer {
    background: #030303;
    border-top: 1px solid rgba(91, 43, 191, 0.12);
}

.footer-copy {
    color: #c6a35d;
}

.flash-message {
    background: rgba(91, 43, 191, 0.12);
    color: #fff1cb;
    border-color: rgba(91, 43, 191, 0.26);
}

input,
textarea,
select {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(91, 43, 191, 0.18);
    color: #f6ebcb;
}

input::placeholder,
textarea::placeholder {
    color: #ae9a6f;
}

@media (max-width: 860px) {
    .site-nav {
        background: rgba(7, 7, 8, 0.98);
        border-color: rgba(91, 43, 191, 0.22);
    }

    .hero-content {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .hero-content {
        padding: 76px 0 56px;
        gap: 34px;
    }

    .hero-copy {
        justify-items: center;
        text-align: center;
    }

    html[dir="rtl"] .hero-copy,
    html[dir="ltr"] .hero-copy {
        justify-items: center;
        text-align: center;
    }

    .hero-site-title {
        font-size: clamp(2.1rem, 8vw, 3rem);
    }

    .hero-motto-text {
        font-size: 1.12rem;
    }

    .hero-logo-image {
        width: min(280px, 100%);
        max-height: 340px;
    }

    .news-list-card .card-image,
    .member-card-compact .card-image,
    .candidate-card .card-image {
        aspect-ratio: 4 / 4.2;
    }

    .news-featured-image {
        min-height: 320px;
    }
}

/* Client final resume timeline - keep this block last */
.about-resume-section {
    background: #2b2545;
    color: #ffffff;
    padding: 86px 0 104px;
    overflow: hidden;
}

.about-resume-shell {
    width: min(1450px, calc(100% - 48px));
    margin-inline: auto;
}

.about-resume-title {
    position: relative;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 84px;
    color: #ff5757;
    font-family: var(--font-heading);
    font-size: clamp(3.4rem, 6vw, 6.6rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: 0;
    text-align: center;
}

.about-resume-title::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: -18px;
    width: 92px;
    height: 3px;
    border-radius: 999px;
    background: #ff5757;
    transform: translateX(50%);
}

.about-resume-grid {
    direction: ltr;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(52px, 6vw, 92px);
    align-items: start;
}

.about-resume-track {
    position: relative;
    display: grid;
    gap: 38px;
}

.about-resume-track::before {
    content: "";
    position: absolute;
    top: 30px;
    bottom: 30px;
    left: 30px;
    width: 4px;
    border-radius: 999px;
    background: #ff5757;
}

.about-resume-entry {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 0;
    align-items: start;
    min-height: 176px;
}

.about-resume-marker {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-top: 0;
    border-radius: 50%;
    background: #ff5757;
    box-shadow: 0 0 0 6px rgba(43, 37, 69, 1);
}

.about-resume-track-work .about-resume-marker::before {
    content: "";
    width: 27px;
    height: 19px;
    border: 2px solid #ffffff;
    border-radius: 3px;
    box-sizing: border-box;
    background: transparent;
}

.about-resume-track-work .about-resume-marker::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 6px;
    top: 18px;
    border: 2px solid #ffffff;
    border-bottom: 0;
    border-radius: 3px 3px 0 0;
}

.about-resume-track-education .about-resume-marker::before {
    content: "";
    width: 28px;
    height: 7px;
    border: 2px solid #ffffff;
    border-radius: 3px;
    transform: rotate(45deg);
    box-sizing: border-box;
}

.about-resume-track-education .about-resume-marker::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    right: 17px;
    bottom: 19px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid #ffffff;
    transform: rotate(45deg);
}

.about-resume-card {
    direction: rtl;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 176px;
    margin-top: 0;
    padding: 30px 30px 28px;
    border: 1.5px solid #ff5757;
    border-radius: 8px;
    background: #2b2545;
    text-align: right;
}

.about-resume-card h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: clamp(1.28rem, 1.65vw, 1.72rem);
    font-weight: 900;
    line-height: 1.35;
}

.about-resume-card time {
    display: block;
    margin-bottom: 12px;
    color: #ff5757;
    font-size: clamp(1.05rem, 1.25vw, 1.3rem);
    font-weight: 900;
    line-height: 1.2;
}

.about-resume-card p {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.05rem, 1.35vw, 1.4rem);
    font-weight: 700;
    line-height: 1.75;
}

html[dir="ltr"] .about-resume-card {
    direction: ltr;
    text-align: left;
}

@media (max-width: 980px) {
    .about-resume-section {
        padding: 72px 0 84px;
    }

    .about-resume-shell {
        width: min(760px, calc(100% - 32px));
    }

    .about-resume-title {
        margin-bottom: 60px;
        font-size: clamp(2.8rem, 12vw, 4.5rem);
    }

    .about-resume-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .about-resume-track {
        gap: 30px;
    }
}

@media (max-width: 620px) {
    .about-resume-section {
        padding: 58px 0 68px;
    }

    .about-resume-shell {
        width: min(100% - 22px, 560px);
    }

    .about-resume-title {
        margin-bottom: 48px;
        font-size: clamp(2.35rem, 14vw, 3.2rem);
    }

    .about-resume-track::before {
        left: 25px;
        width: 3px;
    }

    .about-resume-entry {
        grid-template-columns: 54px minmax(0, 1fr);
        min-height: 150px;
    }

    .about-resume-marker {
        width: 50px;
        height: 50px;
        box-shadow: 0 0 0 5px rgba(43, 37, 69, 1);
    }

    .about-resume-card {
        min-height: 150px;
        padding: 24px 20px 22px;
        border-radius: 7px;
    }
}

