/* make padding/border count inside width everywhere */
*, *::before, *::after {
  box-sizing: border-box;
}

/* ─── Font Import & Variables ─── */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

:root {
    font-size: 16px;             /* base font size */
    --nav-bg-start: #ffffff;
    --nav-bg-end:   #e0f7ff;
    --nav-text:     #444;
    --nav-hover:    #007acc;
}

/* ─── Global Reset & Body ─── */
html, body {
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    font-size: 1rem;             /* 16px */
}

/* ─── HEADER & NAVIGATION ─── */
header {
    background: radial-gradient(
      circle at center,
      var(--nav-bg-start) 0%,
      var(--nav-bg-end) 100%
    );
    padding: 1rem 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    text-align: center;
}

/* ─── Circular “Stamp” ─── */
.stamp {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 6rem;
  height: 6rem;
  background: rgba(255, 0, 0, 0.1);
  border: 1px dashed #d00;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d00;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  transform: rotate(15deg);
  z-index: 1001;
  pointer-events: none;
  text-align: center;
  line-height: 1.1;
}

header h1 {
    font-size: 2.5rem;           /* ~56px */
    margin: 0.25rem 0;
}

header h2 {
    font-size: 1.75rem;          /* ~28px */
    margin: 0.25rem 0;
    color: #555;
}

header p {
    font-size: 1.25rem;          /* ~20px */
    margin: 0.25rem 0 0.5rem;    /* extra bottom spacing */
    color: #666;
}

nav {
    margin-top: 1.5rem;          /* increased gap above menu */
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

nav ul li {
    position: relative;
}

nav ul li a {
    font-weight: 700;
    color: var(--nav-text);
    text-decoration: none;
    font-size: 1.125rem;         /* ~18px */
    padding: 0.25rem 0;
    transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--nav-hover);
}

/* remove underline effect */
nav ul li a::after {
    display: none;
}

/* ─── MAIN CONTENT ─── */
/* default centered main */
main {
    padding: 2rem 1rem;
    max-width: 900px;
    margin: 0 auto;
}

/* override for About’s full-width section */
main#about {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0 1rem 2rem;        /* horizontal & bottom padding */
}

section {
    margin-bottom: 2rem;
}

ul {
    padding-left: 1.25rem;
    font-size: 1rem;
}

/* ─── FOUR‑COLUMN SECTION ─── */
/* Four‑column section – full‑width without overflow */
.four-column {
  display: grid;
  /* ensure columns never force overflow */
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 2rem;
  margin: 0;
  padding: 0rem 1rem;     /* keeps your gutters, but with box‑sizing it won’t overflow */
  box-sizing: border-box; /* include padding in its width calculation */
}


.four-column .col {
    background: #ffffff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.four-column h2 {
    margin-top: 0;
}

/* 2) Center all column headings */
.four-column .col h2 {
  text-align: center;
}

/* ─── Tighter spacing inside four‑column blocks ─── */
.four-column .col h2 {
  margin-bottom: 0.25rem;    /* shrink space below each heading */
}

.four-column .col p,
.four-column .col ul {
  margin-top: 0.25rem;      /* shrink space above paragraphs & lists */
}

/* placeholder styling for sponsor logos */
.sponsor-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}



.sponsor-logos img {
  max-width: 150px;    /* never wider than 150px */
  max-height: 100px;   /* never taller than 100px */
  width: auto;         /* let width scale to match height if needed */
  height: auto;        /* let height scale to match width if needed */
  object-fit: contain; /* if you force it into a box, preserve its ratio */
}

/* ─── FOOTER ─── */
footer {
    text-align: center;
    padding: 1rem 0;
    background: #ffffff;
    border-top: 1px solid #ddd;
    color: #777;
    font-size: 0.875rem;         /* ~14px */
}

/* ─── SLIDESHOW: CROSS‑FADE & ZOOM ─── */
.slideshow {
    position: relative;
    width: 100%;
    height: 600px;               /* adjusted to 600px */
    overflow: hidden;
    margin-bottom: 0;
}

.slideshow img.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    transform-origin: center center;
}

.slideshow img.visible {
    opacity: 1;
}

@keyframes zoomIn {
    from { transform: scale(1); }
    to   { transform: scale(1.1); }
}

.slideshow img.zoom {
    animation: zoomIn 7.5s ease-in-out forwards;
}

/* ─── RESPONSIVE & HAMBURGER MENU ─── */
/* ─── Hide hamburger by default ─── */
.menu-toggle {
  display: none;
}

/* ─── Responsive & Hamburger Menu ─── */
@media (max-width: 768px) {
  /* 1) Show the hamburger button only in mobile view */
  .menu-toggle {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1002;
  }

  /* 2) Nav switches to column layout */
  nav ul {
    display: none;           /* hidden until toggled */
    flex-direction: column;  /* column layout */
    gap: 1rem;
    background: #ffffff;
    position: absolute;
    top: 100%;   /* just below header */
    left: 0;
    width: 100%;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

  /* 3) When header has .open, show the menu */
  header.open nav ul {
    display: flex;
  }

  /* 4) Adjust header text sizing */
  header h1 {
    font-size: 2rem;
  }
  header h2 {
    font-size: 1.25rem;
  }
  header p {
    font-size: 1rem;
  }

  /* 5) Main padding & column stack */
  main {
    padding: 1rem;
  }
  .four-column {
    grid-template-columns: 1fr;
  }
}
