.acadmic-affairs.nav-pills {
    --bs-nav-pills-border-radius: 0.375rem;
    --bs-nav-pills-link-active-color: #fff;
    padding: 0.367rem 0.1rem;
    padding-inline-end: 0.7rem;
    border: 1px solid var(--primary-color);
    border-radius: 2.5rem;
    width: max-content;
}

/* [dir="rtl"] .nav-pills {
  --bs-nav-pills-border-radius: 0.375rem;
  --bs-nav-pills-link-active-color: #fff;
  padding: 0.3rem 0;
  padding-inline-end: 0.6rem;
  border: 1px solid var(--primary-color);
  border-radius: 2.5rem;
  width: max-content;
} */

.acadmic-affairs.nav-link {
    color: var(--primary-color) !important;
    padding: 0.6rem 2rem;
    margin: 0 0.3rem;
    width: 100%;
}

.acadmic-affairs.nav-link.active {
    color: #fff !important;
    padding: 0.6rem 2rem;
    background: var(--gradient-bg) !important;
    border-radius: 2.5rem;
}
@media (max-width: 576px) {
    .acadmic-affairs.nav-link.active,
    .acadmic-affairs.nav-link {
        padding: 0.6rem 0.8rem;
    }
}
.tab-content {
    background-color: #fff !important;
    color: var(--primary-color) !important;
}

.tabs-vertical {
    width: 35%;
}

.text-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.text-section > p {
    font-size: 0.9rem;
}

.text-video {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.video-section,
.text-section {
    width: 50%;
}

.youtube-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: red;
    z-index: 2;
}

.youtube-btn > .fa-youtube {
    font-size: 2.5rem;
}

.youtube-white {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 1.5rem;
    width: 1.5rem;
    background: #fff;
}

.image-background {
    background: url("../../assets/images/academic training/doctor-writing.png");
    background-repeat: no-repeat;
    height: 100%;
    width: 100%;
    background-size: cover;
    display: flex;
    justify-content: end;
    border-radius: 0.5rem !important;
    transition: background-image 0.5s ease;
    aspect-ratio: 16 / 9;
}

.postgrauate-section {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.text-on-image {
    width: 35%;
    background: linear-gradient(
        to right,
        rgba(33, 31, 95, 0.8),
        rgba(64, 85, 165, 0.8)
    );
    color: #fff;
    display: flex;
    justify-content: start;
    align-items: start;
    padding: 2rem;
    border-top-right-radius: 0.5rem !important;
    border-bottom-right-radius: 0.5rem !important;
}

html[dir="rtl"] .text-on-image {
    border-top-right-radius: 0rem !important;
    border-bottom-right-radius: 0rem !important ;
    border-top-left-radius: 0.5rem !important;
    border-bottom-left-radius: 0.5rem !important;
}

.learnMore-btn {
    background-color: transparent;
    color: #fff;
    border-radius: 50px;
    padding: 0.4rem 1.4rem;
    text-decoration: none;
    border: 1px solid white;
    transition: all 0.5s ease-in-out;
}

.learnMore-btn:hover {
    transition: transform 0.3s ease;
    /* border: 1px solid var(--primary-color);
  background-color: var(--primary-color); */
}

.learnMore-btn:hover i {
    transform: translateX(0.2rem);
    transition: transform 0.3s ease;
}

.tabs-container {
    position: relative;
}

.tabs-links {
    position: absolute;
    top: 0;
    inset-inline-start: 1%;
    z-index: 10;
    background-color: #fff;
    width: 30rem;
    border-radius: 10px;
    box-shadow: 0 0 40px #b6b6b640;
}

/* .link-active > .active {
  color: var(--primary-color) !important;
  height: 100%;
  border-inline-start: 9px solid var(--primary-color);
}
.link-active:first-child > .active {
  border-top-left-radius: 10px;
}
.link-active:last-child > .active {
  border-bottom-left-radius: 10px;
}
html[dir="rtl"] .link-active:first-child > .active {
  border-top-right-radius: 10px;
  border-top-left-radius: 0;
}
html[dir="rtl"] .link-active:last-child > .active {
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 0;
} */

.link-active > .active {
    position: relative;
    color: var(--primary-color) !important;
    height: 100%;
    padding-inline-start: 1rem;
}

.link-active > .active::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0.4rem;
    background: var(--primary-color);
    /* border-radius: 5px;  */
}

