p {
    position: static !important;
    opacity: 1 !important; 
}

html {
    scroll-behavior: smooth;
}

.careers-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.careers-hero__content {
    text-align: center;
    max-width: 900px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.careers-hero h1 {
    font-style: normal;
    font-size: 3rem;
}

.careers-hero p {
    font-size: 1.2rem;
    color: #26667F;
    margin: 0 auto;
}

.careers-hero__parallax-container {
    width: 100%;
    margin-top: -200px;
    max-width: 1350px;
    height: 600px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.careers-hero__parallax-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, #DDF4E7 25%, transparent);
    z-index: 2;
    pointer-events: none;
}

.careers-hero__parallax-image {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 130%; 
    object-fit: cover;
    z-index: 1;
}

.careers-hero__content .primary {
    margin: 20px 0px;
    border-radius: 20px;
}

.careers-team-carousel {
    padding: 120px 0;
    position: relative;
    z-index: 5;
}

.careers-team-carousel__viewer {
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    height: 600px;
    position: relative;
    overflow: hidden; 
}

.careers-team-carousel__stage {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
}

.careers-team-carousel__slide {
    width: 700px;
    height: 500px;
    margin: 0 40px;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(18, 65, 112, 0.1);
    transform: scale(0.8);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.careers-team-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.careers-team-carousel__slide.is-active {
    transform: scale(1) rotate(0deg);
}

.careers-team-carousel__slide.is-prev {
    transform: translateY(-45px) scale(0.8) rotate(15deg);
}

.careers-team-carousel__slide.is-next {
    transform: translateY(-45px) scale(0.8) rotate(-15deg);
}

.careers-team-carousel__nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.careers-team-carousel__btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(18, 65, 112, 0.2);
    background-color: transparent;
    color: #124170;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.careers-team-carousel__btn:hover {
    background-color: #124170;
    color: #FFFFFF;
}

.careers-dna {
    padding: 120px 0px;
}

.careers-dna__header {
    max-width: 1350px;
    margin: 0 auto 60px;
    text-align: center;
}

.careers-dna h2 {
    font-style: normal;
    font-size: 2.5rem;
}

.careers-dna__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1350px;
    margin: 0 auto;
    column-gap: 80px;
    row-gap: 40px;
}

.careers-dna__item {
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(18, 65, 112, 0.2);
}

.careers-dna__grid .careers-dna__item:nth-last-child(-n+2) {
    border-bottom: none;
}

.careers-dna__title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.careers-dna__icon {
    font-size: 1.5rem;
    color: #124170;
}

.careers-dna__item h3 {
    font-size: 1.25rem;
    margin: 0;
    color: #124170;
}

.careers-dna__item p {
    margin: 0;
    line-height: 1.6;
    color: #26667F;
}

@media screen and (max-width: 768px) {
    .careers-dna__grid {
        grid-template-columns: 1fr;
    }

    .careers-dna__grid .careers-dna__item:nth-last-child(-n+2) {
        border-bottom: 1px solid rgba(18, 65, 112, 0.2);
    }
    .careers-dna__grid .careers-dna__item:last-child {
        border-bottom: none;
    }
}

.careers-benefits {
    padding: 120px 0px;
}

.careers-benefits__header {
    max-width: 1350px;
    margin: 0 auto 60px;
}

.careers-benefits h2 {
    font-size: 3.5rem;
}

.careers-benefits__header p {
    font-size: 1.5rem;
    color: #26667F;
    max-width: 100%;
}

.careers-benefits__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1350px;
    margin: 0 auto;
}

.careers-benefits__card {
    background-image: none !important;
    background-color: #FFFFFF;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(18, 65, 112, 0.07);
}

.careers-benefits__icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 24px;
}

.careers-benefits__card h3 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 12px;
    color: #124170;
}

.careers-benefits__card p {
    position: static;
    opacity: 1;  
    margin: 0;
    line-height: 1.6;
    color: #124170;
}

@media screen and (max-width: 768px) {
    .careers-benefits__grid {
        grid-template-columns: 1fr;
    }
}

.careers-founder-story {
    background-color: #26667F;
    padding: 120px 20px;
}

.careers-founder-story__container {
    max-width: 1350px;
    margin: 0 auto;
}

.careers-founder-story__container img {
    object-fit: fill;
}

.careers-founder-story__photo {
    width: 100%;
    height: 600px;
    border-radius: 16px;
    display: block;
    margin-bottom: 40px;
}

.careers-founder-story__grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 32px;
    align-items: start;
}

.careers-founder-story__heading h2 {
    font-size: 2.5rem;
    color: #FFFFFF !important;
    margin: 0;
    font-style: normal;
    opacity: 1 !important;
}

.careers-founder-story__text p {
    font-size: 1.5rem;
    line-height: 1.7;
    color: #FFFFFF; 
    margin: 0;
    opacity: 1 !important;
    max-width: 100%;
}

