/* Member Contact Portal - Professional Redesign */
.contact-main-container {
    background: #fdfdfe;
    min-height: 100vh;
    padding-bottom: 100px;
}

.hero-section.event-hero {
    height: 40vh;
    min-height: 300px;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 900px;
    margin: 0;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 950;
    letter-spacing: -2px;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255,255,255,0.7);
    max-width: 500px;
    margin: 0 auto;
}

/* WRAPPER & GRID */
.contact-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px 100px;
    position: relative;
    z-index: 20;
}

.contact-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
}

/* PROFESSIONAL CONTACT CARD */
.contact-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05), 
        0 20px 40px -10px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: #4f46e5; /* Professional Indigo */
    opacity: 0;
    transition: opacity 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.15);
}

.contact-card:hover::before {
    opacity: 1;
}

/* NAME & BADGE */
.name-badge-group {
    margin-bottom: 25px;
}

.contact-position-tag {
    display: inline-block;
    white-space: nowrap; /* Prevent wrapping */
    background: #eef2ff;
    color: #4338ca;
    /* Use clamp for automatic size adjustment based on screen width */
    font-size: clamp(0.55rem, 2.8vw, 0.75rem); 
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

@media (max-width: 480px) {
    .contact-card { padding: 25px 20px; } /* More space for text */
    .contact-position-tag { padding: 4px 8px; }
}

.contact-name {
    font-size: 1.8rem;
    font-weight: 850;
    color: #0f172a;
    line-height: 1.2;
}

.contact-divider {
    height: 1px;
    background: linear-gradient(to right, #e2e8f0, transparent);
    margin: 25px 0;
}

/* CONTACT LINKS LIST */
.contact-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-link-row {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
}

.icon-box {
    width: 44px;
    height: 44px;
    background: #f8fafc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1.1rem;
    transition: all 0.2s;
    border: 1px solid #f1f5f9;
}

.text-info {
    font-size: 1.05rem;
    font-weight: 600;
    color: #334155;
    transition: color 0.2s;
}

/* HOVER EFFECTS */
.contact-link-row:hover .icon-box {
    background: #4f46e5;
    color: white;
    border-color: #4f46e5;
}

.contact-link-row:hover .text-info {
    color: #4f46e5;
}

/* EMPTY STATE */
.empty-data-msg {
    text-align: center;
    padding: 120px 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.empty-data-msg i {
    font-size: 4rem;
    color: #e2e8f0;
    margin-bottom: 30px;
}

.empty-data-msg p {
    font-size: 1.2rem;
    color: #64748b;
    font-weight: 500;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .contact-wrapper { margin-top: 0; padding: 40px 20px; }
    .contact-content-grid { grid-template-columns: 1fr; }
    .contact-card { padding: 30px; }
}
