.page-template-template-ourstory .story-container {
    padding: 60px 0 0;
    background-color: #FFF;
}

.story-container .title {
    font-family: 'Poppins-SemiBold';
    font-size: 80px;
    color: var(--main-blue);
    border-bottom: 0.3px solid #D5D5D5;
    padding-bottom: 30px;
    margin: 0px 70px;
    letter-spacing: -1px;
}

.story-container .rows {
    padding: 70px; 
    align-items: center;
    grid-template-columns: 1fr 1fr;

}

.story-container .last-row {
    padding: 70px;
}

.story-container .last-row h2 {
    letter-spacing: -1px;
}

.last-row h2 {
    margin: 0;
    padding-bottom: 20px;
    color: #fff;
}

.last-row p {
    margin: 0;
    padding-bottom: 33px;
}

.last-row > p {
    width: 50%;
    color: #fff;
}

.rows .text-section {
    padding-right: 20px;
    align-self: flex-start;
    flex-basis: 0;
    flex-grow: 1;
    width: 90%;
}

.rows .text-section .pc-button {
    border-color: var(--main-blue);
}

.rows .text-section .pc-button span {
    color: #000;
}

.rows .image-section {
    padding-left: 20px;
    flex-basis: 0;
    flex-grow: 1;
}

.image-section img {
    width: 100%;
}

.text-section .pc-button-container {
    margin: 0!important;
}

.story-container .rows .row-title {
    font-family: 'Poppins-Regular';
    font-size: 40px;
    color: var(--main-blue);
    padding-bottom: 20px;
    letter-spacing: -2px;
    line-height: 1.2;
}

.story-container .rows.flip .row-title,
.story-container .rows.flip .row-desc {
    color: #fff;
}
.story-container .rows .row-desc{
    font-family: 'Poppins-Regular';
    color: #000;
    padding-bottom: 33px;
    font-size: 16px;
    line-height: 1.2;
}

.pc-button::before {
    background-color: var(--main-blue);
}

.last-row .pc-button::before {
    background-color: #fff;
}

.pc-button:hover span {
    color: #F6F3EB;
}

.last-row .pc-button:hover span {
    color: #000;
}

.pc-button:hover{
    border: 1px solid var(--main-blue);
}

.last-row .pc-button:hover{
    border: 1px solid #fff;
}

.rows .stats-container {
    padding-top: 6%;
    justify-content: center;
}

.rows .stat {
    padding-right: 6%;
}

.rows .stat h1{
    font-size: 130px;
    color: #fff;
    margin: 0;
    line-height: 115px;
    padding-bottom: 10px;
    text-align: center;
}

.rows .stat h2 {
    font-size: 40px;
    color: #fff;
    margin: 0;
    line-height: 50px;
    text-align: center;
    letter-spacing: -2px;
    font-family: 'Poppins-Regular';
}

.rows .quote-image-section {
    text-align: center;
    padding-right: 20px;
}

.rows .quote-text-section
{
    width: 80%;
}

.rows .quote-text-section p {
    color: var(--main-blue);
    font-size: 16px;
}

.rows .quote-text-section h4 {
    color: var(--main-blue);
    font-size: 30px;
    line-height: 38px;
}

.quote-rows {
    background-color: var(--foreground-color);
    position: relative;
}

.quote-rows .quote-image-section img
{
    height: 420px;
}

.quote-rows .swiper-button {
    width: fit-content;
    bottom: 25px;
    top: auto;
}

.quote-rows .swiper-button.swiper-button-next {
    right: var(--gap);
}

.quote-rows .swiper-button.swiper-button-prev {
    left: auto;
    right: 130px;
}

.quote-rows .swiper-button::after {
    display: none;
}

.rows.quote-row {
    grid-template-columns: 1fr 3fr; 
}

.mobile {
    display: none;
}

