/*
 * CSS for Veera Narasimha Yuva Committee - Members Page
 * FINAL REDESIGN: 4-column grid, Circular Images, Developer Card Highlight.
 */

/* --- General Styles --- */
body {
    font-family: 'Teko', sans-serif;
    margin: 0;
    background: #fff8e6; /* Soft Ochre background */
    color: #333;
    line-height: 1.6;
}

/* --- Header & Navigation (FIXED FOR OVERLAP) --- */
header {
    background: #ffcc33;
    color: #000;
    padding: 15px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); 
}
.nav-container {
    width: 95%; /* Increased width slightly for more space */
    max-width: 1400px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 2.2em;
    margin: 0;
    color: #a30000;
    flex-shrink: 0; /* Prevents the logo from shrinking */
    margin-right: 20px;
}
nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap; /* Ensures links stay on one line as much as possible */
    gap: 10px; /* Reduces space between links */
}
nav a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    font-size: 1.1em;
    transition: color 0.3s ease;
}
nav a.active, nav a:hover {
    color: #a30000;
}
.login-btn {
    background: #a30000; 
    color: #fff !important; 
    padding: 8px 15px;
    border-radius: 5px;
    margin-left: 15px; /* Reduced margin to save space */
    font-weight: 700;
    flex-shrink: 0; /* Prevents button from shrinking */
}
.login-btn:hover {
    background: #cc0000; 
}

/* --- Members Section --- */
.members {
    width: 95%;
    max-width: 1400px; 
    margin: 50px auto;
    padding: 40px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.15);
    text-align: center;
}
.members h2 {
    color: #a30000;
    font-size: 3em;
    margin-top: 0;
    margin-bottom: 40px;
    border-bottom: 3px solid #ffcc33;
    padding-bottom: 5px;
}

/* --- 4-Column Grid Layout (Targeting memberCardsContainer) --- */
.member-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px;
    justify-items: center;
    align-items: stretch;
}

.member-card {
    background: #fff8f0;
    padding: 25px 20px;
    border-radius: 10px; 
    text-align: center;
    width: 100%;
    max-width: 280px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* --- Circular Images --- */
.member-card img {
    width: 130px; 
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #ffcc33;
    box-shadow: 0 0 0 3px #a30000;
    margin-bottom: 15px;
}

/* --- Name & Role Styling --- */
.member-card h3 {
    color: #000;
    font-size: 2em;
    margin: 10px 0 5px 0;
    font-weight: 500;
}
.member-card p {
    color: #a30000;
    font-size: 1.1em;
    font-weight: 700;
    margin: 0 0 10px 0;
    font-family: sans-serif;
    position: relative;
}
.member-card p::after {
    content: '';
    display: block;
    width: 30%;
    height: 3px;
    background: #ffcc33;
    margin: 5px auto 0 auto;
    border-radius: 2px;
}

/* --- SPECIAL DEVELOPER CARD STYLE (Applied by JS for Admin/President) --- */
.developer-card {
    background: hsl(45, 90%, 75%); 
    box-shadow: 0 8px 16px rgba(163, 0, 0, 0.4);
    transform: scale(1.05);
    z-index: 10;
}
.developer-card:hover {
    transform: translateY(-8px) scale(1.07);
    box-shadow: 0 12px 20px rgba(163, 0, 0, 0.5);
}
.developer-card h3 {
    color: #a30000;
    font-weight: 700;
}
.developer-card p {
    color: #333;
    font-size: 1.2em;
}
.developer-card img {
    border: 5px solid #a30000;
    box-shadow: 0 0 0 3px #fff;
}

/* --- Call to Action & Footer --- */
.cta {
    background: #ffcc33;
    text-align: center;
    padding: 50px 20px;
    margin-bottom: 0;
}
.cta h2 {
    color: #333;
    font-size: 2.4em;
}
.cta .btn {
    background: #cc0000;
    color: #fff;
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.3em;
}
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-family: sans-serif;
}

/* --- Responsive Layout (Addressing Overlap) --- */
@media (max-width: 1200px) {
    .member-cards {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on medium screens */
    }
}
@media (max-width: 980px) {
    /* At the breakpoint shown in the image, force the nav to wrap */
    .nav-container {
        flex-wrap: wrap; 
        justify-content: center;
        gap: 10px;
    }
    .logo {
        width: 100%; /* Allows logo to take full top row */
        text-align: center;
        margin-right: 0;
        margin-bottom: 10px;
    }
    nav {
        width: 100%;
        justify-content: center; /* Center the wrapped links */
    }
    .member-cards {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}
@media (max-width: 600px) {
    .member-cards {
        grid-template-columns: 1fr; /* 1 column on phones */
    }
}
