/*
==========================================================================
## Opportunity Page Hero Button
==========================================================================
*/
.page-hero-section {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    color: var(--clr-white);
	
}

.page-hero-picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    padding: var(--space-4);
}

.page-hero-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: var(--fw-regular);
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-hero-content .page-hero-button {
    display: inline-block;
    background-color: var(--clr-white);
    color: var(--clr-primary);
    padding: var(--space-3) var(--space-5);
    font-family: var(--font-primary);
    text-transform: uppercase;
    font-weight: var(--fw-light);
    letter-spacing: 2px;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-speed);
    margin-top: var(--space-4);
}

.page-hero-content .page-hero-button:hover {
    background-color: var(--clr-secondary);
    color: var(--clr-white);
}


/*
==========================================================================
## Opportunity Content Section
==========================================================================
*/


.opportunity-content-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    /* background-color: var(--clr-white); */
}

/* Reverse layout for even-numbered blocks for visual variety */
.opportunity-content-section:nth-child(odd) .opportunity-content-block {
    grid-template-columns: 1fr 1fr;
}

.opportunity-content-section:nth-child(odd) .opportunity-item-image {
    order: 2;
    /* Move image to the right */
}

.opportunity-content-section:nth-child(odd) .opportunity-item-content {
    order: 1;
    /* Move content to the left */
}

.opportunity-item-content {
    margin-left: var(--space-5);

}

.opportunity-item-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    max-height: 500px;
}

.opportunity-item-title {
    font-family: var(--font-primary);
    font-weight: var(--fw-regular);
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--clr-gray-700);
    margin: 0 0 var(--space-4);
}

.opportunity-item-text {
    font-family: var(--font-headings);
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--clr-text);
}

.opportunity-item-text p {
    margin-bottom: var(--space-4);
}

.opportunity-item-text p:last-child {
    margin-bottom: 0;
}

.opportunity-item-button {
    display: inline-block;
    background-color: var(--clr-primary);
    color: var(--clr-white);
    padding: var(--space-3) var(--space-5);
    font-family: var(--font-primary);
    text-transform: uppercase;
    font-weight: var(--fw-light);
    letter-spacing: 2px;
    border-radius: 0;
    transition: all var(--transition-speed);
    margin-top: var(--space-5);
}

.opportunity-item-button:hover {
    background-color: var(--clr-secondary);
}

.opportunity-item-content {
    padding: var(--space-5);
    max-width: 70%;
}

/*
==========================================================================
## Mobile Optimisation for Content Blocks
==========================================================================
*/
@media (max-width: 992px) {

    .opportunity-content-block,
    .opportunity-content-section:nth-child(even) .opportunity-content-block {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .opportunity-content-section:nth-child(even) .opportunity-item-image,
    .opportunity-content-section:nth-child(even) .opportunity-item-content {
        order: initial;
        /* Reset order for stacking */
    }

    .opportunity-item-content {
        margin-left: 0;
    }
}


/*
==========================================================================
## Special Highlight for Second Section
==========================================================================
*/
.opportunity-section-highlight {
    background-color: var(--clr-primary);
    /* Dark blue background */
}

/* Make text readable on the dark background */
.opportunity-section-highlight .opportunity-item-title {
    color: var(--clr-white);
}

.opportunity-section-highlight .opportunity-item-text {
    color: var(--clr-white);
    opacity: 0.9;
}

/* Invert button colors for contrast */
.opportunity-section-highlight .opportunity-item-button {
    background-color: var(--clr-white);
    color: var(--clr-primary);
}

.opportunity-section-highlight .opportunity-item-button:hover {
    background-color: var(--clr-secondary);
    color: var(--clr-white);
}

/*
==========================================================================
## Opportunity Specialist Section
==========================================================================
*/
.opportunity-specialist-section {
    background-color: var(--clr-bg);
    padding: var(--space-6);
    text-align: left;
}

.opportunity-specialist-section .header-title {
    text-align: left;
    margin-left: 0;
    max-width: 100%;
    font-size: 1.8rem;
}

.opportunity-specialist-section .header-eyebrow {
    text-align: left;
    margin-left: 0;
}

.specialist-item-title {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-weight: var(--fw-regular);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--clr-text);
    margin: 0 0 var(--space-4);
    line-height: 1.4;
}

