#fill_animation {
    color: #584545;
}

@keyframes fill-text {
    from {
        color: #584545;
    }
    to {
        color: white;
    }
}

#fill_animation span {
    animation: fill-text 1s forwards;
    animation-play-state: paused;
}

.leadership_div {
    position: relative;
}

.leadership_image{
    width: 75%;
    height: 30rem;
    object-fit: cover;
    transition: 0.5s ease-in-out;
}

.leadership_div:hover .leadership_image {
    width: 100%;
}

.leadership_div:hover > .leadership_overlay {
    display: block !important;
    width: 100%;
}

.leadership_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30rem;
    background-color: rgba(158, 158, 158, 0.9);
    transition: width 0.5s ease-in-out;
    display: none;
}

@media (min-width: 768px) {
  #our_leadership .row {
    display: flex;
    flex-wrap: wrap;
  }

  #our_leadership .leadership_div {
    flex: 1 1 0%;
    width: auto;
    max-width: none;
    transition: flex 0.45s ease-in-out;
  }

  #our_leadership .leadership_div:hover {
    flex: 3 1 0%;
  }

  #our_leadership .row:hover .leadership_div:not(:hover) {
    flex: 1 1 0%;
  }
}

.team_image {
    object-fit: cover;
    transition: 0.5s ease-in-out;
}

.team_image:hover {
    width: 100% !important;
}

.carousel-wrapper {
    margin: 2rem auto;
    /* Add bottom margin to make space for the indicators below */
    margin-bottom: 3.75rem; /* 60px / 16 */
}

.custom-carousel-container {
    border-radius: 0.9375rem; /* 15px / 16 */
    overflow: hidden;
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.15); /* 8px & 20px / 16 */
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 35rem; /* 500px / 16 */
    object-fit: cover;
}

/* --- ARROW CONTROL BACKGROUND --- */
.carousel-control-prev,
.carousel-control-next {
    background-color: transparent;
    background-image: none;
    opacity: 1; 
    width: 3rem;
}

.carousel-control-prev, .carousel-control-next {
    background: rgba(255,255,255,.5);
}

/* --- INDICATOR STYLING --- */

.office-carousel-indicators {
    position: static;
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.office-carousel-indicators [data-bs-target] {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    background-color: #d4d4d4;
    opacity: 1;
    border: none;
    margin: 0 0.3rem;
}

.office-carousel-indicators .active {
    width: 0.9rem;
    height: 0.9rem;
    background-color: #1E3D82;
}

#about_us_text p {
    position: absolute;
    top: 8rem;
}

#about_us_text h1{
    top: 20rem;
    text-underline-offset: 4rem;
}

#about_us_text h2{
    top: 25rem;
    right: -75%;
}

@media screen and (min-width: 992px) {

    #about_us_text h1{
        top: 20rem;
        text-underline-offset: 4rem;
        right: 0%;
    }

    #about_us_text h2 {
        top: 25rem;
        right: -100%;
    }
    
}

@media screen and (min-width: 1440px) {

    #about_us_text h1{
        top: 20rem;
        text-underline-offset: 4rem;
        right: 0%;
    }

    #about_us_text h2 {
        top: 25rem;
        right: -50%;
    }
    
}