/* Team Section Plugin – ITSWEBER CMS */

.team-section {
    padding: 4rem 0;
}

.team-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.team-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.team-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.team-section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
}

/* ============================================================================
   GRID LAYOUT
   ============================================================================ */

.team-grid {
    display: grid;
    gap: 2rem;
}

.team-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.team-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.team-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================================
   TEAM CARD
   ============================================================================ */

.team-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    padding: 2rem 1.5rem;
}

.team-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ============================================================================
   PROFILE IMAGE – Default: Circle
   ============================================================================ */

.team-card-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    overflow: hidden;
    background: #e5e7eb;
    flex-shrink: 0;
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Image Style: Rounded Square ─────────────────────────────────────────── */
.team--img-rounded .team-card-image {
    border-radius: 16px;
    width: 130px;
    height: 130px;
}

/* ── Image Style: Square ─────────────────────────────────────────────────── */
.team--img-square .team-card-image {
    border-radius: 4px;
    width: 130px;
    height: 130px;
}

/* ============================================================================
   INITIALS PLACEHOLDER
   ============================================================================ */

.team-card-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    background: var(--theme-primary, #333);
}

/* ============================================================================
   CARD TYPOGRAPHY
   ============================================================================ */

.team-card-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.team-card-role {
    font-size: 0.875rem;
    color: var(--theme-primary, #333);
    font-weight: 600;
    margin: 0 0 0.75rem;
}

.team-card-bio {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 1rem;
}

/* ============================================================================
   SOCIAL LINKS – SVG icons, 36px circles
   ============================================================================ */

.team-card-social {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 0.5rem;
}

.team-card-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.team-card-social a:hover {
    background: var(--theme-primary, #333);
    color: #fff;
}

.team-card-social a svg {
    flex-shrink: 0;
}

/* ============================================================================
   CARD STYLE VARIANTS
   ============================================================================ */

.team-section.section--card-bordered .team-card {
    box-shadow: none;
    border: 1px solid #e5e7eb;
}

.team-section.section--card-bordered .team-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.team-section.section--card-flat .team-card {
    box-shadow: none;
    background: transparent;
}

.team-section.section--card-flat .team-card:hover {
    transform: none;
    box-shadow: none;
}

/* ============================================================================
   COLOR SCHEMES
   ============================================================================ */

/* Light Background */
.team-section.section--scheme-alt {
    background: #f8fafc;
}

/* Primary Color */
.team-section.section--scheme-primary {
    background: var(--theme-primary, #333);
    color: #fff;
}

.team-section.section--scheme-primary .team-section-subtitle { color: rgba(255, 255, 255, 0.8); }
.team-section.section--scheme-primary .team-card { background: rgba(255, 255, 255, 0.12); }
.team-section.section--scheme-primary .team-card-name { color: #fff; }
.team-section.section--scheme-primary .team-card-role { color: rgba(255, 255, 255, 0.85); }
.team-section.section--scheme-primary .team-card-bio { color: rgba(255, 255, 255, 0.7); }
.team-section.section--scheme-primary .team-card-social a { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.8); }
.team-section.section--scheme-primary .team-card-social a:hover { background: #fff; color: var(--theme-primary, #333); }

/* Dark */
.team-section.section--scheme-dark {
    background: #1e293b;
    color: #f1f5f9;
}

.team-section.section--scheme-dark .team-section-subtitle { color: #cbd5e1; }
.team-section.section--scheme-dark .team-card { background: #334155; }
.team-section.section--scheme-dark .team-card-name { color: #f1f5f9; }
.team-section.section--scheme-dark .team-card-role { color: #94a3b8; }
.team-section.section--scheme-dark .team-card-bio { color: #94a3b8; }
.team-section.section--scheme-dark .team-card-social a { background: #475569; color: #cbd5e1; }
.team-section.section--scheme-dark .team-card-social a:hover { background: var(--theme-primary, #333); color: #fff; }

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 900px) {
    .team-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .team-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .team-section { padding: 2.5rem 0; }
    .team-section-title { font-size: 1.5rem; }
    .team-grid { grid-template-columns: 1fr !important; }
    .team-card { padding: 1.5rem 1rem; }
    .team-card-image { width: 100px; height: 100px; margin: 0 auto 1rem; }
    .team--img-rounded .team-card-image,
    .team--img-square .team-card-image { width: 110px; height: 110px; }
    .team-card-social a { width: 32px; height: 32px; }
    .team-card-social a svg { width: 14px; height: 14px; }
}
