
@media (max-width: 768px) {
    .carousel-caption {
        left: 23%;
        top: 69.5%;
        text-shadow: none;
    }
    
    .text-line {
        font-size: 2.25rem;
        line-height: 2.4rem;
        width: 500px;
        text-shadow: none;
        text-align: left;
    }
    .small-text {
        font-size: 1.4rem;
        line-height: 1.5rem;
        width: 340px;
        text-shadow: none;
        text-align: left;
        display: flex;
        margin-left: 0;
    }

    #caption-section {
        display: flex; 
        align-items: center; 
        justify-content: center;
        width: 100%;
    }
}
@media (max-width: 670px) {
    .carousel-caption {
        left: 27%;
        top: 78.5%;
    }
    /* .text-line {
        font-size: 2.25rem;
        line-height: 2.4rem;
        text-align: left;
    }
    .small-text {
        font-size: 1.4rem;
        line-height: 1.5rem;
        text-align: left;
    } */
    
    .carousel-item.active img {
        animation: none;
        transform: scale(2.02);
    }
}

@media (max-width: 584px) {
    .carousel-caption {
        left: 35.5%;
        top: 82%;
    }
    .text-line {
        font-size: 2.2rem;
        line-height: 2.25rem;
        letter-spacing: -1.5px;
    }
    .small-text {
        font-size: 1.25rem;
        line-height: 1.365rem;
        text-align: left;
        width: 337px;
        margin-left: 0;
    }
    .btn-custom {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .carousel-caption {
        left: 38%;
        top: 75%;
        text-align: left;
    }
    .text-line {
        font-size: 2.2rem;
        line-height: 2.2rem;
        text-align: left;
        letter-spacing: -0.5px;
    }
    .small-text {
        font-size: 1.1rem;
        line-height: 1.17rem;
        letter-spacing: -1px;
    }
    .carousel-inner img {
        object-position: 36% 0%;
    }
    .carousel-item.active img {
        animation: none;
        transform: translateY(-12.5%) scale(1.25);
    
    }
}

@media (max-width: 430px) {
    .text-line {
        font-size: 1.75rem;
        line-height: 1.9rem;
    }
    .small-text {
        font-size: 1.15rem;
        line-height: 1.4rem;
    }
    
}
@media (max-width: 415px) {
    .carousel-caption {
        left: 42%;
    }
    
}
@media (max-width: 413px) {
    .btn-custom {
        transform: translateY(0px);
    }
}
@media (max-width: 375px) {
    .small-text {
        font-size: 1.1rem;
        line-height: 1.15rem;
    }
    .text-line .small-text {
        font-size: 2rem;
        line-height: 2.15rem;
        
    }
}
