/* Ensure content stays above the background */
.hover-content-section * {
    position: relative;
    z-index: 1;
}

.hover-content-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    text-align: left;
    padding: 30px;
}

.hover-content-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    background-size: cover;
    background-position: center;
    transition: filter 0.5s ease-in-out;
    z-index: 0;
}

.hover-content-section:hover {
    filter: none !important;
}

.hover-content-section:hover::before {
    filter: grayscale(100%);
}

/* Counter above the title */
.counter {
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Title (Always Visible) */
.hover-title {
    color: #19BAC8;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Paragraph (Hidden by Default) */
.hover-content {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.hover-content p {
    color: #ffffff;
    margin-bottom: 70px;
    margin-top: 20px;
    font-weight: 300;
    font-size: 16px;
}

.hover-content-section:hover .hover-content {
    opacity: 1;
}

/* Button */
.hover-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #ffffff;
    padding: 10px 20px 10px 0px; /* No side padding */
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: background 0s ease, color 0.5s ease;
    border-radius: 0px !important;
    overflow: hidden;
}

/* Initially Hidden Button Text */
.button-text {
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    width: 0;
}

/* Arrow Icon */
.arrow-icon {
    transition: transform 0.5s ease;
}

/* Hover Effects */
.hover-content-section:hover .hover-button {
    background: #19BAC8;
    padding: 10px 75px 10px 25px;
    border-radius: 5px;
}

.hover-content-section:hover .hover-button .button-text {
    opacity: 1;
    width: auto;
    transform: translateX(0); /* Moves text to original position */
}

.hover-content-section:hover .hover-button .arrow-icon {
    transform: translateX(50px);
}
