/* CSS Variables for Theme */
:root {
    --primary-red: #B91C1C;
    --dark-red: #991B1B;
    --light-red: #FEE2E2;
    --text-dark: #1F2937;
    --text-light: #F9FAFB;
    --gray-light: #F3F4F6;
    --gray-medium: #D1D5DB;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header Styles */
#navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-red);
}

.nav-menu ul {
    display: flex;
}

.nav-links li {
    margin-left: 30px;
    position: relative;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-red);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
}

.dropdown-toggle i {
    margin-left: 5px;
    font-size: 12px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: var(--text-dark);
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background-color: var(--light-red);
    color: var(--primary-red);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.btn-secondary {
    background-color: var(--primary-red);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(185, 28, 28, 0.3);
}

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
}

/* Hero Section */
.leadership-hero {
    height: 50vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('photos/leaders/group.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 70px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Page Content */
.page-content {
    padding: 80px 0;
}

.committee-section {
    margin-bottom: 80px;
}

.committee-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.committee-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-red);
}

/* Executive Committee Grid */
.excom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.profile-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    padding: 30px 20px;
    transition: var(--transition);
    position: relative;
}

.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--primary-red);
}

.profile-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--light-red);
    transition: var(--transition);
}

.profile-card:hover img {
    border-color: var(--primary-red);
    transform: scale(1.05);
}

.profile-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.profile-card .title {
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 5px;
}

.profile-card .school {
    font-size: 0.9rem;
    color: var(--gray-medium);
    margin-bottom: 15px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.contact-info a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-red);
    color: var(--primary-red);
    transition: var(--transition);
}

.contact-info a:hover {
    background-color: var(--primary-red);
    color: white;
    transform: scale(1.1);
}

/* Committee Grid */
.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.committee-list {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.committee-list:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.committee-list h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-red);
}

.committee-list ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.committee-list ul li:last-child {
    border-bottom: none;
}

.committee-list ul li .role {
    color: var(--gray-medium);
    font-style: italic;
}

/* Committee Table */
.committee-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.committee-table thead {
    background-color: var(--primary-red);
    color: white;
}

.committee-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.committee-table tbody tr {
    border-bottom: 1px solid var(--gray-light);
    transition: var(--transition);
}

.committee-table tbody tr:nth-child(even) {
    background-color: var(--gray-light);
}

.committee-table tbody tr:hover {
    background-color: var(--light-red);
}

.committee-table td {
    padding: 15px;
}

.committee-table td a {
    color: var(--primary-red);
    font-weight: 600;
    margin-right: 10px;
}

.committee-table td a:hover {
    color: var(--dark-red);
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background-color: var(--text-dark);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.reveal {
    position: relative;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease;
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

.fade-in-bottom {
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s ease;
}

.fade-in-bottom.active {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .excom-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .committee-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-links {
        flex-direction: column;
    }
    
    .nav-links li {
        margin: 10px 0;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background-color: var(--gray-light);
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown:hover .dropdown-menu {
        max-height: 200px;
    }
    
    .btn-secondary {
        display: none;
    }
    
    .leadership-hero {
        height: 40vh;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .committee-section h2 {
        font-size: 2rem;
    }
    
    .excom-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .profile-card {
        padding: 20px 15px;
    }
    
    .profile-card img {
        width: 100px;
        height: 100px;
    }
    
    .committee-table {
        font-size: 0.9rem;
    }
    
    .committee-table th,
    .committee-table td {
        padding: 10px 5px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .committee-section h2 {
        font-size: 1.8rem;
    }
    
    .excom-grid {
        grid-template-columns: 1fr;
    }
    
    .committee-table {
        display: block;
        overflow-x: auto;
    }
}