/**
 * Single team member pages
 */
.single-team,
.nofal-team-layout {
    --tm-navy: #141428;
    --tm-primary: #283891;
    --tm-accent: #25aae1;
    --tm-accent-soft: #71b4e8;
    --tm-muted: #64748b;
    --tm-text: #334155;
    --tm-border: rgba(20, 20, 40, 0.08);
    --tm-radius: 20px;
    --tm-shadow: 0 18px 50px rgba(20, 20, 40, 0.1);
}

.nofal-team-page {
    overflow-x: clip;
}

/* Page head */
.single-team .nofal-team-pagehead,
.nofal-team-layout .nofal-team-pagehead {
    position: relative;
    padding: clamp(2.75rem, 7vw, 4.5rem) 0;
    background-color: var(--tm-navy);
    background-size: cover;
    background-position: center;
}

.single-team .nofal-team-pagehead::before,
.nofal-team-layout .nofal-team-pagehead::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20, 20, 40, 0.94) 0%, rgba(40, 56, 145, 0.78) 100%);
    pointer-events: none;
}

.single-team .nofal-team-pagehead .container,
.nofal-team-layout .nofal-team-pagehead .container {
    position: relative;
    z-index: 1;
}

.single-team .nofal-team-pagehead h1,
.nofal-team-layout .nofal-team-pagehead h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 0.85rem;
    text-transform: none;
    letter-spacing: -0.02em;
    color: #fff;
}

.single-team .nofal-team-pagehead .breadcrumb,
.nofal-team-layout .nofal-team-pagehead .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.65rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.single-team .nofal-team-pagehead .breadcrumb a,
.nofal-team-layout .nofal-team-pagehead .breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.single-team .nofal-team-pagehead .breadcrumb a:hover,
.nofal-team-layout .nofal-team-pagehead .breadcrumb a:hover {
    color: var(--tm-accent-soft);
}

/* Main layout */
.nofal-team-main {
    padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4rem);
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(37, 170, 225, 0.07), transparent 55%),
        linear-gradient(180deg, #f7f9fd 0%, #fff 100%);
}

.nofal-team-main__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: start;
}

.nofal-team-main__content {
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 3vw, 1.75rem);
}

/* Profile card */
.nofal-team-profile {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: center;
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: calc(var(--tm-radius) + 4px);
    background: linear-gradient(155deg, #121a42 0%, #283891 55%, #1a6fa8 100%);
    color: #fff;
    box-shadow:
        var(--tm-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.nofal-team-profile::before {
    content: "";
    position: absolute;
    top: -35%;
    right: -20%;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 170, 225, 0.35), transparent 70%);
    pointer-events: none;
}

.nofal-team-profile__photo-wrap {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: clamp(120px, 18vw, 168px);
    height: clamp(120px, 18vw, 168px);
}

.nofal-team-profile__photo-wrap::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 180deg, #25aae1, #71b4e8, #283891, #25aae1);
    animation: nofalTeamRingSpin 8s linear infinite;
}

.nofal-team-profile__photo {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.95);
    background: #1a1a32;
}

.nofal-team-profile__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nofal-team-profile__body {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.nofal-team-profile__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.75rem;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.nofal-team-profile__badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--tm-accent);
    box-shadow: 0 0 10px rgba(37, 170, 225, 0.8);
}

.nofal-team-profile__name {
    margin: 0 0 0.35rem;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
}

.nofal-team-profile__role {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}

.nofal-team-profile__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nofal-team-profile__tags li {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

/* Content panels */
.nofal-team-panel {
    padding: clamp(1.35rem, 3vw, 1.85rem);
    border-radius: var(--tm-radius);
    background: #fff;
    border: 1px solid var(--tm-border);
    box-shadow: 0 8px 28px rgba(20, 20, 40, 0.05);
}

.nofal-team-panel__title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1.15rem;
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--tm-navy);
    letter-spacing: -0.01em;
}

.nofal-team-panel__title::before {
    content: "";
    width: 4px;
    height: 1.25rem;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--tm-accent), var(--tm-primary));
}

