/* General Body Styles */
body {
  font-family: 'Georgia', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #87CEEB;
  color: #333;
}

/* Header */
header {
  background-color: #2a3036;
  color: white;
  padding: 3rem;
  text-align: center;
}

header h1 {
  font-family: 'Luckiest Guy', 'Comic Sans MS', cursive;
  font-size: clamp(2.5rem, 8vw, 6rem); /* Scales on smaller screens */
  letter-spacing: 1px;
  text-shadow: 4px 4px 8px rgba(35, 126, 171, 0.2);
  margin: 0 0 3rem 0;
}

/* Navigation */
nav ul {
  display: flex;
  flex-wrap: wrap;   /* ✅ let links wrap to a new row */
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

nav li {
  margin: 0.3rem 0.6rem; /* tighter, balanced spacing */
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
}

/*nav a:hover {
  transform: scale(1.2); 
  color: #d5184a; 
}*/


nav a:active {
  transform: scale(1.2); /* makes nav text bigger */  
  color: #d5184a;
}

@media (hover: hover) and (pointer: fine) {
  nav a:hover {
    transform: scale(1.2);
    color: #d5184a;
  }
}

/* Section Layout */
section {
  padding: 2rem;
  max-width: 800px;
  margin: auto;
}

/* Hero Section */
#hero {
  font-family: 'Luckiest Guy', 'Comic Sans MS', cursive;
  background-color: #e0f7ff;
  text-align: center;
  padding: 3rem 1rem;
}

#hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

#hero p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Buttons */
button {
  background-color: #808080;
  color: white;
  padding: 0.6rem 1.2rem;
  border: none;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

button:hover {
  transform: scale(1.1); 
  background-color: #000000; /* optional: changes color on hover */
}

/* Accordion */
.accordion-btn {
  background-color: #e0f7ff;
  color: #333;
  cursor: pointer;
  padding: 1rem;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 1.1rem;
  font-family: 'Comic Neue', sans-serif, cursive;
  transition: background-color 0.5s ease;
}

.accordion-btn:hover {
  background-color: #7c8890;
  transform: scale(1.02);
}

.accordion-content {
  padding: 1rem;
  background-color: #f1f1f1;
  display: none;
  border-left: 4px solid #6c757b;
  border-bottom: 1px solid #ccc;
}

.accordion-item + .accordion-item {
  margin-top: 1rem;
}

/* Calendar Thumbnail */
.calendar-thumbnail {
  max-width: 100%;
  width: 400px;
  height: auto;
  margin-top: 1.5rem;
  margin-left: auto;
  margin-right: auto;
  display: block;
  border: 2px solid #ccc;
  border-radius: 8px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s;
}

.calendar-thumbnail:hover {
  transform: scale(1.02);
}

/* Flyer Thumbnail */
.flyer-thumbnail {
  max-width: 100%;
  width: 400px;
  height: auto;
  margin-top: 1.5rem;
  border: 2px solid #ccc;
  border-radius: 0px;
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.1);
}

/* Side-by-side image row */
.image-row {
  display: flex;
  justify-content: center; /* center images */
  gap: 1rem;               /* space between images */
  flex-wrap: wrap;         /* stack on small screens */
}

.image-row img {
  width: 45%;        /* each image takes ~half of row */
  max-width: 300px;  /* cap size */
  height: auto;
  border-radius: 8px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}


