:root {
    --bg: #f7f3ea;
    --surface: rgba(255, 252, 246, 0.84);
    --surface-strong: #fffdf8;
    --text: #16333a;
    --muted: #5d7577;
    --line: rgba(18, 70, 73, 0.12);
    --primary: #0f7d80;
    --primary-deep: #0b5f63;
    --secondary: #c8a75f;
    --shadow: 0 24px 60px rgba(14, 57, 59, 0.14);
    --radius: 28px;
    --radius-sm: 18px;
    --container: min(1180px, calc(100vw - 32px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(15, 125, 128, 0.12), transparent 30%),
        radial-gradient(circle at bottom right, rgba(200, 167, 95, 0.12), transparent 24%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0)),
        var(--bg);
    color: var(--text);
    font-family: "Manrope", sans-serif;
    line-height: 1.7;
}

body.rtl {
    font-family: "Noto Kufi Arabic", sans-serif;
}

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

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

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

.container {
    width: var(--container);
    margin: 0 auto;
}

.site-shell {
    position: relative;
    overflow: hidden;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(18px);
    background: rgba(247, 243, 234, 0.8);
    border-bottom: 1px solid var(--line);
}

.topbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    min-height: 92px;
    padding: 14px 0 16px;
}

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

.brand > span {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.65);
    padding: 8px;
}

.brand strong {
    display: block;
    font-size: 1.04rem;
    line-height: 1.08;
    white-space: nowrap;
}

.brand small {
    color: var(--muted);
    display: block;
    font-size: 0.72rem;
    line-height: 1.08;
    white-space: nowrap;
}

.main-nav,
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.main-nav {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    white-space: normal;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(18, 70, 73, 0.08);
    box-shadow: 0 18px 38px rgba(14, 57, 59, 0.08);
}

.topbar-actions {
    order: 2;
    margin-inline-start: auto;
    flex-shrink: 0;
}

.main-nav a,
.lang-switch {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.84rem;
}

.main-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 10px;
    flex: 0 1 auto;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.main-nav a:hover {
    color: var(--primary-deep);
    background: rgba(255, 255, 255, 0.84);
    border-color: rgba(15, 125, 128, 0.14);
    box-shadow: 0 10px 22px rgba(14, 57, 59, 0.08);
    transform: translateY(-1px);
}

.nav-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-inline-start: 10px;
}

.nav-with-icon--lang .nav-with-icon-mark {
    background: linear-gradient(135deg, #f1b84b, #f28b44);
    box-shadow: 0 10px 20px rgba(242, 139, 68, 0.22);
}

.nav-with-icon-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #42c4be, #0f7d80);
    box-shadow: 0 10px 20px rgba(15, 125, 128, 0.22);
}

.nav-with-icon-mark svg {
    width: 12px;
    height: 12px;
    display: block;
}

.nav-with-icon:hover .nav-with-icon-mark {
    transform: scale(1.06);
    box-shadow: 0 14px 24px rgba(15, 125, 128, 0.28);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 13px 22px;
    font-weight: 800;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: #fff;
    box-shadow: 0 18px 30px rgba(15, 125, 128, 0.22);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.76);
    color: var(--text);
    border: 1px solid rgba(200, 167, 95, 0.32);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 0;
    width: 42px;
    height: 42px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    margin: 5px auto;
    background: var(--text);
}

.system-alert,
.flash {
    padding: 12px 0;
    font-size: 0.95rem;
}

.system-alert {
    background: rgba(200, 167, 95, 0.16);
}

.flash-success {
    background: rgba(15, 125, 128, 0.12);
}

.flash-error {
    background: rgba(164, 70, 52, 0.12);
}

.hero-section,
.page-hero {
    position: relative;
    min-height: 80vh;
    display: grid;
    align-items: center;
}

.page-hero {
    min-height: 54vh;
}

.page-hero.compact {
    min-height: 46vh;
}

