/* Using style.css variables */

/* Global Page Reset / Defaults inherited from style.css, specific additions here */
body {
    background-color: var(--primary-dark);
    /* Default dark bg for the team page content */
    color: var(--white);
}

/* HERO SECTION */
.hero-team {
    height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-red);
    color: var(--white);
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    margin-bottom: 0;
    z-index: 10;
    padding: 80px 20px;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
    max-width: 900px;
}

.hero-title-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.tilted-label {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 8px 30px;
    font-weight: 800;
    font-size: 1.2rem;
    display: inline-block;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%) rotate(-5deg);
    z-index: 3;
    white-space: nowrap;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
}

.main-title {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.9;
    margin: 0;
    position: relative;
    z-index: 2;
    color: #fff;
    letter-spacing: -2px;
    text-shadow:
        -4px -4px 0 #282828,
        4px -4px 0 #282828,
        -4px 4px 0 #282828,
        4px 4px 0 #282828,
        10px 10px 0 #282828;
    paint-order: stroke fill;
}

.hero-team .hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 20px auto 0;
    line-height: 1.6;
    color: var(--white);
}

/* CONTENT SECTIONS SHARED */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    background: transparent;
    position: relative;
}

.supervisors-section,
.members-section {
    background-color: var(--primary-dark);
    position: relative;
}

/* SECTION TITLES WITH LINE */
.section-title-wrapper {
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
}

.section-title-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(242, 242, 243, 0.2);
    z-index: 1;
}

.ribbon-title {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 10px 40px;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: capitalize;
    text-align: center;
    display: inline-block;
    position: relative;
    transform: skewX(-15deg);
    z-index: 2;
}

/* SUPERVISORS SECTION */
.supervisors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.supervisor-card {
    background-color: var(--primary-dark);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
}

.supervisor-card:hover {
    transform: translateY(-5px);
}

.sup-img-wrapper {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #ee2a26;
    /* Beige like mockup */
    display: flex;
    justify-content: center;
    align-items: center;
}

.sup-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* For person cutouts on beige */
}

.sup-info {
    padding: 20px;
    background: var(--primary-dark);
    color: var(--white);
    text-align: center;
    flex-grow: 1;
}

.sup-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.sup-role {
    font-size: 0.8rem;
    color: #bbb;
    text-transform: capitalize;
}

/* MEMBERS SECTION */
.members-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 50px;
}

.member-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
}

.member-card:hover {
    transform: translateY(-5px);
}

.mem-header {
    background-color: var(--primary-red);
    height: 200px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: visible;
}

.mem-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 0;
    border: none;
    box-shadow: none;
    background: transparent;
}

.mem-link-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: #1a1a1a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mem-link-btn:hover {
    background: #333;
}

.mem-body {
    padding: 20px 15px 10px;
    text-align: center;
    background: var(--white);
}

.member-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 4px;
    text-transform: capitalize;
}

.member-role {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: 400;
}

.mem-footer {
    padding: 0 20px 25px;
    background: var(--white);
    display: flex;
    justify-content: center;
}

.view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 8px 30px;
    background: var(--primary-dark);
    color: var(--white);
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.view-btn:hover {
    background: #333;
    transform: skewX(-10deg) scale(1.05);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {

    .supervisors-grid,
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .main-title {
        font-size: clamp(3rem, 15vw, 6rem);
    }
}

@media (max-width: 768px) {
    .hero-team {
        height: auto;
        min-height: 70vh;
        padding: 120px 20px 100px;
    }

    .section-container {
        padding: 60px 20px;
    }

    .ribbon-title {
        font-size: 1.1rem;
        padding: 8px 30px;
    }

    .view-btn {
        padding: 6px 20px;
        font-size: 0.8rem;
    }

    .member-name {
        font-size: 1rem;
    }

    .member-role {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {

    .supervisors-grid,
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .supervisor-card,
    .member-card {
        box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.4);
        border-radius: 8px;
    }

    .mem-header {
        height: 140px;
    }

    .mem-img {
        height: 130px;
    }

    .mem-link-btn {
        width: 25px;
        height: 25px;
        font-size: 0.75rem;
        top: 10px;
        right: 10px;
    }

    .mem-body {
        padding: 15px 10px 5px;
    }

    .member-name {
        font-size: 0.9rem;
        margin-bottom: 2px;
    }

    .member-role {
        font-size: 0.65rem;
        margin-bottom: 10px;
    }

    .mem-footer {
        padding: 0 10px 15px;
    }

    .view-btn {
        padding: 5px 15px;
        width: 100%;
        font-size: 0.75rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .tilted-label {
        font-size: 0.9rem;
        padding: 5px 20px;
        top: -15px;
    }
}