/* =========================================
   GLOBAL STYLES
   ========================================= */
body {
  font-family: 'Times New Roman', serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1 {
  text-align: center;
}

/* ===== Layout container ===== */
.container {
  display: flex;
  flex-direction: row;
  gap: 10px;
  max-width: 100%;
  align-items: flex-start;
}

/* ===== Left Column ===== */
.left {
  flex: 1;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  background-color: #f5f5f5;
  padding: 20px 20px 0 20px;
  box-sizing: border-box;
  min-height: 400px;
}

.left img {
  width: 100%;
  height: auto;
  margin-top: 0;
}

/* ===== Right Column ===== */
.right {
  flex: 1;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 20px;
  box-sizing: border-box;
}

.right img {
  width: 100%;
  height: auto;
  margin-top: 0;
}

/* ===== Download Button ===== */
.download-button {
  display: inline-block;
  text-decoration: none;
  border: none;
  outline: none;
  cursor: pointer;
}

.download-button img {
  width: 15px;
  height: auto;
  transition: transform 0.2s ease-in-out;
}

.download-button img:hover {
  transform: scale(1.1);
}

.download-button img:active {
  transform: scale(0.95);
}

/* ===== Header ===== */
.header {
  position: relative;
  width: 100%;
  height: auto;
  text-align: center;
}

.header-image-wrapper {
  position: relative;
}

.header-image {
  width: 100%;
  height: auto;
}

/* ===== Navbar ===== */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;               /* ✅ always full width */
  box-sizing: border-box;    /* keep padding inside the 100% */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  z-index: 10;
}

.logo img {
  height: 50px;
  cursor: pointer;
}

/* ===== Desktop Navigation Buttons ===== */
.nav-buttons {
  display: flex;
  gap: 15px;
}

.nav-buttons a img {
  height: 50px;
  width: auto;
  cursor: pointer;
  transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

.nav-buttons a img:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

.header-text {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  z-index: 2000;       /* keep above navbar */
  text-align: center;
  font-family: 'Times New Roman', serif;
  font-size: 60px;
  white-space: nowrap;
  pointer-events: none; /* so clicks pass through */
}

/* ===== Land Acknowledgement Block ===== */
.land-acknowledgement {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1.5rem;
  line-height: 1.6;
  font-size: 1.05rem;
  font-style: italic;
  background-color: #f9f9f9;
  border-left: 4px solid #4a6b4a;
  border-radius: 4px;
}

/* =========================================
   RESPONSIVE LAYOUT ONLY (not nav)
   ========================================= */
@media (max-width: 768px) {
  .container {
    flex-direction: column-reverse; /* puts RIGHT column on TOP */
  }

  .left,
  .right {
    max-width: 100%;
    width: 100%;
    height: auto;
  }

  /* keep navbar positioned properly on phones */
  .navbar { padding: 10px 12px; }
}

/* =========================================
   HAMBURGER NAV SYSTEM (FINAL, WORKING)
   ========================================= */

/* Base: hide hamburger UI everywhere until mobile enables it */
.navbar .menu-toggle,
.navbar .hamburger-icon,
.navbar .hamburger-menu {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Desktop (>=769px): image buttons stay visible */
@media (min-width: 769px) {
  .navbar .nav-buttons { display: flex !important; }
}

/* Mobile (<=768px): show hamburger, hide image buttons */
@media (max-width: 768px) {

  /* hide desktop image buttons */
  .navbar .nav-buttons { display: none !important; }

  /* hide the checkbox itself */
  .navbar .menu-toggle {
    display: none !important;
    visibility: hidden !important;
  }

  /* show hamburger icon (right side) */
  .navbar .hamburger-icon {
    display: block !important;
    visibility: visible !important;
    pointer-events: auto !important;

    font-size: 32px;
    color: #fff;
    background: rgba(0,0,0,0.6);
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 1001;
    line-height: 1;
    cursor: pointer;
  }

  /* dropdown menu (hidden until opened) */
  .navbar .hamburger-menu {
    display: none !important;
    visibility: visible !important;
    pointer-events: auto !important;

    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    padding: 12px;
    z-index: 1000;
    box-sizing: border-box;
  }

  /* reveal menu when checkbox is checked */
  .navbar .menu-toggle:checked + .hamburger-icon + .hamburger-menu {
    display: block !important;
  }

  .navbar .hamburger-menu a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 0.7rem 1rem;
    margin-bottom: 0.6rem;
    border: 1px solid #fff;
    border-radius: 6px;
    background: #000;
    font-family: 'Times New Roman', serif;
    font-size: 1rem;
  }

  .navbar .hamburger-menu a:hover {
    background: #fff;
    color: #000;
  }

 .header { min-height: 260px; }

  .header .header-text {
    z-index: 2000;          /* stay above nav */
    top: 64px;              /* push it down below the hamburger */
    bottom: auto;           /* stop anchoring to the bottom */
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(22px, 6.5vw, 36px);
    line-height: 1.1;
    padding: 0 12px;
    white-space: normal;    /* allow wrapping */
    text-align: center;
  }
}

/* =========================================
   HUB: YEAR LINKS
   ========================================= */

/* Year cards on the landing page */
.year-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  width: 100%;
  margin: 1rem 0 1.5rem;
}

