/*------------------------------------------------
Objective Card
------------------------------------------------*/
.objective-card {
    border-radius: var(--border-radius);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.objective-card * {
    text-align: center;
}

.objectives-divider {
    --_min-height: 0;
}
.objectives-divider .shape {
    position: absolute;
    left: 0;
    top: 20%;
    translate: 0 -50%;
    max-width: clamp(80px, 9%, 180px);
    z-index: 1;
}

/*------------------------------------------------
Objectives Sldier
------------------------------------------------*/
.objectives-slider {
    --_pagination-height: 2rem;
    --_pagination-size: 10px;
    --_pagination-large-size: 15px;

    padding-top: var(--_pagination-height);
}
.objectives-slider .wp-block-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.objectives-slider .wp-block-image {
	translate: 0 50px;
	margin-right: -50px;
	margin-left: -30px;
}
.objectives-slider .number {
    font-size: 4rem;
    font-weight: bold;
}
.objectives-slider .swiper-pagination {
    height: var(--_pagination-height);
    border-radius: 500px;
}
.objectives-slider .swiper-horizontal > .swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal {
	line-height: var(--_pagination-size);
	top: 0;
	bottom: auto;
    left: 50%;
    translate: -50% 0%;
    width: fit-content;
    background-color: var(--wp--preset--color--background);
}
.objectives-slider .swiper-pagination-bullet {
	background-color: var(--wp--preset--color--background);
	border-radius: 50px;
	height: var(--_pagination-size);
    width: fit-content;
	outline: none;
    padding: 7px 10px;
    border-radius: 500px;
    transition: background-color 0.25s ease, opacity 0.25s ease, color 0.25s ease;
}
.objectives-slider .swiper-pagination-bullet-active {
	scale: 1;
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--background);
}
.objectives-slider .swiper-pagination-bullet:not(.swiper-pagination-bullet-active):hover {
    background-color: var(--wp--preset--color--primary-alt);
    color: var(--wp--preset--color--);
    opacity: 0.7;
}
.objectives-slider .wp-block-column:has(p) {
		padding-bottom: 3rem;
	}
@media screen and (max-width: 780px) {
	.objectives-slider .wp-block-column p:last-of-type {
		min-height: 105px;
	}
	.objectives-slider .wp-block-column:has(p) {
		translate: 0 40px;
		padding-bottom: 0;
	}
}
@media screen and (max-width: 500px) {
	.objectives-slider .wp-block-column p:last-of-type {
		min-height: 140px;
	}
}

.who-we-are-divider {
	margin-top: calc(var(--_min-height) * -1);
	background-color: transparent !important;
}

/*------------------------------------------------
Who We Are
------------------------------------------------*/
.who-we-are-wrapper {
    --_image-size: 500px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.who-we-are .image-column {
    position: relative;
    max-height: var(--_image-size);
    position: sticky;
    top: calc(52% - (var(--_image-size) / 2) - var(--wp-admin--admin-bar--position-offset, 0px));
}
.who-we-are .image-wrapper {
    position: absolute;
    inset: 50% 0 auto 0;
    translate: 0 -50%;
    max-width: var(--_image-size);
    margin: 0;
    opacity: 0;
    will-change: opacity;
    transition: opacity 0.15s ease;
}
.who-we-are .image-wrapper:first-of-type {
    opacity: 1;
}
.who-we-are .image-wrapper figure:not(:first-of-type) {
    position: absolute;
    inset: 0;
}
.who-we-are .image-wrapper figure img {
    width: 100%;
    will-change: opacity;
}

.who-we-are .content-column > .wp-block-group {
    min-height: var(--_image-size);
    max-width: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media screen and (max-width: 650px) {
    .who-we-are-wrapper {
        grid-template-columns: 1fr;
    }
    .who-we-are :is(.image-column, .content-column) {
        display: contents;
        position: static;
    }
    .who-we-are :is(.image-column, .content-column) > .wp-block-group {
        min-height: auto;
    }
    .who-we-are .image-wrapper {
        opacity: 1 !important;
        position: relative;
        translate: unset;
        inset: unset;
    }
    .who-we-are .content-wrapper {
        text-align: center;
        margin-bottom: 3rem;
    }
    .who-we-are .content-wrapper:nth-of-type(1) { grid-row: 2; }
    .who-we-are .content-wrapper:nth-of-type(2) { grid-row: 4; }
    .who-we-are .content-wrapper:nth-of-type(3) { grid-row: 6; }
}

.who-we-are .image-wrapper figure:nth-of-type(1) {
    animation: who-we-are-scale infinite 10s ease-in-out;
}
.who-we-are .image-wrapper figure:nth-of-type(2) {
    animation: who-we-are-bob-diagonal infinite 7s ease-in-out;
}
.who-we-are .image-wrapper figure:nth-of-type(3) {
    translate: 0 10px;
    animation: who-we-are-bob-up-down infinite 8s ease-in-out;
}
.who-we-are .image-wrapper figure:nth-of-type(4) {
    animation: who-we-are-bob-down-up infinite 9s ease-in-out;
}


/*------------------------------------------------
Activity Clusters
------------------------------------------------*/
.activity-cluster-accordion {
    --_transition-duration: 0.2s;
    --_accordion-spacing: 1rem;

    background-color: transparent;
    border-radius: var(--border-radius);
    transition: background-color var(--_transition-duration) ease;
    position: relative;
    margin: var(--_accordion-spacing) 0;
}
.activity-cluster-accordion > summary {
    padding: 1rem 1.2rem;
    color: var(--wp--preset--color--background);
    display: flex;
	align-items: center;
    position: relative;
}
.activity-cluster-accordion::before {
    content: '';
    position: absolute;
    inset: auto var(--border-radius) calc(var(--_accordion-spacing) * -0.5);
    height: 1px;
    background-color: var(--wp--preset--color--background);
}

.activity-cluster-accordion > summary::before {
    content: '';
    width: 70px;
	height: 25px;
    background-image: url("https://ahead.africa/wp-content/uploads/2024/09/partner-accordion-wifi.webp");
    background-size: contain;
    background-repeat: no-repeat;
}

.activity-cluster-accordion > summary::after {
    content: '+';
    font-weight: 400;
    color: var(--wp--preset--color--tertiary);
    position: absolute;
    inset: 50% 17px 0 auto;
    translate: 0 -50%;
    line-height: 1;
    font-size: 25px;
	width: 15px;
	height: 15px;
}
.activity-cluster-accordion[open] > summary::after {
    content: '-';
}

.partner-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
}
.partner-card * {
    margin: 0 !important;
    color: var(--wp--preset--color--background);
}
.partner-card figure {
    max-height: 80px;
}
.partner-card figure img {
    height: 100%;
    object-fit: contain;
    object-position: left center;
}