.hero-media,
.page-hero-media {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: saturate(0.95);
}

.hero-media::after,
.page-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 27, 31, 0.86), rgba(7, 27, 31, 0.48)),
        linear-gradient(180deg, rgba(10, 28, 30, 0.1), rgba(10, 28, 30, 0.52));
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(60deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 48px),
        repeating-linear-gradient(-60deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 48px);
    opacity: 0.5;
}

.hero-grid,
.page-hero-inner {
    position: relative;
    z-index: 1;
    color: #fff;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 32px;
}

.hero-copy h1,
.page-hero-inner h1,
.section h2,
.feature-card h2,
.program-card h2,
.article-card h2,
.story-card h2,
.article-page h1 {
    margin: 0 0 16px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    line-height: 0.94;
    letter-spacing: -0.03em;
}

.hero-copy h1,
.page-hero-inner h1,
.article-page h1 {
    font-size: clamp(2rem, 4.2vw, 4rem);
    line-height: 0.98;
}

body.rtl .hero-copy h1,
body.rtl .page-hero-inner h1,
body.rtl .section h2,
body.rtl .feature-card h2,
body.rtl .program-card h2,
body.rtl .article-card h2,
body.rtl .story-card h2,
body.rtl .article-page h1 {
    font-family: "Noto Kufi Arabic", sans-serif;
    line-height: 1.32;
    letter-spacing: 0;
}

