/**
 * CSG Team Section Widget Styles
 *
 * @package CsgPersonalized
 * @since   1.0.1
 */

/* Grid */
.csg-el-team__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 48px;
}

/* Card */
.csg-el-team__card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.csg-el-team__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(30, 136, 229, 0.12);
}

/* Photo wrap */
.csg-el-team__photo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* Hexagon clip-path */
.csg-el-team__hexagon {
    width: 120px;
    height: 120px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.1), rgba(30, 136, 229, 0.1));
}

.csg-el-team__hexagon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder */
.csg-el-team__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--csg-primary, #D4AF37);
}

/* Info */
.csg-el-team__info {
    /* container for name + position */
}

/* Name */
.csg-el-team__name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--csg-dark, #0f172a);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

/* Position */
.csg-el-team__position {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* Responsive — !important needed to override Elementor's generated post CSS
   which uses high-specificity selectors like .elementor-NNN .elementor-element.elementor-element-XXXX */
@media (max-width: 1024px) {
    .csg-el-team__grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .csg-el-team__grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .csg-el-team__grid {
        grid-template-columns: 1fr !important;
    }

    .csg-el-team__card {
        padding: 24px 20px;
    }
}