.nofal-team-bio__text,
.nofal-team-bio .nofal-team-bio__text {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    line-height: 1.85;
    color: var(--tm-text);
}

.nofal-team-bio__text:last-child {
    margin-bottom: 0;
}

/* Skills */
.nofal-team-skills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem 1.5rem;
}

.nofal-team-skill__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

.nofal-team-skill__name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--tm-navy);
}

.nofal-team-skill__pct {
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--tm-primary);
}

.nofal-team-skill__track {
    height: 10px;
    border-radius: 999px;
    background: rgba(40, 56, 145, 0.08);
    overflow: hidden;
}

.nofal-team-skill__fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--tm-primary), var(--tm-accent));
    transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.nofal-team-skills__empty {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--tm-muted);
    font-size: 0.9375rem;
}

/* Sidebar */
.nofal-team-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 1.25rem;
}

.nofal-team-sidebar__card {
    padding: 1.25rem;
    border-radius: calc(var(--tm-radius) - 2px);
    background: #fff;
    border: 1px solid var(--tm-border);
    box-shadow: 0 8px 24px rgba(20, 20, 40, 0.05);
}

.nofal-team-sidebar__card--cta {
    background: linear-gradient(155deg, #121a42 0%, #283891 100%);
    color: #fff;
    border: 0;
}

.nofal-team-sidebar__card h3 {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    font-weight: 800;
    color: inherit;
}

.nofal-team-sidebar__back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--tm-primary);
    text-decoration: none;
}

.nofal-team-sidebar__back:hover {
    color: var(--tm-accent);
}

.nofal-team-sidebar__back::before {
    content: "→";
}

html[dir="rtl"] .nofal-team-sidebar__back::before {
    content: "←";
}

.nofal-team-sidebar__cta-text {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.nofal-team-sidebar__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nofal-team-sidebar__btn--wa {
    background: #25d366;
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.28);
}

.nofal-team-sidebar__btn--wa:hover {
    transform: translateY(-1px);
    color: #fff;
}

.nofal-team-sidebar__btn--ghost {
    margin-top: 0.65rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
}

.nofal-team-sidebar__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.nofal-team-related {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nofal-team-related__item a {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    padding: 0.55rem;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.nofal-team-related__item a:hover {
    background: rgba(40, 56, 145, 0.06);
}

.nofal-team-related__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: #eef2f8;
}

.nofal-team-related__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nofal-team-related__info strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--tm-navy);
    line-height: 1.3;
}

.nofal-team-related__info em {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    font-style: normal;
    color: var(--tm-muted);
    line-height: 1.35;
}

/* Bottom CTA */
.nofal-team-cta {
    padding: 0 0 clamp(2.5rem, 6vw, 4rem);
    background: #fff;
}

.nofal-team-cta__box {
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(1.75rem, 4vw, 2.5rem);
    border-radius: calc(var(--tm-radius) + 4px);
    text-align: center;
    background: linear-gradient(135deg, var(--tm-navy) 0%, var(--tm-primary) 100%);
    color: #fff;
    box-shadow: var(--tm-shadow);
}

.nofal-team-cta__box h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.nofal-team-cta__box p {
    margin: 0 auto 1.35rem;
    max-width: 560px;
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.9);
}

.nofal-team-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.nofal-team-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 0.85rem 1.35rem;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nofal-team-cta__btn--wa {
    background: #25d366;
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.28);
}

.nofal-team-cta__btn--wa:hover {
    transform: translateY(-1px);
    color: #fff;
}

.nofal-team-cta__btn--ghost {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
}

.nofal-team-cta__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

@keyframes nofalTeamRingSpin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 991px) {
    .nofal-team-main__grid {
        grid-template-columns: 1fr;
    }

    .nofal-team-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 767px) {
    .nofal-team-profile {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .nofal-team-profile__photo-wrap {
        margin: 0 auto;
    }

    .nofal-team-profile__tags {
        justify-content: center;
    }

    .nofal-team-skills {
        grid-template-columns: 1fr;
    }

    .nofal-team-sidebar {
        grid-template-columns: 1fr;
    }

    .nofal-team-cta__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .nofal-team-cta__btn {
        width: 100%;
        min-width: 0;
    }
}