/* Coffee Thumbnail */
.coffee-thumbnail {
  display: block;
  width: 60%;       /* shrink to 60% of container */
  max-width: 300px; /* don’t get bigger than 300px */
  height: auto;
  margin: 1rem auto;
  border-radius: 8px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

/* Halloween Thumbnail */
.halloween-thumbnail {
  display: block;
  width: 25%;       
  max-width: 200px;
  height: auto;
  margin: 1rem auto;
  border-radius: 8px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.turkey-thumbnail {
  display: block;
  width: 25%;       
  max-width: 200px;
  height: auto;
  margin: 1rem auto;
  border-radius: 8px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

/* Golf Thumbnail */
.golf-thumbnail {
  display: block;
  width: 70%;       
  max-width: 350px;
  height: auto;
  margin: 1.5rem auto;
  border: 2px solid #141111;
  border-radius: 8px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

/* Ensure the link with the button is centered and stacked */
.donate-link {
  display: block;
  text-align: center;
  margin-top: 1rem;
}

.donate-button {
  display: inline-block;
  background-color: #ff6b6b; /* Coral red */
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.donate-button:hover {
  background-color: #ff4d4d; /* Slightly darker red */
  transform: translateY(-2px);
}

.donate-button:active {
  transform: translateY(0);
}

/* Forms */
form input,
form textarea {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.5rem;
  font-size: 1rem;
}

/* Footer */
footer {
  background-color: #fff; /* #ddd; */
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* Images – Ensure Responsiveness */
img {
  max-width: 100%;
  height: auto;
}

/* ------------------------ */
/* ✅ Mobile Optimization   */
/* ------------------------ */

@media (max-width: 600px) {
  header {
    padding: 1.5rem;
  }

  header h1 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
  }

  .accordion-btn {
    font-size: 1rem;
    padding: 0.8rem;
  }

  .calendar-thumbnail,
  .flyer-thumbnail,
  .golf-thumbnail {
    width: 100%;
  }

  #hero {
    padding: 1.2rem 1rem; /* tighter on mobile */
  }

  #hero h2 {
    font-size: 1.5rem; /* smaller headline */
  }

  #hero p {
    font-size: 1rem; /* smaller text */
    margin-bottom: 1rem;
  }

  .flyer-thumbnail {
    width: 70%; /* auto-shrink */
    max-width: 320px; /* cap size */
    margin: 0 auto; /* center */
    display: block;
  }

  button {
    font-size: 1rem;
    padding: 0.6rem 1rem;
  }
}

/* Officers Section */
#officers {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #e0f7ff;
}

#officers h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #2a3036;
}

.officer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: auto;
}

.officer-card {
  background: white;
  padding: 1.5rem 1rem;
  border-radius: 12px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.officer-card:hover {
  transform: translateY(-7px);
}

.officer-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  margin-bottom: 0.8rem;
  border: 3px solid #87CEEB;
}

.officer-card h3 {
  margin: 0.5rem 0 0.2rem 0;
  font-size: 1.2rem;
  color: #333;
}

.officer-card p {
  margin: 0;
  color: #666;
  font-size: 1rem;
}

/* 📱 Mobile adjustments */
@media (max-width: 600px) {
  #officers {
    padding: 1.5rem 0.5rem;
  }

  #officers h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .officer-card {
    padding: 1rem 0.5rem;
  }

  .officer-card img {
    width: 80px;
    height: 80px;
  }

  .officer-card h3 {
    font-size: 1rem;
  }

  .officer-card p {
    font-size: 0.9rem;
  }
}

/* Back to Top Button */
#backToTop {
  position: fixed; 
  bottom: 20px; 
  right: 20px;
  z-index: 1000;
  background-color: #808080;
  border: none;
  border-radius: 50%;       /* make it a circle */
  width: 50px;              
  height: 50px;             
  cursor: pointer;
  display: none;             /* hidden by default */
  opacity: 0;
  pointer-events: none;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease, transform 0.2s ease, opacity 0.2s ease;

  display: flex;             /* center SVG */
  align-items: center;
  justify-content: center;
}

#backToTop.show {
  opacity: 1;
  pointer-events: auto;
}

#backToTop:hover {
  background-color: #000;
  transform: scale(1.1);
}

/* Disable hover effects on touch devices */
@media (hover: none) {
  #backToTop:hover {
    transform: none;
    background-color: #808080;
  }
}

#backToTop svg {
  width: 24px; 
  height: 24px;
  fill: rgb(255, 255, 255); /* arrow color */
}


