:root {
    --bg: #f7f7f7;
    --text: #1a1a1a;
    --accent: #8b1e1e;
    --max-width: 1100px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
}

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

a:hover {
    text-decoration: underline;
}

.container {
    max-width: var(--max-width);
    margin: auto;
    padding: 1.25rem;
}

header {
    background: white;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    padding: 0;
    margin: 0;
}

nav button#nav-toggle {
    display: none;
    font-size: 1.6rem;
    background: none;
    border: none;
    cursor: pointer;
}

nav a.active {
    font-weight: 600;
    text-decoration: underline;
}

main {
    padding: 2rem 0;
}

section {
    margin-bottom: 3rem;
}

footer {
    background: #111;
    color: #eee;
    padding: 2rem 0;
    font-size: 0.9rem;
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        background: white;
        position: absolute;
        top: 100%;
        right: 0;
        width: 220px;
        padding: 1rem;
        border: 1px solid #ddd;
        z-index: 200;
    }

    nav ul.open {
        display: flex;
    }

    nav button#nav-toggle {
        display: block;
    }


    .nav-toggle {
        display: block;
        /* SHOW hamburger on mobile */
        font-size: 1.6rem;
        background: none;
        border: none;
        cursor: pointer;
    }

    #siteNavigation ul {
        display: none;
        /* hide menu by default */
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background: #fff;
        width: 220px;
        padding: 1rem;
        border: 1px solid #ddd;
        z-index: 200;
    }

    #siteNavigation ul.open {
        display: flex;
        /* show menu when toggled */
    }
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.photo-grid img {
    width: 100%;
    border-radius: 6px;
}

.event-card {
    margin-bottom: 1.5rem;
}

.event-meta {
    font-size: 0.9rem;
    color: #555;
}

.event-card h2 {
    margin: 0.5rem 0;
}

.event-card a {
    color: var(--accent);
}

/* ===== Events page ===== */

.year-group {
    margin-bottom: 3rem;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.event-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.event-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.event-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.event-description {
    flex-grow: 1;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.event-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.event-actions a,
.event-actions button {
    font-size: 0.85rem;
    padding: 0.35rem 0.6rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    background: #f7f7f7;
    cursor: pointer;
    text-decoration: none;
    color: #333;
}

.event-actions a:hover,
.event-actions button:hover {
    background: #eee;
}

#leftnav ul li.active>a {
    color: #32aae9;
    font-weight: bold;
}

.site-logo img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

nav .site-logo {
    display: inline-block;
    margin-right: 1rem;
}

/* --- Navigation --- */

/* =============================
   Forced visible hamburger menu
   ============================= */

/* Default: hide nav toggle */
.nav-toggle {
    display: none !important;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 999;
    color: #222;
    /* ensure visible */
}

/* Show only on small screens */
@media only screen and (max-width: 1024px) {
    .nav-toggle {
        display: block !important;
    }

    /* Hide desktop nav when mobile */
    #siteNavigation ul {
        display: none;
    }

    /* When open */
    #siteNavigation ul.open {
        display: block;
        position: absolute;
        top: 100%;
        right: 0;
        background: white;
        padding: 1rem;
        border: 1px solid #ddd;
        z-index: 997;
    }

    /* Ensure links are visible */
    #siteNavigation ul.open a {
        display: block;
        margin: 0.5rem 0;
    }

    .section {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}


#siteNavigation ul {
    display: flex;
    list-style: none;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

/* =========================
   Homepage – What's New
   ========================= */

.home-news {
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
}

.home-news h2 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.news-list li {
    padding-left: 0;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-list a {
    text-decoration: none;
    font-weight: 500;
}

.news-list a:hover {
    text-decoration: underline;
}

/* =========================
   Homepage – Feature tiles
   ========================= */

.home-features {
    margin: 4rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    display: block;
    background: #f7f7f7;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.feature-card h3 {
    margin: 1rem 0 0.5rem;
}

.feature-card p {
    padding: 0 1rem 1.25rem;
    font-size: 0.95rem;
    color: #555;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.album-card {
    text-decoration: none;
    color: inherit;
}

.album-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
}

.album-card h3 {
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.photo-grid img {
    width: 100%;
    border-radius: 6px;
}

.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.muted {
    color: #666;
}

.section {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

main.section {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.album-year {
  display: block;
  font-size: 0.8rem;
  color: #777;
  margin-top: 0.25rem;
}

.aboutus-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Left menu */
.aboutus-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.aboutus-nav li {
  margin-bottom: 0.5rem;
}

.aboutus-nav a {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

.aboutus-nav li.active a,
.aboutus-nav a:hover {
  background: #f2f2f2;
  font-weight: 600;
}

/* Desktop layout */
@media (min-width: 768px) {
  .aboutus-layout {
    grid-template-columns: 220px 1fr;
    align-items: start;
  }

  .aboutus-nav {
    position: sticky;
    top: 2rem;
  }
}

/* Force vertical layout for About Us left nav */
.aboutus-nav nav,
.aboutus-nav ul {
  display: block;
}

.aboutus-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.aboutus-nav li {
  display: block;
  width: 100%;
  margin-bottom: 0.5rem;
}

.aboutus-nav a {
  display: block;
  width: 100%;
}

/* Remove top margin from H1 on About Us pages */
.aboutus-layout h1,
.content-page h1 {
  margin-top: 0;
}

.kata-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.kata-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kata-list li {
  margin-bottom: 0.4rem;
}

.kata-list a {
  text-decoration: none;
}

@media (min-width: 768px) {
  .kata-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
