.team-slider .single-team-member {
    padding: 0 20px !important;
}

/* Team section surface */
.cc-team-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 55%, #ffffff 100%);
}

.cc-team-section__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cc-team-section__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.5;
}

.cc-team-section__glow--left {
    width: 320px;
    height: 320px;
    top: 10%;
    left: -80px;
    background: rgba(0, 207, 255, 0.18);
    animation: ccTeamGlow 12s ease-in-out infinite;
}

.cc-team-section__glow--right {
    width: 280px;
    height: 280px;
    bottom: 5%;
    right: -60px;
    background: rgba(238, 37, 56, 0.14);
    animation: ccTeamGlow 12s ease-in-out infinite reverse;
}

@keyframes ccTeamGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(16px, -12px); }
}

/* Axil Team Area  */
.axil-team .inner .thumbnail {
    position: relative;
    display: inline-block;
}

.axil-team .inner .thumbnail::before {
    position: absolute;
    width: calc(100% - 2px);
    height: calc(100% - 7px);
    top: 23px;
    content: "";
    border: 2px solid #000345;
    z-index: -1;
    right: 21px;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
}

.axil-team-area .thumbnail {
    position: relative;
    z-index: 3;
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .axil-team-area .thumbnail img {
        width: 100%;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .axil-team-area .thumbnail img {
        width: 100%;
    }
}

@media only screen and (max-width: 767px) {
    .axil-team-area .thumbnail img {
        width: 100%;
        height: auto;
    }
}

.axil-team-area .thumbnail .total-team-button a {
    display: inline-block;
    width: 80px;
    height: 60px;
    font-size: 26px;
    line-height: 32px;
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: none;
    position: absolute;
    z-index: 2;
    right: 34%;
    bottom: 40px;
    text-align: center;
    line-height: 57px;
}

.axil-team-area .thumbnail .total-team-button a span {
    display: inline-block;
    padding-left: 10px;
}

.axil-team-area .thumbnail .total-team-button a::after {
    box-shadow: 0 5px 35px rgba(0, 2, 72, 0.1);
    background: #7A19FF;
    position: absolute;
    content: "";
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transform: perspective(100px) rotateY(-20deg);
}

.axil-team .inner .content {
    padding-top: 20px;
    padding-bottom: 20px;
}

@media only screen and (max-width: 767px) {
    .axil-team .inner .content {
        padding-top: 13px;
    }
}

.axil-team .inner .content h4.title {
    margin-bottom: 10px;
}

@media only screen and (max-width: 767px) {
    .axil-team .inner .content h4.title {
        margin-bottom: 3px;
    }
}

.axil-team .inner .content h4.title a {
    text-decoration: none;
}

/* Enhanced team cards */
.cc-team-card .inner {
    background: #fff;
    border: 1px solid rgba(0, 2, 72, 0.08);
    border-radius: 22px;
    padding: 22px 22px 26px;
    box-shadow: 0 18px 42px rgba(0, 2, 72, 0.07);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    height: 100%;
}

.cc-team-card:hover .inner {
    transform: translateY(-8px);
    border-color: rgba(0, 207, 255, 0.35);
    box-shadow: 0 28px 56px rgba(0, 2, 72, 0.12);
}

.cc-team-card__visual {
    position: relative;
}

.cc-team-card__photo {
    border-radius: 16px;
    overflow: hidden;
}

.cc-team-card__photo img {
    transition: transform 0.5s ease;
}

.cc-team-card:hover .cc-team-card__photo img {
    transform: scale(1.04);
}

.cc-team-card__ring {
    position: absolute;
    inset: -3px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(0, 207, 255, 0.55), rgba(238, 37, 56, 0.55));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.35s ease;
}

.cc-team-card:hover .cc-team-card__ring {
    opacity: 1;
}

.cc-team-card__linkedin-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    text-decoration: none !important;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease;
}

.cc-team-card:hover .cc-team-card__linkedin-cta,
.cc-team-card:focus-within .cc-team-card__linkedin-cta,
.cc-team-card__linkedin-cta:focus-visible {
    max-height: 40px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.cc-team-card__wave {
    display: inline-block;
    font-size: 18px;
    line-height: 1;
    transform-origin: 70% 70%;
    animation: none;
}

.cc-team-card:hover .cc-team-card__wave,
.cc-team-card:focus-within .cc-team-card__wave {
    animation: ccWaveHand 1.2s ease-in-out infinite;
}

.cc-team-card__linkedin-msg {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.01em;
    background: linear-gradient(90deg, #00cfff 0%, #0a66c2 45%, #ee2538 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: none;
}

.cc-team-card:hover .cc-team-card__linkedin-msg,
.cc-team-card:focus-within .cc-team-card__linkedin-msg {
    animation: ccLinkedinGradient 2.4s ease-in-out infinite;
}

@keyframes ccLinkedinGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes ccWaveHand {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(18deg); }
    75% { transform: rotate(-8deg); }
}

.cc-team-card__body {
    text-align: center;
}

.cc-team-card__heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cc-team-card__role {
    color: rgba(0, 2, 72, 0.72);
    font-weight: 600;
}

.cc-team-card__bio {
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(0, 2, 72, 0.82);
}

body.active-dark-mode .cc-team-section {
    background: linear-gradient(180deg, #1f2126 0%, #181a1f 100%);
}

body.active-dark-mode .cc-team-card .inner {
    background: #262930;
    border-color: rgba(255, 255, 255, 0.08);
}

body.active-dark-mode .cc-team-card__linkedin-msg {
    background: linear-gradient(90deg, #5adfff 0%, #6db3f2 45%, #ff6b7a 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
