/* Color Scheme */
:root {
    --color-white: #ffffff;
    --color-black: #000000;
    --color-maroon: #500000;
    --color-maroon-light: #8B0000;
    --color-gray: #f5f5f5;
    --color-text: #333333;
    --max-width: 1400px;
}

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

html {
    scroll-behavior: smooth;
    overscroll-behavior: none;
}

body {
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
}

/* Header & Navigation */
.header {
    background-color: var(--color-white);
    border-bottom: 5px solid #e0e0e0;
    position: sticky;
    padding-right: 5.75rem;
    padding-left: 5.75rem;

    top: 0;
    z-index: 100;
}

.navbar {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-maroon);
    text-decoration: none;
    
    /* Add these to align the logo and text */
    display: flex;
    align-items: center;
    gap: 10px; /* Adjust this for the space between logo and text */
}

.brand-logo {
    height: 30px; /* Adjust this based on your header height */
    width: auto;  /* Keeps the aspect ratio intact */
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1.15rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-maroon-light);
}

.nav-menu li {
    position: relative; /* Essential for positioning the menu */
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-white);
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 0.5rem 0;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    
    /* Hidden by default */
    display: none; 
    z-index: 1000;
}

/* Show dropdown on hover */
.nav-menu li:hover .dropdown-menu {
    display: block;
}

/* Dropdown Items */
.dropdown-item {
    display: block;
    padding: 0.6rem 1.5rem;
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.9rem;
    transition: background 0.3s, color 0.3s;
}

.dropdown-item:hover {
    background-color: var(--color-gray);
    color: var(--color-maroon-light);
}

/* Optional: Dropdown Arrow */
.nav-link span {
    font-size: 0.7rem;
    margin-left: 5px;
}

/* Main Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem;
}

/* Hero Section */
.hero-section {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Content Sections */
.content-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
    padding-right: 5rem;
    padding-left: 5rem;
}

.content-section:last-of-type {
    border-bottom: none;
}

.section-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-maroon);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

/* Apply Section Lists */
.requirements-list {
    list-style: none;
    padding: 0 0 0 2rem;
    margin-bottom: 1.5rem;
}

.requirements-list li {
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 1rem;
    position: relative;
    line-height: 1.6;
}

.requirements-list li:before {
    content: "•";
    color: var(--color-maroon);
    font-weight: bold;
    position: absolute;
    left: -1rem;
}

/* Member row display styles */
.row {
    display: flex;
    flex-wrap: wrap;         
    justify-content: center; 
    gap: 30px;               
    margin-bottom: 50px;
    width: 100%;
}

/* Base style for every profile card */
.profile {
    text-align: center;
    margin-bottom: 20px;
    /* This calculation is the secret to the rows of 4 */
    flex: 0 1 calc(25% - 30px); 
    min-width: 200px; /* Prevents them from getting too skinny on mobile */
}

/* Special rule for the Executive row (3 per row) */
.row-3 .profile {
    flex: 0 1 calc(33.33% - 30px);
}

/* Member headshots */
.profile img {
    width: 100%;           /* Fills the 25% width of the profile div */
    max-width: 220px;      /* Limits the size so they don't get too big */
    min-width: 200px;      /* Ensures they don't get too small */
    aspect-ratio: 1 / 1;   /* Makes them perfect squares */
    object-fit: cover;    
    border-radius: 15%;   
    margin-bottom: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    animation: shine 1.5s infinite;
}

.profile .name {
    font-weight: bold;
    color: var(--color-maroon);
    margin: 5px 0;
}

.profile .role {
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.profile .major {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.profile .email {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.profile .email a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.85rem;
    border-bottom: 1px dotted var(--color-maroon);
}

.profile .email a:hover {
    color: var(--color-maroon);
}

.email {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.email a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px dotted var(--color-maroon);
}

.email a:hover {
    color: var(--color-maroon);
}
/* Involvement Grid Layout */
.involvement-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Creates two equal columns */
    gap: 2rem;
    margin-top: 1.5rem;
}

.involvement-category {
    background-color: var(--color-gray);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-maroon); /* Visual accent */
}

