@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Kanit', sans-serif;
    background-color: #f7f3e8;
    line-height: 1.5;
}

.team-section {
    width: 100%;
    min-height: calc(100vh - 90px);
    margin-top: 90px;
    padding: 50px 20px 90px 20px;
    background-image: linear-gradient(135deg, rgb(233, 232, 199) 0%, rgb(252, 252, 177) 40%, rgb(255, 255, 162) 70%, rgb(254, 254, 119) 100%);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.team-container {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-header {
    text-align: center;
    margin-bottom: 45px;
}

.team-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #741717;
    text-shadow: 1px 1px #efc109;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.team-header p {
    font-size: 1.15rem;
    color: #5c1818;
    max-width: 650px;
    margin: 0 auto;
    font-weight: 400;
}

.team-header .room-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #741717;
    color: #ffffff;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 14px;
    border: 1.5px solid #efc109;
    box-shadow: 0 4px 12px rgba(116, 23, 23, 0.25);
}

.team-header .room-badge i {
    color: #efc109;
}


.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    width: 100%;
    align-items: stretch;
}

@media (max-width: 1100px) and (min-width: 681px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 740px;
        gap: 26px;
    }
}

@media (max-width: 680px) {
    .team-section {
        padding: 30px 15px 70px 15px;
    }
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        gap: 22px;
    }
    .team-header h1 {
        font-size: 2.1rem;
    }
    .team-header p {
        font-size: 1rem;
    }
}


.team-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 18px;
    padding: 32px 22px 24px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 2px solid rgba(239, 193, 9, 0.6);
    box-shadow: 0 8px 24px rgba(116, 23, 23, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #741717, #efc109, #741717);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 30px rgba(116, 23, 23, 0.22);
    border-color: #741717;
}

/* Avatar Container */
.team-avatar-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.team-avatar-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid #efc109;
    box-shadow: 0 4px 15px rgba(116, 23, 23, 0.18);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.team-card:hover .team-avatar-ring {
    transform: scale(1.04);
    border-color: #741717;
}

.team-avatar-img {
    width: 148px;
    height: 148px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.3s ease;
}

.team-avatar-img.team-avatar-shikha {
    object-position: center 38%;
}

.team-card:hover .team-avatar-img {
    transform: scale(1.05);
}

/* Card Content */
.team-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #741717;
    margin-bottom: 6px;
    line-height: 1.25;
}

.team-badge {
    display: inline-block;
    background: #fbf0dc;
    color: #741717;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 12px;
    border: 1px solid rgba(116, 23, 23, 0.2);
    margin-bottom: 12px;
}

.team-role {
    font-size: 0.92rem;
    color: #555;
    margin-bottom: 18px;
    line-height: 1.4;
    font-weight: 400;
}

.team-social-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: #741717;
    color: #ffffff !important;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    border: 2px solid transparent;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 3px 10px rgba(116, 23, 23, 0.2);
}

.team-social-link i {
    font-size: 1.1rem;
    color: #efc109;
    transition: color 0.25s ease;
}

.team-social-link:hover {
    background: #efc109;
    color: #741717 !important;
    border-color: #741717;
    box-shadow: 0 4px 14px rgba(239, 193, 9, 0.4);
}

.team-social-link:hover i {
    color: #741717;
}