@media screen and (max-width: 768px) {
    .careers-founder-story__grid {
        grid-template-columns: 1fr;
    }
}

.careers-investors {
    background-color: #124170;
    padding: 120px 20px;
    color: #FFFFFF;
}

.careers-investors__container {
    max-width: 1350px;
    margin: 0 auto;
}

.careers-investors h2 {
    font-size: 2.5rem;
    font-style: normal;
    margin-bottom: 40px;
}

/* --- Filter Navigation Styling --- */
.careers-investors__filters {
    display: flex;
    margin-bottom: 40px;
}

.careers-investors__filters ul {
    position: relative; /* Needed for the sliding bar */
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

/* This is the sliding bar */
.careers-investors__filters ul::before {
    content: '';
    position: absolute;
    top: 6px;
    left: var(--bar-left, 6px); /* Use CSS variable for JS control */
    width: var(--bar-width, 0px);
    height: calc(100% - 12px);
    background-color: #FFFFFF;
    border-radius: 8px;
    transition: left 0.4s cubic-bezier(0.25, 1, 0.5, 1), width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.careers-investors__filters .filter-btn {
    padding: 10px 20px;
    border: none;
    background-color: transparent;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative; /* Ensure button text is on top of the bar */
    z-index: 1;
}

.careers-investors__filters .filter-btn.is-active {
    color: #124170;
}

/* --- Grid and Card Styling --- */
.careers-investors__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.investor-card {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1.6 / 1;
    /* Added transition for the shrink/expand animation */
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* This new class will be used by JS to trigger the shrink animation */
.investor-card.is-shrinking {
    transform: scale(0.9);
    opacity: 0;
}

.investor-card.is-hidden {
    display: none;
}

.investor-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.investor-card:hover .investor-card__image {
    transform: scale(1.05);
}

.investor-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.7) 100%);
}

.investor-card__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    color: #FFFFFF;
    font-size: 0.9rem;
    line-height: 1.4;
}

.investor-card__caption span {
    opacity: 0.7;
}

@media screen and (max-width: 992px) {
    .careers-investors__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .careers-investors__grid {
        grid-template-columns: 1fr;
    }
}
.careers-openings {
    background-color: #124170;
    padding: 120px 20px;
    color: #FFFFFF;
}

.careers-openings__container {
    max-width: 1000px;
    margin: 0 auto;
}

.careers-openings__header {
    text-align: center;
    margin-bottom: 40px;
}

.careers-openings__header h2 {
    font-size: 2.5rem;
    font-style: normal;
}

.careers-openings__filters {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.openings-filter {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    min-width: 200px;
}

.openings-filter:focus {
    outline: 2px solid #FFFFFF;
}

.opening-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: #FFFFFF;
    transition: transform 0.3s ease, opacity 0.3s ease; /* For animation */
}

.opening-item h3 {
    margin: 0 0 12px 0;
    font-size: 1.25rem;
}

.opening-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.opening-item__arrow {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-left: 24px;
    transition: background-color 0.3s ease;
}

.opening-item:hover .opening-item__arrow {
    background-color: #FFFFFF;
    color: #124170;
}

.opening-item.is-shrinking {
    transform: scale(0.95);
    opacity: 0;
}

.opening-item.is-hidden {
    display: none;
}

.opening-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: #FFFFFF;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative; /* Added to position the progress bar */
}

/* This new pseudo-element is the progress bar */
.opening-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0; /* Starts at 0 width */
    height: 1px;
    background-color: #FFFFFF; /* The color of the bar as it progresses */
    transition: width 0.4s ease; /* The animation */
}

/* This triggers the animation on hover */
.opening-item:hover::after {
    width: 100%; /* Expands to full width */
}

.careers-video-section {
    padding: 60px 20px 120px; /* Add some space around the video */
    /* This section has a transparent background as requested */
}

.video-player-wrapper {
    position: relative;
    height: 0;
    overflow: hidden;
    max-width: 1350px;
    height: 700px;
    margin: 0 auto;
    border-radius: 16px; /* Rounded corners for the video player */
    box-shadow: 0 10px 30px rgba(18, 65, 112, 0.1);
}

.video-player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- START: Mobile Carousel Styles --- */
@media screen and (max-width: 768px) {
    .careers-team-carousel {
        padding: 80px 0; /* Reduce vertical padding */
    }

    .careers-team-carousel__viewer {
        height: 450px; /* Adjust height for smaller screens */
    }

    .careers-team-carousel__slide {
        width: 280px; /* Make the slides much narrower */
        height: 350px;
        margin: 0 15px; /* Reduce the margin between slides */
    }

    /* Adjust the position of the smaller side slides */
    .careers-team-carousel__slide.is-prev {
        transform: translateY(-20px) scale(0.85) rotate(15deg);
    }

    .careers-team-carousel__slide.is-next {
        transform: translateY(-20px) scale(0.85) rotate(-15deg);
    }
}
/* --- END: Mobile Carousel Styles --- */