/* Team page styles */
.team-hero{
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  background:
    radial-gradient(circle at 14% 22%, rgba(242, 201, 76, 0.25), transparent 34%),
    radial-gradient(circle at 86% 8%, rgba(212, 203, 196, 0.12), transparent 28%),
    linear-gradient(125deg, #5a0336 0%, #7a0649 55%, #8d1459 100%);
  color: #fff;
}

.team-hero::before,
.team-hero::after{
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.team-hero::before{
  width: 320px;
  height: 320px;
  right: -120px;
  top: -110px;
  background: rgba(242, 201, 76, 0.22);
}

.team-hero::after{
  width: 260px;
  height: 260px;
  left: -90px;
  bottom: -120px;
  background: rgba(212, 203, 196, 0.1);
}

.team-hero .container{
  position: relative;
  z-index: 2;
}

.team-hero-content{
  max-width: 700px;
  padding: 12px 0;
}

.team-hero-content h1{
  font-size: 52px;
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 14px;
  color: #fff;
}

.team-hero-content p{
  color: rgba(255,255,255,0.92);
  font-size: 17px;
  max-width: 640px;
}

.team-intro-section{
  padding: 80px 0;
  background: #D4CBC4;
}

.team-intro-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.team-intro-image{
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.team-intro-image img{
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.team-mini-box{
  display: flex;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.team-mini-box div{
  background: #D4CBC4;
  padding: 10px 16px;
  border-radius: 14px;
  color: var(--primary);
  font-weight: 600;
}

.team-members-section{
  padding: 80px 0;
  background: #D4CBC4;
}

.team-grid{
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  overflow: hidden;
  overflow-y: hidden;
  padding-bottom: 8px;
  will-change: transform;
}

.team-grid::-webkit-scrollbar{
  height: 7px;
}

.team-grid::-webkit-scrollbar-thumb{
  background: rgba(90, 3, 54, 0.32);
  border-radius: 999px;
}

.team-card{
  flex: 0 0 calc((100% - 72px) / 4);
  position: relative;
  overflow: hidden;
  background: #D4CBC4;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(242, 201, 76, 0.35);
  transition: var(--transition);
  text-align: center;
  scroll-snap-align: start;
}

.team-slider-controls{
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.team-slider-dots{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
}

.team-slider-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(90,3,54,0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
}

.team-slider-dot.is-active{
  background: var(--primary);
  width: 22px;
}

.team-slider-btn{
  width: 44px;
  height: 44px;
  border: 1px solid rgba(90, 3, 54, 0.2);
  border-radius: 999px;
  background: #D4CBC4;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
}

.team-slider-btn:hover{
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.team-card::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #5b0336, #f2c94c);
}

.team-card:hover{
  transform: translateY(-8px);
  box-shadow: var(--gold-glow);
}

.team-image img{
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.team-content{
  padding: 14px 14px 18px;
}

.team-content h3{
  font-size: 20px;
  color: var(--primary);
  font-weight: 700;
  margin: 0;
}

.team-content .team-position{
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #7b6a4d;
  line-height: 1.35;
}

.team-cta-section{
  padding: 80px 0;
  background: #D4CBC4;
}

.team-cta-box{
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  text-align: center;
  padding: 60px 30px;
  border-radius: 30px;
}

.team-cta-box h2{
  font-size: 36px;
  margin-bottom: 10px;
  color: #fff;
}

.team-cta-box p{
  color: #fff;
}

@media (max-width: 991px){
  .team-grid{
    gap: 16px;
  }

  .team-card{
    flex-basis: calc((100% - 16px) / 2);
  }

  .team-intro-grid{
    grid-template-columns: 1fr;
  }

  .team-image img{
    height: 200px;
  }
}

@media (max-width: 767px){
  .team-hero{
    padding: 72px 0;
  }

  .team-hero-content h1{
    font-size: 34px;
  }

  .team-grid{
    gap: 0;
  }

  .team-card{
    flex: 0 0 100%;
  }

  .team-card{
    border-radius: 14px;
  }

  .team-image img{
    height: 260px;
  }

  .team-content{
    padding: 14px 14px 18px;
  }

  .team-content h3{
    font-size: 18px;
    line-height: 1.3;
  }

  .team-intro-grid{
    grid-template-columns: 1fr;
  }

  .team-slider-controls{
    margin-top: 14px;
    gap: 10px;
  }

  .team-slider-btn{
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

@media (max-width: 480px){
  .team-grid{
    gap: 0;
  }

  .team-card{
    flex: 0 0 100%;
    border-radius: 12px;
  }

  .team-image img{
    height: 240px;
  }

  .team-content{
    padding: 12px 12px 16px;
  }

  .team-content h3{
    font-size: 16px;
  }
}

@media (max-width: 991px){
  .team-intro-section,
  .team-members-section,
  .team-cta-section{
    padding: 56px 0;
  }

  .team-intro-image img{
    height: 360px;
  }
}

@media (max-width: 767px){
  .team-intro-image img{
    height: 280px;
  }

  .team-mini-box{
    gap: 10px;
  }

  .team-mini-box div{
    width: 100%;
    text-align: center;
  }

  .team-cta-box{
    padding: 34px 18px;
    border-radius: 20px;
  }

  .team-cta-box h2{
    font-size: 28px;
  }
}

@media (max-width: 575px){
  .team-card{
    flex: 0 0 100%;
  }

  .team-image img{
    height: 250px;
  }
}

/* Final Team page moonstone override */
html,
body,
.team-members-section,
.team-intro-section,
.team-cta-section,
.team-grid,
.team-card,
.team-content,
.team-mini-box div,
.team-slider-btn {
  background: #D4CBC4 !important;
  background-color: #D4CBC4 !important;
}

.team-card {
  border: 2px solid #5a0336 !important;
  box-shadow:
    7px 8px 0 rgba(90, 3, 54, 0.22),
    0 16px 28px rgba(90, 3, 54, 0.16),
    inset 1px 1px 0 rgba(255, 255, 255, 0.42) !important;
}

.team-image,
.team-image img {
  background: #D4CBC4 !important;
}
