.about-header video {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 80%;
    /* height: max-content; */
        height: fit-content;
        margin-top: 14.2rem;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
    padding-left: 10px;
        margin-left: auto;
    margin-right: auto;
        max-height: 265px;
}

.video_opasity {
    opacity: 1 !important;
}

.masked-text-wrapper {
    position: relative;
}

#about_video_section img {
    width: 80%;
    position: relative;
        margin-top: 14rem;
            margin-bottom: 8rem;

}
.margin-5{
    margin-top: 5rem;
}


.mask_img_a3,
.mask_img_a4 {
    /* position: absolute; */
    transition: opacity 0.5s ease;
}

.mask_img_a4 {
    opacity: 0 !important;
}

.switch-mask .mask_img_a3 {
    opacity: 0;
}

.switch-mask .mask_img_a4 {
    opacity: 1 !important;
}

.about-main-content {
    /* z-index: 3333333333;
    position: relative; */
}

.about-main-content p {
    max-width: 716px;
    margin-left: auto;
    color: black;
    text-align: justify;
    font-size: 14px;
    margin-right: 53px;
}

.service-main-title {
    color: black;
    font-size: 2.3rem;
    font-weight: 500;
       font-family: "Creato Display", "Helvetica Neue", Arial, sans-serif;
        text-align: left;
}

.ct-br {
    border: 2.3px solid #B38E6F;
}
.tabs-section{
margin-top: 6rem;
}
.tabs-nav {
   list-style: none;
    margin: 15px;
    padding: 0;
    border: 2px solid #B38E6F;
    padding-bottom:3rem;
}
.service_tabtitle{
   color: #000;
    padding: 3rem 2rem 17rem 2rem;
    font-size: 3rem;
    font-weight: 500;

}
.tab {
    flex: 1;
    text-align: center;
    padding: 1rem 2rem;
    cursor: pointer;
    color: #1413134D;
    font-weight: 500;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    /* justify-content: center; */
    gap: 0.5rem;
    text-transform: uppercase;
}

.tab.active, .tab:hover {
    /* background-color: rgba(255, 255, 255, 0.2); */
    font-weight: 600;
    color: #9F1C21;

}
   .tab span:first-child {
    transform: translate(-50%, -50%);
    width: 4px;
    position: absolute;
    height: 24px;
    background: #9F1C21;
    transform: translateY(-50%);
    transition: transform 0.5s ease;
    margin-top: 18px;
    opacity: 0;
    }

    /* Right span */
    .tab span:last-child {
       transform: translate(50%, -50%);
    /* top: 50%; */
    width: 30px;
    height: 25px;
    background: #9F1C21;
    transform: translateY(0%);
    transition: transform 0.5s ease;
     opacity: 0;
    }
 /* Hover movement */
    .tab:hover span:first-child,.tab.active span:first-child {
            transform: translate(-865%, -50%);
             opacity: 1;
    }

    .tab:hover span:last-child, .tab.active span:last-child {
       transform: translate(196%, 0%);
         opacity: 1;
    }
    .tab a{
        width:300px;
          text-align: left;
    }

/* Content panes */
.tabs-content {
   padding: 0rem;
    height: 100%;
      
}
.tabs-content .large_img{
    width: 100%;
   margin-bottom: 35px;
    padding-top: 1rem;
}
.tab-title{

}
.align-center{
  align-items: center;
}
.tabs-content .small_img{
   width: 70px;
    margin-right: 20px;
}

.tab-pane {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.tab-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Typography */

.tab-golden-border2 {
    border: 2.3px solid #B38E6F;
    /* max-width: 600px; */
    margin: 20px 0px;
        width: 106%;
}
.stub_title{
    max-width: 92%;
    margin: 20px 0px 27px auto;
}
.li-border{
        border-bottom: 4px solid #B38E6F;
    max-width: 80px;
    margin-left: 30px;
}
@media(max-width:1399px) {
    .service_tabtitle{
           font-size: 2.5rem; 
    }
    .about-main-content p {
        max-width: 610px;
    }

    .service-main-title {
        font-size: 2rem;
    }

    .pv-title {
        font-size: 2.5rem;
    }
}
@media(max-width:1299px) {
.tab:hover span:last-child, .tab.active span:last-child {
   transform: translate(218%, 0%);
}
.tab a {
font-size: .8rem;
}
}

@media(max-width:1199px) {
    .tab:hover span:last-child, .tab.active span:last-child {
   transform: translate(300%, 0%);
}
     .service_tabtitle{
           font-size: 2rem; 
    }
    .about-main-content p {
        max-width: 505px;

        padding-right: 22px;

    }

    .service-main-title {
        font-size: 1.6rem;
    }
}

@media(max-width:990px) {
    .img_view {
        width: 100%;
    }

    .tab:hover span:last-child, .tab.active span:last-child {
       transform: translate(196%, 0%);
         opacity: 1;
    }
    .service-main-title {
        text-align: center;
    }

    .about-main-content p {
        max-width: 100%;
        padding-right: 0px;
        margin: 15px;
        font-size: 11px;
        text-align: justify;
    }

    .about-main-content {
        margin-top: 0%;
    }

    .about-header video {
        height: max-content;
    }
}

@media (max-width: 500px) {
    .service-main-title {
        font-size: 1.5rem;
    }
    #about_video_section img{
            width: 82%;
    position: relative;
    margin-bottom: 2rem; 
    }
}