:root {
  --red: #e63946;
  --white: #ffffff;
  --black: #0b0b0b;
  --tba: #4355A5; /* The Blue Alliance blue */
  --first-blue: #0065b3; /* FIRST official blue */
  --first-red: #ed1c24; /* FIRST official red */
  --first-gray: #99999a; /* FIRST official gray */
  --first-gray-dark: #231f20; /* FIRST official dark gray */
  --day: #0b0b0b;
}




/* Dark Mode Overrides */
.dark-mode {
  --red: #e63946;
  --white: #eaeaea;
  --black: #f1f1f1;
  --tba: #4355A5;       /* lighter blue for contrast */
  --first-blue: #0065b3;
  --first-red: #ed1c24;
  --first-gray: #99999a;
  --first-gray-dark: #231f20;
  --day: #0b0b0b;
}

body.dark-mode {
  background-color: #121212;
  color: var(--white);
}

body.dark-mode h2,
body.dark-mode h3,
body.dark-mode p {
  color: var(--white);
}

* {
  box-sizing: border-box;
}

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



/* Header */
header {
  background: linear-gradient(to right, #000000, #1a1a1a);
  color: var(--white);
  padding: 20px 40px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
  border-bottom: 4px solid var(--first-blue);

  border-bottom: 4px solid var(--first-blue);

}

.header-content {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1100px;
  margin: auto;
}

.header-content img { 
  height: 70px;
  border-radius: 8px;
}

.header-text h1 {
  margin: 0;
  font-size: clamp(1.2rem, 4vw, 2.2rem); /* screen scaling */
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;  
}
.header-text p {
  margin: 4px 0 0;
  font-size: 1rem;
  color: #ccc;
}

main {
  padding: 20px;
  max-width: 1000px;
  margin: auto;
}

section {
  margin-bottom: 40px;
}

h2 {
  margin-bottom: 16px;
  font-size: 1.8rem;
  color: var(--black);
}


.handbook-link {
  position: relative;
  color: var(--black);
  font-weight: bold;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
.handbook-link:hover {
  text-decoration: underline;
}


.handbook-link {
  position: relative;
  color: var(--black);
  font-weight: bold;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
.handbook-link:hover {
  text-decoration: underline;
}

.highlights-header {
  display: flex;
  align-items: baseline;  /* aligns the bottom of h2 and link nicely */
  gap: 8px;               /* space between them */
}

.highlights-header h2 {
  margin: 0;
}

.highlights-header .full-gallery {
  font-size: 0.7rem;
  font-size: 0.7rem;
  position: relative;
  top: -6px;
  top: -6px;
  color: var(--black);
  font-weight: bold;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  font-weight: bold;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.highlights-header .full-gallery:hover {
  text-decoration: underline;
}

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 700px; 
  margin: auto;
}

.carousel-images {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-images img {
  width: 100%;
  height: 400px; /* or whatever looks good */
  object-fit: cover; /* this keeps aspect ratio, no stretching */
  border-radius: 10px; /* optional, makes it pretty */
}


.carousel-buttons {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.carousel-buttons button {
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 1.5rem;
  padding: 10px;
  cursor: pointer;
}


/* Sponsors */
.sponsors-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.sponsor-card {
  background-color: white;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  flex: 1 0 200px;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  height: auto;
}


/* Sponsor logos */
.sponsor-card img {
  max-width: 100%;
  max-height: 100px;
  object-fit: cover;
  object-fit: cover;
  margin-bottom: 10px;
}

@media (max-width: 600px) {
  .sponsors-grid {
    gap: 10px; /* tighten spacing for small baby screens */
  }

  .sponsor-card {
    flex: 1 0 45%;
    max-width: 45%;
  }
}

@media (max-width: 350px) {
  .sponsor-card {
    flex: 1 0 100%;
    max-width: 100%;
  }
}

.sponsor-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #333 !important;
  color: #333 !important;
}

.sponsor-card p {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  margin: 0;
}






/* Footer */
footer {
  background: linear-gradient(to right, #111111, #000000);
  color: white;
  padding: 30px 20px;
  border-top: 4px solid var(--first-red);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
/* Footer text */
.footer-content p {
  margin: 0;
  text-align: center;
}

.footer-content > .dark-toggle,
.footer-content > .social-icons {
  align-self: stretch;
}

/* Social icons row */
.social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
}

/* Dark mode toggle */
.dark-toggle {
  position: absolute;
  left: 20px;
  display: flex;                /* 🔑 fix */
  align-items: center;          /* vertical centering */
  justify-content: center;
  width: 36px;
  height: 36px;
  line-height: 1;               /* remove text baseline shift */
  padding: 0;                   /* prevent internal offset */
  background: var(--red);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;                  /* 🔑 THIS fixes the click issue */
  transform: translateY(38px); /* 🔑 optical alignment */
}

.dark-toggle:hover {
  background: #ff4c4c;
}

/* Icon buttons */
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--red);
  color: white;
  text-decoration: none;
  font-size: 18px;
}

.social-icons a:hover {
  background-color: #ED1B24;
}

/* Custom image icon */
.social-icons a.custom-icon img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

html {
  scroll-behavior: smooth;
}

.nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  position: relative;
}

/* Burger icon */
.burger {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

/* Nav buttons */
.nav-buttons {
  display: flex;
  gap: 16px;
}

.nav-buttons a {
  background-color: var(--red);
  color: white;
  padding: 7px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
  font-size: 0.90rem;
}

.nav-buttons a:hover {
  background-color: #ff4c4c;
}

@media (max-width: 1200px) {
  .nav-buttons {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 50px;
    right: 0;
    background-color: #000;
    padding: 10px;
    border-radius: 8px;
    z-index: 999;
  }

  .nav-buttons a {
    margin: 6px 0;
    display: block;
  }

  .burger {
    display: block;
  }

  .nav-buttons.active {
    display: flex;
  }
}



.view-all-card i {
  font-size: 1.8rem;
}

.view-all-card:hover {
  background-color: white;
}

.view-all-link {
  text-decoration: none;
  color: inherit;
}

.view-all-link h3 {
  text-decoration: none;
}

.blue-icon {
  background-color: #4355A5 !important; 
}
.blue-icon:hover {
  background-color: #4355A5 !important;
}

.white-icon {
  background-color: #fff !important; 
}
.white-icon:hover {
  background-color: #dddddd !important;
}
.black-icon {
  background-color: #111111 !important; 
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  justify-items: center; 
  justify-items: center; 
  margin: 0 auto;
  max-width: 1000px; 
  max-width: 1000px; 
  padding: 20px;
}

.card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: center;
  width: 100%;
  max-width: 320px; 
}

.card h2 {
  margin: 0 0 10px;
  font-size: 1.5em;
  color: #0b0b0b !important;
  color: #0b0b0b !important;
}
.card p {
  margin: 6px 0;
  color: #555 !important;
  color: #555 !important;
}
.card a {
  color: #0077cc;
  text-decoration: none;
}
.card a:hover {
  text-decoration: underline;
}


body.dark-mode .fundraiser-card {
  box-shadow: 0 2px 10px rgba(255,255,255,0.08);
}


body.dark-mode .fundraiser-card p {
  color: var(--first-gray-dark) !important;
}


.nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  position: relative;
}

/* Burger icon */
.burger {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

/* Nav buttons */
.nav-buttons {
  display: flex;
  gap: 16px;
}

.nav-buttons a {
  background-color: var(--red);
  color: white;
  padding: 7px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
  font-size: 0.90rem;
}

.nav-buttons a:hover {
  background-color: #ff4c4c;
}

@media (max-width: 1200px) {
  .nav-buttons {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 50px;
    right: 0;
    background-color: #000;
    padding: 10px;
    border-radius: 8px;
    z-index: 999;
  }

  .nav-buttons a {
    margin: 6px 0;
    display: block;
  }

  .burger {
    display: block;
  }

  .nav-buttons.active {
    display: flex;
  }
}


.products-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
}


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

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

.product-card {
  background: var(--card-bg, #fff);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
  width: 240px;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-content {
  padding: 14px;
  flex-grow: 1;
}

.product-content h3 {
  margin: 5px 0;
  color: #000000 !important;
}

.product-desc {
  font-size: 0.9rem;
  color: #555 !important;
  margin-bottom: 10px;
}

.product-price {
  font-weight: bold;
  margin-bottom: 12px;
  color: #000000 !important;
}

.buy-btn {
  margin-top: auto;
  background: #f1641e;
  color: white;
  border: none;
  padding: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
}

.buy-btn:hover {
  background: #d3541a;
}

/* Dark mode support */
.dark-mode .product-card {
  background: #fff;
}

.dark-mode .product-desc,
.dark-mode .shop-subtitle {
  color: #000;
}


