/* Team single page (single-team.php). Loaded only on team members. */

/* ---------- Hero: logo gallery under the name ---------- */
.team-banner .hero-meta-alt.team-logos {
    margin: 5px 0 10px;
}

.team-banner .hero-meta-alt.team-logos .title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.75;
    margin-bottom: 10px;
}

.team-banner .hero-meta-alt.team-logos ul {
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}

.team-banner .hero-meta-alt.team-logos ul li {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    margin: 0;
    padding: 8px 14px;
    background: #fff;
    border-radius: 10px;
}

.team-banner .hero-meta-alt.team-logos ul li img {
    max-height: 34px;
    max-width: 110px;
    width: auto;
    object-fit: contain;
}

/* ---------- Content: sticky speaker CTA in a sidebar ---------- */
.team-details-content::before {
    height: calc(100% - 30px);
}

@media (min-width: 992px) {
    .team-details-content-area .team-cta-box {
        position: sticky;
        top: 120px;
        padding: 40px 30px;
        transform: none;
    }

    .team-details-content-area .team-cta-box .h3 {
        font-size: 24px;
        line-height: 1.3;
    }
}

/* ---------- Podcast video slider ---------- */
.team-podcast-area {
    padding: 100px 0 0;
}

.team-podcast {
    background: #00102B;
    border-radius: 20px;
    padding: 50px;
    overflow: hidden;
}

.team-podcast-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.team-podcast-head .team-sub-heading {
    margin-bottom: 8px;
}

.team-podcast-head .heading {
    color: #fff;
    margin: 0;
}

.team-podcast-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.team-podcast-nav {
    display: flex;
    gap: 10px;
}

.team-podcast-nav button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #fff;
    transition: all 0.3s;
}

.team-podcast-nav button:hover,
.team-podcast-nav button:focus-visible {
    background: #5690F4;
    border-color: #5690F4;
}

.team-podcast-nav button.slick-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.team-podcast-slider .slick-list {
    margin: 0 -12px;
}

.team-podcast-slider .slick-track {
    display: flex;
}

.team-podcast-slider .slick-slide {
    height: auto;
}

.team-podcast-slider .slide {
    padding: 0 12px;
}

.team-podcast-slider .slick-dots {
    position: static;
    margin-top: 25px;
}

.team-podcast-slider .slick-dots li button:before {
    color: #fff;
    font-size: 10px;
}

.team-podcast-slider .slick-dots li.slick-active button:before {
    color: #5690F4;
    opacity: 1;
}

.post-box.team-video {
    padding: 14px;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
}

.post-box.team-video:hover {
    transform: none;
}

.team-video .image {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
}

.post-box.team-video .image img {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
    transition: transform 0.4s;
}

.team-video .image:hover img {
    transform: scale(1.05);
}

.video-box.team-video .play_icon {
    width: 64px;
    height: 64px;
    line-height: 64px;
    font-size: 18px;
    opacity: 1;
    visibility: visible;
}

.team-video .image:hover .play_icon {
    background: #5690F4;
}

.post-box.team-video .post-meta {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    margin-bottom: 6px;
}

.post-box.team-video .title {
    min-height: 0;
    margin: 0;
    font-size: 17px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.post-box.team-video .title a {
    color: #fff;
}

.post-box.team-video .title a:hover {
    text-decoration: underline;
}

/* ---------- Latest blog posts ---------- */
.team-posts-area {
    padding-bottom: 40px;
}

.team-posts-area.pt_140 {
    padding-top: 100px;
}

/* Keep "Read More" aligned at the bottom whether or not a card has an image. */
.team-posts-area .post-box {
    display: flex;
    flex-direction: column;
}

.team-posts-area .post-box .text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.team-posts-area .post-box .title {
    min-height: 0;
}

.team-posts-area .post-box .image img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.team-posts-area .post-box .image-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 190px;
    border-radius: 10px;
    background: linear-gradient(135deg, #00102B 0%, #0A234E 100%);
}

.team-posts-area .post-box .image-fallback img {
    width: 55%;
    height: auto;
    border-radius: 0;
    object-fit: contain;
    opacity: 0.9;
}

.team-posts-area .post-box .cta-btn {
    margin-top: auto;
    justify-content: center;
}

.team-posts-area .post-box p {
    margin-bottom: 15px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .team-podcast-area {
        padding-top: 60px;
    }

    .team-podcast {
        padding: 40px 30px;
    }
}

@media (max-width: 767px) {
    .team-podcast-head {
        align-items: flex-start;
    }

    .team-podcast-nav {
        display: none;
    }

    .team-posts-area.pt_140 {
        padding-top: 70px;
    }
}

@media (max-width: 575px) {
    .team-banner .hero-meta-alt.team-logos ul {
        justify-content: center;
    }

    .team-podcast {
        padding: 30px 20px;
        border-radius: 15px;
    }

    .team-podcast-actions,
    .team-podcast-actions .cta-btn {
        width: 100%;
    }

    .team-podcast-actions .cta-btn {
        justify-content: center;
    }
}
