/* ==========================================================================
   CSDCI - Our Team Page Styles (Clean Raw CSS Grid)
   ========================================================================== */

/* Main Container */
.csdci-team-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px;
  background-color: #ffffff;
}

/* Banner Image at top */
.csdci-team-banner {
  margin-bottom: 50px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.csdci-team-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Departments / Divisions */
.csdci-team-division {
  margin-bottom: 60px;
}

.csdci-division-title {
  font-family: 'Raleway', Georgia, sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #4e2300;
  margin-top: 0;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid #6dbfe8;
  position: relative;
}

/* Department Grid */
.csdci-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
}

/* Centered Grid for divisions with single cards (like CEO, Support) */
.csdci-team-grid.csdci-center-grid {
  display: flex;
  justify-content: center;
}

/* Team Card Design */
.csdci-team-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
  position: relative;
  text-align: center;
  width: 100%;
  max-width: 280px; /* Standardize card size */
  box-sizing: border-box;
}

.csdci-team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

/* Card Top Colored Accent Bar */
.csdci-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: #6dbfe8;
  transition: background-color 0.3s ease;
}

.csdci-team-card:hover .csdci-card-accent {
  background-color: #4e2300;
}

/* Profile Image Circle Frame */
.csdci-team-img-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #6dbfe8;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: border-color 0.3s ease;
}

.csdci-team-card:hover .csdci-team-img-wrap {
  border-color: #4e2300;
}

/* Photo */
.csdci-team-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.csdci-team-card:hover img {
  transform: scale(1.08);
}

/* Team Card Text Details */
.csdci-team-name {
  font-family: 'Raleway', Georgia, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #4e2300;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.csdci-team-role {
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #6dbfe8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 10px 0;
}

.csdci-team-contact {
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 13px;
  color: #666666;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

/* Badge for Extension Numbers */
.csdci-ext {
  background-color: #f2f5f7;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #555555;
}

/* Clickable Email links */
.csdci-team-email {
  color: #4e2300;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.csdci-team-email:hover {
  color: #6dbfe8;
  text-decoration: underline;
}

.csdci-team-email i {
  margin-right: 4px;
  font-size: 12px;
}

/* Responsive Media Queries */
@media (max-width: 991px) {
  .csdci-team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .csdci-team-container {
    padding: 30px 15px;
  }
  
  .csdci-team-grid {
    grid-template-columns: 1fr;
  }
  
  .csdci-team-grid.csdci-center-grid {
    display: grid;
    grid-template-columns: 1fr;
  }
  
  .csdci-team-card {
    max-width: 100%;
  }
  
  .csdci-division-title {
    font-size: 22px;
  }
}