:root {
    --site-green: #2f9d42;
    --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;
}

.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;
}

.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-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 84px;
        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: column;
    }

    .member-info-heading {
        flex-basis: auto;
        width: 100%;
        border-inline-end: none;
        border-bottom: 1px solid var(--site-border);
    }

    .member-info-content {
        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;
    }
}
