:root {
    --forest-deep: #1a2e21;
    --leaf: #4a7c44;
    --earth: #8a5c10;
    --sand: #fdfcf8;
    --border-soft: rgba(27, 48, 34, 0.08);
}

#our-team {
  padding: 60px 0;
  background: #fdfcf8;
  overflow: hidden;
}

.team-container {
    max-width: 1200px;
    margin: 0 auto;
}

.team-head {
    text-align: center;
    margin-bottom: 60px;
}

.team-head-label {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    color: var(--earth);
    font-weight: 700;
}

.team-head-label-h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--forest-deep) !important;
}

.team-subtitle {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    color: #555;
    max-width: 600px;
    margin: 20px auto;
}

/* Grid Logic */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Card Styling */
.team-card {
    background: #ffffff;
    border-radius: 12px; /* Soft rounding */
    padding: 15px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(27, 48, 34, 0.06);
    border-color: var(--leaf);
}

.team-img-wrap {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    background: #f0f2ee;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(20%) contrast(95%); /* Warm vintage feel */
    transition: transform 0.6s ease;
}

.team-card:hover .team-img {
    transform: scale(1.05);
    filter: sepia(0%) contrast(100%);
}

/* Decorative Tag */
.card-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 12px;
    font-size: 0.7rem;
    border-radius: 20px;
    color: var(--forest-deep);
    font-weight: bold;
    backdrop-filter: blur(4px);
}

.team-body {
    padding: 20px 10px 10px;
    text-align: center;
}

.team-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    margin: 0;
    color: var(--forest-deep);
}

.team-role {
    color: var(--earth);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 8px 0 15px;
    font-weight: 600;
}

.team-info {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
}

#our-team {
  padding: 60px 0;
  background: #fdfcf8;
  overflow: hidden;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 5%;
  overflow: visible;
}

.team-carousel {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 20px 0;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.team-carousel::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

.team-card {
  flex: 0 0 300px; /* Fixed width for carousel items */
  scroll-snap-align: start;
  background: white;
  border-radius: 15px;
  padding: 6px;
  border: 1px solid rgba(27, 48, 34, 0.1);
  transition: transform 0.3s ease;
}

/* Navigation Buttons - Camping Style */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #1b3022;
  color: #fdfcf8;
  border: none;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: #4a7c44;
  transform: translateY(-50%) scale(1.1);
}

.prev { left: 15px; }
.next { right: 15px; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .team-card {
    flex: 0 0 260px;
  }
  .nav-btn {
    display: none; /* Mobile users prefer swiping */
  }
}

/* Responsive Queries */
@media (max-width: 768px) {
    #our-team {
        padding: 50px 20px;
    }
    .team-head {
    margin-bottom: 30px;
    }
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .team-card {
        padding: 10px;
    }
    .team-name {
        font-size: 1.1rem;
    }
}