/* =========================================================
   AIC FESTIVAL 2027 — PARTNERS PAGE
   ========================================================= */

/* =========================
   HERO
   ========================= */

.partners-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, .88),
            rgba(0, 0, 0, .42)
        ),
        url("../images/partners/hero.jpg") center / cover no-repeat;
}

.partners-hero-content {
    max-width: 900px;
    padding: 150px 0 90px;
    color: #fff;
}

.partners-hero-content > span {
    color: #F4A300;
    font-size: .8rem;
    font-weight: 900;
    letter-spacing: .18em;
}

.partners-hero h1 {
    margin: 18px 0;
    color: #fff;
    font-size: clamp(3.1rem, 7vw, 5.8rem);
    line-height: .96;
    letter-spacing: -.04em;
}

.partners-hero h1 em {
    color: #F4A300;
    font-style: normal;
}

.partners-hero p {
    max-width: 760px;
    color: #eee;
    font-size: 1.1rem;
    line-height: 1.8;
}


/* =========================
   LEAD PARTNERS
   ========================= */

.lead-partners {
    padding: 110px 0;
    background: #fff;
}

.section-heading {
    max-width: 850px;
    margin: 0 auto 55px;
    text-align: center;
}

.left-heading {
    margin-left: 0;
    text-align: left;
}

.section-heading > span,
.eyebrow {
    color: #F4A300;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 13px 0;
    color: #111;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.1;
}

.section-heading p {
    color: #666;
    line-height: 1.8;
}

.lead-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.lead-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: 170px 1fr;
    background: #fff8ee;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .07);
}

.lead-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: #fff;
}

.lead-logo img {
    max-width: 125px;
    max-height: 110px;
    object-fit: contain;
}

.lead-content {
    padding: 32px;
}

.lead-content > span {
    color: #D88900;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.lead-content h3 {
    margin: 10px 0 15px;
    font-size: 1.55rem;
}

.lead-content p {
    color: #666;
    line-height: 1.75;
}

.lead-content a {
    color: #D88900;
    font-weight: 900;
}


/* =========================
   STRATEGIC PARTNERS
   ========================= */

.strategic-partners {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto 46px;
}

.strategic-partner-card {
    padding: 30px 34px 28px;
    background: #fff;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .06);
}

.strategic-logo {
    min-height: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.strategic-logo img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 92px;
    object-fit: contain;
}

.strategic-label {
    margin-bottom: 7px;
    color: #D88900;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.strategic-partner-card h3 {
    margin: 0;
    color: #111;
    font-size: 1.35rem;
}

.partner-tier-divider {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 25px;
    color: #D88900;
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.partner-tier-divider::before,
.partner-tier-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #E8D7B8;
}

/* =========================
   COLLABORATION
   ========================= */

.collaboration {
    padding: 110px 0;
    background: #111;
    color: #fff;
}

.collaboration-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 75px;
    align-items: start;
}

.collaboration h2 {
    margin: 14px 0 22px;
    color: #fff;
    font-size: clamp(2.1rem, 4vw, 3.2rem);
    line-height: 1.1;
}

.collaboration p {
    color: #bbb;
    line-height: 1.8;
}

.stakeholder-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.stakeholder-list > div {
    display: flex;
    gap: 15px;
    padding: 22px;
    border: 1px solid #333;
    border-radius: 13px;
    background: #181818;
}

.stakeholder-list i {
    color: #F4A300;
    font-size: 22px;
    margin-top: 3px;
}

.stakeholder-list strong {
    display: block;
    margin-bottom: 6px;
    color: #fff;
}

.stakeholder-list small {
    display: block;
    color: #aaa;
    line-height: 1.55;
}


/* =========================
   INSTITUTIONAL
   ========================= */

.institutional {
    padding: 105px 0;
    background: #FFF8EE;
}

.institution-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.institution-grid > div {
    padding: 32px 24px;
    background: #fff;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .05);
}

.institution-grid i {
    margin-bottom: 18px;
    color: #F4A300;
    font-size: 27px;
}

.institution-grid h3 {
    margin-bottom: 10px;
}

.institution-grid p {
    margin: 0;
    color: #666;
    line-height: 1.7;
}


/* =========================
   TEAM
   ========================= */

.team-section {
    padding: 110px 0;
    background: #fff;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.team-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 15px;
    border: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    transition: .35s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 42px rgba(244, 163, 0, .15);
}

.team-photo {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #f4f1eb;
}

.team-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Collins Okoth — preserve full portrait */
.team-card:nth-child(3) .team-photo {
    background: #d9edda;
}

.team-card:nth-child(3) .team-photo img {
    object-fit: contain;
    object-position: center;
}

.team-content {
    position: relative;
    padding: 28px 30px 32px;
}

.team-content h3 {
    margin: 0 0 8px;
    color: #111;
    font-size: 1.45rem;
    line-height: 1.2;
}

