* {

    font-family: "Playfair display", serif;

}



p {

    font-family: "Playfair display", serif;

    margin: 0 !important;

    padding: 0;

}



.about-page .aboutSec span {

    color: var(--orange);

}



.about-page .main {

    display: flex;

    flex-direction: column;

    align-items: center;

}



.about-page .aboutSec {

    padding: 72px 20px 20px 20px;

    max-width: 1480px;

    justify-self: center;

}



.about-page .aboutSec.Sec-1 {

    display: grid;

    grid-template-columns: 1fr 1fr 1fr;

    gap: 64px;

    height: fit-content;

}



.about-page .desc .title {

    font-size: 32px;

    font-weight: 500;

}



.about-page .caption {

    font-size: 14px;

    font-weight: 500;

}



.about-page .Sec-1 .grid-img {

    overflow: hidden;

    border-radius: 16px;

}



.about-page .Sec-1 .grid-col:nth-child(1) .grid-img {

    height: 350px;

    align-items: start;

    display: flex;

}



.about-page .grid-img img {

    width: 100%;

    animation: scaleOut 0.3s ease-in-out forwards;

}



.about-page .grid-img img:hover {

    animation: scaleIn 0.3s ease-in-out forwards;

}



.about-page .intro-text {

    font-size: 64px;

    font-weight: 500;

    line-height: 1;

}



.about-page .intro-text span {

    font-size: 128px;

    font-weight: 500;

}



.about-page .Sec-1 .grid-col:nth-child(2) {

    background: linear-gradient(180deg,

            rgba(255, 50, 50, 1) 0%,

            rgba(170, 18, 18, 1) 100%);

    padding: 24px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    flex-direction: column;

    height: 100%;

    border-radius: 32px;

    gap: 32px;

}



.about-page .Sec-1 .grid-col:nth-child(2) .card {

    display: flex;

    flex-direction: row;

    justify-content: center;

    flex-wrap: wrap;

    gap: 12px;

    background: rgba(255, 255, 255, 0.3);

    padding: 24px;

    border-radius: 20px;

}



.about-page .Sec-1 .grid-col .card-title {

    grid-column: 1 / 3;

    font-size: 24px;

    font-weight: 700;

    text-align: center;

    color: var(--basewhite);

}



.about-page .sub-cards {

    display: flex;

    max-width: 150px;

    flex-direction: column;

    gap: 8px;

    text-align: center;

    font-size: 16px;

    color: var(--basewhite);

    background: #0000004d;

    /* 30% opatcity */

    padding: 16px;

    border-radius: 20px;

}



.about-page .sub-cards img {

    border-radius: 14px;

}







.about-page .aboutSec.Sec-2 {

    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 80px;

}



.about-page .Sec-2 .title-txt {

    font-size: 56px;

    font-weight: 700;

    color: #b8b8b8;

}



.about-page .ytContainer {

    border-radius: 32px;

    overflow: hidden;

    width: fit-content;

    height: fit-content;

    padding: 0%;

    margin: 0%;

}



.about-page .Sec-2 .grid-col:nth-child(2) {

    display: flex;

    align-items: start;

    justify-content: flex-end;

    position: relative;

}



.about-page .Sec-2 .sec-2Img {

    position: absolute;

    pointer-events: none;

}



.about-page .Sec-2 .sec-2Img:nth-child(1) {

    bottom: 1px;

    left: -140px;

}



.about-page .Sec-2 .sec-2Img:nth-child(2) {
display: none;
    top: 1px;

    right: -50px;

}



.about-page .aboutSec.Sec-3 {

    display: grid;

    grid-template-columns: .5fr 1.5fr;

    gap: 40px;

}



.about-page .Sec-3 .caption-holder {

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    gap: 24px;

    grid-column: 1/3;

}





.about-page .flag-slider {

    width: 100%;

    max-width: 790px;

    height: 72px;

    overflow: hidden;

    border-radius: 1000px;

    position: relative;

}



@keyframes flagScroll {

    to {

        left: -138px;

    }

}



@keyframes flagScrollreverse {

    to {

        right: -138px;

    }

}



.about-page .flag {

    position: absolute;

    left: 100%;

    animation-name: flagScroll;

    animation-duration: 4s;

    animation-timing-function: linear;

    animation-iteration-count: infinite;

}



.about-page .flag2 {

    position: absolute;

    right: 100%;

    animation-name: flagScrollreverse;

    animation-duration: 4s;

    animation-timing-function: linear;

    animation-iteration-count: infinite;

}



.about-page .flag-slider.me-5 {

    margin-right: 64px !important;

}



