/* =================================================================
   HOME PAGE — Visual polish
   Loads after goal_card.css. Loaded only on the home page.
================================================================= */

/* =================================================================
   1. FREE SECTIONS FROM main.container CONSTRAINT
   Bootstrap's .container limits width to ~1140px.
   Since home.css loads only on the home page, overriding it here
   is safe and affects no other page.
================================================================= */
main.container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: clip;
}


/* =================================================================
   2. SUPPRESS goal_card.css section::after DIVIDERS
   (We use wave-separators instead)
================================================================= */
section.hero-section::after,
section.impact-strip::after,
section.about-section::after,
section.goals-section::after,
section.cta-block::after,
section.latest-posts-section::after,
section.partners-section::after {
    display: none;
}


/* =================================================================
   3. SCROLL-REVEAL
================================================================= */
[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal][data-reveal-delay="80"]  { transition-delay: 0.08s; }
[data-reveal][data-reveal-delay="100"] { transition-delay: 0.10s; }
[data-reveal][data-reveal-delay="160"] { transition-delay: 0.16s; }
[data-reveal][data-reveal-delay="200"] { transition-delay: 0.20s; }

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* =================================================================
   4. WAVE SEPARATORS
   Background = destination section colour.
   SVG fill    = source section colour.
================================================================= */
.wave-sep {
    display: block;
    line-height: 0;
    overflow: hidden;
}

.wave-sep svg {
    display: block;
    width: 100%;
}

