body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #fff;
  color: #111;
}

.container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

footer {
  margin-top: 3rem;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  border-top: 1px solid #ddd;
}

/* HERO IMAGE (Home page) */
.hero {
  position: relative;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.5px;
  text-shadow: 0 0 8px rgba(0,0,0,0.6);
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #fff;
    color: #111;
}

/* constrain main content */
.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* posts */
.post h2 {
    margin-bottom: 0.2rem;
}

.post-date {
    margin-top: 0;
    font-size: 0.9rem;
    color: #555;
}

/* hero */
.hero {
    position: relative;
    width: 100%;
}

.hero {
    position: relative;
    width: 100%;
    height: 350px; /* adjust to taste: 300–450 works well */
    overflow: hidden; /* crop the image so it doesn't dominate */
}

.hero img {
    width: 100%;

    height: 100%;
    object-fit: cover; /* zooms/crops the image nicely */
    object-position: center;
}


.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(0,0,0,0.6);
}

/* footer */
footer {
    margin-top: 3rem;
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #555;
    border-top: 1px solid #ddd;
}

/* Centering rules only for the About page */
.about-center {
    text-align: center;
}

/* Keep lists readable on About page */
.about-center ul {
    display: inline-block;
    text-align: left;
    margin: 1rem auto;
}

/* BOARD PAGE */
.board-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.board-card {
    border: 1px solid #ccc;
    background: #fff;
}

.board-card img {
    width: 100%;
    height: 300px;        /* consistent portrait ratio */
    object-fit: cover;    /* crops cleanly */
    background: #eee;     /* fallback if image missing */
}

.board-name {
    background: #555;
    color: white;
    text-align: center;
    padding: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.board-card a:hover img {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

/* AMBASSADORS PAGE */

/* container: 4 columns, centred, auto-wrap */
.ambassador-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;   /* this is what centres the last row */
    gap: 2rem;
    margin-top: 2rem;

    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

/* each card ≈ 25% width (4 per row) */
.ambassador-card {
    position: relative;
    border: 1px solid #ccc;
    overflow: hidden;
    background: #fff;
    cursor: pointer;

    flex: 0 1 calc(25% - 2rem);   /* 4 per row on large screens */
    max-width: calc(25% - 2rem);
}


.ambassador-card {
    position: relative;
    border: 1px solid #ccc;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
}

.ambassador-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    background: #eee;
}

/* grey overlay with text, hidden by default */
.ambassador-overlay {
    position: absolute;
    inset: 0;
    background: rgba(80, 80, 80, 0.95);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

/* show overlay on hover */
.ambassador-card:hover .ambassador-overlay {
    opacity: 1;
}

@media (max-width: 1000px) {
    .ambassador-card {
        flex: 0 1 calc(33.333% - 2rem);  /* 3 per row */
        max-width: calc(33.333% - 2rem);
    }
}

@media (max-width: 700px) {
    .ambassador-card {
        flex: 0 1 calc(50% - 2rem);      /* 2 per row */
        max-width: calc(50% - 2rem);
    }
}

@media (max-width: 480px) {
    .ambassador-card {
        flex: 0 1 100%;                  /* 1 per row */
        max-width: 100%;
    }
}

/* CONTACT PAGE */

.contact-heading {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

/* Two-column layout: map left, form right */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1.4fr; 
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

/* Map block */
.contact-map iframe {
    width: 100%;
    min-height: 320px;
    border: 1px solid #ccc;
    background: #e5e3df;
}

/* Form block */
.contact-form {
    font-size: 0.9rem;
}

.required-note {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-style: italic;
}

.required-note span,
.contact-form label span {
    color: #b40000;
}

/* Labels + inputs */
.contact-form label {
    display: block;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.name-row {
    display: flex;
    gap: 0.5rem;
}

.name-row input {
    flex: 1;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.4rem 0.5rem;
    border: 1px solid #ccc;
    font: inherit;
}

/* Submit button styled to match minimalist site */
.contact-submit {
    margin-top: 1rem;
    padding: 0.45rem 1.5rem;
    border: 1px solid #777;
    background: #f5f5f5;
    cursor: pointer;
    font: inherit;
}

.contact-submit:hover {
    background: #e0e0e0;
}

/* Stack on small screens */
@media (max-width: 800px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-map {
        order: 2;
    }
}

/* === NAVIGATION BAR WITH LOGO === */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    position: relative;
    z-index: 10;
    height: 60px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    background: #fff;
}

/* UL that holds the links */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;       /* <-- gap belongs here */
    margin: 0;
    padding: 0;
}

/* remove any default li spacing */
.nav-links li {
    margin: 0;
}

/* NAV BUTTONS */
.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;

    padding: 0.45rem 1rem;
    border-radius: 6px;
    background: #fafafa;
    border: 1px solid #ddd;
    transition: 0.2s ease;
}

.nav-links a:hover {
    background: #eaeaea;
    color: #000;
}

/* Logo */
.nav-logo img {
    height: 80px;
    width: auto;
    display: block;
    object-fit: contain;
    margin-top: -20px;
    margin-bottom: -20px;
    cursor: pointer;
}

.nav-logo img:hover {
    opacity: 0.85;
}

.nav-links a.active {
    background: #e6e6e6;
    border-color: #ccc;
    font-weight: 600;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    margin: 1.5rem 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