.title-with-icon {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

body.rtl .title-with-icon {
    flex-direction: row-reverse;
}

.centered .title-with-icon {
    justify-content: center;
}

.title-text {
    min-width: 0;
    flex: 1;
}

.title-icon {
    flex: 0 0 auto;
    width: clamp(48px, 0.95em + 24px, 86px);
    aspect-ratio: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    color: var(--secondary);
    background: linear-gradient(145deg, rgba(200, 167, 95, 0.24), rgba(15, 125, 128, 0.12));
    border: 1px solid rgba(200, 167, 95, 0.32);
    box-shadow: 0 18px 40px rgba(14, 57, 59, 0.14);
    animation: title-icon-float 6s ease-in-out infinite, title-icon-glow 7.5s ease-in-out infinite;
}

.hero-copy .title-icon,
.page-hero-inner .title-icon {
    color: #f4d793;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 44px rgba(5, 20, 23, 0.32);
}

.feature-card .title-icon,
.story-card .title-icon,
.article-card .title-icon,
.program-card .title-icon,
.glass-card .title-icon,
.footer-title .title-icon {
    width: 50px;
    border-radius: 18px;
}

.footer-title .title-icon {
    width: 38px;
    color: #f4d793;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: none;
    display: grid;
    place-items: center;
    line-height: 0;
}

.footer-title {
    align-items: center;
}

.footer-title .title-icon {
    align-self: center;
}

.footer-title .title-icon-svg {
    width: 18px;
    height: 18px;
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.footer-title .title-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff8e6;
    border: 0;
    box-shadow: 0 14px 28px rgba(6, 20, 22, 0.26);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    position: relative;
    overflow: hidden;
}

.footer-title:hover .title-icon {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 18px 34px rgba(6, 20, 22, 0.34);
    filter: saturate(1.08);
}

.footer-title .title-icon--footer-crescent {
    background: linear-gradient(135deg, #ffcc70, #f28b44);
}

.footer-title .title-icon--footer-book {
    background: linear-gradient(135deg, #3ec7b8, #0f7d80);
}

.footer-title .title-icon--footer-mosque {
    background: linear-gradient(135deg, #78c1ff, #2f75ff);
}

.footer-title .title-icon--footer-hands {
    background: linear-gradient(135deg, #9be15d, #00c37a);
}

.title-icon--kaaba {
    animation-duration: 6.8s, 8.2s;
}

.title-icon--mosque {
    animation-duration: 5.8s, 7.6s;
}

.title-icon--moon {
    animation-duration: 7.2s, 9s;
}

.title-icon--hands-praying {
    animation-duration: 6.2s, 7.8s;
}

.title-icon-svg {
    width: 58%;
    height: 58%;
    display: block;
    filter: drop-shadow(0 6px 14px rgba(8, 36, 39, 0.16));
}

@keyframes title-icon-float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(2deg);
    }
}

@keyframes title-icon-glow {
    0%,
    100% {
        box-shadow: 0 18px 40px rgba(14, 57, 59, 0.14);
    }
    50% {
        box-shadow: 0 22px 48px rgba(15, 125, 128, 0.22);
    }
}

.lead,
.page-hero-inner p {
    font-size: 1.06rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 680px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 0.84rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--secondary);
    font-weight: 800;
}

.eyebrow::before {
    content: "";
    width: 42px;
    height: 1px;
    background: currentColor;
}

.hero-actions,
.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.hero-metrics article {
    min-width: 150px;
    padding: 14px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.hero-metrics strong {
    display: block;
    font-size: 1.9rem;
}

.glass-card,
.feature-card,
.article-card,
.story-card,
.program-card,
.faq-item,
.panel-form,
.article-layout {
    background: var(--surface);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: var(--shadow);
}

.glass-card,
.feature-card,
.article-card,
.story-card,
.program-card,
.article-layout {
    border-radius: var(--radius);
}

.hero-panel,
.panel-form,
.feature-card,
.article-card-body,
.story-card-body,
.article-layout {
    padding: 28px;
}

.content-card {
    padding: 30px 32px;
    display: grid;
    gap: 18px;
    align-content: start;
}

.content-card .title-with-icon {
    margin-bottom: 2px;
}

.content-card .feature-list {
    margin: 0;
}

.content-card .feature-list li {
    padding-inline-start: 30px;
    margin-bottom: 14px;
}

.content-card .feature-list li:last-child {
    margin-bottom: 0;
}

.section {
    position: relative;
    padding: 96px 0;
}

.section-alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
}

.section-head {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-head h2,
.feature-card h2,
.program-card h2,
.story-card h2,
.article-card h2 {
    color: var(--text);
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-head p {
    color: var(--muted);
}

.split-layout {
    display: grid;
    grid-template-columns: 1.04fr 0.96fr;
    gap: 28px;
    align-items: start;
}

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

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

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

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

.icon-wrap {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: var(--primary);
    background: rgba(15, 125, 128, 0.08);
}

.icon-wrap svg {
    width: 28px;
    height: 28px;
}

.feature-card,
.program-card,
.article-card,
.story-card {
    overflow: hidden;
}

.feature-card p,
.program-card p,
.article-card p,
.story-card p,
.rich-text,
.mini-card span {
    color: var(--muted);
}

.feature-card h3,
.story-card h3,
.article-card h3,
.glass-card h3,
.contact-stack h3,
.footer-grid h3,
.footer-grid h4 {
    margin: 0 0 12px;
    line-height: 1.2;
}

.feature-card small,
.program-badge,
.article-card-body span,
.story-card-body span {
    color: var(--primary);
    font-weight: 800;
}

.country-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(15, 125, 128, 0.12);
    border: 1px solid rgba(15, 125, 128, 0.16);
    color: var(--text);
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1;
}

.country-pill::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--secondary);
    box-shadow: 0 0 0 4px rgba(196, 144, 74, 0.16);
    flex-shrink: 0;
}

.story-country {
    margin-top: 2px;
}

.article-country {
    color: var(--text);
}

.feature-card-body {
    padding: 22px 24px 26px;
}

.program-teaser-card .card-media {
    height: 190px;
}

.program-teaser-card .feature-card-body {
    display: grid;
    gap: 12px;
}

.program-teaser-card .feature-card-body a {
    color: var(--primary);
    font-weight: 800;
}

.pricing-grid {
    margin-bottom: 28px;
}

.price-card .feature-card-body {
    display: grid;
    gap: 12px;
    height: 100%;
}

.price-label {
    display: inline-flex;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(15, 125, 128, 0.08);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.rtl .price-label {
    letter-spacing: 0;
}

.price-value {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: var(--primary-deep);
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 800;
    line-height: 1;
}

.price-value span {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
}

.article-card img,
.story-card img,
.work-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.story-card.tall img {
    height: 300px;
}

.card-media {
    width: 100%;
    height: 230px;
}

.story-card.tall .card-media {
    height: 300px;
}

.story-card.tall .media-shell::before {
    padding-top: 74%;
}

.media-shell {
    position: relative;
    overflow: hidden;
    background: rgba(10, 36, 39, 0.08);
}

.media-shell::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}

.media-shell iframe,
.media-shell video,
.media-shell img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.story-card blockquote {
    margin: 0;
    color: var(--text);
    font-weight: 700;
}

.stacked-cards {
    display: grid;
    gap: 16px;
}

.mini-card {
    padding: 22px;
}

.program-card {
    padding: 28px;
}

.program-card-head,
.program-card-content {
    display: grid;
    gap: 18px;
}

.program-card-head {
    grid-template-columns: auto 1fr;
    align-items: start;
}

.program-card-content {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: stretch;
}

.program-image {
    min-height: 260px;
    background-size: cover;
    background-position: center;
    border-radius: 24px;
}

.feature-list {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-inline-start: 26px;
    margin-bottom: 12px;
}

.feature-list li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 12px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.program-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.program-fact {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(18, 70, 73, 0.12);
    background: rgba(255, 255, 255, 0.72);
    color: var(--primary-deep);
    font-size: 0.92rem;
    font-weight: 700;
}

.program-outline {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(18, 70, 73, 0.12);
}

.program-outline summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    list-style: none;
    color: var(--primary-deep);
    font-weight: 800;
}