.specialist-item-desc {
    font-family: var(--font-headings);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--clr-gray-700);
}

.specialist-item-desc p:last-child {
    margin-bottom: 0;
}

.specialist-item-link {
    display: inline-block;
    margin-top: var(--space-4);
    font-family: var(--font-headings);
    font-weight: var(--fw-bold);
    text-decoration: underline;
    text-underline-offset: 4px;
    color: var(--clr-text);
    transition: color var(--transition-speed);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.specialist-item-link:hover {
    color: var(--clr-secondary);
}

/*
==========================================================================
## Specialist Section Slider Styles
==========================================================================
*/

/* Mobile-first: Default styles for the slider */
#opportunity-specialist-slider .splide__slide {
    height: 100%;
    /* Ensure slides match height if content varies */
}

#opportunity-specialist-slider .specialist-item {
    padding: var(--space-4);
    border-radius: var(--border-radius-md);
    height: 100%;
    display: flex;
    flex-direction: column;
}

#opportunity-specialist-slider .specialist-item-desc {
    flex-grow: 1;
    /* Pushes link to the bottom */
}

#opportunity-specialist-slider .splide__pagination {
    position: static;
    margin-top: var(--space-5);
    padding: 0;
}

#opportunity-specialist-slider .splide__pagination__page {
    background: rgba(0, 45, 143, 0.4);
    width: 10px;
    height: 10px;
    margin: 0 5px;
    opacity: 1;
    border: none;
    transition: all var(--transition-speed);
}

#opportunity-specialist-slider .splide__pagination__page.is-active {
    background: var(--clr-primary);
    transform: scale(1.3);
}

/* Desktop: Revert to grid layout */
@media (min-width: 993px) {
    #opportunity-specialist-slider .splide__track {
        overflow: visible;
    }

    #opportunity-specialist-slider.is-initialized .splide__list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-6);
        margin-top: var(--space-5);
    }

    #opportunity-specialist-slider .splide__slide {
        width: auto;
    }

    #opportunity-specialist-slider .splide__pagination {
        display: none;
    }

    /* Reset mobile-specific styles for the items */
    #opportunity-specialist-slider .specialist-item {
        background-color: transparent;
        padding: 0;
        border-radius: 0;
    }
}


/* Responsive styles for the specialist section */
@media (max-width: 992px) {
    .opportunity-specialist-section {
        text-align: center;
    }

    .opportunity-specialist-section .header-title,
    .opportunity-specialist-section .header-eyebrow {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .specialist-item {
        text-align: left;
    }
	
	.page-hero-content {
    min-height: 600px;
    width: 100%;
    display: flex;
	justify-content:center;
    align-items: flex-end;

}
}



.opportunity-item-button.pink-button {
    background-color: var(--clr-secondary);
}

.opportunity-item-button.pink-button:hover {
    color: white;
    background-color: var(--clr-primary);
}



@media (max-width: 768px) {
    .page-hero-section {
        min-height: 600px;
    }

    .page-hero-title {
        font-size: 1.8rem;
    }

    .opportunity-item-content {
        max-width: 100%;
    }

    .opportunity-item-content {
        margin-left: 0;
    }
	
	.opportunity-content-section:nth-child(odd) .opportunity-content-block{
		grid-template-columns: 1fr;
	}
	.opportunity-content-section:nth-child(odd) .opportunity-item-image{
		order:1;
	}
	.opportunity-content-section:nth-child(odd)  .opportunity-item-content{
		order:2;
	}
	.opportunity-specialist-section{
		padding: var(--space-4) 0;
	}
	.opportunity-specialist-section .container {
		padding-right:0;
	}
	.opportunity-specialist-section .header-title{
		font-size:1.4rem
	}
	.opportunity-item-image img{
		aspect-ratio:auto;
	}
	
}