/* PAGE BACKGROUND */
body {
    background: linear-gradient(to bottom, #f5f5f7, #ffffff);
}

/* HERO SECTION */
.join-hero {
    height: 150px;
    background: #DDA63A;
    /* 👈 gold background */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #18283A;
    /* 👈 dark blue text */
    text-align: center;
}

.join-hero h1 {
    font-size: 36px;
    margin: 0;
}

.join-hero h1 {
    border-bottom: 2px solid #18283A;
    padding-bottom: 5px;
}

/* CONTENT */
.content {
    max-width: 1200px;
    margin: auto;
    padding: 70px 20px;
}

/* SECTION */
.team-section {
    margin-bottom: 90px;
    text-align: center;
}

.team-section h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 45px;
}

/* 🔥 MAIN FIX (FLEX FOR PERFECT CENTER) */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

/* FACULTY GRID (UNCHANGED) */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 30px;
}

.faculty-grid .team-card {
    grid-column: span 2;
}

.faculty-grid .team-card:nth-child(5) {
    grid-column: 2 / span 2;
}

.faculty-grid .team-card:nth-child(6) {
    grid-column: 4 / span 2;
}

.faculty-grid .team-card:nth-child(7) {
    grid-column: 6 / span 2;
}

/* CARD */
.team-card {
    width: 250px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 18px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    border: 1px solid rgba(0, 0, 0, 0.05);

    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.04),
        0 1px 2px rgba(0, 0, 0, 0.03);

    transition: all 0.35s ease;
}

/* FACULTY CARD */
.faculty-card {
    padding: 20px;
}

/* HOVER EFFECT */
.team-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.08),
        0 0 20px rgba(30, 144, 255, 0.2);
}

/* IMAGE BOX */
.img-box {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}

.img-box img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 14px;

    border: 1px solid rgba(30, 144, 255, 0.15);

    box-shadow:
        0 0 0 2px rgba(30, 144, 255, 0.05),
        0 8px 20px rgba(0, 0, 0, 0.04);

    transition: all 0.5s ease;
}

/* OVERLAY */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 14px;
}

.overlay p {
    color: white;
    font-size: 15px;
    padding: 10px;
    text-align: center;
}

/* HOVER IMAGE */
.team-card:hover img {
    transform: scale(1.05);
    filter: blur(3px);
}

.team-card:hover .overlay {
    opacity: 1;
}

/* TEXT */
.team-card h3 {
    margin-top: 14px;
    font-size: 18px;
    font-weight: 600;
}

.team-card span {
    font-size: 15px;
    color: #8e8e93;
}