.program-outline summary::-webkit-details-marker {
    display: none;
}

.program-outline summary::after {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(196, 159, 90, 0.16);
    color: var(--primary);
    font-size: 1.3rem;
    line-height: 1;
    flex-shrink: 0;
}

.program-outline[open] summary::after {
    content: "−";
}

.program-outline-body {
    margin-top: 18px;
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(18, 70, 73, 0.08);
}

.program-card-actions,
.program-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.article-facts {
    margin-bottom: 20px;
}

.faq-list {
    display: grid;
    gap: 16px;
}

.faq-item {
    border-radius: 22px;
    padding: 18px 22px;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 800;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item[open] summary {
    margin-bottom: 10px;
    color: var(--primary-deep);
}

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

.panel-form label {
    display: block;
    margin-bottom: 16px;
}

.panel-form span {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.panel-form input,
.panel-form textarea,
.panel-form select {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(18, 70, 73, 0.12);
    background: rgba(255, 255, 255, 0.78);
    padding: 14px 16px;
    color: var(--text);
    font: inherit;
}

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

.contact-tool-list,
.footer-contact-list {
    display: grid;
    gap: 12px;
}

.contact-tool,
.footer-contact-item {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 14px;
}

.contact-tool {
    padding: 14px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(18, 70, 73, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-tool:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 125, 128, 0.24);
    box-shadow: 0 18px 32px rgba(14, 57, 59, 0.1);
}

.contact-tool--static {
    cursor: default;
}

.contact-tool-icon,
.footer-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--primary);
    background: rgba(15, 125, 128, 0.1);
    border: 1px solid rgba(15, 125, 128, 0.14);
}

.contact-tool-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
}

.footer-contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: #f4d793;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    display: grid;
    place-items: center;
    line-height: 0;
}

.contact-tool-icon svg,
.footer-contact-icon svg {
    width: 22px;
    height: 22px;
    display: block;
    flex: none;
}

.footer-contact-icon svg {
    width: 18px;
    height: 18px;
    transform-box: fill-box;
    transform-origin: center;
    overflow: visible;
    transform: translate(-0.35px, -0.2px);
}

