/* Base styling for the features section */
.features-footer{
    background-color: #051a2f;
}

.features-footer-inner-div:hover .explore-more a {
    font-size: 1.3em;
    transition: font-size 0.2s ease;
}

.features-footer-inner-div:hover{
    background-image: linear-gradient(to bottom, #182f57,#051a2f);
}

.features-footer .row{
    max-width: 1600px;
}

.features-footer-title .col-12{
    max-width: 800px;
}

.features-footer .rounded-3{
    background-color: #f4f4f4;
}

.features-footer-title h2{
    color: #fff;
}

.subtitle{
    font-size: 26px; 
    font-weight: 600;
    max-width: 350px;
    margin: 0 auto 10px auto;
    line-height: 1.3em;
    transition: opacity 0.3s ease, transform 0.3s ease;
    color: #fff;
    position: relative;
    z-index: 1; /* Lower z-index than image when hovered */
}

.features-footer-inner-div{
    background-color: #182f57;
    text-align: center;
    border-radius: .3rem;
    padding: 25px 20px !important;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    overflow: hidden; /* Important to contain the absolute positioned elements */
}

/* Content wrapper */
.features-footer-content-wrapper {
    position: relative;
    min-height: 100px; /* Increased min-height for more content space */
    margin-bottom: 15px;
}

/* Set up the content areas */
.features-footer-main-copy {
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.features-footer-main-img {
    position: absolute;
    top: -50; /* Position from the very top of the card */
    left: 0;
    right: 0;
    height: calc(100% - 40px); /* Less space reserved for explore more link */
    transform: translateY(-100%); /* Start above the card */
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.3s ease;
    z-index: 5; /* Higher z-index to cover subtitle */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px; /* Add some horizontal padding */
}

.features-footer-main-img img{
    border-radius: .3rem;
    max-height: 210px; /* Fixed height for larger image */
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.features-footer-main-copy p{
    margin-top: 0;
    color: #d1d5dd;
}

/* Create hover effect that properly replaces both subtitle and content */
.features-footer-inner-div:hover .subtitle {
    opacity: 0;
    transform: translateY(-30px);
}

.features-footer-inner-div:hover .features-footer-main-copy {
    transform: translateY(100%);
    opacity: 0;
}

.features-footer-inner-div:hover .features-footer-main-img {
    transform: translateY(0); /* Slide down into view */
    opacity: 1;
}

/* Keep explore-more visible */
.explore-more {
    position: relative;
    z-index: 10; /* Higher than everything to stay on top */
    margin-top: auto;
    padding-top: 0;
}

.explore-more p {
    margin-bottom: 0;
}

.explore-more p a{
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

.bi-arrow-right-circle-fill{
    color: orange;
    font-size: 16px;
}

/* Responsive adjustments */
@media screen and (max-width: 991px){
    .features-footer-title h2{
        font-size: 2.25rem;
    }
    /* .features-footer-content-wrapper {
        min-height: 180px;
    } */
}

@media screen and (max-width: 576px){
    .features-footer-title h2{
        font-size: 1.75rem;
    }
    /* .features-footer-content-wrapper {
        min-height: 210px;
    } */
}