/* =========================================================
   TEAM PAGE
========================================================= */

/* =========================================================
   TEAM HERO
========================================================= */

.team-hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;

    background:
        linear-gradient(
            rgba(55, 9, 18, .82),
            rgba(18, 16, 14, .88)
        );

    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.team-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            #1D1916 0%,
            #2A151B 100%
        );
}

.team-hero .container {
    position: relative;
    z-index: 2;
}

.team-hero .section-subtitle {
    display: inline-block;
    margin-bottom: 20px;

    color: #C7A13C;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.team-hero-title {
    margin-bottom: 25px;

    color: #fff;
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    line-height: 1.15;
}

.team-hero-description {
    max-width: 700px;
    margin: auto;

    color: #E8E2DA;
    font-size: 1.05rem;
    line-height: 1.9;
}


/* =========================================================
   PERIOD BADGE
========================================================= */

.period-badge {
    display: inline-block;

    margin-top: 45px;
    padding: 18px 40px;

    background: var(--maroon);
    border: 1px solid rgba(199, 161, 60, .35);
    border-radius: 50px;

    backdrop-filter: blur(10px);
    transition: .35s;
}

.period-badge:hover {
    transform: translateY(-5px);

    box-shadow:
        0 20px 40px rgba(117, 28, 42, .35);
}

.period-badge span {
    display: block;

    margin-bottom: 6px;

    color: #C7A13C;
    font-size: .9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.period-badge h4 {
    margin: 0;

    color: #fff;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
}


/* =========================================================
   CORE TEAM
========================================================= */

.core-team {
    background:
        url('../img/team/team-bg.webp');

    background-color: rgba(33, 19, 9, .921);
    background-blend-mode: multiply;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.core-card {
    height: 100%;
    overflow: hidden;

    background: #1D1916;
    border: 1px solid rgba(199, 161, 60, .15);
    border-radius: 22px;

    transition: .4s;
}

.core-card:hover {
    transform: translateY(-10px);

    border-color: #C7A13C;

    box-shadow:
        0 20px 40px rgba(117, 28, 42, .30);
}

.core-image {
    position: relative;
    overflow: hidden;
}

.core-image img {
    display: block;

    width: 100%;
    height: 280px;

    object-fit: cover;

    transition: .45s;
}

.core-card:hover .core-image img {
    transform: scale(1.08);
}

.core-content {
    padding: 28px 20px;
    text-align: center;
}

.core-content .jabatan {
    display: inline-block;

    margin-bottom: 10px;
    padding: 6px 18px;

    background: #751C2A;
    border-radius: 30px;

    color: #fff;
    font-size: .85rem;
}

.core-content h5 {
    margin-bottom: 6px;

    color: #fff;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
}

.core-content p {
    margin-bottom: 5px;

    color: #C7A13C;
    font-size: 1rem;
}


/* =========================================================
   OTHER TEAM
========================================================= */

.other-team {
    background: #1D1916;
}

.other-card {
    height: 100%;
    overflow: hidden;

    background: #12100E;
    border: 1px solid rgba(199, 161, 60, .15);
    border-radius: 20px;

    transition: .4s;
}

.other-card:hover {
    transform: translateY(-8px);

    border-color: #C7A13C;

    box-shadow:
        0 15px 35px rgba(117, 28, 42, .35);
}

.other-image {
    position: relative;
    overflow: hidden;
}

.other-image img {
    display: block;

    width: 100%;
    height: 280px;

    object-fit: cover;

    transition: .45s;
}

.other-card:hover .other-image img {
    transform: scale(1.08);
}

.other-content {
    padding: 25px 20px;
    text-align: center;
}

.other-position {
    display: inline-block;

    margin-bottom: 10px;
    padding: 7px 18px;

    background: #751C2A;
    border-radius: 30px;

    color: #fff;
    font-size: .9rem;
}

.other-content h5 {
    margin-bottom: 6px;

    color: #F5EFE6;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
}

.other-content p {
    margin-bottom: 5px;

    color: #C7A13C;
    font-size: 1rem;
}


/* =========================================================
   MEMBER CTA
========================================================= */

.member-cta {
    padding: 80px 0;

    background: #12100E;
}

.cta-box {
    padding: 60px 40px;

    background:
        linear-gradient(
            135deg,
            rgba(117, 28, 42, .85),
            rgba(29, 25, 22, .95)
        );

    border: 1px solid rgba(199, 161, 60, .25);
    border-radius: 30px;

    text-align: center;
}

.cta-content h2 {
    margin-bottom: 20px;

    color: #fff;
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    line-height: 1.2;
}

.cta-content p {
    max-width: 650px;
    margin: 0 auto 35px;

    color: #E8E2DA;
    line-height: 1.8;
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 14px 35px;

    background: #C7A13C;
    border-radius: 50px;

    color: #12100E;
    font-weight: 600;
    text-decoration: none;

    transition: .3s;
}

.btn-gold:hover {
    background: #E7C96D;
    color: #12100E;

    transform: translateY(-5px);
}


/* =========================================================
   FILTER BOX
========================================================= */

.filter-box {
    padding: 35px;

    background: var(--surface-color);
    border: 1px solid rgba(255, 217, 138, .12);
    border-radius: 20px;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, .15);
}

.filter-box label {
    margin-bottom: .5rem;

    color: var(--heading-color);
    font-size: .9rem;
    font-weight: 600;
}

.filter-box .form-control,
.filter-box .form-select {
    height: 52px;

    background: #171411;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;

    color: var(--default-color);

    transition: .3s;
}

.filter-box .form-control:focus,
.filter-box .form-select:focus {
    background: #171411;
    border-color: var(--accent-color);

    color: var(--default-color);

    box-shadow:
        0 0 0 .15rem rgba(224, 180, 92, .15);
}

.filter-box .form-control::placeholder {
    color: #A9A39B;
}

.filter-box .btn-gold {
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-box .filter-footer {
    margin-top: 28px;
    padding-top: 22px;

    border-top: 1px solid rgba(255, 255, 255, .08);
}

.filter-box .text-not-found {
    color: #B8B2A9 !important;
}

.filter-box .btn-outline-secondary {
    padding: .55rem 1.2rem;

    background: transparent;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50px;

    color: var(--default-color);

    transition: .3s;
}

.filter-box .btn-outline-secondary:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);

    color: #12100E;
}