.contact-tool-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.contact-tool-copy strong,
.contact-tool-copy small {
    display: block;
}

.contact-tool-copy strong {
    color: var(--text);
    font-size: 0.96rem;
    line-height: 1.2;
}

.contact-tool-copy small {
    color: var(--muted);
    font-size: 0.92rem;
    overflow-wrap: anywhere;
}

.article-layout {
    max-width: 920px;
    margin: 0 auto;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    color: var(--primary);
    font-weight: 700;
}

.article-content p,
.rich-text p {
    margin: 0 0 16px;
}

.article-content figure,
.rich-text figure {
    margin: 28px 0;
}

.article-content figcaption,
.rich-text figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.94rem;
}

.article-content > *:first-child,
.rich-text > *:first-child {
    margin-top: 0;
}

.article-content > *:last-child,
.rich-text > *:last-child {
    margin-bottom: 0;
}

.article-content h2,
.article-content h3,
.article-content h4,
.rich-text h2,
.rich-text h3,
.rich-text h4 {
    color: var(--text);
    margin: 32px 0 14px;
    line-height: 1.2;
}

.article-content ul,
.article-content ol,
.rich-text ul,
.rich-text ol {
    margin: 0 0 18px;
    padding-inline-start: 24px;
}

.article-content li,
.rich-text li {
    margin-bottom: 8px;
}

.article-content a,
.rich-text a,
.feature-card-body a,
.story-card-body a,
.mini-card a {
    color: var(--primary);
    font-weight: 800;
}

.article-content img,
.rich-text img,
.article-content video,
.rich-text video,
.article-content iframe,
.rich-text iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 24px 0;
    border: 0;
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.article-content iframe,
.rich-text iframe {
    aspect-ratio: 16 / 9;
    min-height: 320px;
}

.article-content figure,
.rich-text figure {
    margin: 24px 0;
}

.article-content blockquote,
.rich-text blockquote,
.detail-quote {
    margin: 24px 0;
    padding: 18px 22px;
    border-inline-start: 4px solid var(--secondary);
    background: rgba(15, 125, 128, 0.08);
    border-radius: 18px;
    color: var(--text);
    font-weight: 700;
}

.article-media {
    margin-bottom: 24px;
}

