/* Our Team Page - Complete Modern Redesign */
.team-section-modern {
    padding: 100px 0;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

.team-grid-modern {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
    width: 100%;
}

.team-group {
    /* display: grid; */
    /* grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); */
    gap: 25px;
    margin-bottom: 50px;
    display: flex;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.team-member-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(66, 42, 20, 0.12);
    border: 1px solid rgba(66, 42, 20, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    width: 100%;
    max-width: 300px;
}

.team-member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(66, 42, 20, 0.2);
    border-color: #422A14;
}

.member-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 125%;
    overflow: hidden;
    background: #f5f5f5;
}

.member-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-member-card:hover .member-image {
    transform: scale(1.1);
}

.member-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(66, 42, 20, 0.95) 0%, rgba(66, 42, 20, 0.8) 50%, transparent 100%);
    padding: 30px 25px;
    transform: translateY(100%);
    transition: var(--transition);
}

.team-member-card:hover .member-overlay {
    transform: translateY(0);
}

.member-info {
    color: #fff;
}

.member-name-modern {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #fff;
    letter-spacing: 0.3px;
}

.member-designation-modern {
    font-size: 14px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.team .row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0px;
    width: 100%;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.member-holder{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
}

.team .member-box {
    width: calc((100% / 4) - 25px);
    min-width: 250px;
    text-align: center;
    margin: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(66, 42, 20, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    border: 1px solid rgba(66, 42, 20, 0.1);
}

.team .member-box:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 32px rgba(66, 42, 20, 0.2);
    border-color: #422A14;
}
.team img {
    width: 100%;
    height: 100%;
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
}
.team .member-box .member-name {
    margin-top: 20px;
    letter-spacing: 0.5px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}
.team .member-box .member-level {
    font-size: 13px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
    font-weight: 500;
}
.team .member{
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}
.team .member-details{
    position: absolute;
  width: 100%;
  height: auto;
  background: linear-gradient(0deg, rgba(66, 42, 20, 0.95) 0%, rgba(66, 42, 20, 0.85) 40%, rgba(66, 42, 20, 0.5) 70%, transparent 100%);
  color: #fff;
  bottom: 0;
  padding: 25px 20px;
  text-transform: none;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.5px;
  transition: all ease 0.4s;
  padding-top: 200px;
}

.team .member-box:hover .member-details {
  background: linear-gradient(0deg, rgba(66, 42, 20, 0.98) 0%, rgba(66, 42, 20, 0.9) 40%, rgba(66, 42, 20, 0.6) 70%, transparent 100%);
  padding-top: 170px;
  padding-bottom: 30px;
}

@media (max-width: 1024px) {
    .team .member-box {
        width: calc((100% / 3) - 20px);
        min-width: 220px;
    }
}

@media (max-width: 768px) {
    .team .member-box {
        width: calc((100% / 2) - 15px);
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    .team .member-box {
        width: 100%;
        max-width: 300px;
    }

    .member-holder {
        gap: 20px;
    }
}

/* Team Grid Responsive Layout */
@media (max-width: 1024px) {
    .team-grid-modern {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .team-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .team-grid-modern {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}