.home-facts {
    background-image: url('../../img/home/home-background.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    padding-top: 3rem;
    padding-bottom: 10.3125rem;
    position: relative;
}

.home-facts__images {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
}

.home-facts__image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.home-facts__image--top {
    position: relative;
    z-index: 1;
    max-width: 80%;
}

.home-facts__image--bottom {
    position: relative;
    max-width: 80%;
    margin-top: -12%;
    z-index: 1;
}

.home-facts__image--center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 100%;
    z-index: 2;
}

.home-facts__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 550px;
}

.home-facts__title {
    font-family: var(--font-secondary);
    text-align: center;
    margin-bottom: 1.875rem;
}

.home-facts__title-main {
    display: inline-block;
    align-items: center;
    color: var(--color-accent);
    background-color: var(--color-primary);
    width: 188px;
    padding: 0.25rem 0.5rem;
    font-size: 1.875rem;
    font-weight: 800;
    text-transform: uppercase;
}

.home-facts__title-sub {
    display: block;
    color: var(--color-primary);
    font-size: 1.875rem;
    line-height: 2.75rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.home-facts__facts {
    margin-bottom: 1.25rem;
    width: 100%;
    max-width: 600px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.home-facts__fact {
    display: none;
}

.home-facts__fact.active {
    display: flex;
    flex-direction: column;
}

.home-facts__fact-title {
    font-family: var(--font-secondary);
    text-align: center;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    color: var(--color-primary);
    font-size: 50px;
    font-weight: 800;
    line-height: 44px;
}

.home-facts__fact-text {
    font-family: var(--font-primary);
    color: var(--color-primary);
    font-size: 18px;
    font-weight: 400;
    text-align: center;
    line-height: 23px;
    max-width: 360px;
    margin: 0 auto;
}

.home-facts__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    margin-bottom: 2.5rem;
}

.home-facts__controls-and-button {
    width: 100%;
}

.home-facts__arrow {
    background: none;
    border: 1px solid rgba(14, 12, 9, 0.5);
    cursor: pointer;
    height: 45px;
    width: 45px;
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.home-facts__arrow img {
    width: 18px;
    height: auto;
}

.home-facts__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: var(--font-primary), sans-serif;
    font-size: 1.125rem;
    font-weight: 500;
    text-align: left;
    padding: 0.75rem 1.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    width: 100%;
    height: 3.4375rem;
    background-color: var(--color-primary);
    color: #FFFFFF;
}

.home-facts__button:active {
    background-color: #000000;
}

@media (min-width: 769px) {
    .home-facts {
        padding-block: 3.75rem;
    }

    .home-facts-wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        height: 100%;
    }

    .home-facts__images {
        width: 50%;
        margin-bottom: 0;
        height: 620px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .home-facts__image {
        display: block;
        width: 100%;
        height: auto;
        margin: 0 auto;
    }

    .home-facts__content {
        width: 50%;
        max-width: 470px;
        align-items: center;
        height: 490px;
    }

    .home-facts__title {
        margin-bottom: 1.8125rem;
    }

    .home-facts__title-main {
        width: auto;
        font-size: 2.5rem;
        line-height: 2.25rem;
    }

    .home-facts__title-sub {
        font-size: 2.5rem;
        line-height: 2.25rem;
    }

    .home-facts__facts {
        margin-bottom: 1.5625rem;
    }

    .home-facts__fact-title {
        font-size: 70px;
        font-weight: 800;
        text-align: center;
        line-height: 60px;
    }

    .home-facts__fact-text {
        font-size: 20px;
        font-weight: 400;
        text-align: center;
        line-height: 25px;
        max-width: 100%;
        margin: 0;
    }

    .home-facts__controls {
        justify-content: flex-start;
        gap: 1.5rem;
        margin-bottom: 0;
    }

    .home-facts__controls-and-button {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
        justify-content: center;
        width: auto;
    }

    .home-facts__arrow:hover {
        background-color: #ABA8A1;
        border: none;
    }

    .home-facts__button {
        width: auto;
        padding: 1rem 2rem;
        font-size: 1.125rem;
        height: auto;
    }

    .home-facts__button:hover {
        background-color: #44423E;
        transform: translateY(-2px);
    }

    .home-facts__button:active {
        background-color: #000000;
    }
}

@media (max-width: 768px) {
    .home-facts__images {
        max-width: 100%;
    }
}