/* === GENERAL SECTION STYLING === */
.members-page {
    padding-top: var(--space-xxl);
    padding-bottom: var(--space-xxl);
}

.members-section {
    margin-bottom: var(--space-xxl);
    text-align: center;
}

.members-section h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 auto var(--space-xl) auto;
    position: relative;
    letter-spacing: 1.5px;
    display: inline-block;
    padding-bottom: var(--space-sm);
}

.members-section h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.7;
}

.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color-medium), transparent);
    margin: var(--space-xxl) auto;
    width: 60%;
}

/* === GRID LAYOUT === */
.member-grid {
    display: grid;
    gap: var(--space-xl);
}

.c-suite-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    max-width: 1200px;
    margin: 0 auto;
}

.staff-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: 1400px;
    margin: 0 auto;
}

.loading-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: var(--space-xxl);
    font-style: italic;
}


/* === NEW CARD BASE STYLE === */
.member-card {
    background: linear-gradient(145deg, var(--dark-color) 0%, var(--medium-gray) 100%);
    border: 1px solid var(--border-color-medium);
    border-radius: 12px;
    text-align: left; /* Changed from center */
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-light);
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color-dark), 0 0 10px var(--shadow-color-cyan-faint);
}


/* === NEW C-SUITE CARD DESIGN === */
.c-suite-card {
    padding: 0; /* Remove padding from card itself */
    height: 400px;
}

.c-suite-card .card-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.c-suite-card .profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px; /* Apply radius to image */
}

/* Gradient overlay for the image */
.c-suite-card .card-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(11, 11, 12, 0.95) 15%, rgba(11, 11, 12, 0.1) 60%);
    z-index: 1;
    border-radius: 12px;
}

.watermark {
    position: absolute;
    top: 0;
    left: 0;
    height: auto;
    z-index: 2;
    opacity: 1;
    pointer-events: none;
}


.c-suite-card .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-lg);
    z-index: 2;
}


.c-suite-card h3 {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    color: #fff;
    margin: 0 0 var(--space-xs) 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.c-suite-card p {
    font-size: 1rem;
    color: var(--primary-color);
    margin: 0 0 var(--space-md) 0;
    font-weight: 500;
}

.c-suite-card .flag {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 40px;
    height: auto;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 2;
}


/* === NEW STAFF CARD DESIGN === */
.staff-card {
    display: flex;
    flex-direction: column; /* Changed for vertical layout without image */
    align-items: flex-start; /* Align text to the left */
    padding: var(--space-lg);
    gap: var(--space-xs);
}

/* This class is no longer used by staff, but kept for other potential uses */
.staff-card .profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    flex-shrink: 0;
}


.staff-card .card-content {
    flex-grow: 1;
}

.staff-card h3 {
    font-size: 1.3rem;
    margin: 0;
    font-family: var(--font-heading);
}

.staff-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: var(--space-xxs) 0 var(--space-sm) 0;
}


/* === SHARED DISCORD INFO === */
.member-discord-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.discord-mini-icon {
    height: 45px;
    width: auto;
    flex-shrink: 0;
    filter: invert(1) brightness(1.5);
}




.member-discord-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

.c-suite-card .member-discord-info p {
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}


/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .c-suite-grid {
        grid-template-columns: 1fr;
        max-width: 400px; /* Center single column on mobile */
    }
    .staff-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
    }
}