.wave-sep--to-dark  { background: var(--color-primary); }
.wave-sep--to-soft  { background: #f8fafc; }
.wave-sep--to-white { background: #ffffff; }


/* =================================================================
   5. HERO SECTION
================================================================= */
/* Visual parity with .about-hero on about.html: dark navy, white Georgia
   serif, centered single-column flow. Buttons and image stay, centered
   beneath the text. */
section.hero-section {
    background: var(--color-primary-dark) !important;  /* matches --about-navy */
    color: #ffffff;
    overflow: hidden;
    padding-block: clamp(2.5rem, 5vw, 4.5rem);
    position: relative;
}

/* Grid: row 1 = [title | image], row 2 = description (span 2),
   row 3 = buttons (span 2). Mirrored under RTL automatically. */
.hero-inner {
    align-items: center;
    column-gap: clamp(1.5rem, 3vw, 2.5rem);
    display: grid;
    grid-template-areas:
        "title  visual"
        "desc   desc"
        "buttons buttons";
    grid-template-columns: 1fr 1fr;
    margin: 0 auto;
    max-width: 1200px;
    padding-inline: clamp(1.25rem, 4vw, 3rem);
    row-gap: clamp(1rem, 2vw, 1.5rem);
}

.hero-title       { grid-area: title; }
.hero-visual      { grid-area: visual; }
.hero-description { grid-area: desc; }
.hero-buttons     { grid-area: buttons; }

/* ── Entrance animation ── */
@keyframes hero-enter {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}

.hero-visual {
    align-items: center;
    animation: hero-enter 0.8s 0.14s cubic-bezier(0.22, 1, 0.36, 1) both;
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero-title       { animation: hero-enter 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-description { animation: hero-enter 0.75s 0.07s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-buttons     { animation: hero-enter 0.8s 0.14s cubic-bezier(0.22, 1, 0.36, 1) both; }

@media (prefers-reduced-motion: reduce) {
    .hero-title, .hero-description, .hero-buttons, .hero-visual { animation: none; }
}

/* ── Title (matches .about-hero__title) ── */
.hero-title {
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.15;
    margin: 0;
    max-width: 22ch;
    text-shadow: none;
}

.hero-title p,
.hero-title h1,
.hero-title h2,
.hero-title h3 {
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    margin: 0;
}

section.hero-section h2::after { display: none; }

/* ── Description (matches .about-hero__intro, tightened to fit one viewport) ── */
.hero-description {
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.05rem, 1.5vw, 1.35rem);
    font-style: italic;
    font-weight: 600;
    line-height: 1.6;
    margin: 0;
    max-width: 60rem;
    text-shadow: none;
}

.hero-description * { color: inherit; }
.hero-description p             { margin: 0 0 0.6rem; }
.hero-description p:last-child  { margin-bottom: 0; }

/* ── Buttons ── (centered horizontally, kept visible) */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    justify-content: flex-start;
}

.hero-buttons > div { display: flex; }

.hero-buttons .btn,
.hero-buttons a {
    border-radius: 999px !important;
    display: inline-flex;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    min-width: 8rem;
    padding: 0.78rem 1.75rem !important;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease !important;
}

.hero-buttons .btn:hover,
.hero-buttons a:hover {
    transform: translateY(-1px);
}

/* Primary CTA — cyan/teal still contrasts well on dark navy */
.hero-btn-primary .btn,
.hero-btn-primary a {
    background: linear-gradient(135deg, var(--color-accent), #34d5cf) !important;
    border-color: transparent !important;
    box-shadow: 0 12px 28px rgba(18, 199, 192, 0.28) !important;
    color: #082e2c !important;
}

.hero-btn-primary .btn:hover,
.hero-btn-primary a:hover {
    box-shadow: 0 16px 32px rgba(18, 199, 192, 0.4) !important;
    color: #082e2c !important;
}

/* Secondary CTA — outlined to read on dark navy */
.hero-btn-secondary .btn,
.hero-btn-secondary a {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    box-shadow: none !important;
    color: #ffffff !important;
}

.hero-btn-secondary .btn:hover,
.hero-btn-secondary a:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

/* ── Image (in row 1 col 2; height-capped so the row stays compact) ── */
.hero-visual img,
.hero-visual svg,
.hero-visual picture,
.hero-visual video {
    border-radius: 16px;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45);
    height: auto;
    max-height: clamp(180px, 32vh, 320px);
    max-width: 100%;
    object-fit: contain;
    width: auto;
}

/* Legacy decorative wrappers from the old light hero are neutralised
   so any CMS-rendered .hero-visual__frame still looks at home on navy. */
.hero-visual__frame {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    padding: 0;
    position: relative;
    width: 100%;
    max-width: 600px;
}

.hero-visual__blob { display: none; }

.hero-visual__svg {
    display: block;
    position: relative;
    width: 100%;
    z-index: 1;
}

/* ── RTL: switch to Arabic serif (matches about.css) ── */
html[dir="rtl"] .hero-title,
html[dir="rtl"] .hero-description {
    font-family: "Noto Naskh Arabic", Georgia, serif;
}

/* ── Mobile / narrow: collapse to single column, centered ── */
@media (max-width: 960px) {
    .hero-inner {
        grid-template-areas:
            "title"
            "visual"
            "desc"
            "buttons";
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-title       { justify-self: center; max-width: 22ch; }
    .hero-description { justify-self: center; }
    .hero-buttons     { justify-content: center; }
}

@media (max-width: 767.98px) {
    section.hero-section { padding-block: clamp(2rem, 6vw, 3rem); }
    .hero-title {
        font-size: clamp(1.9rem, 7vw, 2.75rem);
        max-width: 18ch;
    }
}


/* =================================================================
   6. IMPACT NUMBERS — CARD GRID (dark navy + cyan accents,
   matching the hero / who-we-are sections)
================================================================= */
section.impact-cards {
    background: #f8fafc;            /* light section so var(--color-primary) text reads */
    overflow: hidden;
    padding: clamp(3rem, 5vw, 4.5rem) 0;
    position: relative;
}

/* Soft ambient brand-navy glow behind the cards on the light bg */
section.impact-cards::before {
    background:
        radial-gradient(circle at 20% 50%, rgba(11, 30, 107, 0.06) 0%, transparent 55%),
        radial-gradient(circle at 80% 50%, rgba(124, 247, 255, 0.10) 0%, transparent 55%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.impact-cards .container { position: relative; z-index: 1; }

.impact-cards__header {
    margin: 0 auto clamp(1.75rem, 3vw, 2.5rem);
    max-width: 50rem;
    text-align: center;
}

.impact-cards__title {
    color: var(--color-primary);             /* SDM brand navy on light bg */
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.1rem, 3.8vw, 3rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
    margin: 0 0 0.85rem;
}

.impact-cards__intro {
    color: var(--color-primary);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.1rem, 1.55vw, 1.35rem);
    font-style: italic;
    font-weight: 600;
    line-height: 1.65;
    margin: 0;
    opacity: 0.85;
}

html[dir="rtl"] .impact-cards__title,
html[dir="rtl"] .impact-cards__intro {
    font-family: "Noto Naskh Arabic", Georgia, serif;
}

/* Arabic doesn't have italic — faked-italic skew makes Arabic glyphs
   ugly and hard to read. Drop italic in RTL and add a bit more weight
   to compensate. */
html[dir="rtl"] .impact-cards__intro {
    font-style: normal;
    font-weight: 700;
}

.impact-cards__grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.impact-card {
    align-items: center;
    background: var(--color-primary);  /* solid lighter navy: clearly above section bg var(--color-primary-dark) */
    border: 1px solid rgba(124, 247, 255, 0.32);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    color: #ffffff;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    padding: 1.75rem 2rem;
    text-decoration: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.impact-card:hover {
    background: #142680;
    border-color: var(--color-accent-light);
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(124, 247, 255, 0.3);
    transform: translateY(-3px);
}

.impact-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 0;
}

.impact-card__label {
    color: #c7d2fe;  /* high-contrast cool white-blue, easily readable on navy */
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

html[dir="rtl"] .impact-card__label { letter-spacing: 0; }

.impact-card__number {
    color: #ffffff;
    font-size: clamp(2.75rem, 4.5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.impact-card__icon {
    background: var(--color-accent-light);          /* solid cyan disc — pops off the navy */
    border: 0;
    border-radius: 50%;
    color: var(--color-primary-dark);               /* dark navy icon on cyan = AAA contrast */
    display: grid;                /* most reliable centering for icon glyphs */
    flex: 0 0 64px;
    font-size: 34px;
    font-weight: 600;
    height: 64px;
    line-height: 1;
    place-items: center;          /* horizontal + vertical center */
    text-align: center;
    transition: background 0.25s ease, transform 0.25s ease;
    width: 64px;
}

.impact-card:hover .impact-card__icon {
    background: #ffffff;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .impact-cards__grid { grid-template-columns: 1fr; }
    section.impact-cards { padding: 2.5rem 0; }
}


/* =================================================================
   7. WHO WE ARE (ABOUT) — visual parity with the hero section:
   dark navy background, white Georgia serif typography.
================================================================= */
section.about-section,
section.about-section.bg-light {
    background: var(--color-primary-dark) !important;  /* matches --about-navy / hero */
    color: #ffffff;
    padding-block: clamp(3rem, 6vw, 5rem);
    padding-inline: 2rem;
}

.about-section .container {
    max-width: 1100px;
    margin-inline: auto;
}

/* Two-column layout */
.about-cols {
    align-items: center;
    display: grid;
    gap: clamp(2.5rem, 5vw, 4.5rem);
    grid-template-columns: 1.1fr 0.9fr;
}

/* Heading — Georgia serif, white (matches .hero-title) */
.about-title {
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.9rem, 3.4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.18;
    margin: 0 0 1rem;
    text-align: start;
    text-shadow: none;
}

.about-title * {
    color: inherit;
    font: inherit;
    line-height: inherit;
    margin: 0;
}

section.about-section h2::after { display: none; }

/* Description — Georgia italic, white (matches .hero-description) */
.about-description {
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    font-style: italic;
    font-weight: 600;
    line-height: 1.7;
    margin: 0 0 2rem;
    text-align: start;
}

.about-description * { color: inherit; }
.about-description > :first-child { margin-top: 0; }
.about-description > :last-child  { margin-bottom: 0; }

/* Feature grid — adapted for dark navy bg */
.about-features {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr 1fr;
}

.feature-item {
    align-items: flex-start;
    display: flex;
    gap: 0.875rem;
}

.feature-icon-wrap {
    align-items: center;
    background: rgba(124, 247, 255, 0.12);  /* cyan glow on navy */
    border: 1px solid rgba(124, 247, 255, 0.35);
    border-radius: 10px;
    color: var(--color-accent);
    display: inline-flex;
    flex: 0 0 38px;
    height: 38px;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
    width: 38px;
}

.feature-item:hover .feature-icon-wrap {
    background: rgba(124, 247, 255, 0.2);
    border-color: rgba(124, 247, 255, 0.6);
}

.feature-icon-wrap svg { display: block; }

.feature-item strong {
    color: #ffffff;
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
}

/* About right column — CMS may render a Bootstrap card. Keep it
   light to "lift" off the dark navy bg, with soft shadow. */
.about-col-right .about-image .card {
    background: #ffffff !important;
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45) !important;
    color: #0f172a !important;
    overflow: hidden;
}

.about-col-right .about-image .card-body {
    padding: 2rem !important;
}

.about-col-right .about-image h3,
.about-col-right .about-image .h5 {
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.about-col-right .about-image ul {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

html[dir="rtl"] .about-col-right .about-image ul { padding-right: 0; }

.about-col-right .about-image ul li {
    align-items: flex-start;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    color: #475569;
    display: flex;
    font-size: 0.95rem;
    gap: 0.6rem;
    line-height: 1.6;
    padding: 0.55rem 0;
}

.about-col-right .about-image ul li::before {
    background: var(--color-accent);
    border-radius: 50%;
    content: "";
    flex: 0 0 7px;
    height: 7px;
    margin-top: 0.5em;
    width: 7px;
}

.about-col-right .about-image ul li:last-child {
    border-bottom: none;
}

/* Plain image (if CMS places one instead of a card) */
.about-image img {
    border-radius: 16px;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45);
    max-width: 100%;
    width: 100%;
}

/* RTL Arabic font (matches hero/about page) */
html[dir="rtl"] .about-title,
html[dir="rtl"] .about-description {
    font-family: "Noto Naskh Arabic", Georgia, serif;
}

/* Mobile */
@media (max-width: 800px) {
    .about-cols {
        gap: 2.5rem;
        grid-template-columns: 1fr;
    }

    .about-title       { text-align: center; }
    .about-description { text-align: center; }

    .about-features    { grid-template-columns: 1fr; }
    .about-col-right   { order: -1; }

    section.about-section { padding-block: clamp(2rem, 6vw, 3rem); padding-inline: 1.25rem; }
}


/* =================================================================
   8. OUR GOALS
================================================================= */
section.goals-section,
section.goals-section.bg-light {
    background: #f8fafc;
    padding: 5.5rem 2rem;
}

.goals-intro {
    color: #64748b;
    font-size: 1rem;
    margin: 0.5rem auto 0;
    max-width: 600px;
}

section.goals-section h2::after {
    background: var(--color-accent);
}

section.goals-section .fa,
section.goals-section .fa-solid,
section.goals-section .fa-regular,
section.goals-section .fa-brands,
section.goals-section .fas,
section.goals-section .far,
section.goals-section .fab,
section.goals-section i[class*="fa-"],
section.goals-section svg[class*="fa-"],
section.goals-section [class^="fa-"],
section.goals-section [class*=" fa-"],
section.goals-section [class^="fa-"]::before,
section.goals-section [class*=" fa-"]::before,
section.goals-section .goal-card i,
section.goals-section .goal-card i::before,
section.goals-section .goal-card svg,
section.goals-section .goal-card .goal-icon__image,
section.goals-section .goal-icon,
section.goals-section .goal-icon * {
    color: var(--color-primary);
}

section.goals-section svg[class*="fa-"],
section.goals-section svg[class*="fa-"] *,
section.goals-section .goal-card svg,
section.goals-section .goal-card svg * {
    fill: var(--color-primary);
    stroke: var(--color-primary);
}

section.goals-section .goal-card .goal-icon__image {
    background-color: var(--color-primary);
}

section.goals-section .goal-card img {
    filter: brightness(0) saturate(100%) invert(10%) sepia(67%) saturate(2554%) hue-rotate(226deg) brightness(90%) contrast(100%);
}

@media (max-width: 767.98px) {
    section.goals-section { padding: 3.5rem 1rem; }
}


/* =================================================================
   9. CTA BLOCK
================================================================= */
section.cta-block,
section.cta-block.bg-dark {
    background:
        radial-gradient(ellipse at 50% 130%, rgba(18, 199, 192, 0.18) 0%, transparent 60%),
        linear-gradient(145deg, #0a1c5c 0%, #0f2878 50%, var(--color-primary) 100%);
    overflow: hidden;
    padding: 6rem 2rem;
    position: relative;
    text-align: center;
}

/* Decorative orb – top-left */
section.cta-block::before {
    background: rgba(37, 99, 235, 0.22);
    border-radius: 50%;
    content: "";
    filter: blur(80px);
    height: 320px;
    inset-inline-start: -80px;
    pointer-events: none;
    position: absolute;
    top: -80px;
    width: 320px;
    z-index: 0;
}

/* Decorative orb – bottom-right
   Redefined here so it shows as an orb, not the goal_card divider.
   goal_card.css ::after is already suppressed at top of this file. */
section.cta-block::after {
    background: rgba(18, 199, 192, 0.2);
    background-image: none;   /* reset goal_card gradient */
    border-radius: 50%;
    bottom: -60px;
    content: "";
    display: block;
    filter: blur(70px);
    height: 260px;
    inset-inline-end: -60px;
    margin-top: 0;            /* reset goal_card margin */
    pointer-events: none;
    position: absolute;
    transform: none;          /* reset goal_card transform */
    width: 260px;
    z-index: 0;
}

.cta-block__inner {
    margin: 0 auto;
    max-width: 680px;
    position: relative;
    z-index: 1;
}

.cta-block__title {
    color: #ffffff;
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 0.875rem;
}

section.cta-block h2::after {
    background: rgba(255, 255, 255, 0.22);
}

.cta-block__subtitle {
    color: rgba(255, 255, 255, 0.68);
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0 0 2.5rem;
}

.cta-block__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.sdm-btn--accent {
    background: linear-gradient(135deg, var(--color-accent), #34d5cf);
    border: none;
    box-shadow: 0 6px 22px rgba(18, 199, 192, 0.42);
    color: #082e2c;
    font-weight: 700;
}

.sdm-btn--accent:hover,
.sdm-btn--accent:focus-visible {
    box-shadow: 0 8px 28px rgba(18, 199, 192, 0.58);
    color: #082e2c;
}

.sdm-btn--outline-white {
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.42);
    color: #ffffff;
    font-weight: 600;
}

.sdm-btn--outline-white:hover,
.sdm-btn--outline-white:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.72);
    color: #ffffff;
}

@media (max-width: 520px) {
    section.cta-block { padding: 4.5rem 1.25rem; }
    .cta-block__actions { flex-direction: column; align-items: center; }
}


/* =================================================================
   10. LATEST NEWS
================================================================= */
section.latest-posts-section {
    background: #ffffff;
    padding: 5.5rem 2rem;
}

section.latest-posts-section h2::after {
    background: var(--color-accent);
}

.latest-posts-section__header {
    margin-bottom: 3rem;
    text-align: center;
}

.latest-posts-section__title {
    color: var(--color-primary);
    font-size: clamp(1.85rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 0.5rem;
}

.latest-posts-section__subtitle {
    color: var(--color-text-muted, #5b6475);
    font-size: 1rem;
    margin: 0;
}

.post-preview-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 auto;
    max-width: 1100px;
}

.post-preview-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 18px;
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.post-preview-card:hover {
    border-color: rgba(18, 199, 192, 0.38);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.11);
    transform: translateY(-5px);
}

.post-preview-card__image-link {
    aspect-ratio: 16 / 9;
    display: block;
    overflow: hidden;
}

.post-preview-card__image {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    width: 100%;
}

.post-preview-card:hover .post-preview-card__image {
    transform: scale(1.05);
}

.post-preview-card__no-image {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(11, 31, 102, 0.05) 0%, rgba(18, 199, 192, 0.07) 100%);
}

.post-preview-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.375rem;
}

.post-preview-card__date {
    align-items: center;
    color: var(--color-text-muted, #5b6475);
    display: flex;
    font-size: 0.78rem;
    font-weight: 600;
    gap: 0.45rem;
    letter-spacing: 0.015em;
}

.post-preview-card__date::before {
    background: var(--color-accent);
    border-radius: 50%;
    content: "";
    flex: 0 0 6px;
    height: 6px;
    width: 6px;
}

.post-preview-card__title {
    color: var(--color-primary);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.post-preview-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-preview-card__title a:hover,
.post-preview-card__title a:focus-visible {
    color: var(--color-primary-light);
}

.post-preview-card__excerpt {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: #64748b;
    display: -webkit-box;
    font-size: 0.875rem;
    line-height: 1.65;
    margin: 0;
    overflow: hidden;
}

.post-preview-card__link {
    align-items: center;
    color: var(--color-primary-light);
    display: inline-flex;
    font-size: 0.875rem;
    font-weight: 700;
    gap: 0.3rem;
    margin-top: auto;
    padding-top: 0.625rem;
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}

.post-preview-card__link::after {
    content: "→";
    display: inline-block;
    transition: transform 0.2s ease;
}

.post-preview-card__link:hover,
.post-preview-card__link:focus-visible {
    color: #1d4ed8;
    gap: 0.5rem;
}

.post-preview-card__link:hover::after     { transform: translateX(3px); }

html[dir="rtl"] .post-preview-card__link::after     { content: "←"; }
html[dir="rtl"] .post-preview-card__link:hover::after { transform: translateX(-3px); }

.latest-posts-section__footer {
    margin-top: 3rem;
    text-align: center;
}

@media (max-width: 900px) {
    .post-preview-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
    .post-preview-grid { grid-template-columns: 1fr; }
    section.latest-posts-section { padding: 3.5rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .post-preview-card,
    .post-preview-card__image { transition: none; }
}


/* =================================================================
   11. PARTNERS & SUPPORTERS
================================================================= */
section.partners-section {
    background: linear-gradient(180deg, #f8fafc 0%, #eef4ff 100%);
    overflow: hidden;
    padding: 5rem 0;
}

.partners-section__container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.partners-section__header { text-align: center; }

.partners-section__title {
    color: var(--color-primary);
    font-size: clamp(1.85rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
}

section.partners-section h2::after {
    background: var(--color-accent);
}

.partners-marquee {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.partners-marquee__row {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    overflow: hidden;
    width: 100%;
}

.partners-marquee__track {
    align-items: center;
    display: flex;
    min-width: max-content;
    width: max-content;
    will-change: transform;
}

.partners-marquee__group {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 2rem;
    min-width: max-content;
}

.partners-marquee__group + .partners-marquee__group {
    padding-inline-start: 2rem;
}

.partners-marquee__row--forward .partners-marquee__track  { animation: partners-scroll-right 34s linear infinite; }
.partners-marquee__row--reverse .partners-marquee__track  { animation: partners-scroll-left  38s linear infinite; }

.partners-marquee:hover        .partners-marquee__track,
.partners-marquee:focus-within .partners-marquee__track {
    animation-play-state: paused;
}

.partner-logo-card {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    display: flex;
    flex: 0 0 auto;
    height: 64px;
    justify-content: center;
    max-width: 160px;
    min-width: 160px;
    padding: 8px 16px;
}

.partner-logo-card img {
    display: block;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    width: 100%;
}

@keyframes partners-scroll-left {
    from { transform: translateX(0);    }
    to   { transform: translateX(-50%); }
}

@keyframes partners-scroll-right {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0);    }
}

@media (prefers-reduced-motion: reduce) {
    .partners-marquee__row {
        -webkit-mask-image: none;
        mask-image: none;
        overflow: visible;
    }

    .partners-marquee__track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        min-width: 0;
        width: 100%;
    }

    .partners-marquee__group[aria-hidden="true"] { display: none; }
}

@media (max-width: 767.98px) {
    section.partners-section      { padding: 4rem 0; }
    .partners-marquee             { gap: 0; }

    .partners-marquee__row {
        -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
        mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    }

    .partners-marquee__row--reverse { display: none; }
    .partners-marquee__track        { animation-duration: 46s; }
}