/* =========================================================
   MEMBER LIST
========================================================= */

.member-list .other-card {
    height: 100%;
    border-radius: 20px;

    transition: .35s;
}

.member-list .other-card:hover {
    transform: translateY(-8px);
}

.member-list .other-image img {
    width: 100%;
    object-fit: cover;
}

.member-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;

    margin-bottom: 12px;
}

.member-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 5px 12px;

    background: rgba(224, 180, 92, .15);
    border: 1px solid rgba(224, 180, 92, .3);
    border-radius: 30px;

    color: var(--heading-color);
    font-size: .72rem;
    font-weight: 600;
}

.member-list h5 {
    margin-bottom: 8px;

    font-size: 1.15rem;
}

.member-info {
    margin-bottom: 15px;

    color: #B8B2A9;
    font-size: .9rem;
}

.member-empty {
    max-width: 500px;
    margin: auto;
    text-align: center;
}

.member-empty img {
    display: block;

    width: 200px;
    max-width: 100%;

    margin: 0 auto 25px;

    opacity: .9;
}

.member-empty h4 {
    margin-bottom: 12px;

    color: var(--heading-color);
}


/* =========================================================
   HISTORY TEAM
========================================================= */

.history-team {
    background: #1D1916;
}

.history-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.history-card {
    width: 220px;

    padding: 35px 25px;

    background: #12100E;
    border: 1px solid rgba(199, 161, 60, .2);
    border-radius: 20px;

    text-align: center;
    text-decoration: none;

    transition: .35s;
}

.history-card:hover {
    transform: translateY(-10px);

    background:
        linear-gradient(
            135deg,
            rgba(77, 41, 1, .18),
            rgba(75, 0, 10, .55)
        );

    border-color: #C7A13C;

    box-shadow:
        0 15px 35px rgba(117, 28, 42, .35);
}

