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

/* Base styles */
body {
    font-family: Arial, sans-serif;
    color: #333;
}

header {
    background-color: #004080;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

/* Hero section */
.hero {
    position: relative;
    text-align: center;
    color: white;
    overflow: hidden;
    max-height: 500px;
}

.hero img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

.hero .hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero h1 {
    font-size: 48px;
}

.hero p {
    font-size: 24px;
}

.hero button {
    padding: 10px 20px;
    font-size: 18px;
    color: white;
    background-color: #004080;
    border: none;
    cursor: pointer;
}

/* Main sections */
.announcements, .events, .quick-links {
    padding: 20px;
    text-align: center;
}

.cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.card {
    border: 1px solid #ccc;
    padding: 20px;
    margin: 10px;
    flex: 1;
    max-width: 30%;
}

.card h3 {
    font-size: 24px;
    overflow: hidden;
    white-space: normal; /* Allow word wrapping */
}

.card p {
    font-size: 16px;
}

.card a {
    color: #004080;
    text-decoration: none;
}

.quick-links .links a {
    display: block;
    padding: 10px 0;
    color: #004080;
    text-decoration: none;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #f1f1f1;
}

footer .social a {
    margin: 0 10px;
    text-decoration: none;
    color: #004080;
}

/* Media queries */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    nav ul {
        display: none;
        flex-direction: column;
        background-color: #004080;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
    }
    nav ul li {
        margin: 0;
        text-align: center;
    }
    nav ul li a {
        padding: 10px;
        display: block;
    }
    nav ul.show {
        display: flex;
    }

    /* Stack cards vertically on mobile */
    .cards {
        flex-direction: column;
        align-items: center;
    }

    /* Adjust header text position and font size */
    .hero .hero-text {
        top: 20%;
        transform: translate(-50%, -20%);
    }

    .hero h1 {
        font-size: 36px; /* Decrease font size */
    }

    /* Make card boxes take up 90% of the screen width on mobile */
    .card {
        max-width: 90%; /* Adjusted max-width */
    }
}