.about-page .flag-slider.ms-5 {

    margin-left: 64px !important;

}



.about-page .Sec-3 .grid-col:nth-child(2) {

    text-align: center;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    gap: 32px;

    border: 1px solid #ddd;

    border-radius: 24px;

    padding: 20px;

}



.about-page .Sec-3 .grid-col p {

    font-size: 40px;

    font-weight: 500;

    max-width: 474px;

    text-align: center;

}



.about-page .certificate-container {

    position: relative;

    height: 170px;

    width: 315px;

}



.about-page .certificate-container .image-wrapper {

    position: absolute;

    border-radius: 100px;

    overflow: hidden;

}



.about-page .certificate-container .image1 {

    left: 1px;

    top: 1px;

}



.about-page .certificate-container .image2 {

    right: 1px;

    bottom: 1px;

}



.about-page .flipcard-container {

    perspective: 1000px;

    max-width: 400px;

    height: 480px;

    width: 100%;

}



.about-page .flipcard {

    width: 100%;

    height: 100%;

    position: relative;

    transform-style: preserve-3d;

    transition: transform 0.8s;

}



.about-page .flipcard-container:hover .flipcard {

    transform: rotateY(180deg);

}



.about-page .cardFront,

.cardBack {

    width: 100%;

    height: 100%;

    position: absolute;

    backface-visibility: hidden;

    top: 0;

    left: 0;

    border-radius: 32px;

    border: 1px solid var(--orange);

    overflow: hidden;

    background: white;

    padding: 20px;

    background-image: url(assests/images/card\ bg.png);

    background-repeat: no-repeat;

    background-position: bottom;

    background-size: contain;

    text-align: center;

    display: flex;

    flex-direction: column;

    align-items: center;

}



.about-page .cardFront {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: start;

}



.about-page .cardBack {

    transform: rotateY(180deg);

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    justify-content: center;

    background: #f9f9f9;

    padding: 20px;

}



.about-page .card-col {

    width: 45%;

    margin: 5px;

}



.about-page .card-col img {

    width: 100%;

    height: auto;

    object-fit: cover;

    border-radius: 8px;

}



.about-page .Sec-3 .grid-col:nth-child(1) {

    text-align: center;

    display: flex;

    justify-content: center;

}



.about-page .Sec-4 {

    display: grid;

    grid-template-columns: 1fr 1fr 1fr;

    gap: 80px;

}



.about-page .Sec-4 .title {

    font-size: 40px;

    font-weight: 500;

    text-align: center;

}



.about-page .Sec-4 .grid-col:first-child {

    grid-column: 1 / -1;

    /* Span the full width of the grid */

    display: flex;

    justify-content: center;

}



.about-page .Sec-4 .image-wrapper {

    width: 100%;

    /*height: 270px;

  overflow: hidden;

  border-radius: 32px;*/

    display: flex;

    justify-content: center;

    align-items: start;

}



.about-page .Sec-4 .grid-col {

    max-width: 300px;

    text-align: center;

}



.about-page .Sec-4 .caption {

    font-size: 24px;

}



@media (max-width:1024px) and (min-width:769px) {

    .about-page .Sec-1 .grid-column {

        grid-column: 1/4;

    }



}



@media (max-width:1500px) {

    .about-page .Sec-1 .grid-col:nth-child(2) {

        padding: 8px;

        gap: 8px;

    }



    .about-page .Sec-1 .grid-col:nth-child(2) .card {

        padding: 8px;

    }



    .about-page .sub-cards {

        padding: 8px;

    }



    .about-page .Sec-2 .grid-col:nth-child(1) .title img {

        width: 300px;

    }



    .about-page .Sec-2 .title-txt {

        font-size: 32px;



    }



    .about-page .ytContainer {

        width: 600px;

    }



    .about-page .aboutSec.Sec-3 {

        grid-template-columns: 1fr 1fr;

    }



    .about-page .image-wrapper img {

        width: unset;

    }



    .about-page .Sec-4 .grid-col:first-child {

        justify-self: center;



    }



    .yt-iframe {

        width: 100%;

    }

}



