/* IEM Officers Section */
.iem-officers {
    margin: 2rem 0;
}

.officers-title {
    color: #1a365d;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.officers-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #ff9500, #1a365d);
    border-radius: 2px;
}

/* Officers Grid */
.officers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Officer Card */
.officer-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.officer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1a365d, #ff9500);
}

.officer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #1a365d;
}

/* Officer Header */
.officer-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 2rem 1rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.officer-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1a365d, #2c5282);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 16px rgba(26, 54, 93, 0.3);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.officer-card:hover .officer-avatar {
    transform: scale(1.1);
    box-shadow: 0 12px 24px rgba(26, 54, 93, 0.4);
}

.officer-basic-info {
    flex: 1;
}

.officer-name {
    color: #1a365d;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.officer-designation {
    color: #4a5568;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    padding: 0.25rem 0.75rem;
    background: rgba(26, 54, 93, 0.1);
    border-radius: 20px;
    display: inline-block;
    border: 1px solid rgba(26, 54, 93, 0.2);
}

/* Officer Details */
.officer-details {
    padding: 1.5rem 2rem 2rem 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #e2e8f0;
    border-color: #1a365d;
    transform: translateX(4px);
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1a365d, #2c5282);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(26, 54, 93, 0.3);
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(26, 54, 93, 0.4);
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1a365d;
    text-decoration: none;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.contact-value:hover {
    color: #ff9500;
    text-decoration: underline;
}

/* Phone and Email Specific Styling */
a.contact-value {
    position: relative;
}

a.contact-value::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: #ff9500;
    transition: width 0.3s ease;
}

a.contact-value:hover::before {
    width: 100%;
}

/* Animation on Load */
.officer-card {
    animation: fadeInUp 0.6s ease-out;
}

.officer-card:nth-child(2) {
    animation-delay: 0.2s;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .officers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .officer-header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .officer-avatar {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    .officer-name {
        font-size: 1.2rem;
    }
    
    .officer-details {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
    }
    
    .contact-item {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .contact-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .officers-title {
        font-size: 1.5rem;
    }
    
    .officer-header {
        padding: 1rem;
    }
    
    .officer-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .officer-name {
        font-size: 1.1rem;
    }
    
    .officer-designation {
        font-size: 0.9rem;
    }
    
    .contact-item {
        gap: 0.75rem;
    }
    
    .contact-icon {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .officer-card {
        box-shadow: none;
        border: 2px solid #1a365d;
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .officer-card:hover {
        transform: none;
    }
    
    .officer-avatar {
        background: #1a365d !important;
    }
    
    .contact-icon {
        background: #1a365d !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .officer-card {
        border: 2px solid #000;
    }
    
    .officer-name {
        color: #000;
    }
    
    .officer-avatar,
    .contact-icon {
        background: #000 !important;
    }
    
    .contact-value {
        color: #000;
    }
    
    .contact-value:hover {
        color: #0000ff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .officer-card,
    .officer-avatar,
    .contact-icon,
    .contact-item {
        transition: none;
    }
    
    .officer-card:hover {
        transform: none;
    }
    
    .officer-card:hover .officer-avatar,
    .contact-item:hover .contact-icon {
        transform: none;
    }
    
    .officer-card {
        animation: none;
    }
}
