/* VAQS People Module Frontend Styles */

.vaqs-people-module {
    margin: 20px 0;
}

/* Preserve existing styles from the original shortcode */
.vaqs-alumni-layout .alumni_list {
    list-style: disc;
    padding-left: 20px;
}

.vaqs-alumni-layout .alumni_list li {
    margin-bottom: 5px;
}

/* Section and layout styles */
.section {
    padding: 20px 0;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.row.justify-content-center {
    justify-content: center;
}

.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 480px) {
    .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Person block styles */
.person-block {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.person-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.person-block a {
    text-decoration: none;
    color: inherit;
}

.person-block a:hover {
    color: inherit;
}

.headshot {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.person_name {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 15px 0 10px;
    line-height: 1.3;
}

.position {
    font-size: 14px;
    color: #666;
    margin: 5px 0 15px;
    line-height: 1.4;
}

.group-name {
    font-size: 13px;
    color: #0073aa;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 10px 0 15px;
}

/* Icon row styles */
.icon_row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.email_icon,
.linkedin_icon {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

.email_icon:hover,
.linkedin_icon:hover {
    transform: scale(1.1);
}

/* Group border styling */
.group-border {
    position: relative;
}

.group-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    height: 100%;
    width: 3px;
    background: #0073aa;
    border-radius: 2px;
}

/* Carousel group styling */
.carousel-group {
    gap: 20px;
}

.carousel-group .person-block {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Alumni specific styles */
.vaqs-alumni-layout h2 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

.vaqs-alumni-layout h2:first-child {
    margin-top: 0;
}

.alumni_list {
    background: #f8f9fa;
    padding: 20px 25px;
    border-radius: 6px;
    margin-bottom: 25px;
    border-left: 4px solid #0073aa;
}

.alumni_list li {
    padding: 5px 0;
    color: #444;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .headshot {
        width: 100px;
        height: 100px;
    }
    
    .person_name {
        font-size: 16px;
    }
    
    .person-block {
        min-height: auto;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .person-block {
        margin-bottom: 20px;
    }
    
    .carousel-group {
        gap: 15px;
    }
    
    .headshot {
        width: 80px;
        height: 80px;
    }
    
    .person_name {
        font-size: 15px;
    }
    
    .position {
        font-size: 13px;
    }
}

/* Loading state */
.vaqs-people-module.loading {
    opacity: 0.6;
    position: relative;
}

.vaqs-people-module.loading::after {
    content: 'Loading...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 30px;
    border-radius: 6px;
    font-weight: 500;
    z-index: 10;
}

/* Empty state */
.vaqs-people-module p {
    text-align: center;
    color: #666;
    font-style: italic;
    margin: 40px 0;
    font-size: 16px;
}

/* Animation for dynamic loading */
.person-block {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print styles */
@media print {
    .person-block {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    
    .icon_row {
        display: none;
    }
}