:root {
    --primary-color: #e63946; /* The red highlight */
    --text-dark: #0a192f;    /* Dark navy for headings */
    --text-muted: #6b7280;   /* Gray for descriptions */
    --bg-light: #f3f4f6;     /* Light gray background */
    --card-bg: #ffffff;      /* White card background */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8fafc;
    color: var(--text-muted);
    line-height: 1.6;
}

.team-section {
    background-color: #ffffff; /* Changed to white */
    padding: 80px 0;
    font-family: 'Arial', sans-serif;
    color: #333;
    margin-top: 10px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: block; /* Changed from flex to block to stack content vertically */
}
/* Header Styling */
.team-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.sub-title {
    display: block;
    text-transform: uppercase;
    color: #e63946; /* Accent color */
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 10px;
}


.team-header h1 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 40px;
}

.team-header p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1rem;
   
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}


.team-card {
    background: #f9f9f9;
    border-radius: 15px;
    padding: 30px;
    display: flex;
    align-items: center; /* Aligns image and text side-by-side inside the card */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}


.team-card:hover {
    /* Changes background to the requested deep navy slowly */
    background-color: #051932; 
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.2);
}
/* --- Ensuring Text remains readable on Dark Background --- */
/* This part ensures that when the card turns dark, the text turns white */
.team-card:hover h3, 
.team-card:hover p {
    color: #ffffff;
    transition: color 0.5s ease;
}

/* Keeping the red designation and icons visible on dark blue */
.team-card:hover .designation {
    color: #ff4d4d; /* A slightly brighter red for better contrast on dark blue */
}

.team-card:hover .social-links a {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.team-card:hover .social-links a:hover {
    background: var(--primary-red);
}

/* Image Section */
.image-wrapper {
    flex-shrink: 0;
    width: 160px;
    height: 180px;
    background-color: #e5e7eb; 
    border-radius: 15px;
    overflow: hidden;
    margin-right: 25px;
}


.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Content Section */
.content h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.designation {
    color: var(--primary-color);
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.content p {
    font-size: 0.85rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    color: #9ca3af;
    background: #f3f4f6;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
}

/* --- Responsive Queries --- */

@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: 1fr; /* Single column for tablets/mobile */
        max-width: 600px;
        margin: 0 auto;
    }
}

/* @media (max-width: 600px) {
    .team-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    
    .image-wrapper {
        margin-right: 0;
        margin-bottom: 20px;
        width: 100%;
        height: 250px;
    }

    .social-links {
        justify-content: center;
    }
    
    .team-header h1 {
        font-size: 1.8rem;
    }
} */
@media (max-width: 600px) {
    .image-wrapper {
        margin-right: 0;
        margin-bottom: 25px;
        width: 100%; /* Take full width of the card */
        height: auto; /* Let the height be determined by the aspect ratio */
        aspect-ratio: 4 / 5; /* Keeps a professional portrait shape */
        max-height: 350px; /* Prevents the image from being too tall on big phones */
    }

    .team-card {
        flex-direction: column;
        padding: 30px 20px;
    }
    .social-links {
        justify-content: center;
    }
    
    .team-header h1 {
        font-size: 1.8rem;
    }
}



.centered-member {
    grid-column: 1 / span 2; 
    max-width: 535px;        
    margin: 0 auto;         
}


@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .centered-member {
        grid-column: auto;
        max-width: 100%;
    }
}