/* ============================================================
   Sponsors / Partners wall — static, tiered layout.
   Content is managed in /press (Media Center → Sponsors) and grouped by tier.
   Each tier is a labelled box (bilingual header) so single-sponsor tiers
   (Organizer, Strategic, Execution) are prominent and never missed.
   ============================================================ */
.sponsorWall {
    position: relative;
    padding: 72px 0 84px;
    background:
        radial-gradient(1100px 380px at 50% -10%, #eef6fb 0%, rgba(238, 246, 251, 0) 70%),
        linear-gradient(180deg, #fbfdff 0%, #f3f8fc 100%);
    overflow: hidden;
}
.sponsorWall::before,
.sponsorWall::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(15, 90, 170, .14), transparent);
}
.sponsorWall::before { top: 0; }
.sponsorWall::after { bottom: 0; }

.sponsorWall__head {
    text-align: center;
    margin: 0 auto 46px;
    padding: 0 20px;
}
.sponsorWall__eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #0f5aaa;
    margin-bottom: 12px;
    position: relative;
}
.sponsorWall__eyebrow::before,
.sponsorWall__eyebrow::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 34px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #1b7ed8);
}
.sponsorWall__eyebrow::before { right: calc(100% + 14px); transform: scaleX(-1); }
.sponsorWall__eyebrow::after  { left:  calc(100% + 14px); }
.sponsorWall__title {
    margin: 0;
    font-size: clamp(1.6rem, 2.6vw, 2.3rem);
    font-weight: 800;
    color: #0b2a45;
    line-height: 1.2;
}
.sponsorWall__sub {
    margin: 10px auto 0;
    max-width: 620px;
    color: #5b7da3;
    font-size: 1rem;
}

/* tier grid — two columns (Organizer + Execution share the top row); wide tiers span both */
.sponsorGrid {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 22px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: stretch;
}
/* the wrapper is the grid item + carries the reveal animation, so the inner box keeps its own
   hover transform without the two fighting over `transform`. */
.sponsorTier-wrap { display: flex; }
.sponsorTier-wrap--wide { grid-column: 1 / -1; }
.sponsorTier {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(13, 59, 102, .08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(13, 59, 102, .08);
    transition: transform .4s cubic-bezier(.22, 1, .36, 1), box-shadow .4s cubic-bezier(.22, 1, .36, 1);
}
.sponsorTier:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 46px rgba(13, 59, 102, .14);
}

/* bilingual header — deep navy by default, metallic for the metal tiers */
.sponsorTier__head {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* single (current-language) label sits at the start — left in EN, right in AR */
    gap: 14px;
    padding: 13px 20px;
    background: linear-gradient(135deg, #13315a 0%, #1f4a7d 100%);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); /* subtle top sheen */
    text-shadow: 0 1px 1px rgba(0, 0, 0, .18);
}
.sponsorTier__head-en {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    opacity: .97;
}
.sponsorTier__head-ar {
    font-size: 1rem;
    font-weight: 700;
}
/* metallic tier headers — prestige at a glance */
.sponsorTier--strategic .sponsorTier__head { background: linear-gradient(135deg, #0b5a37 0%, #22a065 100%); border-bottom: 2px solid #8bdcb2; }
.sponsorTier--golden    .sponsorTier__head { background: linear-gradient(135deg, #a67c22 0%, #e6c169 100%); }
.sponsorTier--platinum  .sponsorTier__head { background: linear-gradient(135deg, #2b3542 0%, #586778 100%); }
.sponsorTier--silver    .sponsorTier__head { background: linear-gradient(135deg, #7c828c 0%, #b6bcc4 100%); }
/* a thin metallic accent line under each metal tier's header */
.sponsorTier--golden    .sponsorTier__head { border-bottom: 2px solid #f0d98f; }
.sponsorTier--platinum  .sponsorTier__head { border-bottom: 2px solid #8fa0b3; }
.sponsorTier--silver    .sponsorTier__head { border-bottom: 2px solid #d2d8df; }

.sponsorTier__body {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 22px 22px;
    padding: 32px 24px;
}
.sponsorLogo {
    flex: 0 0 auto;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* fixed height slot normalises very different logos so the row reads evenly */
    height: 108px;
    padding: 2px 4px;
}
.sponsorLogo a { display: flex; align-items: center; justify-content: center; }
.sponsorLogo img {
    display: block;
    max-height: 104px;
    max-width: 190px;
    object-fit: contain;
}
/* a lone logo in its tier (Organizer, Execution, Strategic) gets a hero size so the wide box never looks empty */
.sponsorLogo:only-child { height: 172px; }
.sponsorLogo:only-child img { max-height: 162px; max-width: 400px; }
/* Organizer (Ministry) logo fits best at ~480×140 */
.sponsorTier--organizer .sponsorLogo:only-child { height: 140px; }
.sponsorTier--organizer .sponsorLogo:only-child img { max-height: 140px; max-width: 480px; }
/* no per-logo hover — only the whole card lifts (see .sponsorTier:hover) */

/* the wide water-sector box: an even 4-column grid so 8 logos read as a clean 4×2 */
.sponsorTier--full .sponsorTier__body {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 36px;
    padding: 36px 34px;
}
.sponsorTier--full .sponsorLogo { height: 156px; width: 100%; }
.sponsorTier--full .sponsorLogo img { max-height: 150px; max-width: 255px; }

@media (max-width: 720px) {
    .sponsorWall { padding: 52px 0 60px; }
    .sponsorGrid { grid-template-columns: 1fr; gap: 18px; }
    .sponsorTier__head-en { font-size: .66rem; }
    .sponsorTier__head-ar { font-size: .9rem; }
    .sponsorTier__body { gap: 18px 20px; padding: 24px 16px; }
    .sponsorLogo { height: 84px; }
    .sponsorLogo img { max-height: 80px; max-width: 150px; }
    .sponsorLogo:only-child { height: 120px; }
    .sponsorLogo:only-child img { max-height: 112px; max-width: 260px; }
    .sponsorTier--full .sponsorLogo { height: 92px; }
    .sponsorTier--full .sponsorLogo img { max-height: 88px; max-width: 175px; }
    .sponsorTier--full .sponsorTier__body { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .sponsorTier { transition: none; }
    .sponsorTier:hover { transform: none; }
}
