:root {
    --iz-community-ink: var(--iz-ink, #1d1836);
    --iz-community-copy: var(--iz-muted, #5f5a6e);
    --iz-community-orange: var(--iz-accent, #e57b25);
    --iz-community-warm: var(--iz-surface-warm, #fff3e8);
    --iz-community-soft: var(--iz-surface-soft, #f7f6f4);
    --iz-community-line: var(--iz-border, #dedbe4);
    --iz-community-green: var(--iz-community, #4e9f42);
}

body.iz-community-content-page .entry-header,
body.iz-community-content-page .entry-title,
body.iz-community-content-page .wp-site-blocks > .wp-block-blockstrap-blockstrap-widget-container > .wp-block-template-part:first-child,
body.iz-community-content-page [aria-label="breadcrumb"],
body.iz-community-content-page main > p:empty,
body.iz-community-content-page .entry-content > p:empty {
    display: none !important;
}

body.iz-community-content-page .wp-site-blocks > .wp-block-blockstrap-blockstrap-widget-container:has(.iz-community-content),
body.iz-community-content-page #main:has(.iz-community-content),
body.iz-community-content-page #main:has(.iz-community-content) > .wp-block-blockstrap-blockstrap-widget-container,
body.iz-community-content-page #main:has(.iz-community-content) > .wp-block-blockstrap-blockstrap-widget-container > .wp-block-blockstrap-blockstrap-widget-container,
body.iz-community-content-page .entry-content:has(.iz-community-content) {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.iz-community-content-page .site-content,
body.iz-community-content-page .content-area,
body.iz-community-content-page .entry-content,
body.iz-community-content-page .wp-site-blocks > main {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.iz-community-content {
    width: 100%;
    overflow: hidden;
    color: var(--iz-community-ink);
    background: #fff;
}

.iz-community-content *,
.iz-community-content *::before,
.iz-community-content *::after {
    box-sizing: border-box;
}

.iz-community-content__hero {
    padding: clamp(4.5rem, 6vw, 6.25rem) 0;
    padding-inline: 0 !important;
    color: #fff;
    background:
        radial-gradient(circle at 84% 24%, rgba(239, 125, 0, .34), transparent 30%),
        radial-gradient(circle at 16% 100%, rgba(255, 255, 255, .1), transparent 31%),
        linear-gradient(135deg, #19152f, #251b42);
}

.iz-community-content__inner,
.iz-community-content__content {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--iz-wide, 1240px);
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 2rem);
}

.iz-community-content__hero .iz-community-content__inner {
    display: grid;
    align-items: end;
    grid-template-columns: minmax(0, 1.65fr) minmax(17rem, .75fr);
    gap: clamp(2rem, 5vw, 5rem);
}

.iz-community-content__eyebrow {
    margin: 0 0 1rem;
    color: #c85709;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .13em;
    line-height: 1.2;
    text-transform: uppercase;
}

.iz-community-content__hero .iz-community-content__eyebrow {
    grid-column: 1 / -1;
    margin-bottom: -1rem;
    color: #ff9c45;
}

.iz-community-content__hero h1 {
    max-width: 48rem;
    margin: 0;
    color: #fff;
    font-size: clamp(3.25rem, 5.35vw, 4.75rem);
    font-weight: 650;
    letter-spacing: -.055em;
    line-height: .98;
}

.iz-community-content__hero > .iz-community-content__inner > p:not(.iz-community-content__eyebrow) {
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    line-height: 1.55;
}

/*
 * These three routes share the InfoZambia system, but they should not look
 * like copies of one another. Opportunities is intentionally light, Events
 * is warm and energetic, and Academy retains the deeper learning treatment.
 */
.iz-community-content--opportunities .iz-community-content__hero {
    color: var(--iz-community-ink);
    border-bottom: 1px solid #f0ded0;
    background:
        radial-gradient(circle at 87% 18%, rgba(229, 123, 37, .2), transparent 25%),
        linear-gradient(120deg, #fff 0%, #fffaf5 58%, #fff0e1 100%);
}

.iz-community-content--opportunities .iz-community-content__hero h1 {
    color: var(--iz-community-ink);
}

.iz-community-content--opportunities .iz-community-content__hero .iz-community-content__eyebrow {
    color: var(--iz-accent-dark, #b9530e);
}

.iz-community-content--opportunities .iz-community-content__hero > .iz-community-content__inner > p:not(.iz-community-content__eyebrow) {
    padding-left: 1.5rem;
    border-left: 2px solid var(--iz-community-orange);
    color: var(--iz-community-copy);
}

.iz-community-content--opportunities .iz-community-content__hero .iz-community-content__text-link {
    color: var(--iz-accent-dark, #b9530e);
}

.iz-community-content--events .iz-community-content__hero {
    color: var(--iz-community-ink);
    border-bottom: 1px solid #efdcc9;
    background:
        radial-gradient(circle at 84% 25%, rgba(78, 159, 66, .2), transparent 22%),
        radial-gradient(circle at 93% 62%, rgba(229, 123, 37, .22), transparent 24%),
        linear-gradient(120deg, #fff9f2, #fff1df);
}

.iz-community-content--events .iz-community-content__hero h1 {
    color: var(--iz-community-ink);
}

.iz-community-content--events .iz-community-content__hero .iz-community-content__eyebrow {
    color: var(--iz-accent-dark, #b9530e);
}

.iz-community-content--events .iz-community-content__hero > .iz-community-content__inner > p:not(.iz-community-content__eyebrow) {
    padding: 1.5rem;
    border: 1px solid rgba(229, 123, 37, .24);
    border-radius: var(--iz-radius-md, 1.25rem);
    color: var(--iz-community-copy);
    background: rgba(255, 255, 255, .7);
}

.iz-community-content--events .iz-community-content__hero .iz-community-content__text-link {
    color: var(--iz-community-ink);
}

.iz-community-content--academy .iz-community-content__hero > .iz-community-content__inner > p:not(.iz-community-content__eyebrow) {
    padding-left: 1.5rem;
    border-left: 2px solid rgba(255, 156, 69, .7);
}

.iz-community-content__hero-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: .75rem;
}

.iz-community-content__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: .85rem 1.45rem;
    border: 1px solid var(--iz-community-ink);
    border-radius: 999px;
    color: #fff;
    background: var(--iz-community-ink);
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease, color .2s ease, background .2s ease;
}

.iz-community-content__button:hover,
.iz-community-content__button:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(29, 24, 54, .16);
}

.iz-community-content__button--light {
    border-color: var(--iz-community-orange);
    color: var(--iz-community-ink);
    background: var(--iz-community-orange);
}

.iz-community-content__button--outline {
    color: var(--iz-community-ink);
    background: transparent;
}

.iz-community-content__button--outline:hover,
.iz-community-content__button--outline:focus-visible {
    color: #fff;
    background: var(--iz-community-ink);
}

.iz-community-content__text-link,
.iz-community-content__hero .iz-community-content__text-link {
    color: #fff;
    font-weight: 750;
    text-decoration: none;
}

.iz-community-content__text-link:hover,
.iz-community-content__text-link:focus-visible {
    color: #ff9c45;
}

.iz-community-content__content {
    padding: clamp(4rem, 8vw, 7.5rem) 0;
    padding-inline: 0 !important;
}

.iz-community-content--opportunities .iz-community-content__pillar-grid article {
    min-height: 17rem;
    border: 0;
    border-top: 3px solid var(--iz-community-orange);
    border-radius: 0 0 var(--iz-radius-md, 1.25rem) var(--iz-radius-md, 1.25rem);
    background: var(--iz-community-soft);
}

.iz-community-content--events .iz-community-content__event-card {
    border-radius: var(--iz-radius-md, 1.25rem);
    box-shadow: var(--iz-shadow-sm, 0 8px 24px rgba(29, 24, 54, .06));
}

.iz-community-content--academy .iz-community-content__pillar-grid article {
    border: 0;
    background: var(--iz-community-soft);
}

.iz-community-content__section-heading {
    max-width: 850px;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.iz-community-content__section-heading h2,
.iz-community-content__intro h2,
.iz-community-content__callout h2 {
    margin: 0;
    color: var(--iz-community-ink);
    font-size: clamp(2.5rem, 5.5vw, 5rem);
    font-weight: 520;
    letter-spacing: -.055em;
    line-height: .98;
}

.iz-community-content__section-heading > p:last-child {
    max-width: 720px;
    margin: 1.25rem 0 0;
    color: var(--iz-community-copy);
    font-size: 1.08rem;
    line-height: 1.65;
}

.iz-community-content__events,
.iz-community-content__pillars,
.iz-community-content__membership,
.iz-community-content__paths {
    margin-bottom: clamp(5rem, 10vw, 9rem);
}

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

.iz-community-content__event-card {
    overflow: hidden;
    border: 1px solid var(--iz-community-line);
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: 0 18px 45px rgba(29, 24, 54, .07);
    transition: transform .2s ease, box-shadow .2s ease;
}

.iz-community-content__event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 52px rgba(29, 24, 54, .12);
}

.iz-community-content__event-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--iz-community-soft);
}

.iz-community-content__event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.iz-community-content__event-card-body {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr);
    gap: 1rem;
    padding: 1.4rem;
}

.iz-community-content__event-date {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    align-self: start;
    min-height: 3.5rem;
    border-radius: .85rem;
    color: var(--iz-community-ink);
    background: var(--iz-community-warm);
    line-height: 1;
}

.iz-community-content__event-date strong {
    font-size: 1.35rem;
}

.iz-community-content__event-date span {
    margin-top: .25rem;
    color: #c85709;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.iz-community-content__event-meta {
    margin: 0 0 .55rem;
    color: #c85709;
    font-size: .78rem;
    font-weight: 750;
}

.iz-community-content__event-card h3 {
    margin: 0;
    color: var(--iz-community-ink);
    font-size: 1.35rem;
    letter-spacing: -.025em;
    line-height: 1.15;
}

.iz-community-content__event-card h3 + p {
    margin: .8rem 0;
    color: var(--iz-community-copy);
    line-height: 1.55;
}

.iz-community-content__event-card a,
.iz-community-content__path a {
    color: #bd5005;
    font-weight: 750;
    text-decoration: none;
}

.iz-community-content__empty {
    padding: clamp(2rem, 5vw, 4rem);
    border: 1px solid #f1b581;
    border-radius: 1.75rem;
    background: var(--iz-community-warm);
}

.iz-community-content__empty h3 {
    max-width: 720px;
    margin: 0;
    color: var(--iz-community-ink);
    font-size: clamp(2rem, 4vw, 3.4rem);
    letter-spacing: -.045em;
    line-height: 1.05;
}

.iz-community-content__empty > p:not(.iz-community-content__eyebrow) {
    max-width: 700px;
    color: var(--iz-community-copy);
    font-size: 1.06rem;
    line-height: 1.6;
}

.iz-community-content__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.5rem;
}

.iz-community-content__path-grid,
.iz-community-content__membership-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.iz-community-content__path {
    min-height: 24rem;
    padding: clamp(2rem, 4vw, 3.25rem);
    border-radius: 1.75rem;
}

.iz-community-content__path > span,
.iz-community-content__pillar-grid article > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    color: var(--iz-community-ink);
    background: var(--iz-community-orange);
    font-size: .8rem;
    font-weight: 800;
}

.iz-community-content__path h3 {
    max-width: 520px;
    margin: 5rem 0 1rem;
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -.045em;
    line-height: 1;
}

.iz-community-content__path p {
    max-width: 520px;
    font-size: 1.06rem;
    line-height: 1.6;
}

.iz-community-content__path--ink {
    color: rgba(255, 255, 255, .78);
    background: var(--iz-community-ink);
}

.iz-community-content__path--ink h3,
.iz-community-content__path--ink a {
    color: #fff;
}

.iz-community-content__path--warm {
    color: var(--iz-community-copy);
    background: var(--iz-community-warm);
}

.iz-community-content__path--warm h3 {
    color: var(--iz-community-ink);
}

.iz-community-content__intro {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 8vw, 8rem);
    margin-bottom: clamp(5rem, 10vw, 9rem);
}

.iz-community-content__intro > div:last-child {
    padding-top: 1rem;
}

.iz-community-content__intro > div:last-child p {
    margin: 0 0 1.25rem;
    color: var(--iz-community-copy);
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    line-height: 1.65;
}

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

.iz-community-content__pillar-grid article {
    min-height: 20rem;
    padding: 2rem;
    border: 1px solid var(--iz-community-line);
    border-radius: 1.5rem;
    background: #fff;
}

.iz-community-content__pillar-grid h3 {
    margin: 4rem 0 .8rem;
    color: var(--iz-community-ink);
    font-size: 1.7rem;
    letter-spacing: -.035em;
}

.iz-community-content__pillar-grid p {
    color: var(--iz-community-copy);
    line-height: 1.65;
}

.iz-community-content__membership-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.iz-community-content__membership-grid article {
    padding: 2rem;
    border: 1px solid var(--iz-community-line);
    border-radius: 1.5rem;
    background: #fff;
}

.iz-community-content__membership-grid article.is-featured {
    color: #fff;
    border-color: var(--iz-community-ink);
    background: var(--iz-community-ink);
    box-shadow: 0 20px 50px rgba(29, 24, 54, .15);
}

.iz-community-content__membership-grid p {
    margin: 0 0 2.75rem;
    color: #c85709;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.iz-community-content__membership-grid h3 {
    margin: 0 0 .75rem;
    font-size: 2rem;
}

.iz-community-content__membership-grid span {
    display: block;
    color: var(--iz-community-copy);
    line-height: 1.6;
}

.iz-community-content__membership-grid .is-featured span {
    color: rgba(255, 255, 255, .75);
}

.iz-community-content__callout {
    display: grid;
    align-items: end;
    grid-template-columns: minmax(0, 1.2fr) auto;
    gap: 2rem;
    padding: clamp(2rem, 5vw, 4rem);
    border: 1px solid #f1b581;
    border-radius: 1.75rem;
    background: var(--iz-community-warm);
}

.iz-community-content__callout h2 {
    max-width: 800px;
    font-size: clamp(2.25rem, 4.7vw, 4rem);
}

.iz-community-content__callout h2 + p {
    max-width: 700px;
    margin: 1.25rem 0 0;
    color: var(--iz-community-copy);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .iz-community-content__hero .iz-community-content__inner,
    .iz-community-content__intro,
    .iz-community-content__callout {
        grid-template-columns: 1fr;
    }

    .iz-community-content__hero .iz-community-content__eyebrow {
        margin-bottom: 0;
    }

    .iz-community-content__event-grid,
    .iz-community-content__pillar-grid,
    .iz-community-content__membership-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .iz-community-content__membership-grid article:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .iz-community-content__hero {
        padding: 4rem 0;
    }

    .iz-community-content__hero h1 {
        font-size: clamp(2.9rem, 14vw, 4rem);
    }

    .iz-community-content--opportunities .iz-community-content__hero > .iz-community-content__inner > p:not(.iz-community-content__eyebrow),
    .iz-community-content--academy .iz-community-content__hero > .iz-community-content__inner > p:not(.iz-community-content__eyebrow) {
        padding-left: 1rem;
    }

    .iz-community-content__hero-actions,
    .iz-community-content__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .iz-community-content__button {
        width: 100%;
    }

    .iz-community-content__event-grid,
    .iz-community-content__path-grid,
    .iz-community-content__pillar-grid,
    .iz-community-content__membership-grid {
        grid-template-columns: 1fr;
    }

    .iz-community-content__membership-grid article:last-child {
        grid-column: auto;
    }

    .iz-community-content__path {
        min-height: 21rem;
    }

    .iz-community-content__path h3 {
        margin-top: 3.75rem;
    }

    .iz-community-content__event-card-body {
        grid-template-columns: 3.25rem minmax(0, 1fr);
        padding: 1.15rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .iz-community-content__button,
    .iz-community-content__event-card {
        transition: none;
    }
}