.history-card span {
    color: #C7A13C;
    font-size: .85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.history-card h4 {
    margin: 15px 0;

    color: #fff;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
}

.history-card small {
    display: inline-block;

    padding: 6px 15px;

    background: #751C2A;
    border-radius: 30px;

    color: #fff;
}


/* =========================================================
   PERIOD FILTER
========================================================= */

.period-filter {
    margin-bottom: 35px;
}

.period-dropdown {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 15px 20px;

    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;

    color: var(--white);

    transition: .3s;
}

.period-dropdown:hover {
    background: var(--border);
    border-color: var(--gold);

    color: var(--white);
}

.period-dropdown:focus {
    border-color: var(--border);
    box-shadow: none;
}

.period-dropdown::after {
    margin-left: auto;
}

.period-filter .dropdown-menu {
    width: 100%;

    padding: 8px;

    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.period-filter .dropdown-item {
    padding: 12px 14px;

    color: var(--white);
    border-radius: 10px;

    transition: .3s;
}

.period-filter .dropdown-item:hover,
.period-filter .dropdown-item.active {
    background: rgba(199, 161, 60, .15);
    color: var(--gold-light);
}

.period-filter .dropdown-item.active {
    font-weight: 600;
}

.active-period {
    background:
        linear-gradient(
            135deg,
            rgba(77, 41, 1, .18),
            rgba(75, 0, 10, .55)
        );

    border: 1px solid var(--gold);
}

.active-period span {
    color: var(--gold-light);
}

.active-period h4 {
    color: #fff;
}

.active-period small {
    color: var(--gold-light);
}

.active-period:hover {
    transform: translateY(-8px);
}


/* =========================================================
   TABLET
   768px - 991.98px
========================================================= */

@media (max-width: 991.98px) {

    /* HERO */

    .team-hero {
        min-height: 520px;
        padding: 100px 0 70px;
    }

    .team-hero-title {
        font-size: 3rem;
    }

    .team-hero-description {
        max-width: 650px;

        font-size: .95rem;
        line-height: 1.7;
    }

    .period-badge {
        margin-top: 25px;
    }


    /* CORE TEAM */

    .core-team .row,
    .other-team .row,
    .member-list .row {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1.5rem;
    }

    .core-team .row > [class*="col-"],
    .other-team .row > [class*="col-"],
    .member-list .row > [class*="col-"] {
        flex: 0 0 33.333333%;
        width: 33.333333%;
        max-width: 33.333333%;
    }

    .core-image img,
    .other-image img,
    .member-list .other-image img {
        height: 240px;
    }

    .core-content,
    .other-content,
    .member-list .other-content {
        padding: 20px 15px;
    }

    .core-content h5,
    .other-content h5 {
        font-size: 1.1rem;
    }

    .core-content p,
    .other-content p {
        font-size: .85rem;
    }

    .member-list .member-badge {
        padding: 5px 10px;
        font-size: .7rem;
    }


    /* CTA */

    .member-cta {
        padding: 65px 0;
    }

    .cta-box {
        padding: 50px 30px;
        border-radius: 25px;
    }

    .cta-content h2 {
        font-size: 2.5rem;
    }

    .cta-content p {
        max-width: 600px;

        font-size: .95rem;
        line-height: 1.7;
    }


    /* HISTORY */

    .history-wrapper {
        gap: 18px;
    }

    .history-card {
        width: 200px;
        padding: 30px 20px;
    }

    .history-card span {
        font-size: .78rem;
        letter-spacing: 1.5px;
    }

    .history-card h4 {
        font-size: 1.8rem;
    }

    .history-card small {
        padding: 6px 13px;
        font-size: .75rem;
    }
}


/* =========================================================
   MOBILE
   <= 767.98px
========================================================= */

@media (max-width: 768px) {

    /* HERO */

    .team-hero {
        min-height: 470px;
        padding: 85px 20px 60px;

        background-attachment: scroll;
    }

    .team-hero .container {
        width: 100%;
    }

    .team-hero .row {
        margin: 0;
    }

    .team-hero .col-lg-8 {
        padding: 0;
    }

    .team-hero .section-subtitle {
        margin-bottom: 12px;

        font-size: .75rem;
        letter-spacing: 4px;
    }

    .team-hero-title {
        margin: 12px 0 18px;

        font-size: 2.25rem;
        line-height: 1.15;
    }

    .team-hero-description {
        max-width: 100%;

        font-size: .82rem;
        line-height: 1.65;
    }

    .period-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        max-width: 100%;

        margin-top: 22px;
        padding: 10px 18px;

        text-align: center;
    }

    .period-badge span {
        font-size: .72rem;
        line-height: 1.4;
    }


    /* CORE & OTHER TEAM */

    .core-team .row,
    .other-team .row,
    .member-list .row {
        --bs-gutter-x: .75rem;
        --bs-gutter-y: 1rem;
    }

    .core-team .row > [class*="col-"],
    .other-team .row > [class*="col-"],
    .member-list .row > [class*="col-"] {
        flex: 0 0 50%;
        width: 50%;
        max-width: 50%;

        padding-left: 6px;
        padding-right: 6px;
    }

    .core-card,
    .other-card,
    .member-list .other-card {
        border-radius: 15px;
    }

    .core-image img,
    .other-image img,
    .member-list .other-image img {
        height: 240px;
    }

    .core-content,
    .other-content,
    .member-list .other-content {
        padding: 18px 14px;
    }

    .core-content .jabatan,
    .other-position {
        margin-bottom: 6px;
        padding: 4px 8px;

        font-size: .58rem;
    }

    .core-content h5,
    .other-content h5 {
        margin-bottom: 5px;

        font-size: .85rem;
        line-height: 1.2;
    }

    .core-content p,
    .other-content p {
        font-size: .62rem;
        line-height: 1.3;
    }


    /* MEMBER LIST */

    .member-list .member-badges {
        margin-bottom: 7px;
    }

    .member-list .member-badge {
        padding: 4px 8px;

        font-size: .58rem;

        white-space: nowrap;
    }

    .member-list .member-info {
        margin-bottom: 6px;

        font-size: .68rem;
        line-height: 1.35;
    }

    .member-list h5 {
        margin-bottom: 0;

        font-size: .95rem;
        line-height: 1.25;
    }


    /* DISABLE HOVER MOVEMENT ON TOUCH */

    .core-card:hover,
    .other-card:hover,
    .member-list .other-card:hover {
        transform: none;
    }

    .core-card:hover img,
    .other-card:hover img,
    .member-list .other-card:hover img {
        transform: none;
    }


    /* CTA */

    .member-cta {
        padding: 50px 0;
    }

    .member-cta .container {
        padding-right: 18px;
        padding-left: 18px;
    }

    .cta-box {
        padding: 40px 22px;
        border-radius: 22px;
    }

    .cta-content .section-subtitle {
        font-size: .7rem;
        letter-spacing: 2px;
    }

    .cta-content h2 {
        margin-bottom: 15px;

        font-size: 2rem;
        line-height: 1.2;
    }

    .cta-content p {
        margin-bottom: 25px;

        font-size: .78rem;
        line-height: 1.65;
    }

    .cta-content .btn-gold {
        padding: 11px 18px;

        font-size: .75rem;
        gap: 7px;
    }


    /* HISTORY */

    .history-wrapper {
        display: grid;

        width: 100%;

        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .history-card {
        width: 100%;

        padding: 24px 12px;

        border-radius: 16px;
    }

    .history-card span {
        font-size: .62rem;
        letter-spacing: 1px;
    }

    .history-card h4 {
        margin: 10px 0;

        font-size: 1.45rem;
    }

    .history-card small {
        padding: 5px 9px;

        font-size: .62rem;
        white-space: nowrap;
    }
}


/* =========================================================
   SMALL MOBILE
   <= 575.98px
========================================================= */

@media (max-width: 575.98px) {

    /* HERO */

    .team-hero {
        min-height: 430px;
        padding: 75px 18px 50px;
    }

    .team-hero .section-subtitle {
        font-size: .7rem;
        letter-spacing: 4px;
    }

    .team-hero-title {
        margin: 10px 0 15px;

        font-size: 1.85rem;
        line-height: 1.15;
    }

    .team-hero-description {
        font-size: .7rem;
        line-height: 1.65;
    }

    .period-badge {
        margin-top: 18px;
        padding: 8px 14px;
    }

    .period-badge span {
        font-size: .65rem;
    }


    /* TEAM CARDS */

    .core-team .row,
    .other-team .row,
    .member-list .row {
        --bs-gutter-x: .6rem;
        --bs-gutter-y: .8rem;
    }

    .core-team .row > [class*="col-"],
    .other-team .row > [class*="col-"],
    .member-list .row > [class*="col-"] {
        flex: 0 0 50%;
        width: 50%;
        max-width: 50%;

        padding-left: 5px;
        padding-right: 5px;
    }

    .core-card,
    .other-card,
    .member-list .other-card {
        border-radius: 12px;
    }

    .core-image img,
    .other-image img,
    .member-list .other-image img {
        height: 200px;
    }

    .core-content,
    .other-content,
    .member-list .other-content {
        padding: 11px 6px 13px;
    }

    .core-content .jabatan,
    .other-position {
        padding: 3px 7px;

        font-size: .5rem;
    }

    .core-content h5,
    .other-content h5,
    .member-list h5 {
        font-size: .78rem;
        line-height: 1.2;
    }

    .core-content p,
    .other-content p {
        font-size: .55rem;
        line-height: 1.3;
    }


    /* MEMBER INFO */

    .member-list .member-badges {
        margin-bottom: 5px;
    }

    .member-list .member-badge {
        padding: 3px 6px;

        font-size: .5rem;
    }

    .member-list .member-info {
        margin-bottom: 5px;

        font-size: .58rem;
        line-height: 1.3;
    }


    /* CTA */

    .member-cta {
        padding: 40px 0;
    }

    .cta-box {
        padding: 32px 18px;
        border-radius: 20px;
    }

    .cta-content h2 {
        font-size: 1.7rem;
    }

    .cta-content p {
        font-size: .72rem;
    }

    .cta-content .btn-gold {
        padding: 10px 15px;

        font-size: .7rem;
    }


    /* HISTORY */

    .history-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .history-card {
        padding: 20px 8px;
        border-radius: 14px;
    }

    .history-card span {
        font-size: .55rem;
        letter-spacing: .8px;
    }

    .history-card h4 {
        margin: 8px 0;

        font-size: 1.25rem;
    }

    .history-card small {
        padding: 4px 7px;

        font-size: .55rem;
    }
}