.category-title {
    font-size: 1.25rem;
    color: var(--color-maroon);
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Reusing your existing list styles with a slight tweak for spacing */
.involvement-category-list {
    list-style: none;
    padding: 0 0 0 2rem;
    margin-bottom: 1.5rem;
}

.involvement-category-list li {
    font-size: 1rem;
    color: var(--color-text);
    position: relative;
    line-height: 1.3;
}

.involvement-category-list li:before {
    content: "•";
    color: var(--color-maroon-light);
    font-weight: bold;
    position: absolute;
    left: -1rem;
}

/* Admissions Box Specific Styling */
.admissions-box {
    background-color: var(--color-gray);
    padding: 2rem;
    border-radius: 8px;
    border: 2px dashed var(--color-maroon);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Social Media Icon Styling */
.social-links {
    text-align: center;
}

.social-icon-link {
    display: inline-block;
}

.social-icon {
    scale: 70%;
    align-items: center;
    justify-content: center;
}

/* Member Portal Styles*/
.table-container {
    overflow-x: auto; /* Ensures it's scrollable on small mobile screens */
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.points-table {
    width: 100%;
    max-width: 600px;
    border-collapse: collapse;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden; /* Clips the background colors to the border-radius */
}

.points-table thead tr {
    background-color: var(--color-maroon);
    color: var(--color-white);
    text-align: left;
    font-weight: bold;
}

.points-table th, 
.points-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #dddddd;
}

/* Zebra striping for readability */
.points-table tbody tr:nth-of-type(even) {
    background-color: var(--color-gray);
}

.points-table tbody tr:last-of-type {
    border-bottom: 2px solid var(--color-maroon);
}

.points-table td:last-child {
    font-weight: 600;
    color: var(--color-maroon);
}

.calendar-container {
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center;     /* Centers vertically (if the container has height) */
    width: 100%;
    margin: 2rem 0;          /* Adds some breathing room top and bottom */
}

/* President Hall of Fame Sections*/
/* New Flexbox Wrapper */
.section-flex {
    display: flex;
    align-items: center; /* Vertically centers text with image */
    gap: 4rem;           /* Adds space between text and image */
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto;     /* Centers the entire section */
}

.president-name {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-black);
    margin-bottom: 1.5rem;

}

/* Ensure text takes up flexible space */
.text-content {
    flex: 1;
}

/* Ensure image stays a consistent size */
.image-content {
    flex: 0 0 300px; /* Adjust 300px to your preferred image width */
}

.side-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Responsive: Stack columns on smaller screens */
@media (max-width: 768px) {
    .involvement-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 1.5rem;
    }
    
    .content-section {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }

    .section-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .image-content {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* Buttons */
.btn-primary{
    background-color: var(--color-maroon);
    color: var(--color-white);
    display: inline-block;
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    border-radius: 50px;
    margin-top: 1rem;
}

.btn-primary:hover {
    background-color: var(--color-maroon-light);
    box-shadow: 0 2px 4px rgba(139, 0, 0, 0.3);
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary a{
    text-decoration: none;
    color: var(--color-white);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background-color: var(--color-gray);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.footer p {
    color: var(--color-text);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .section-heading {
        font-size: 1.5rem;
    }

    .section-text {
        font-size: 0.95rem;
    }

    .container {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }

    .nav-brand {
        font-size: 1.25rem;
    }

    .nav-menu {
        gap: 0.75rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .section-heading {
        font-size: 1.25rem;
    }

    .section-text {
        font-size: 0.9rem;
    }

    .container {
        padding: 1rem;
    }
}

/* Debugging Aid (Remove Before Finalizing):
* {
    outline: 1px solid red !important;
} */
