.about-kpis {
    display: flex;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 100%;
}

.kpi-box {
    width: 33.3333%;
    padding-left: 1rem;
    padding-right: 1rem;
    text-align: center;
}

@media (min-width: 1024px) {
    .kpi-box {
        padding-top: 4.5rem;
    }
}

@media (min-width: 768px) {
    .kpi-box {
        width: 33.3333%;
    }
}

.kpi-box-content {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    position: relative;
    background-color: #f9f6f6;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
}

.kpi-box-content div {
    color: #f9f6f6;
    padding: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 50%;
}

.kpi-box-content h6 {
    font-size: 1.25rem;
    font-weight: 600;
}
.kpi-box-content p {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    color: #718096;
}

.kpi-circle-content {
    font-size: 2rem;
    font-weight: 600;
}

.about-bottom {
    padding-bottom: 5rem;
    margin-top: -9.5rem;
    background-color: #765798;
}

.about-desc {
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    margin-right: auto;
    margin-left: auto;
    margin-top: 2.5rem;
    text-align: center;
    color: #f7fafc;
}

.about-desc h3 {
    font-size: 1.875rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.5;
}

.about-desc p {
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.625;
    margin-top: 0;
    margin-bottom: 1rem;

}

.carousel-container {
    position: relative;
    width: 100%;
    padding-left: 5rem;
    padding-right: 5rem;    
}

.carousel-bg [data-carousel-item] {
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

.carousel-bg {
    position: relative;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    background-color: #8c012c;
}

.carousel-bg div {
    transition-duration: 700ms;
    transition-timing-function: ease-in-out;
    width: 100%;
    vertical-align: middle;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    position: relative;
}

.carousel-bg .hidden {
    display: none; /* Hide non-active items */
}

.carousel-bg .active {
    display: inline-block; 
    /* Show the active item */
}

.carousel-info-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    color: #f7fafc;
}
.carousel-info-block h4 {
    font-size: 1.25rem;
    font-weight: 700;
}

.carousel-info-block p {
    font-size: 0.875rem;
    font-weight: 300;
    margin-top: 0.5rem;
}

.carousel-image {
    width: 100%;
    vertical-align: middle;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    display: inline-block
}

.carousel-caption {
    padding: 0.5rem;
    background-color: white;
    font-size: 16px;
    font-weight: bold;
    opacity: 0.6;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.carousel-caption .photographer {
    font-size: 12px;
  }  

.next-image-button {
    top: 5px;
    position: absolute;
    z-index: 30;
    height: 73%;
    cursor: pointer;
    outline: none;
    stroke-width: 5;
}

.prev-image-button {
    top: 5px;
    position: absolute;
    left: 0;
    margin-left: 30px;
    height: 73%;
    cursor: pointer;
    outline: none;
    stroke-width: 5;
}

.arrow-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    outline: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.5);
    transition: background-color 0.3s ease;
    &:hover {
        background-color: rgba(255, 255, 255, 0.5);
    }

    &:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7);
    }

    /* Dark mode hover and focus states */
    @media (prefers-color-scheme: dark) {
        background-color: rgba(32, 39, 50, 0.3);
        &:hover {
            background-color: rgba(32, 39, 50, 0.6);
        }
        &:focus {
            box-shadow: 0 0 0 3px rgba(32, 39, 50, 0.7);
        }
    }
}

.about-header-overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 0.6;
    background-color: #000;
}
.about-header-block {
    position: relative;
    padding-top: 12rem;
    display: flex;
    justify-content: center;
    min-height: 75vh;
}
.about-header-bg-img {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
}

.about-header-text {
    position: relative;
    text-align: center;
}

.about-header-text h1 {
    color: #f9f6f6;
    font-weight: 600;
    font-size: 3.25rem;
    line-height: 1.2;
}


.about-header-text p {
    margin-top: 1rem;
    font-size: 1.125rem;
    color: #cbd5e0;
}

.carousel-picture {
    height: 100%;
    width: 100%;
}

.carousel-picture img {
    width: 100%;
    height: auto;
    height: 75vh;
    object-fit: cover;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.testing {
    max-width: 100px;
}

@media (max-width: 767px) {
    .about-kpis {
        margin-top: 10vh;
        display: flex;
        flex-direction: column;
    }
    .kpi-box {
        width: 100%;
    }
    .about-desc {
        margin-top: 1rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 90%;
    }
    .carousel-bg {
        width: fit-content;
        margin-left: 5vw;
        margin-right: 5vw;
    }
    .carousel-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 0;
    }
}
