/* Global Reset */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #222;
    background: #f7f7f7;
}

/* Header */
.site-header {
    background: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Slideshow — TRUE auto-height, Safari-safe */
.slideshow-container {
    position: relative;
    width: 100%;
    margin: 20px 0;
    overflow: hidden;
    background: #000;
}

.slide {
    display: none;
    width: 100%;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

.slideshow-container .slide:first-child {
    display: block;
}

/* Fade animation */
.fade {
    animation: fadeEffect 1.2s ease-in-out;
}

@keyframes fadeEffect {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

/* Logo */
.site-logo {
    width: 120px;
    height: auto;
    display: block;
}

/* Navigation */
.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.main-nav a {
    color: #000;
    text-decoration: none;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.main-nav a:hover {
    text-decoration: underline;
}

/* HERO SECTION — CLEAN, CORRECT, AND POSITIONED PROPERLY */
.hero {
    position: relative;        /* makes tagline anchor correctly */
    width: 100%;
    margin: 0;
    padding: 60px 0;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero img {
    width: 100%;
    height: auto;
    max-width: 1600px;
    display: block;
}

/* Tagline now positions relative to the hero container */
.hero-tagline {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    max-width: 90%;
    z-index: 10;               /* ensures it sits above the banner */
}


/* Main Content */
.content {
    max-width: 1100px;
    margin: 30px auto 60px;
    padding: 20px;
    background: #fff;
}

h1, h2 {
    color: #222;
}

/* Footer */
.site-footer {
    background: #111;
    color: #ccc;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

.site-footer a {
    color: #ccc;
}

/* --- High School Sports Page Polishing --- */

section {
  max-width: 1100px;
  margin: 0 auto 50px auto;
  padding: 20px 0;
  border-bottom: 1px solid #ddd;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2rem;
}

section:last-of-type {
  border-bottom: none;
}

section h2 {
  font-size: 1.8rem;
  margin-bottom: 5px;
  font-weight: 600;
  color: #222;
  grid-column: 1 / -1;
}

section p {
  margin-bottom: 20px;
  line-height: 1.6;
  max-width: 800px;
  color: #444;
  grid-column: 1 / -1;
}

section figure {
  margin: 0 0 1.5rem 0;
}

section figure img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
}

section figure img:hover {
  transform: scale(1.02);
}

section figure figcaption {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.4rem;
}

section:nth-of-type(even) {
  background: #fafafa;
}

/* Mobile layout */
@media (max-width: 800px) {
  section {
    grid-template-columns: 1fr;
  }
}

/* Four-column grid */
.columns.four-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 900px) {
    .columns.four-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .columns.four-columns {
        grid-template-columns: 1fr;
    }
}

/* Simple Banner Image (NOT a hero) */
.banner-image img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 0 40px 0;   /* space before the mosaic */
}

/* Responsive */
@media (max-width: 768px) {
    .hero-tagline {
        font-size: 0.9rem;
        left: 10px;
        right: 10px;
    }
    .content {
        margin: 10px;
    }
}