.link-active:first-child > .active::before {
    border-top-left-radius: 0.5rem;
}

html[dir="ar"] .link-active:first-child > .active::before {
    border-top-left-radius: 0.5rem;
    border-bottom-right-radius: 0rem !important;
}

.link-active:last-child > .active::before {
    border-bottom-left-radius: 0.5rem;
}

html[dir="rtl"] .link-active > .active {
    padding-inline-start: 0;
    padding-inline-end: 1rem;
}

html[dir="rtl"] .link-active > .active::before {
    left: auto;
    right: 0;
    border-radius: 0;
}

html[dir="rtl"] .link-active:first-child > .active::before {
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0;
}

html[dir="rtl"] .link-active:last-child > .active::before {
    border-bottom-right-radius: 0.5rem;
    border-top-right-radius: 0;
}

.links-not-active {
    color: var(--primary-color);
    opacity: 0.5;
}

/*---query---*/
/* @media (min-width: 992px) {
  .nav-pills {
    --bs-nav-pills-border-radius: 0.375rem;
    --bs-nav-pills-link-active-color: #fff;
    padding: 0.367rem 2.1rem;
    padding-inline-end: 0.7rem;
    border: 1px solid var(--primary-color);
    border-radius: 2.5rem;
    width: max-content;
}
} */

@media (max-width: 991.88px) {
    .text-video {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
    }

    .video-section,
    .text-section {
        width: 100%;
    }

    .text-on-image {
        width: 35%;
        background: linear-gradient(
            to right,
            rgba(33, 31, 95, 0.8),
            rgba(64, 85, 165, 0.8)
        );
        color: #fff;
        display: flex;
        justify-content: start;
        align-items: start;
        padding: 2rem;
        border-radius: 0.5rem !important;
    }

    html[dir="rtl"] .text-on-image {
        border-radius: 0.5rem !important;
    }

    /* .nav-pills {
    --bs-nav-pills-border-radius: 0.375rem;
    --bs-nav-pills-link-active-color: #fff;
    padding: 0.3rem 0;
    border: 1px solid var(--primary-color);
    border-radius: 2.5rem;
    width: 56.2% !important;
  } */

    .postgrauate-section {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .tabs-links {
        position: static;
        width: 100%;
        inset-inline-start: 1%;
        z-index: 10;
        background-color: #fff;
        border-radius: 0.5rem;
        box-shadow: 0 0 40px #b6b6b640;
    }

    .text-on-image {
        width: 100%;
    }
    .tabs-vertical {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .acadmic-affairs.nav-pills {
        --bs-nav-pills-border-radius: 0.375rem;
        --bs-nav-pills-link-active-color: #fff;
        padding: 0.3rem 0;
        border: 1px solid var(--primary-color);
        border-radius: 2.5rem;
        margin-inline-end: 0.2rem;
        width: 99%;
    }
    [dir="rtl"] .acadmic-affairs.nav-pills {
        --bs-nav-pills-border-radius: 0.375rem;
        --bs-nav-pills-link-active-color: #fff;
        padding: 0.3rem 0;
        border: 1px solid var(--primary-color);
        border-radius: 2.5rem;
        margin-inline-end: 0.2rem;
        width: 99%;
    }

    .acadmic-affairs.nav-item {
        width: 49%;
    }
}

/* @media (max-width: 768px) {
  .nav-pills {
    --bs-nav-pills-border-radius: 0.375rem;
    --bs-nav-pills-link-active-color: #fff;
    padding: 0.3rem 0;
    border: 1px solid var(--primary-color);
    border-radius: 2.5rem;
    width: 100% !important;
  }

  .nav-item {
    width: 50%;
  }
} */


.tabs-links a{
   color: var(--primary-color) !important;
   opacity: .5;
}
.tabs-links .link-active,
.tabs-links .active {
    opacity: 1;
}
