.bg-image {
    width: 100%;
    margin-top: -3rem;
    height: 35rem;
    background-image: url('../../post-image/banner.jpeg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: relative;
}

.h-banner {
    z-index: 5;
    background-color: #2e2e2e;
    font-family: vazir;
    position: absolute;
    border-radius: 100px;
    height: auto;
    width: auto;
    color: rgb(239, 174, 22);
    min-height: 0px;
    min-width: 0px;
    line-height: 100px;
    font-weight: 500;
    font-size: 40px;
    padding-left: 50px;
    padding-right: 50px;
    top: 100%;
    right: 50%;
    transform: translate(50%, -50%);
}

.about-us {
    width: 100%;
    position: relative;
    background-image: url('../../post-image/refinery.jpg');
    background-attachment: fixed;
    background-position: bottom;
    background-size: cover;
}

.grey-back {
    background-color: rgba(30, 51, 72, 0.87);
    position: absolute;
    width: 100%;
    height: 100%;
}

.content-home {
    position: relative;
    z-index: 99;
    color: white;
}

.title-main-section {
    position: absolute;
    top: -20px;
    z-index: 999;
}

.title-main-section h4 {
    display: none;
    font-size: 1.4rem;
    width: 17.5rem;
    text-align: center;
    box-shadow: 0px 0px 2px #00000091;
}


/* 
.content-home img {
    width: 25%;
    border-radius: 1.5rem;
    scale: 0;
    transition: all 0.2s;
} */

.about-us-box img {
    scale: 1;
}

.content-home p {
    font-size: 20px;
    line-height: 2rem;
    width: 100%;
}

.works-swiper {
    height: fit-content;
}

.works-main {
    background-color: white;
    padding: 20px 0px;
}

.works-swiper-header {
    padding: 20px 0 20px 0px;
    position: relative;
}

.works-swiper-header h3 {
    position: relative;
    z-index: 9;
    font-weight: bold;
    color: rgb(230, 167, 21);
}

.projects-line {
    width: 0px;
    height: 3px;
    background-color: rgb(1, 149, 255);
    margin-left: 10px;
}

.content {
    margin-top: 6rem;
}

.service-circle {
    background: #292b37;
    height: 100px;
    width: 100%;
    margin-top: 0px;
    border-radius: 100% 100% 0 0;
}

.line-service {
    width: 100%;
    height: 1px;
    right: 1rem;
    background: #85939c;
}

.line-service-box {
    position: relative;
}

.service-circle {
    text-align: center;
    color: white;
}

.services-list-main {
    background: #292b37;
}

.services .text-justify {
    color: rgba(255, 255, 255, 0.865) !important;
}

.content-home .row.py-3 {
    display: flex;
    align-items: center;
}


/***/

.tabs-container {
    margin-top: 6rem;
    width: 100%;
    background-color: #022136;
    border-radius: 1rem;
    overflow: hidden;
}


/* استایل کارت */

.swiper swiper-initialized swiper-horizontal swiper-rtl swiper-backface-hidden {
    display: block !important;
}

.card-wrapper {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    padding: 4rem;
    background-color: #1e1e1e;
}

.trust {
    margin-top: 6rem;
    text-align: center;
}

.swiper {
    margin-top: 20px;
}

.trust h1 {
    border-bottom: 1px solid rgb(190, 85, 37);
    padding-bottom: 20px;
}

.swiper-box {
    position: relative;
}

.swiper-box img {
    width: 60%;
}

.expertise-box {
    margin-top: 6rem;
    padding: 20px 0px;
    width: 100%;
    background: #1e1e1e;
    color: #ffffff;
    position: relative;
}

.expertise .title {
    width: 100%;
    margin: 25px 0;
    text-align: center;
}

.expertise-card {
    margin: 0px auto;
    width: 80%;
    position: relative;
    display: flex;
    align-items: stretch;
    align-content: center;
}

.partner-box {
    margin-top: 6rem;
    width: 100%;
    position: relative;
    padding-bottom: 50px;
}

.partner .title {
    position: relative;
    width: 100%;
    margin-bottom: 25px;
    text-align: center;
}

.partner .title h1 {
    border-bottom: 1px solid rgb(190, 85, 37);
    padding-bottom: 20px;
}

.partner-card {
    margin: 0px auto;
    width: 80%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.e-card {
    margin: 10px;
    padding: 20px;
    border-radius: 20px;
    text-align: justify;
}

.e-1 {
    background: radial-gradient(circle farthest-corner at 50% 100%, #6155fc, #3b7399 85%);
}

.e-2 {
    background: radial-gradient(circle farthest-corner at 50% 100%, #fc8455, #3b7399 85%);
}

.e-3 {
    background: radial-gradient(circle farthest-corner at 50% 100%, #6deb3c96, #3b7399 85%);
}

.e-card img {
    width: 100%;
}

.w-us {
    display: flex;
    align-items: center;
}

.w-us div {
    padding: 10px;
}

.w-us img {
    border-radius: 20px;
}

.footer-icon {
    float: left;
}

.footer-li {
    text-align: center;
}

.text-left {
    text-align: left;
}

@media (max-width: 992px) {
    .card-wrapper {
        flex-direction: column;
        padding: 1rem;
    }
    .w-us {
        flex-wrap: wrap;
    }
}

@media (max-width: 500px) {
    .partner-card img {
        width: 100%;
    }
}


/* بخش تب‌ها */

.tabs-wrapper {
    flex: 1;
}

.nav-tabs {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav-item {
    margin-bottom: 0;
}

.tab-btn {
    display: block;
    width: 100%;
    text-align: right;
    padding: 1rem 1rem 1rem 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    font-family: inherit;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #ffffff, #6155fc);
    border-radius: 4px;
    transition: height 0.4s ease;
}

.tab-btn.active {
    background: linear-gradient(270deg, #ffffff, #6155fc 60%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-right: 2rem;
}

.tab-btn.active::before {
    height: 100%;
}

.tab-btn:hover:not(.active) {
    background: linear-gradient(270deg, rgba(255, 255, 255, 0.7), rgba(97, 85, 252, 0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* بخش نمایش عکس */

.tab-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    overflow: hidden;
    min-height: 450px;
}

.tab-pane {
    display: none;
    width: 100%;
    height: 100%;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-wrap {
    width: 100%;
    height: 100%;
}

.image-wrap img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}


/* دکمه‌ها با آیکون */

.tab-btn img {
    width: 24px;
    height: 24px;
    margin-left: 0.75rem;
    vertical-align: middle;
    border-radius: 50%;
    object-fit: cover;
}


/* ریسپانسیو */

@media (max-width: 768px) {
    .expertise-card {
        width: 100%;
    }
    .card-wrapper {
        padding: 1.5rem;
    }
    .image-wrap img {
        height: 300px;
    }
    .tab-btn {
        font-size: 0.9rem;
        padding: 0.75rem 0.75rem 0.75rem 0;
    }
}

@media (max-width: 660px) {
    .expertise-card {
        flex-wrap: wrap;
    }
    .e-card img {
        margin-left: 10%;
        width: 80%;
    }
    .partner-card {
        flex-wrap: wrap;
        flex-direction: column-reverse;
        align-items: center;
    }
    .p-card:first-child {
        margin-top: 25px;
    }
}

@media (max-width:1400px) {
    .bg-image {
        height: 30rem;
    }
}

@media (max-width:1200px) {
    .bg-image {
        height: 25rem;
    }
    .h-banner {
        font-size: 30px;
        padding: 0px 20px;
    }
}

@media (max-width:992px) {
    .bg-image {
        height: 20rem;
        margin-top: 0px;
    }
    .h-banner {
        font-size: 25px;
        padding: 0px 20px;
        line-height: 70px;
    }
    .content-home p {
        width: 100%;
    }
    .content-home img {
        width: 300px;
        margin: 0px auto;
    }
}

@media (max-width:700px) {
    .bg-image {
        height: 18rem;
    }
    .h-banner {
        width: 400px;
        text-align: center;
        line-height: 70px;
    }
}

@media (max-width:576px) {}

@media (max-width:420px) {
    .bg-image {
        height: 14rem;
        background-size: cover;
    }
    .h-banner {
        width: 300px;
        font-size: 1.2rem;
        text-align: center;
        line-height: 60px;
    }
}