@media (max-width:1024px) {



    .about-page .aboutSec.Sec-1 {

        grid-template-columns: 1fr 1fr;

    }



    .about-page .Sec-1 .grid-col:nth-child(2) {

        grid-column: 1/ span2;

        grid-row: 2;

        flex-direction: row;

        padding: 24px;

    }



    .about-page .Sec-1 .grid-col:nth-child(3) {

        grid-column: 2;

        grid-row: 1;

    }



    .about-page .Sec-1 .grid-col:nth-child(2) .card {

        padding: 24px;

        flex-direction: column;

        align-items: center;



    }



    .about-page .Sec-1 .grid-col:nth-child(2) .grid-img {

        max-width: 500px;

    }



    .about-page .sub-cards {

        padding: 24px;

        max-width: 200px

    }



    .about-page .Sec-1 .grid-col:nth-child(2) .grid-img {

        flex-shrink: 2;

        order: 2;

    }



    .about-page .Sec-1 .grid-col:nth-child(2) .card {

        order: 1;

        flex-shrink: 1;

    }



    .about-page .aboutSec.Sec-2 {

        grid-template-columns: 1fr;

        gap: 20px;

    }



    .about-page .Sec-2 .sec-2Img:nth-child(1) {

        left: -19px;

    }





    .about-page .Sec-2 .sec-2Img:nth-child(2) {

        right: 45px;

    }



    .about-page .Sec-2 .grid-col {

        display: flex;

        align-items: center;



    }



    .about-page .ytContainer {

        width: 600px;

    }



    .about-page .Sec-2 .grid-col:first-child {

        padding: 16px;

        background: rgba(0, 0, 0, .03);

        border-radius: 32px;

    }



    .about-page .Sec-2 .grid-col:first-child .caption {

        max-width: 500px;



    }



    .about-page .aboutSec.Sec-3 {

        grid-template-columns: 1fr;

    }



    .about-page .Sec-3 .grid-col:nth-child(1) {

        grid-row: 2;

    }



    .about-page .Sec-3 .grid-col:nth-child(2) {

        grid-row: 1;

    }



}



@media only screen and (max-width: 768px) {

    .about-page .Sec-4 img {
        width: 100% !important;
        font-size:10px;
    }

    .about-page .Sec-2 .sec-2Img {

        display: none;

    }



    .about-page .aboutSec.Sec-1 {

        grid-template-columns: 1fr;

        gap: 16px;

    }



    .about-page .intro-text {

        font-size: 40px;

    }



    .about-page .intro-text span {

        font-size: 64px;

    }



    .about-page .Sec-1 .grid-col:nth-child(3) {

        display: flex;

        flex-direction: column;

        grid-column: 1;

        grid-row: 2;

    }



    .about-page .Sec-1 .grid-col:nth-child(3) .grid-img {

        order: 2;

        max-height: 300px;

        display: flex;

        align-items: center;

    }



    .about-page .Sec-1 .grid-col:nth-child(2) {

        grid-column: 1;

        grid-row: 3;

    }



    .about-page .Sec-1 .grid-col:nth-child(1) {

        display: grid !important;

        grid-template-columns: 1fr 1fr;

        grid-template-rows: 1fr 1fr;

        gap: 16px;

    }



    .about-page .Sec-1 .grid-col:nth-child(1) .about-text.desc {

        grid-column: 1;

        grid-row: 2;

    }



    .about-page .Sec-1 .grid-col:nth-child(1) .grid-img {

        grid-column: 2;

        grid-row: 1/span3;

    }



    .about-page .ytContainer {

        width: 100%;

        height: 200px;

    }



    .yt-iframe {

        width: 100%;

        height: 100%;

    }



    .about-page .Sec-2 .sec-2Img:nth-child(1) {

        width: 150px;

        left: -28px;

    }



    .about-page .Sec-2 .sec-2Img:nth-child(2) {

        width: 100px;

    }



    .about-page .Sec-4 {

        grid-template-columns: 1fr 1fr;

        gap: 24px;

    }



    .about-page .flag-slider {

        display: none;

    }



    .about-page .Sec-2 .grid-col:first-child {

        flex-direction: column;

        align-items: center;

        text-align: center;

        padding: 0;

    }



    .about-page .Sec-1 .grid-col:nth-child(2) .grid-img {

        display: none;

    }



    .about-page .Sec-1 .grid-col:nth-child(2) .card {

        flex-direction: row;

    }



    .about-page .Sec-4 .grid-col {

        width: 100%;

    }



    .about-page .Sec-4 .caption {

        font-size: 16px;



    }

}



@media (max-width:532px) {

    .about-page .Sec-1 .grid-col:nth-child(1) {

        grid-template-columns: 1fr;

        grid-template-rows: unset;

    }



    .about-page .Sec-1 .grid-col:nth-child(1) .grid-img {

        grid-column: unset;

        grid-row: unset;

    }



    .about-page .certificate-container .image1 {

        left: 32px;

    }



    .about-page .certificate-container .image2 {

        right: 32px;

    }

}