.home-topic {
    background-color: #F6F6F6;
    color: #383838;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-52vw + 50%);
    background-size: cover;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-family: "freight-sans-pro", sans-serif !important;
    padding-top: 100px;
    padding-bottom: 100px;
    position: relative;
}

@media screen and (max-width: 1024px) {

    .home-topic {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-top: 50px;
        padding-bottom: 50px;
        margin-right: -55px;
        margin-left: -20px;
        padding-right: 30px;
    }

}

@media screen and (max-width: 767px) {

    .home-topic {
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-52vw + 50%);
    }

}


.onepagepro-body .home-topic h2 {
    font-size: 25px;
    color: #276C91;
    margin-top: 7px;
    margin-bottom: 50px;
    width: 100%;
    display: block;
}

.onepagepro-body .home-topic h2>a{
    color: #276C91;
}

.onepagepro-body .home-topic h2>a:hover {
    color: #3a80a3;
}

.home-topic .col-2 {
    font-size: 25px;
}

.home-topic .col-2 {
    font-size: 25px;
    color: #FFF;
}

.onepagepro-body .home-topic a {
    color: #FFF;
}

.onepagepro-body .home-topic a .arrow{
    opacity:0.7;
}

.onepagepro-body .home-topic a:hover {
    color: #FFF;
}

@media screen and (max-width: 767px) {

    .onepagepro-body .home-topic h2 {
        font-size: 18px;
    }

    .home-topic .col-2 p {
        font-size: 18px;
    }

    .onepagepro-body .home-topic a {
        font-size: 18px;
    }

}


/* Col SIZES */

.home-topic .col-1 {
    margin-left: calc(((100vw - 1320px)/2) + 37px);
    width: 50%;
}

.home-topic .col-2 {
    margin-right: calc(((100vw - 1320px)/2) + 37px);
    width: 47%;
    margin-left: 3%;
}

@media screen and (max-width: 496px) {

    .home-topic .col-1 {
        margin-left: 30px !important;
        margin-right: 30px !important;
    }

    .home-topic .col-2 {
        margin-left: 30px !important;
        margin-right: 30px !important;
    }

}

@media screen and (max-width: 1320px) {

    .home-topic .col-1 {
        margin-left: 50px;
        margin-right: 50px;
    }

    .home-topic .col-2 {
        margin-left: 50px;
        margin-right: 50px;
    }

}

@media screen and (max-width: 1024px) {

    .home-topic .col-1 {
        width: 100%;
        margin-left: 30px;
        margin-right: 30px;
    }

    .home-topic .col-2 {
        width: 100%;
        margin-right: 30px;
        margin-left: 30px;
    }

}

@media screen and (max-width: 767px) {

    .home-topic .col-1 {
        margin-left: calc(((100vw - 485px)/2) + 20px);
        width: calc(100% - calc(((100vw - 485px)/2) + 20px) * 1.5);
    }

    .home-topic .col-2 {
        margin-left: calc(((100vw - 485px)/2) + 20px);
        width: calc(100% - calc(((100vw - 485px)/2) + 20px) * 1.5);
    }

}


@media screen and (max-width: 496px) {

    .home-topic .col-1 {
        margin-left: calc(((100vw - 485px)/2) + 20px);
        width: 100%;
    }

    .home-topic .col-2 {
        margin-left: calc(((100vw - 485px)/2) + 20px);
        width: 100%;
    }

}



.home-topic ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Styling for LI elements */
.home-topic li {
    flex: 1 1 45%;
}

.home-topic li button {
    width: 100%;
    padding: 0px;
    /* padding-bottom: 22px; */
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #C3C3C3;
    text-align: left;
    cursor: pointer;
    position: relative;
    transition: border-bottom-color 0.3s ease;
    text-transform: uppercase;
    font-size: 16px;
    height:55px;
    color:#000;
}

.home-topic li button:hover {
    color: #276C91;
}

.home-topic li button.current::before{
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #276C91;
}

.home-topic li button .arrow {
    float: right;
    display: none;
    opacity:0.7;
}

.home-topic .automatic-play li button.current::before {
    animation: progress 10s linear 1 forwards;
}

/* Keyframes for the progress animation */
@keyframes progress {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}


.preview-card {
    background-color: #767676;
    color: #FFF;
    position: relative;
}

.preview-card::before {
    content: "";
    width: 92px;
    height: 80px;
    background-image: url(../../../images/quote-serif-left.svg);
    position: absolute;
    top: 40px;
    background-size: cover;
    background-size: 100% auto;
    left: -15px;
    background-repeat: no-repeat;
}

.preview-card .image-wrapper {
    width: 100%;
    height: 200px;
    display: flex;
}

.preview-card .image-wrapper img {
    object-fit: cover;
    width: 100%;
}

.preview-card .quoter-wrapper {
    padding: 25px;
}

.preview-card .quote {
    font-style: italic;
    font-size: 18px;
    line-height: 1.7rem;
}

.preview-card .quote-author {
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 30px;
    font-weight: 600;
}

.preview-card a {
    color: #FFF;
    font-weight: bold;
    font-size: 18px;
}

.preview-card .close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0);
    color: #fff;
    font-size: 30px;
    text-shadow: 2px 2px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    display: none;
}

/* Animation Transition */

.preview-card {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease-in-out;
    z-index: 0;
    position: relative;
    display: none;
    flex-direction: column;
    min-height:500px;
    /* Hide all cards initially */
}

.preview-card.current {
    opacity: 1;
    transform: translateX(0);
    display: block;
    /* Only show the current card */
    z-index: 1;
}


@media screen and (max-width: 1024px) {

    .home-topic .col-1 {
        width: 100%;
        padding-left: 30px;
    }

    .home-topic .col-2 {
        display: none;
        position: absolute;
        background: #767676;
        top: 60px;
        left: 0px;
        height: calc(100% - 120px);
        /* padding-left: 30px; */
        width: calc(100% - 60px);
    }

    .home-topic .col-2.show-mobile {
        display: block;
    }

    .home-topic li {
        flex: 1 1 100%;
    }

    .home-topic .automatic-play li button.current::before {
        width: 0;
        animation: none;
    }

    .home-topic li button{
        height: 45px;
    }

    .home-topic li button .arrow {
        display: inline-block;
    }

    .preview-wrapper,
    .preview-card {
        height: 100%;
    }

    .preview-card {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 0;
    }

    .preview-card .quoter-wrapper {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .preview-card a {
        margin-top: auto;
    }

    .preview-card .close {
        display: block;
    }

}

@media screen and (max-width: 767px) {
    .home-topic .col-1 {
        margin-left: 30px;
        width: calc(100% - calc(((100vw - 485px) / 2) + 20px)* 1.5);
    }

    .home-topic .col-2{
        margin-left:35px;   
    }
}

@media screen and (max-width: 496px) {
    .home-topic .col-1 {
        margin-left: calc(((100vw - 485px) / 2) + 20px);
        width: 100%;
    }
}