.site-banner {
    background-color: #1a4d8f;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.site-banner h1 {
    margin: 0;
    font-size: 2.5em;
    color: #e6eef8;
}

.site-banner p {
    margin: 5px 0 0;
    font-size: 1.2em;
}

body {
            font-family: Arial, Helvetica, sans-serif;
            line-height: 1.6;
            margin: 40px;
            background-color: #f9f9f9;
            color: #333;
        }

        h1, h2, h3 {
            color: #1a4d8f;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
        }

        table, th, td {
            border: 1px solid #999;
        }

        th, td {
            padding: 10px;
            text-align: left;
        }

        th {
            background-color: #e6eef8;
        }

        footer {
            margin-top: 40px;
            font-size: 0.9em;
        }

/* ── Navigation Bar ─────────────────────────────────────────
   Replaces: nav, .sticky-nav, nav ul, nav li, nav a, nav a:hover
   ──────────────────────────────────────────────────────────── */
nav {
    background-color: #1a4d8f;        /* ← your original blue, kept */
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* ── Nav list — horizontal centered row ─────────────────── */
nav ul,
.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;          /* ← your original centered layout */
    align-items: center;
    padding: 0;
    margin: 0;
}

/* ── Each nav item — needs relative for dropdown anchor ─── */
nav li,
.nav-item {
    position: relative;               /* ← required for dropdown positioning */
    margin: 0 15px;                   /* ← your original spacing */
}

/* ── Nav links ──────────────────────────────────────────── */
nav a,
.nav-link {
    color: white;                     /* ← your original white */
    text-decoration: none;
    font-weight: bold;                /* ← your original bold */
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
    transition: color 0.2s ease;
}

nav a:hover,
.nav-link:hover {
    text-decoration: underline;       /* ← your original underline hover */
}

/* ── Dropdown arrow indicator ───────────────────────────── */
.dropdown-arrow {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
}

.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);        /* ← flips up when menu opens */
}

/* ── Dropdown menu panel ────────────────────────────────── */
.dropdown {
    display: none;                    /* hidden until hover */
    position: absolute;
    top: 100%;                        /* drops directly below parent */
    left: 50%;
    transform: translateX(-50%);      /* centers under parent link */
    min-width: 190px;
    background-color: #163d72;        /* ← darker shade of your blue */
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    list-style: none;
    padding: 6px 0;
    margin: 0;
    z-index: 1100;
}

/* ── Dropdown items ─────────────────────────────────────── */
.dropdown li {
    margin: 0;                        /* override the 0 15px from nav li */
}

.dropdown li a {
    display: block;
    padding: 8px 18px;
    font-weight: normal;              /* lighter than top-level links */
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;           /* clean highlight instead of underline */
}

/* ── Divider line (above Reflections in School menu) ────── */
.dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 5px 0;
}

/* ── Show dropdown on hover ─────────────────────────────── */
.has-dropdown:hover .dropdown {
    display: block;
}


#back-to-top {
    position: fixed;
    bottom: 20px;           /* Position the button 20px from the bottom */
    right: 20px;            /* Position the button at the bottom-right corner */
    padding: 10px 15px;     /* Size of the button */
    z-index: 99;            /* Ensure the button is above other content */

    /* Styling for the button */
    background-color: #1a4d8f;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: none; /* Hidden by default */
}

* {
  box-sizing: border-box;
}




.square {
  background: #fff;
  border: 1px solid #999;
  float: left;
  font-size: 24px;
  font-weight: bold;
  line-height: 34px;
  height: 34px;
  margin-right: -1px;
  margin-top: -1px;
  padding: 0;
  text-align: center;
  width: 34px;
}

.board-row:after {
  clear: both;
  content: '';
  display: table;
}

.status {
  margin-bottom: 10px;
}
.game {
  display: flex;
  flex-direction: row;
}

.game-info {
  margin-left: 20px;
}
/* ── Homepage Intro Section ── */
#intro {
    max-width: 860px;
    margin: 60px auto;
    padding: 0 24px;
}

#intro blockquote {
    border-left: 4px solid #1a4d8f;
    margin: 0 0 36px 0;
    padding: 16px 24px;
    background-color: #e6eef8;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #3c4043;
}

#intro blockquote p {
    margin: 0 0 10px 0;
    font-size: 1.05rem;
}

#intro blockquote footer {
    font-size: 0.85rem;
    color: #5f6368;
    font-style: normal;
    margin-top: 0;
}

#intro p {
    font-size: 1.1rem;
    margin: 0 0 20px 0;
}

.intro-byline {
    font-size: 0.9rem;
    color: #5f6368;
    border-top: 1px solid #dadce0;
    padding-top: 16px;
    margin: 12px 0 0 0;
}

/* ── Grid Styles ── */
.grid {
    display: grid;
    /* Automatically fit as many columns as possible with a minimum width of 200px */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

/* ── Project Card Styles ── */
.project-wrapper {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;

    /* 1. Smooth Trnsition for Hover Effects */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.project-wrapper:hover {
    /* 2. Subtle Lift and Shadow on Hover */
    transform: translateY(-8px);

    /* 3. Soft Shadow for Depth */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);

    /* 4. Slightly Brighter Background on Hover */
    background-color: #f9f9f9;
}

/* ── Level 3: Flyout Sub-dropdown ──────────────────────────
   Appears to the RIGHT when hovering a Level 2 class item
   ─────────────────────────────────────────────────────────── */

/* L2 item that has a L3 child — needs relative for flyout anchor */
.dropdown .has-subdropdown {
    position: relative;
}

/* L2 trigger link — arrow indicates flyout direction */
.subdropdown-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 8px 18px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;             /* slightly bolder to show it's a parent */
    transition: background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.subdropdown-trigger:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
}

/* Right-facing arrow indicator */
.subdropdown-arrow {
    font-size: 0.6rem;
    margin-left: 8px;
    transition: transform 0.2s ease;
}

/* L3 flyout panel — hidden by default, opens to the RIGHT */
.subdropdown {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;                   /* ← flies out to the right */
    min-width: 160px;
    background-color: #122d5e;    /* ← one shade darker than L2 panel */
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 6px;
    box-shadow: 4px 6px 20px rgba(0, 0, 0, 0.4);
    list-style: none;
    padding: 6px 0;
    margin: 0;
    z-index: 1200;
}

/* L3 items */
.subdropdown li {
    margin: 0;
}

.subdropdown li a {
    display: block;
    padding: 7px 18px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: normal;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.subdropdown li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
}

/* Show L3 on L2 hover */
.dropdown .has-subdropdown:hover .subdropdown {
    display: block;
}

/* Rotate L2 arrow when L3 is open */
.dropdown .has-subdropdown:hover .subdropdown-arrow {
    transform: rotate(90deg);
}
