/* --- Page Structure --- */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    text-align: center;
}

/* --- Header --- */
header {
    background-color: #008080;
    color: white;
    padding: 15px;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* --- Homepage Hero Section --- */
.home-hero {
    flex: 1;          /* allows hero to expand */
    padding: 0;       /* prevents footer overlap */
}

.home-hero img {
    width: 100%;
    height: 55vh;      /* fixed height */
    object-fit: cover; /* crops the image instead of stretching */
    display: block;
    margin: 0 auto;
}

/* --- Generic Section Styling (other pages) --- */
section {
    padding: 20px;
}

section p {
    text-align: center;
}

/* --- Footer --- */
footer {
    background-color: #008080;
    color: white;
    padding: 10px;
    width: 100%;
    margin-top: auto; /* pushes footer to bottom */
}

/* --- Forms --- */
form {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 10px;
}

label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

input, textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    background-color: #00467F;
    color: white;
    padding: 10px;
    border: none;
    margin-top: 15px;
    cursor: pointer;
}

/* --- Events Layout --- */
.events-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.events-box {
    max-width: 800px;
    width: 90%;
    padding: 20px;
    margin: 20px auto;
    background: #ffffff;
    border: 3px solid #008080;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    font-size: 1.2rem;
    height: auto;
    max-height: none;
    overflow-y: visible;
}

.events-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.events-box li.event {
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.events-box li.event:last-child {
    border-bottom: none;
}

.events-box li.event strong {
    display: block;
    font-size: 1.25rem;
    color: #00467F;
    margin-bottom: 5px;
}

.events-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.events-list .event {
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    text-align: left;
    line-height: 1.6;
}

.events-list .event:last-child {
    border-bottom: none;
}

.events-list .event strong {
    display: block;
    font-size: 1.25rem;
    color: #00467F;
    margin-bottom: 5px;
}

.about-optimist {
    max-width: 900px;
    margin: 40px auto;
    padding: 0; /* override global section padding */
    text-align: left;
    line-height: 1.6;
}

.about-optimist h2 {
    text-align: center;
    color: #00467F;
    margin-bottom: 20px;
}

.about-block {
    background: #ffffff;
    border: 3px solid #008080;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.about-block h3 {
    color: #00467F;
    margin-bottom: 10px;
}

.about-block ul {
    list-style: disc;      /* use normal bullets */
    padding-left: 40px;    /* move bullets and text in from the left */
    margin: 0;
}

.about-block ul li {
    margin-bottom: 8px;
    text-align: left;
}

.about-list {
    list-style: disc;
    list-style-position: inside;  /* bullets move in next to text */
    padding-left: 0;
    margin: 0 auto;               /* centers the block within the box */
    max-width: 800px;             /* keeps it tidy */
    text-align: left;
}

.about-list li {
    margin-bottom: 8px;
}

.contact-optimist {
    max-width: 900px;
    margin: 40px auto;
    padding: 0; /* override global section padding */
    text-align: left;
    line-height: 1.6;
}

.contact-optimist h2 {
    text-align: center;
    color: #00467F;
    margin-bottom: 20px;
}

.contact-block {
    background: #ffffff;
    border: 3px solid #008080;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.contact-block h3 {
    color: #00467F;
    margin-bottom: 10px;
}

.contact-block ul {
    list-style: disc;      /* use normal bullets */
    padding-left: 40px;    /* move bullets and text in from the left */
    margin: 0;
}

.contact-block ul li {
    margin-bottom: 8px;
    text-align: left;
}

.contact-list {
    list-style: disc;
    list-style-position: inside;  /* bullets move in next to text */
    padding-left: 0;
    margin: 0 auto;               /* centers the block within the box */
    max-width: 800px;             /* keeps it tidy */
    text-align: left;
}

.contact-list li {
    margin-bottom: 8px;
}

