/********** Staffs Page - Upgraded **********/

.staff-hero {
    position: relative;
    padding: 72px 0 78px;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 14%, rgba(34, 197, 94, 0.10), transparent 24%),
        radial-gradient(circle at 90% 8%, rgba(245, 158, 11, 0.10), transparent 20%),
        radial-gradient(circle at 80% 88%, rgba(168, 85, 247, 0.08), transparent 22%),
        linear-gradient(180deg, #fffef9 0%, #f8fff9 48%, #ffffff 100%);
}

.staff-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(22, 163, 74, 0.035) 1px, transparent 1px),
        linear-gradient(rgba(245, 158, 11, 0.025) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.55;
}

.staff-hero::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -180px;
    top: -210px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34,197,94,0.10), transparent 65%);
    pointer-events: none;
}

.staff-hero .container {
    position: relative;
    z-index: 1;
}

.staff-hero-header {
    max-width: 780px;
    margin: 0 auto 38px;
    text-align: center;
}

.staff-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0.58rem 0.95rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.11);
    color: #176034;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-size: 0.72rem;
    margin-bottom: 12px;
    box-shadow: 0 12px 28px rgba(34, 197, 94, 0.10);
}

.staff-kicker i {
    color: #f59e0b;
}

.staff-hero-title {
    font-size: clamp(1.85rem, 3vw, 2.65rem);
    line-height: 1.08;
    margin: 0 0 12px;
    color: #182338;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.staff-hero-text {
    font-size: 1rem;
    line-height: 1.75;
    max-width: 660px;
    margin: 0 auto;
    color: #556070;
}

/********** Family Tree Team Leads **********/

.staff-family-tree {
    position: relative;
    max-width: 1060px;
    margin: 0 auto;
    padding: 26px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top left, rgba(34,197,94,0.10), transparent 25%),
        radial-gradient(circle at bottom right, rgba(245,158,11,0.10), transparent 25%),
        rgba(255,255,255,0.78);
    border: 1px solid rgba(24, 35, 56, 0.08);
    box-shadow: 0 24px 70px rgba(17, 24, 39, 0.10);
    backdrop-filter: blur(12px);
}

.staff-family-tree::before {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 26px;
    border: 1px dashed rgba(34, 197, 94, 0.18);
    pointer-events: none;
}

.tree-top,
.tree-bottom {
    position: relative;
    z-index: 2;
}

.tree-top {
    display: flex;
    justify-content: center;
}

.tree-bottom {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 24px;
    max-width: 760px;
    margin: 0 auto;
}

.tree-line {
    position: relative;
    width: 2px;
    height: 42px;
    margin: 12px auto;
    background: linear-gradient(180deg, #22c55e, #f59e0b);
    border-radius: 999px;
}

.tree-line::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 392px;
    height: 2px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(34,197,94,0.55), rgba(245,158,11,0.55), transparent);
    border-radius: 999px;
}

.lead-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(24, 35, 56, 0.08);
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.11);
    transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.lead-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 26px 58px rgba(17, 24, 39, 0.15);
}

.lead-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, #22c55e, #f59e0b, #a855f7);
    z-index: 3;
}

.lead-card-main {
    width: min(100%, 390px);
}

.lead-image {
    height: 250px;
    overflow: hidden;
    background: #eef7f0;
}

.lead-card-main .lead-image {
    height: 280px;
}

.lead-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.9s ease, filter 0.45s ease;
}

.lead-card:hover .lead-image img {
    transform: scale(1.045);
    filter: saturate(1.05);
}

.lead-copy {
    padding: 18px 18px 20px;
    text-align: center;
}

.lead-copy span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.48rem 0.78rem;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    color: #8a5300;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.lead-copy span i {
    color: #f59e0b;
}

.lead-copy h3 {
    color: #182338;
    font-size: 1.05rem;
    line-height: 1.35;
    margin: 0 0 6px;
    font-weight: 900;
}

.lead-copy p {
    margin: 0;
    color: #556070;
    font-weight: 800;
    line-height: 1.55;
}

