/* ============== GLOBAL STYLES & VARIABLES ============== */
:root {
    --primary-color: #336698; 
    --secondary-color: #0A549A; 
    --background-color: #e9eef0; 
    --text-color: #333;
    --light-text-color: #e9eef0;
    --card-background: #85a4c1;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

h1, h2, h3 {
    line-height: 1.2;
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

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

/* ============== HEADER & NAVIGATION ============== */
header {
    background-color: var(--light-text-color);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-wrap: wrap; 
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px
; /* Adjust this value as needed */
    vertical-align: middle; /* Helps align the logo with the nav links */
}
header nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

header nav a {
    font-weight: 600;
    transition: color 0.3s ease;
}

header nav a:hover, header nav a.active {
    color: var(--secondary-color);
}

/* ============== HERO SECTION ============== */
.hero {
    background-color: var(--primary-color); /* Fallback color */
    background-image: linear-gradient(rgba(13, 44, 79, 0.8), rgba(13, 44, 79, 0.8)), url('images/home.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light-text-color);
    text-align: center;
    padding: 100px 0;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-button {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}


/* ============== ANNOUNCEMENTS SECTION ============== */
.announcements {
    padding: 80px 0;
}

.announcement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.card-date {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 10px;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.card p {
    flex-grow: 1; /* This makes the card bodies equal height */
}

.card a {
    font-weight: 600;
    color: var(--secondary-color);
}


/* ============== FOOTER ============== */
footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8); /* Slightly softer white text */
    padding: 50px 0 20px 0;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; 
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section {
    flex: 1;
    min-width: 250px; 
}

.footer-section h3 {
    color: var(--light-text-color);
    margin-bottom: 15px;
}

.footer-section p {
    margin-bottom: 15px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color); 

.social-links i {
    font-size: 1.8rem; 
    transition: color 0.3s ease;
}

.social-links a:hover i {
    color: var(--secondary-color);
}
/* ============== EVENTS PAGE STYLES ============== */
.page-header {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    text-align: center;
    padding: 60px 20px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.events-list {
    padding: 60px 0;
}

.event-grid {
    display: grid;
    gap: 30px;
}

.event-card {
    display: flex;
    align-items: flex-start;
    gap: 25px;
}

.event-date {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    font-weight: 700;
    min-width: 60px; /* Ensures consistent width */
}

.event-date span {
    display: block;
    line-height: 1.2;
}

.event-date span:first-child {
    font-size: 1rem;
    text-transform: uppercase;
}

.event-date span:last-child {
    font-size: 2rem;
}

.event-details h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.event-meta {
    font-size: 0.9rem;
    color: #555;
    font-weight: 600;
    margin-bottom: 15px;
}

.button-secondary {
    display: inline-block;
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--primary-color);
    padding: 8px 18px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.button-secondary:hover {
    background-color: var(--secondary-color);
}

.past-event {
    opacity: 0.7; /* Makes past events look faded */
}

.past-event:hover {
    opacity: 1; /* Bring back to full opacity on hover */
}

.button-secondary.disabled {
    border-color: #ccc;
    color: #aaa;
    pointer-events: none; /* Makes the button unclickable */
}

.section-divider {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #ddd;
}
/* ============== ABOUT PAGE STYLES ============== */
.mission-section {
    padding: 60px 0;
    text-align: center;
}

.mission-section .container {
    max-width: 800px; /* Makes the paragraph easier to read */
}

.committee-section {
    background-color: #ffffff; /* A slightly different background to separate the section */
    padding: 60px 0;
}

.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.committee-card img {
    width: 100%;
    max-width: 200px; /* Control the image size */
    height: auto;
    border-radius: 50%; /* Makes the images circular */
    margin-bottom: 15px;
    border: 4px solid var(--background-color);
}

.committee-card h3 {
    margin-bottom: 5px;
}

.committee-title {
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 10px;
}

.committee-bio {
    font-size: 0.9rem;
    color: #555;
}
/* ============== SPONSORS PAGE STYLES ============== */
.sponsors-section {
    padding: 60px 0;
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    align-items: center;
}

.sponsor-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sponsor-logo img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%); /* Makes logos grayscale */
    opacity: 0.8;
    transition: all 0.3s ease;
}

.sponsor-logo img:hover {
    filter: grayscale(0%); /* Brings back color on hover */
    opacity: 1;
    transform: scale(1.05);
}

.become-sponsor-section {
    background-color: var(--background-color);
    padding: 60px 0;
    text-align: center;
}

.become-sponsor-section .container {
    max-width: 800px;
}

.become-sponsor-section p {
    margin-bottom: 30px;
}
/* ============== WHY JOIN SECTION uses announcement styles */
/* ============== MOBILE NAVIGATION STYLES ============== */

/* The hamburger button */
.mobile-nav-toggle {
    display: none; /* Hidden on desktop */
    position: absolute;
    z-index: 2000;
    right: 1rem;
    top: 1.2rem;
    background: transparent;
    border: 0;
    padding: 0.5em;
    cursor: pointer;
}

.sr-only {
    position: absolute; 
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px; 
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* This is the media query that activates mobile styles */
@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block; /* Shown on mobile */
    }

    .primary-navigation {
        position: fixed;
        z-index: 1000;
        inset: 0 0 0 30%; /* top, right, bottom, left */
        background: hsla(0, 0%, 100%, 0.95);
        backdrop-filter: blur(1rem);
        
        flex-direction: column;
        padding: min(20rem, 15vh) 2rem;

        transform: translateX(100%);
        transition: transform 350ms ease-out;
    }

    /* When the menu is open */
    .primary-navigation[data-visible="true"] {
        transform: translateX(0%);
    }

    .primary-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
}