.year-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #000;
  background: #f5f5f5;
  border-left: 4px solid #4a6b4a;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s ease-in-out;
}

.year-card:hover {
  transform: scale(1.03);
}

.year-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.year-card-title {
  font-size: 1.4rem;
  padding: 10px 12px 2px;
}

.year-card-sub {
  font-style: italic;
  padding: 0 12px 12px;
}

/* Mobile: stretch the header photo to the header height so the
   white title sits on the image instead of a blank white band */
@media (max-width: 768px) {
  .header-image {
    display: block;
    height: 260px;
    object-fit: cover;
  }
}

/* Sponsor logos on the About page */
.sponsor-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  margin-top: 1rem;
}

.right .sponsor-logos img {
  width: auto;
  height: 80px;
  max-width: 40%;
  object-fit: contain;
}

/* =========================================
   TEXT NAVIGATION (shared by hub and years)
   ========================================= */
.nav-buttons {
  align-items: center;
  gap: 10px;
}

.nav-buttons a {
  display: inline-block;
  padding: 8px 16px;
  background: #899783;
  color: #000;
  text-decoration: none;
  font-family: 'Times New Roman', serif;
  font-size: 20px;
  border-radius: 4px;
  transition: transform 0.2s ease-in-out, background 0.2s ease-in-out;
}

.nav-buttons a:hover {
  transform: scale(1.06);
  background: #b5b5b5;
}

.nav-buttons a.active,
.navbar .hamburger-menu a.active {
  background: #6e6e6e;
  color: #fff;
}

/* Single-column pages (hub home, coming-soon pages) */
.single {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
  box-sizing: border-box;
}

.single h2 {
  text-align: center;
}

.coming-soon {
  text-align: center;
  min-height: 300px;
}

.coming-soon-tag {
  display: inline-block;
  font-size: 1.6rem;
  font-style: italic;
  padding: 8px 24px;
  border-left: 4px solid #4a6b4a;
  background: #f5f5f5;
}

/* History page: sponsor logos clustered in the left column, mixed sizes
   so they read as a group rather than a stack */
.left .sponsor-logos {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px 32px;
  padding: 30px 10px;
}

.left .sponsor-logos img {
  width: auto;
  height: 90px;
  max-width: 45%;
  object-fit: contain;
}

.left .sponsor-logos img:nth-child(1) { height: 120px; }  /* University of Lethbridge */
.left .sponsor-logos img:nth-child(2) { height: 150px; }  /* LPIRG */
.left .sponsor-logos img:nth-child(3) { height: 100px; }
.left .sponsor-logos img:nth-child(4) { height: 80px;  }
.left .sponsor-logos img:nth-child(5) { height: 110px; }
.left .sponsor-logos img:nth-child(6) { height: 85px;  }

/* Year dropdowns in the desktop nav */
.dropdown {
  position: relative;
}

.nav-buttons .dropdown-toggle {
  padding: 8px 16px;
  background: #899783;
  color: #000;
  border: none;
  border-radius: 4px;
  font-family: 'Times New Roman', serif;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.nav-buttons .dropdown-toggle:hover,
.dropdown:focus-within .dropdown-toggle {
  background: #b5b5b5;
}

.nav-buttons .dropdown-toggle.active {
  background: #6e6e6e;
  color: #fff;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 190px;
  padding-top: 6px;   /* hover bridge between button and menu */
  z-index: 3000;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: block;
}

.nav-buttons .dropdown-menu a {
  display: block;
  padding: 10px 16px;
  background: #f5f5f5;
  color: #000;
  font-size: 18px;
  text-align: left;
  border-radius: 0;
  border-left: 4px solid #899783;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.nav-buttons .dropdown-menu a:hover {
  transform: none;
  background: #e0e0e0;
}

.nav-buttons .dropdown-menu a.active {
  background: #6e6e6e;
  color: #fff;
  border-left-color: #6e6e6e;
}

/* Mobile menu: year headings with their pages indented underneath */
.navbar .hamburger-menu .menu-heading {
  display: block;
  color: #fff;
  font-family: 'Times New Roman', serif;
  font-style: italic;
  font-size: 1.05rem;
  margin: 0.9rem 0 0.4rem;
}

.navbar .hamburger-menu a.sub {
  margin-left: 1.2rem;
}

/* Keep the nav (and its dropdowns) above the header title */
.navbar {
  z-index: 2500;
}

/* =========================================
   PHOTO GALLERY
   ========================================= */
.gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 photos per row on large screens */
  gap: 16px;
}

/* On medium screens: 2 per row */
@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* On small screens: 1 per row */
@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #ddd;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* Flipped two-column pages (Tips): text on the left on desktop,
   and still first on phones */
.container.flip {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  .container.flip {
    flex-direction: column-reverse;
  }
  .single {
    padding: 20px 16px;
  }
}

/* A single list flowing over two columns (2026 Call for Papers) */
ul.two-col {
  columns: 2;
  column-gap: 40px;
}

ul.two-col li {
  break-inside: avoid;
}

@media (max-width: 600px) {
  ul.two-col {
    columns: 1;
  }
}