/********** Management Grid Section **********/

.staff-section {
    position: relative;
    padding: 74px 0 92px;
}

.staff-section-management {
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.07), transparent 20%),
        radial-gradient(circle at 8% 84%, rgba(34, 197, 94, 0.07), transparent 20%),
        linear-gradient(180deg, rgba(249,253,250,0.95), rgba(255,255,255,1));
}

.staff-section-intro {
    max-width: 700px;
    margin: 0 auto 34px;
}

.staff-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0.58rem 0.92rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.10);
    color: #176034;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.72rem;
    margin-bottom: 12px;
}

.staff-section-kicker i {
    color: #f59e0b;
}

.staff-section-heading {
    font-size: clamp(1.55rem, 2.6vw, 2.15rem);
    line-height: 1.1;
    color: #182338;
    font-weight: 900;
    margin-bottom: 10px;
}

.staff-section-subtext {
    font-size: 0.98rem;
    line-height: 1.75;
    color: #556070;
    margin: 0 auto;
}

.staff-management-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

/********** Staff Cards **********/

.staff-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(24, 35, 56, 0.08);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.99), rgba(248,252,249,0.98));
    box-shadow: 0 16px 36px rgba(17, 24, 39, 0.09);
    transition: transform 0.45s ease, box-shadow 0.45s ease;
    padding: 16px;
}

.staff-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 52px rgba(17, 24, 39, 0.14);
}

.staff-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #22c55e, #f59e0b, #a855f7);
}

.staff-card-lugbe::before {
    background: linear-gradient(90deg, #0ea5e9, #22c55e, #f59e0b);
}

.staff-card-rank {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
}

.staff-card-rank span {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(24, 35, 56, 0.08);
    box-shadow: 0 12px 26px rgba(17, 24, 39, 0.10);
    color: #182338;
    font-weight: 900;
    font-size: 0.86rem;
}

.staff-branch-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 3;
    padding: 0.42rem 0.64rem;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.12);
    color: #075985;
    border: 1px solid rgba(14, 165, 233, 0.14);
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.08);
}

.staff-card-image-wrap {
    position: relative;
    margin-bottom: 14px;
    border-radius: 20px;
    overflow: hidden;
    background: #eef7f0;
}

.staff-card-image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(24,35,56,0.01) 38%, rgba(24,35,56,0.13) 100%);
    pointer-events: none;
}

.staff-card-image-wrap img {
    width: 100%;
    height: 245px;
    display: block;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.9s ease, filter 0.45s ease;
}

.staff-card:hover .staff-card-image-wrap img {
    transform: scale(1.045);
    filter: saturate(1.05);
}

.staff-card-icon {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 2;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(24, 35, 56, 0.08);
    box-shadow: 0 14px 28px rgba(17, 24, 39, 0.12);
    color: #16a34a;
    font-size: 1rem;
    backdrop-filter: blur(12px);
}

.staff-card-lugbe .staff-card-icon {
    color: #0284c7;
}

.staff-card-copy h3 {
    font-size: 1rem;
    line-height: 1.35;
    margin-bottom: 8px;
    color: #182338;
    font-weight: 900;
}

.staff-card-role {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    color: #556070;
    font-weight: 800;
    font-size: 0.88rem;
    line-height: 1.58;
}

.staff-card-role i {
    color: #f59e0b;
    margin-top: 4px;
}

.staff-card-lugbe .staff-card-role i {
    color: #0284c7;
}

/********** Scroll Reveal Support **********/

.staff-reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.staff-reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/********** Responsive **********/

@media (max-width: 1399.98px) {
    .staff-management-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .staff-card-image-wrap img {
        height: 250px;
    }
}

@media (max-width: 1199.98px) {
    .staff-hero {
        padding: 66px 0 70px;
    }

    .staff-family-tree {
        max-width: 940px;
    }

    .staff-management-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .staff-card-image-wrap img {
        height: 235px;
    }
}