.team-role {
    display: block;
    margin-bottom: 17px;
    color: #D88900;
    font-weight: 900;
}

.team-content p {
    margin: 0;
    color: #666;
    line-height: 1.75;
}


/* =========================
   IMPACT
   ========================= */

.impact {
    padding: 100px 0;
    background: #FFF8EE;
}

.impact-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: end;
    margin-bottom: 45px;
}

.impact-heading h2 {
    margin-top: 13px;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.impact-heading p {
    color: #666;
    line-height: 1.8;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.impact-grid > div {
    padding: 28px 22px;
    background: #fff;
    border-radius: 14px;
}

.impact-grid strong {
    display: block;
    margin-bottom: 8px;
    color: #D88900;
    font-size: 1.5rem;
}

.impact-grid span {
    color: #666;
    line-height: 1.6;
}


/* =========================
   CTA
   ========================= */

.partners-cta {
    padding: 105px 0;
    background: #fff;
    color: #111;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: auto;
}

.cta-content > span {
    color: #F4A300;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.partners-cta .cta-content h2 {
    color: #111;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}


/* =========================
   RESPONSIVE — 1050px
   ========================= */

@media (max-width: 1050px) {

    .institution-grid,
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lead-card {
        grid-template-columns: 130px 1fr;
    }
}


/* =========================
   RESPONSIVE — 900px
   ========================= */

@media (max-width: 900px) {

    .lead-grid,
    .collaboration-layout,
    .impact-heading {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
    }

    .collaboration-layout {
        gap: 45px;
    }

    .institution-grid {
        grid-template-columns: 1fr 1fr;
    }
}


/* =========================
   RESPONSIVE — 650px
   ========================= */

@media (max-width: 650px) {

    .partners-hero-content {
        padding: 125px 0 70px;
    }

    .lead-partners,
    .collaboration,
    .institutional,
    .team-section,
    .impact,
    .partners-cta {
        padding: 78px 0;
    }

    .strategic-partners {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 36px;
    }

    .strategic-partner-card {
        padding: 25px 22px;
    }

    .strategic-logo {
        min-height: 105px;
    }

    .strategic-logo img {
        max-height: 78px;
    }

    .lead-grid,
    .team-grid,
    .institution-grid,
    .impact-grid,
    .stakeholder-list {
        grid-template-columns: 1fr;
    }

    .lead-card {
        display: block;
    }

    .lead-logo {
        min-height: 150px;
    }

    .lead-content {
        padding: 27px 23px;
    }

    .team-photo {
        height: 320px;
    }

    .team-content {
        padding: 25px 23px 28px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons a {
        width: min(100%, 320px);
    }
}


/* =========================
   REVEAL ANIMATION
   ========================= */

.partners-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: .65s ease;
}

.partners-visible {
    opacity: 1;
    transform: none;
}


/* =========================
   REDUCED MOTION
   ========================= */

@media (prefers-reduced-motion: reduce) {

    .partners-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* =========================================================
   PARTNERS PAGE — PARTNER CARDS WITHOUT BORDERS
   ========================================================= */

.strategic-partner-card,
.lead-card {
    border: 0;
    border-top: 0;
}


/* =========================================================
   PARTNERS PAGE — UNIFORM PARTNER CARD SYSTEM
   Preserve all existing information; standardize presentation.
   ========================================================= */

/* Both partner tiers use the same card shell. */
.strategic-partner-card,
.lead-card {
    box-sizing: border-box;
    background: #fff;
    border: 0 !important;
    border-top: 0 !important;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .06);
}

/* Organizing partners adopt the same vertical structure as
   the Crafting Change partner cards. No content is removed. */
.lead-card {
    display: block;
    overflow: hidden;
    padding: 30px 34px 32px;
    text-align: center;
}

.lead-logo {
    min-height: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-bottom: 18px;
    background: transparent;
}

.lead-logo img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 92px;
    object-fit: contain;
}

.lead-content {
    padding: 0;
}

.lead-content > span {
    display: block;
    margin-bottom: 7px;
    color: #D88900;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.lead-content h3 {
    margin: 0 0 16px;
    color: #111;
    font-size: 1.35rem;
    line-height: 1.25;
}

.lead-content p {
    margin: 0 0 14px;
    color: #666;
    line-height: 1.75;
    text-align: left;
}

.lead-content p:last-of-type {
    margin-bottom: 18px;
}

.lead-content a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #D88900;
    font-weight: 900;
    text-decoration: none;
}

/* Keep the two card systems visually aligned at desktop. */
.strategic-partner-card {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lead-card {
    min-height: 100%;
}

/* Mobile keeps the same component logic while allowing the
   longer organizing-partner information to breathe. */
@media (max-width: 650px) {
    .lead-card {
        padding: 25px 22px 28px;
    }

    .lead-logo {
        min-height: 105px;
    }

    .lead-logo img {
        max-height: 78px;
    }

    .lead-content h3 {
        font-size: 1.3rem;
    }
}
