 /* Grid spacing */
 .grid-item {
   margin-bottom: 20px;
   /* gap:35px !important; */
   display: flex;
   justify-content: center;
 }

 /* Card */
 .ht-team-member-card {
   width: 100%;
   height: 100%;
   display: flex;
   flex-direction: column;
   padding: 20px;
   border-radius: 12px;
   gap: 16px;
   background: #FFFFFF;
   border: 1px solid #E2E8F0;
   box-shadow: 0px 10px 30px 0px #0000001A;
 }

 /* Hover */
 .ht-team-member-card:hover {
   box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
 }

 /* Top section */
 .ht-team-member-card .top-section {
   display: flex;
   gap: 10px;
   align-items: center;
   height: 75px;
 }

 /* Wrapper for image + LinkedIn */
 .team-image-wrapper {
   position: relative;
   width: 48px;
   height: 48px;
   flex-shrink: 0;
   /* prevents shrinking in flex layout */
 }

 /* Team image */
 .ht-team-member-card .top-section .team-image {
   width: 70px;
   height: 70px;
   border-radius: 50%;
   overflow: hidden;
   display: flex;
   align-items: center;
   justify-content: center;
   background: #f5f5f5;
 }

 .ht-team-member-card .top-section .team-image img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   /* fills circle nicely */
   object-position: center;
 }

 /* Info */
 .ht-team-member-card .top-section .team-info {
   flex: 1;
   display: flex;
   flex-direction: column;
   justify-content: center;
 }

 /* Name */
 .ht-team-member-card .top-section .team-info .name {
   margin: 0;
   font-size: 14px;
   font-weight: 600;
   /* color: #20537d; */
   color: #1A2022;
 }

 /* Position */
 .ht-team-member-card .top-section .team-info .position {
   font-size: 13px;
   color: #575757;
   margin-top: 4px;
   font-weight: 500;
 }

 .ht-team-member-card .extra-info {
   display: -webkit-box;
   -webkit-line-clamp: 4;
   -webkit-box-orient: vertical;
   overflow: hidden;
   /* line-height: 1.6; */
 }

 /* Arrow */
 .ht-team-member-card .expand-btn {
   margin-top: auto;
   /* Move to bottom */
   align-self: flex-end;
   /* Right align */
   color: #20537D;
   font-weight: 500;
   cursor: pointer;
 }

 .ht-team-member-card .expand-btn .arrow {
   color: #FF9816;
   font-size: 16px;
 }

 .modal-header.testimonial-header {
   position: relative;
   padding: 24px 48px;
   border-bottom: none !important;
   align-items: flex-start;
   /* Keep close button at top */
 }

 /* Modal */

 #testimonialModal {
   border-radius: 24px !important;
 }

 .modal-header.testimonial-header::after {
   content: "";
   position: absolute;
   left: 48px;
   right: 48px;
   bottom: 0;
   height: 1px;
   background: #E5E7EB;
 }

 .profile-details {
   display: flex;
   align-items: flex-end;
   /* Bottom align image and text */
   gap: 20px;
 }

 .profile-info {
   display: flex;
   flex-direction: column;
   justify-content: flex-end;
   min-height: 105px;
   /* Same as image height */
 }

 .profile-details img {
   width: 105px;
   height: 105px;
   border-radius: 50%;
   object-fit: cover;
 }

 .profile-info h4 {
   margin: 0;
   font-size: 14px;
   font-weight: 600;
   color: #1A2022;
 }

 .modal-body.testimonial-body {
   padding: 24px 48px;
 }

 .profile-info p {
   margin: 4px 0 0;
   font-size: 13px;
   color: #575757;
   font-weight: 500;
 }

 /* Close button */
 .testimonial-header .btn-close {
   position: absolute;
   top: 24px;
   right: 48px;
   width: 32px;
   height: 32px;
   padding: 0;
   color: rgba(95, 99, 100, 1);
   border: 1px solid #D9D9D9;
   border-radius: 50%;
   background-color: #fff;
   background-size: 10px;
   opacity: 1;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: all 0.2s ease;
 }

 .testimonial-header .btn-close:hover {
   background-color: #F5F5F5;
   border-color: #C5C5C5;
 }

 /* Mobile */
 @media (max-width: 767.98px) {

   .modal-header.testimonial-header,
   .modal-body.testimonial-body {
     padding: 16px;
   }

   .modal-header.testimonial-header::after {
     left: 16px;
     right: 16px;
   }

   .testimonial-header .btn-close {
     top: 16px;
     right: 16px;
   }

   .profile-details {
     gap: 12px;
   }

   .profile-details img {
     width: 70px;
     height: 70px;
   }

   .profile-info {
     min-height: 70px;
   }
 }

 /* Career */
 .career-ht-team-member-card {
   text-align: center;
 }

 .career-top-section {
   display: flex;
   flex-direction: column;
   align-items: center;
 }

 .career-top-section .team-image img {
   width: 160px;
   height: 160px;
   border-radius: 50%;
   object-fit: cover;
 }

 /* Name */
 .career-top-section .team-info {
  padding: 20px;
 }

 .career-top-section .team-info .name {
   margin: 0;
   font-size: 14px;
   font-weight: 600;
   /* color: #20537d; */
   color: #1A2022;
 }

 /* Position */
 .career-top-section .team-info .position {
   font-size: 13px;
   color: #575757;
   margin-top: 4px;
   font-weight: 500;

   display: block;
   width: 100%;
   max-width: 180px;
   margin: 0 auto;
   text-align: center;
   white-space: normal;
   word-break: break-word;
   overflow-wrap: break-word;
   line-height: 1.5;
 }

.custom-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    border-bottom: 1px solid #E5E5E5;
}

/* Hide scrollbar */
.custom-tabs::-webkit-scrollbar {
    display: none;
}

.custom-tabs {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.custom-tabs .nav-link {
    position: relative;
    width: 175px;
    height: 46px;
    padding: 0 8px 16px;
    border: none !important;
    border-radius: 0;
    background: transparent;
    color: rgba(26, 32, 34, 1);
    font-size: 14px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
    white-space: nowrap;
}

.custom-tabs .nav-link:hover {
    color: #1A2022;
}

/* Active Tab */
.custom-tabs .nav-link.active {
    /* color: #FF9816 !important; */
    background: transparent !important;
}

/* Active Bottom Border */
.custom-tabs .nav-link.active::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 0;
    height: 2px;
    background: #FF9816;
}

.tab-content {
    margin-top: 24px !important;
}

/* =========================
   Tablet
========================= */
@media (max-width: 991px) {
    .custom-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 2px;
    }

    .custom-tabs .nav-link {
        flex: 0 0 auto;
        width: auto;
        min-width: 160px;
        padding: 0 12px 12px;
    }
}

/* =========================
   Mobile
========================= */
@media (max-width: 576px) {
    .custom-tabs .nav-link {
        min-width: 140px;
        height: 42px;
        font-size: 13px;
        padding: 0 10px 10px;
    }

    .tab-content {
        margin-top: 16px !important;
    }
}

.testimonialSwiper {
    width: 100%;
    overflow: hidden;
}

.testimonialSwiper .swiper-wrapper {
    transition-timing-function: linear !important;
}

.testimonialSwiper .swiper-slide {
    height: auto;
    display: flex;
}

.grid-item,
.career-ht-team-member-card {
    width: 100%;
}

.swiper {
    width: 100%;
    overflow: hidden;
}

.swiper-wrapper {
    display: flex;
}

.swiper-slide {
    height: auto;
    flex-shrink: 0;
}