@media (max-width: 991.98px) {
    .staff-hero {
        padding: 58px 0 62px;
    }

    .staff-family-tree {
        padding: 22px;
        border-radius: 28px;
    }

    .tree-bottom {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .lead-image,
    .lead-card-main .lead-image {
        height: 245px;
    }

    .staff-section {
        padding: 64px 0 78px;
    }

    .staff-management-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .staff-card-image-wrap img {
        height: 270px;
    }
}

@media (max-width: 767.98px) {
    .staff-hero {
        padding: 48px 0 52px;
    }

    .staff-hero-header {
        margin-bottom: 28px;
    }

    .staff-hero-title {
        font-size: 1.65rem;
    }

    .staff-hero-text {
        font-size: 0.92rem;
        line-height: 1.65;
    }

    .staff-family-tree {
        padding: 18px;
        border-radius: 24px;
    }

    .staff-family-tree::before {
        inset: 12px;
        border-radius: 20px;
    }

    .tree-bottom {
        grid-template-columns: 1fr;
    }

    .tree-line {
        height: 34px;
        margin: 10px auto;
    }

    .tree-line::after {
        display: none;
    }

    .lead-card-main {
        width: 100%;
    }

    .lead-image,
    .lead-card-main .lead-image {
        height: 250px;
    }

    .lead-copy {
        padding: 16px;
    }

    .staff-section {
        padding: 54px 0 68px;
    }

    .staff-section-intro {
        margin-bottom: 26px;
    }

    .staff-section-heading {
        font-size: 1.55rem;
    }

    .staff-section-subtext {
        font-size: 0.92rem;
    }

    .staff-management-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .staff-card {
        padding: 15px;
        border-radius: 22px;
    }

    .staff-card-image-wrap {
        border-radius: 18px;
    }

    .staff-card-image-wrap img {
        height: 285px;
    }
}

@media (max-width: 575.98px) {
    .staff-hero {
        padding: 42px 0 48px;
    }

    .staff-kicker,
    .staff-section-kicker {
        font-size: 0.64rem;
        padding: 0.52rem 0.76rem;
    }

    .staff-hero-title {
        font-size: 1.42rem;
        line-height: 1.14;
    }

    .staff-hero-text {
        font-size: 0.88rem;
    }

    .lead-image,
    .lead-card-main .lead-image {
        height: 220px;
    }

    .lead-copy span {
        font-size: 0.64rem;
        padding: 0.44rem 0.68rem;
    }

    .lead-copy h3 {
        font-size: 0.98rem;
    }

    .lead-copy p {
        font-size: 0.88rem;
    }

    .staff-card-image-wrap img {
        height: 245px;
    }

    .staff-card-copy h3 {
        font-size: 0.98rem;
    }

    .staff-card-role {
        font-size: 0.84rem;
    }

    .staff-card-rank span {
        width: 38px;
        height: 38px;
        border-radius: 13px;
        font-size: 0.78rem;
    }

    .staff-card-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }
}

@media (max-width: 430px) {
    .staff-hero-title {
        font-size: 1.3rem;
    }

    .staff-hero-text {
        font-size: 0.84rem;
    }

    .staff-family-tree {
        padding: 14px;
    }

    .lead-image,
    .lead-card-main .lead-image {
        height: 195px;
    }

    .staff-card {
        padding: 13px;
    }

    .staff-card-image-wrap img {
        height: 215px;
    }

    .staff-section-heading {
        font-size: 1.32rem;
    }

    .staff-section-subtext {
        font-size: 0.86rem;
        line-height: 1.62;
    }
}



/* ===== CLOSE GAP BETWEEN TEAM LEADS & STAFFS ===== */

.staff-hero {
    padding-bottom: 36px !important;
}

.staff-family-tree {
    margin-bottom: 10px !important;
}

.staff-section {
    padding-top: 28px !important;
}

/* Optional: tighten intro spacing a bit */
.staff-section-intro {
    margin-top: 0 !important;
    margin-bottom: 24px !important;
}

/* On smaller screens, reduce even more */
@media (max-width: 991.98px) {
    .staff-hero {
        padding-bottom: 24px !important;
    }

    .staff-section {
        padding-top: 20px !important;
    }
}