.story-container > .title.active,
.story-container > .rows .text-section .row-title.active,
.story-container > .rows .text-section .row-desc.active,
.story-container > .rows .text-section .pc-button.active,
.story-container .last-row > h2.active,
.story-container .last-row > p.active,
.story-container .last-row > .pc-button.active
{
    transform: translateY(0);
    opacity: 1;
}

.story-container > .title,
.story-container > .rows .text-section .row-title,
.story-container > .rows .text-section .row-desc,
.story-container > .rows .text-section .pc-button,
.story-container .last-row > h2,
.story-container .last-row > p,
.story-container .last-row > .pc-button
{
    transform: translateY(60px);
    opacity: 0;
    transition: opacity 1s, transform 1s;
}

@media screen and (max-width: 1024px) {
    .desktop {
        display: none;
    }

    .mobile {
        display: block;
    }

    .rows .stat-heading.mobile {
        font-size: 70px;
        color: #fff;
        line-height: 1;
        margin-bottom: 10px;
        letter-spacing: -2px;
    }

    .rows .stat-value.mobile {
        font-size: 35px;
        color: #fff;
        margin-top: 0;
        margin-bottom: 30px;
        line-height: 1;
        letter-spacing: -2px;
    }

    .page-template-template-ourstory .story-container {
        padding-top: 40px;
        padding-bottom: 0;
    }

    .story-container .title {
        border-bottom: none;
        font-size: 50px;
        margin: 0px 40px;
    }

    .story-container .rows {
        display: flex;
        flex-direction: column-reverse;
        align-items: flex-start;
        padding: 40px 40px;
    }

    .story-container .rows.flip {
        flex-direction: column;
    }

    .story-container .rows.flip .text-section .row-title {
        padding-bottom: 20px;
    }

    .rows .text-section {
        padding-right: 0;
    }

    .rows .image-section {
        width: 100%;
        padding-left: 0;
        padding-bottom: 25px;
    }

    .rows .text-section .row-title {
        font-size: 35px;
        padding-bottom: 10px;
    }

    .rows .text-section .row-desc {
        font-size: 15px;
    }

    .rows.flip .quote-image-section {
        width: 100%;
        padding-right: 0;
        max-height: 80vh;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .rows.flip .quote-image-section img {
        width: 100%;
    }

    .rows.flip .quote-text-section p {
        font-size: 13px;
    }

    .rows.flip .quote-text-section h4 {
        font-size: 20px;
        margin-bottom: 100px;
    }



}

@media screen and (max-width: 767px) {
    .story-container .rows {
        padding: 40px 20px;
    }
    
    .page-template-template-ourstory .story-container
    {
        padding-top: 35px;
    }

    .story-container .title
    {
        font-size: 35px;
        padding-bottom: 15px;
    }
    .rows .text-section .row-title
    {
        font-size: 25px;
    }
    .rows .text-section
    {
        width: 100%;
    }

    .rows .image-section
    {
        padding-bottom: 15px;
    }

    .rows .text-section .row-desc
    {
        padding-bottom: 20px;
    }

    .pc-button {
        background-color: var(--accent-color);
        border: 1px solid var(--accent-color);
    }

    .last-row .pc-button {
        background-color: #fff;
        border: 1px solid #fff;
    }

    .last-row .pc-button span {
        color: #000;
    }

    .quote-rows .quote-image-section img
    {
        height: auto;
    }
    .rows .quote-text-section
    {
        width: 100%;
    }
    .rows.flip .quote-text-section h4
    {
        line-height: 1.2;
        letter-spacing: -0.7px;
        margin-top: 20px;
    }

    .rows .image-section.mobile
    {
        padding-bottom: 35px;
    }

    .rows.flip .quote-text-section p
    {
        font-size: 10px;
        margin-top: 20px;
    }


    .last-row > h2 
    {
        font-size: 35px;
    }
    .last-row > p
    {
        font-size: 14px;
        width: 100%;
    }

    .story-container .last-row {
        padding: 20vh 25px;
    }
    
}