.article-detail-media {
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.article-conversion-copy {
    display: grid;
    gap: 16px;
    align-content: start;
}

.article-country-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.content-section-grid,
.content-section-simple {
    display: grid;
    gap: 28px;
    align-items: center;
}

.content-section-grid {
    grid-template-columns: 1.02fr 0.98fr;
}

.content-section-simple {
    max-width: 760px;
    margin: 0 auto;
}

.content-section-copy h2 {
    color: var(--text);
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.content-section-subtitle {
    color: var(--muted);
    font-size: 1.04rem;
    margin: 0 0 18px;
}

.content-section-actions {
    margin-top: 24px;
}

.content-section-media {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.story-details {
    margin-top: 18px;
}

.site-footer {
    padding: 72px 0 34px;
    border-top: 1px solid var(--line);
    background: rgba(8, 36, 39, 0.96);
    color: rgba(255, 255, 255, 0.86);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 28px;
}

.footer-grid h3,
.footer-grid h4 {
    margin-top: 0;
    color: #fff;
}

.footer-grid p {
    display: block;
    color: rgba(255, 255, 255, 0.74);
    margin-bottom: 10px;
}

.footer-link-item,
.footer-language-switch {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.footer-link-item {
    margin-bottom: 10px;
    transition: transform 0.25s ease, color 0.25s ease;
    color: rgba(255, 255, 255, 0.74);
}

.footer-link-item:hover,
.footer-language-switch:hover {
    transform: translateX(3px);
    color: #fff;
}

.footer-link-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 20px rgba(6, 20, 22, 0.16);
    flex: 0 0 auto;
}

.footer-link-item > span:last-child,
.footer-language-switch > span:last-child {
    display: inline-block;
    min-width: 0;
}

.footer-link-icon svg {
    width: 14px;
    height: 14px;
    display: block;
}

.footer-link-icon--language {
    background: linear-gradient(135deg, #f1b84b, #f28b44);
}

.footer-contact-list {
    margin-top: 4px;
}

.footer-contact-item {
    display: inline-flex;
    width: 100%;
    justify-content: flex-start;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 0;
}

.footer-contact-item--static {
    cursor: default;
}

.footer-contact-item {
    position: relative;
    padding: 10px 0;
    transition: transform 0.25s ease, color 0.25s ease;
}

.footer-contact-item:not(.footer-contact-item--static):hover {
    transform: translateX(3px);
    color: #fff;
}

.footer-contact-item > span:last-child {
    transition: color 0.25s ease;
}

.footer-contact-item:not(.footer-contact-item--static):hover > span:last-child {
    color: #fff;
}

.footer-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    border: 0;
    box-shadow: 0 14px 28px rgba(6, 20, 22, 0.24);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    position: relative;
    overflow: hidden;
}

.footer-contact-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    position: static;
    transform: none;
}

.footer-contact-item:nth-child(1) .footer-contact-icon {
    background: linear-gradient(135deg, #ffb36b, #ff6f61);
}

.footer-contact-item:nth-child(2) .footer-contact-icon {
    background: linear-gradient(135deg, #67d6ff, #2f75ff);
}

.footer-contact-item:nth-child(3) .footer-contact-icon {
    background: linear-gradient(135deg, #4be18a, #00a86b);
}

.footer-contact-item:nth-child(4) .footer-contact-icon {
    background: linear-gradient(135deg, #d7b7ff, #8f67ff);
}

.footer-contact-item:hover .footer-contact-icon {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 18px 32px rgba(6, 20, 22, 0.34);
    filter: saturate(1.08);
}

.footer-contact-item > span:last-child {
    display: inline-block;
    min-width: 0;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-language-switch {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 0;
}

.centered {
    text-align: center;
    max-width: 720px;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .hero-grid,
    .split-layout,
    .content-section-grid,
    .card-grid.three,
    .card-grid.four,
    .footer-grid,
    .program-card-content {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 860px) {
    .topbar-inner {
        min-height: 78px;
    }

    .main-nav,
    .topbar-actions {
        display: none;
    }

    .topbar.is-open .main-nav,
    .topbar.is-open .topbar-actions {
        display: flex;
        position: absolute;
        left: 16px;
        right: 16px;
        background: rgba(247, 243, 234, 0.98);
        border: 1px solid var(--line);
        border-radius: 24px;
        box-shadow: var(--shadow);
        flex-direction: column;
        padding: 18px;
        top: calc(100% + 10px);
    }

    .topbar.is-open .main-nav {
        gap: 8px;
        padding: 14px;
        border-radius: 24px;
        justify-content: flex-start;
    }

    .topbar.is-open .topbar-actions {
        top: calc(100% + 260px);
    }

    .nav-toggle {
        display: block;
    }

    .hero-section,
    .page-hero {
        min-height: auto;
        padding: 120px 0 84px;
    }

    .hero-grid,
    .split-layout,
    .content-section-grid,
    .card-grid.two,
    .card-grid.three,
    .card-grid.four,
    .footer-grid,
    .program-card-head,
    .program-card-content,
    .field-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel,
    .panel-form,
    .feature-card,
    .article-card-body,
    .story-card-body,
    .program-card,
    .article-layout {
        padding: 22px;
    }

    .content-card {
        padding: 24px;
        gap: 16px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .program-card-actions,
    .program-detail-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .title-with-icon {
        gap: 12px;
    }

    .title-icon {
        width: 44px;
        border-radius: 16px;
    }

    .footer-title .title-icon {
        width: 34px;
        height: 34px;
    }
}
