/* --- Team Page Specific Styles --- */

/* General page layout & background */
body.team-page { /* Ensure this class is on your body tag in team.html */
    background-color: #f8f9fa; /* Lighter, subtle background */
    color: #333;
}

/* Page Header (Meet the Team title) */
.page-header {
    /* Using a teal to indigo gradient */
    background: linear-gradient(135deg, #17a2b8, #6610f2); 
    color: #fff;
    padding: 60px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 25px; /* Reduced space below header */
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: 1.5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* New: Section Headings */
.page-content h2 {
    text-align: center;
    font-size: 2rem;
    margin: 40px 0 20px 0;
    color: #17a2b8; /* Use a brand color */
}

/* New: Subsection Headings (for Pillars) */
.page-content h3 {
    text-align: center;
    font-size: 1.5rem;
    margin: 30px 0 20px 0;
    color: #6610f2;
}

/* Horizontal Rule Separator (between Leadership and VPs within a year) */
.page-content hr.section-divider {
    border: 0;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 400px;
}

/* New: Major Separator (between the two academic years) */
.page-content hr.major-section-divider {
    border: 0;
    height: 3px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), #17a2b8, rgba(0, 0, 0, 0));
    margin: 60px auto;
    max-width: 80%;
}


/* Style for the intro paragraph */
.page-intro {
    font-size: 1.25rem;
    color: #555;
    text-align: center;
    max-width: 750px;
    margin: 10px auto 35px auto; /* Reduced bottom margin */
    line-height: 1.7;
}
.end-logo {
    height: 30px;        /* Slightly smaller than your main logo usually looks best */
    width: auto;
    margin-left: 10px;   /* Adds a little extra breathing room from the icons */
}
/* --- Team Grid Container (Optional Centering) --- */
.team-grid-container {
      max-width: 1200px; /* Limit overall width */
    margin: 0 auto; /* Center the container */
    padding: 0 15px; /* Padding for smaller screens */
}

/* --- Team Grid Layout Adjustments --- */
.team-grid {
    padding-top: 15px; 
    margin-top: 0; 
    justify-content: center;
}
.logo-img {
    height: 50px;        /* Adjust the height to fit your navbar */
    width: auto;         /* Maintains aspect ratio */
    display: block;
}

.logo {
    display: flex;
    align-items: center; /* Vertically centers the text with the image */
    gap: 10px;           /* Adds space between the image and the text */
    text-decoration: none;
    font-weight: bold;
    color: white;        /* Adjust based on your design */
}
/* Layout for the Leadership (President & Secretary) Section */
.leadership-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default to 1 column on small screens */
    gap: 30px;
    max-width: 650px; /* Constrain the width */
    margin: 0 auto;
}

@media (min-width: 768px) {
    .leadership-grid {
        grid-template-columns: 1fr 1fr; /* 2 columns on medium screens */
    }
}

/* Layout for the Pillar VPs Section (6 members) */
.vp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
    gap: 30px;
    max-width: 1000px; /* Constrain VP grid width slightly */
    margin: 0 auto;
}

@media (min-width: 992px) {
    .vp-grid {
        /* Since there are 6 members, 3 columns is visually ideal */
        grid-template-columns: repeat(3, 1fr); 
    }
}
/* --- NOTE: If you need to remove space inside .team-card from style.css --- */
/* You might need to check your global style.css file to ensure the removal of the */
/* .team-bio also shrinks the card size appropriately. */