/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  background-color: #f5f5f7cf;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  position: relative;
}

/* GoHighLevel CRM specific overrides for full-width */
.moorestown-250-wrapper {
  width: 100vw !important;
  max-width: none !important;
  margin: 0 !important;
  position: relative;
  overflow-x: hidden;
  top: 0;
  left: 0;
}

/* Announcement Banner */
.announcement-banner {
  background: #FFD700;
  color: black;
  text-align: center;
  padding: 10px 20px; 
  font-weight: 600;
  position: relative;
  z-index: 101;
  width: 100%;
  margin: 0;
  display: block;
}

.announcement-banner a {
  color: #0056b3 !important;
  text-decoration: underline;
}

.announcement-banner a:hover {
  text-decoration: none;
}

/* Header/Hero Section */
.hero-section {
  background-color: #093626;
  color: white;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 30px;
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  text-align: left;
  width: 100%;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 30px;
  opacity: 0.9;
  text-align: left;
  width: 100%;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0 0 40px 0;
  opacity: 0.85;
  text-align: left;
  width: 100%;
}

.hero-looking-ahead {
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 15px;
  color: white;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  text-align: left;
  width: 100%;
}

.hero-newsletter-btn {
  display: inline-block;
  background-color: white;
  color: #093626;
  padding: 14px 34px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  align-self: flex-start;
}

.cta-button {
  align-self: flex-start;
  margin-left: 5%;
}

/* Featured Events Section */
.featured-events-section {
  margin-top: 60px;
  width: 100%;
  max-width: 1000px;
}

.featured-events-title {
  font-size: 2.2rem;
  font-weight: 600;
  color: white;
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.featured-events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 20px;
}

.featured-event-card {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.featured-event-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.featured-event-content {
  padding: 20px;
}

.featured-event-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #093626;
  margin-bottom: 10px;
  line-height: 1.2;
}

.featured-event-date {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.featured-event-time {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
}

.featured-event-description {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 20px;
  display: -webkit-box;
  display: box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  box-orient: vertical;
  overflow: hidden;
}

/* Utility: allow full description without clamping */
.featured-event-description--no-clamp {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  -webkit-box-orient: unset;
  box-orient: unset;
  overflow: visible;
}

.featured-event-btn {
  display: inline-block;
  background-color: #093626;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.featured-event-btn:hover {
  background-color: #28a745;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .featured-events-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .featured-events-title {
    font-size: 1.8rem;
  }
  
  .featured-event-image {
    height: 180px;
  }
}

/* Navigation */
.main-nav {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 15px 0;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  width: 100%;
}

/* Nav brand and links alignment with increased spacing */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  position: relative;
}
.nav-brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1a2a3a;
  letter-spacing: 1px;
  flex: 0 0 auto;
  margin-right: auto; /* Ensures it stays left */
}
.nav-links {
  display: flex;
  gap: 36px; /* Increased spacing between nav links */
  margin-left: auto; /* Ensures it stays right */
}
@media (max-width: 768px) {
  .nav-links {
    gap: 20px; /* Slightly smaller gap on mobile */
  }
}
@media (max-width: 480px) {
  .nav-container {
    padding: 0 15px;
  }
  .nav-brand {
    font-size: 1.4rem;
  }
  .nav-links {
    padding: 100px 30px 60px;
  }
  .nav-link {
    font-size: 1.4rem;
    padding: 25px 0;
  }
  .filter-btn {
    padding: 14px 20px;
    font-size: 0.95rem;
  }
  .events-title {
    font-size: 1.4rem;
  }
}

.nav-link {
  color: #093626;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 1rem;
}

.nav-link:hover {
  color: #28a745;
}

/* Navigation Toggle (Hamburger) */
.nav-toggle {
    display: none; /* Hidden by default */
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 8px;
    z-index: 1001;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.nav-toggle:hover {
    background-color: rgba(9, 54, 38, 0.1);
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background: #093626;
    transition: transform 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #093626;
    transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.nav-open .hamburger {
    transform: rotate(45deg);
}

.nav-open .hamburger::before {
    top: 0;
    transform: rotate(90deg);
}

.nav-open .hamburger::after {
    top: 0;
    transform: rotate(90deg);
    opacity: 0;
}

/* Enhanced mobile navigation */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #093626;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 40px;
    box-shadow: none;
    gap: 0;
    z-index: 9999;
  }

  .nav-open .nav-links {
    display: flex !important;
    animation: slideIn 0.3s ease-out;
  }

  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateY(-20px);
      -webkit-transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
      -webkit-transform: translateY(0);
    }
  }
  
  @-webkit-keyframes slideIn {
    from {
      opacity: 0;
      -webkit-transform: translateY(-20px);
    }
    to {
      opacity: 1;
      -webkit-transform: translateY(0);
    }
  }

  .nav-links .nav-link {
    padding: 20px 0;
    width: 100%;
    text-align: center;
    font-size: 1.3rem;
    color: #ffffff !important;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
  }

  .nav-links .nav-link:hover {
    color: #28a745 !important;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
  }

  .nav-links .nav-link:last-child {
    border-bottom: none;
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 10000;
  }

  .nav-container {
    flex-wrap: nowrap;
    position: relative;
    z-index: 10001;
  }

  /* Ensure hamburger is visible when menu is open */
  .nav-open .hamburger,
  .nav-open .hamburger::before,
  .nav-open .hamburger::after {
    background: #ffffff !important;
  }

  /* Prevent body scroll when nav is open */
  body.nav-open {
    overflow: hidden;
  }
}

/* Sponsor Marquee Banner */
.sponsor-marquee-banner {
  background-color: white;
  border-bottom: 1px solid #e0e0e0;
  padding: 10px 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

/* Use native browser tooltips for better performance */

.sponsor-marquee-track {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.sponsor-marquee-content {
  display: flex;
  align-items: center;
  animation: sponsorScroll 60s linear infinite;
  -webkit-animation: sponsorScroll 60s linear infinite;
  width: fit-content;
}

.sponsor-marquee-banner:hover .sponsor-marquee-content {
  animation-play-state: paused;
  -webkit-animation-play-state: paused;
}

.sponsor-marquee-banner::before {
  content: "A heartfelt thanks to our generous sponsors for making this collaborative effort possible";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(9, 54, 38, 0.95);
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.sponsor-marquee-banner:hover::before {
  opacity: 1;
}

.sponsor-marquee-item {
  display: flex;
  align-items: center;
  margin: 0 40px;
  flex-shrink: 0;
  padding-bottom: 3px;
  border-bottom: 3px solid transparent;
}

.sponsor-marquee-item.gold-tier {
  border-bottom-color: #FFD700;
}

.sponsor-marquee-item.silver-tier {
  border-bottom-color: #C0C0C0;
}

.sponsor-marquee-item.bronze-tier {
  border-bottom-color: #CD7F32;
}

.sponsor-marquee-item.pewter-tier {
  border-bottom-color: #8B8B8B;
}

.sponsor-marquee-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

@keyframes sponsorScroll {
  0% {
    transform: translateX(0);
    -webkit-transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
  }
}

/* Mobile accommodations for sponsor marquee */
@media (max-width: 768px) {
  /* Disable tooltip on mobile */
  .sponsor-marquee-banner::before {
    display: none;
  }
  
  /* Keep animation running on mobile - no pause on touch */
  .sponsor-marquee-banner:hover .sponsor-marquee-content {
    animation-play-state: running;
    -webkit-animation-play-state: running;
  }
}

@-webkit-keyframes sponsorScroll {
  0% {
    -webkit-transform: translateX(0);
  }
  100% {
    -webkit-transform: translateX(-50%);
  }
}

/* Section styling */
.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

.section-title {
  font-size: 2.5rem;
  color: #093626;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
}

/* Calendar Widget Section */
.calendar-widget-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

#calendar-widget-section {
  background: white;
  margin: 0;
  padding: 60px 0;
  width: 100%;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  #calendar-widget-section {
    padding: 30px 10px;
  }
}

/* Events container */
.events-container {
  color: #333;
  line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  margin: 0 auto;
  overflow: hidden;
}

/* Events section */
.events-section {
  padding: 8px;
}

.events-header {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.events-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #093626;
  text-align: center;
  width: 100%;
  margin-bottom: 8px;
}

.events-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  background-color: #f0f0f0;
  border: none;
  padding: 10px 20px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
  min-width: 100px;
  text-align: center;
}

.filter-btn:hover, .filter-btn.active {
  background-color: #093626;
  color: white;
}

/* Event cards grid */
.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

/* Featured events container */
.featured-events-container {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 20px !important;
  margin-bottom: 20px !important;
  grid-column: 1 / -1 !important;
}

@media (max-width: 768px) {
  .featured-events-container {
    grid-template-columns: 1fr !important;
  }
  
  .featured-events-container .event-card {
    width: 100% !important;
    max-width: 100% !important;
  }
}

.event-card {
  background-color: white;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.2s;
  cursor: pointer;
  margin: 0 auto;
  width: 100%;
  max-width: 500px;
}

.event-card:hover {
  transform: translateY(-3px);
}

/* Past event styling */
.event-card.past-event {
  opacity: 0.8;
  border-left: 4px solid #6c757d;
}

.event-card.past-event .event-card-header {
  background-color: #6c757d;
}

.event-card.past-event:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* Event card components */
.event-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.event-card-header {
  padding: 12px 16px;
  background-color: #093626;
  color: white;
}

.event-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}

.event-date {
  font-size: 0.9rem;
  opacity: 0.9;
}

.event-card-body {
  padding: 16px;
}

.event-time, .event-location {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #666;
}

.event-description {
  margin-top: 12px;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
  display: -webkit-box;
  display: box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  box-orient: vertical;
  overflow: hidden;
}

.event-card-cta {
  margin-top: 16px;
}

.event-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #093626;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.event-cta-btn:hover,
.event-cta-btn:focus {
  background-color: #0c4732;
  color: #fff;
}

/* Event popover */
.event-popover {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border-radius: 3px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

.event-popover-header {
  padding: 16px;
  background-color: #093626;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.event-popover-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}

.event-popover-subtitle {
  font-size: 0.95rem;
  opacity: 0.9;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.event-popover-body {
  padding: 16px;
  padding-bottom: 20px;
}

.event-popover-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 16px;
}

.event-popover-time, 
.event-popover-location {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #555;
}

.event-popover-description {
  margin-top: 16px;
  line-height: 1.6;
  color: #333;
  font-size: 0.95rem;
}

/* Event popover button styles */
.event-popover-link-btn {
  display: inline-block;
  background-color: #007bff;
  color: white !important;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 15px;
  text-align: center;
  transition: background-color 0.3s ease;
}

.event-popover-link-btn:hover {
  background-color: #0056b3;
  color: white !important;
}

.event-popover-page-link {
  float: left;
  margin-right: 1em;
  margin-top: 1em;
  margin-bottom: 1em;
  text-decoration: none;
  color: #0066cc;
}

.event-popover-details-soon {
  margin-top: 15px;
  text-align: center;
  font-style: italic;
  color: #666;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  backdrop-filter: blur(3px);
}

/* No events message */
.no-events-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px 16px;
  color: #666;
  font-size: 1rem;
}

/* Icons */
.icon {
  width: 16px;
  height: 16px;
  display: inline-block;
}

/* Calendar specific overrides */
.calendar-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 30px;
  margin-bottom: 60px;
}

/* Calendar specific styles */
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.calendar-title-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.calendar-nav {
  display: flex;
  gap: 10px;
}

.nav-btn, .today-btn {
  background-color: #f0f0f0;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.nav-btn:hover, .today-btn:hover {
  background-color: #e0e0e0;
}

.today-btn {
  background-color: #007bff;
  color: white;
}

.today-btn:hover {
  background-color: #0056b3;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background-color: #e0e0e0;
  border: 1px solid #e0e0e0;
  margin-bottom: 20px;
}

.calendar-day-header {
  background-color: #093626;
  color: white;
  padding: 10px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.calendar-day {
  background-color: white;
  min-height: 80px;
  padding: 8px;
  position: relative;
  cursor: default;
  transition: background-color 0.2s ease;
}

.calendar-day:hover {
  background-color: #f5f5f5;
}

.calendar-day.other-month {
  background-color: #fafafa;
  color: #999;
}

.calendar-day.today {
  background-color: #e3f2fd;
}

.calendar-day.has-events {
  cursor: pointer;
}

.calendar-day.has-events::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background-color: #007bff;
  border-radius: 50%;
}

.day-number {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Partners section styling */
.partners-section {
  background-color: white;
  padding: 60px 20px;
  margin-top: 0;
  width: 100%;
}

.partners-title {
  font-size: 2.5rem;
  color: #093626;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
}

/* Partner styles */
.partner-container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.partner-logo-img {
  max-height: 150px;
  height: auto;
  width: auto;
  display: block;
  margin: 0;
}

.partner-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  flex-shrink: 0;
  flex-grow: 0;
  background-color: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin: 0 10px;
}

.partner-label {
  font-size: 0.8rem;
  text-align: center;
  margin-top: 0.25rem;
}

.partner-marquee {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  -webkit-animation: marquee 40s linear infinite;
}

.partner-ribbon:hover .partner-marquee {
  animation-play-state: paused;
  -webkit-animation-play-state: paused;
}

@keyframes marquee {
  0% { 
    transform: translateX(0);
    -webkit-transform: translateX(0);
  }
  100% { 
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
  }
}

@-webkit-keyframes marquee {
  0% { -webkit-transform: translateX(0); }
  100% { -webkit-transform: translateX(-50%); }
}

.partner-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 40px;
  border: 1px dashed #ccc;
  text-align: center;
  font-size: 0.7rem;
  padding: 5px;
  box-sizing: border-box;
  word-break: break-word;
  white-space: normal;
}

.partner-ribbon {
  width: 100%;
  overflow: hidden;
  padding: 1rem 0;
  cursor: pointer;
}

/* Merchandise section styling */
.merch-wrapper {
  background-color: white;
  padding: 60px 20px;
  width: 100%;
}

.merch-section {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.merch-title {
  font-size: 2.5rem;
  color: #093626;
  margin-bottom: 15px;
  font-weight: 600;
}

.merch-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.merch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.merch-item {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.merch-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.merch-item-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background-color: #f8f9fa;
}

.merch-item-content {
  padding: 20px;
}

.merch-item-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #093626;
  margin-bottom: 8px;
}

.merch-item-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #28a745;
  margin-bottom: 10px;
}

.merch-item-description {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

.merch-cta {
  text-align: center;
}

.merch-shop-btn {
  display: inline-block;
  background-color: #093626;
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.merch-shop-btn:hover {
  background-color: #28a745;
  transform: translateY(-2px);
  color: white;
}

/* Sponsors section styling */
.sponsors-wrapper {
  background-color: #f8f9fa;
  padding: 60px 20px;
  width: 100%;
}

.sponsor-section {
  max-width: 1200px;
  margin: 0 auto 40px;
  text-align: center;
}

.sponsor-title {
  font-size: 2rem;
  color: #093626;
  margin-bottom: 30px;
  font-weight: 600;
}

.gold-sponsor-container {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.silver-sponsor-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.bronze-sponsor-container,
.pewter-sponsor-container,
.other-sponsor-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* White background for all sponsor logos */
.gold-sponsor-logo,
.bronze-sponsor-logo,
.silver-sponsor-logo,
.pewter-sponsor-logo,
.other-sponsor-logo {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 0 10px 20px;
}

.gold-sponsor-logo:hover,
.bronze-sponsor-logo:hover,
.silver-sponsor-logo:hover,
.pewter-sponsor-logo:hover,
.other-sponsor-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gold-sponsor-logo {
  padding: 30px;
  margin-bottom: 30px;
}

/* Sponsor marquee styles */
.sponsor-ribbon {
  position: relative;
  background-color: transparent;
  padding: 2rem 0;
  overflow: hidden;
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.sponsor-container {
  display: flex;
  align-items: center;
  width: max-content;
  animation: sponsor-marquee 45s linear infinite;
  -webkit-animation: sponsor-marquee 45s linear infinite;
}

.sponsor-container:hover {
  animation-play-state: paused;
  -webkit-animation-play-state: paused;
}

.sponsor-logo {
  height: 40px;
  margin: 0 2rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  filter: grayscale(100%);
}

.sponsor-logo:hover {
  opacity: 1;
  filter: none;
}

@keyframes sponsor-marquee {
  0% {
    transform: translateX(0);
    -webkit-transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
  }
}

@-webkit-keyframes sponsor-marquee {
  0% {
    -webkit-transform: translateX(0);
  }
  100% {
    -webkit-transform: translateX(-50%);
  }
}

/* For accessibility */
.sponsor-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Overrides for tiered sponsors (Gold, Silver, Bronze, Pewter) */
.gold-sponsor-logo .sponsor-logo,
.silver-sponsor-logo .sponsor-logo,
.bronze-sponsor-logo .sponsor-logo,
.pewter-sponsor-logo .sponsor-logo {
  opacity: 1 !important;
  filter: none !important;
  margin: 0;
}

.gold-sponsor-logo .sponsor-logo {
  height: 160px;
  max-height: 160px;
}

.silver-sponsor-logo .sponsor-logo {
  height: 150px;
  max-height: 150px;
  width: auto;
  max-width: 300px;
}

.bronze-sponsor-logo .sponsor-logo {
  height: 120px;
  max-height: 120px;
}
.pewter-sponsor-logo .sponsor-logo {
  height: 100px;
  max-height: 100px;
}

/* Layout for sponsor containers */
.gold-sponsor-container,
.silver-sponsor-container,
.bronze-sponsor-container {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.gold-sponsor-logo,
.silver-sponsor-logo,
.bronze-sponsor-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.bronze-sponsor-logo .sponsor-logo {
  height: auto;
  max-height: 120px;
  width: auto;
  max-width: 260px;
}

/* Other Sponsors Tier */
.other-sponsor-logo .sponsor-logo {
  opacity: 1 !important;
  filter: none !important;
  margin: 0;
  height: 80px;
  max-height: 80px;
}

.other-sponsor-container {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.other-sponsor-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* Pre-Footer Image Section */
.pre-footer-image {
  width: 100%;
  margin-top: 80px;
  overflow: hidden;
}

.pre-footer-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Footer */
.footer {
  background-color: #093626;
  color: white;
  text-align: center;
  padding: 40px 20px;
  margin-top: 0;
  width: 100%;
}

.footer-text {
  opacity: 0.8;
  font-size: 0.95rem;
}

/* Utility classes */
.hidden {
  display: none;
}

/* Responsive styles */
@media (min-width: 480px) {
  .events-section {
    padding: 20px;
  }

  .event-card-header {
    padding: 14px 16px;
  }

  .event-popover-image {
    height: 220px;
  }
}

@media (min-width: 768px) {
  .events-section {
    padding: 24px;
  }

  .events-header {
    justify-content: space-between;
  }

  .events-title {
    font-size: 2rem;
    text-align: left;
    width: auto;
    margin-bottom: 0;
  }

  .events-filter {
    justify-content: flex-end;
  }

  .events-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
  }

  .event-card {
    max-width: none;
  }

  .event-image {
    height: 160px;
  }

  .event-popover-image {
    height: 250px;
  }

  .sponsor-logo {
    height: 50px;
    margin: 0 3rem;
  }
}

@media (min-width: 1024px) {
  .events-section {
    padding: 30px;
  }

  .events-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
  }

  .event-image {
    height: 180px;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .section-title,
  .partners-title {
    font-size: 2rem;
  }

  .nav-container {
    gap: 15px;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .calendar-grid {
    gap: 0;
  }

  .calendar-day {
    min-height: 60px;
    padding: 5px;
    font-size: 0.85rem;
  }

  .calendar-day-header {
    padding: 8px 5px;
    font-size: 0.8rem;
  }

  .calendar-header {
    justify-content: center;
    text-align: center;
  }

  .calendar-title-container {
    width: 100%;
    justify-content: center;
  }

  .calendar-nav {
    width: 100%;
    justify-content: center;
  }

  .pre-footer-img {
    height: 250px;
  }

  .gold-sponsor-logo .sponsor-logo {
    height: 120px;
    max-height: 120px;
  }

  .silver-sponsor-logo .sponsor-logo {
    height: 110px;
    max-height: 110px;
  }

  .bronze-sponsor-logo .sponsor-logo {
    height: 90px;
    max-height: 90px;
  }

  .pewter-sponsor-logo .sponsor-logo {
    height: 75px;
    max-height: 75px;
  }

  .other-sponsor-logo .sponsor-logo {
    height: 60px;
    max-height: 60px;
  }

  .merch-title {
    font-size: 2rem;
  }

  .merch-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }


}

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

  .merch-shop-btn {
    padding: 12px 24px;
    font-size: 1rem;
  }
}

/* --- Sponsor logo uniformity --- */
.gold-sponsor-logo,
.bronze-sponsor-logo,
.pewter-sponsor-logo,
.other-sponsor-logo {
  width: 90%;
  max-width: 260px;
}

.gold-sponsor-logo .sponsor-logo,
.bronze-sponsor-logo .sponsor-logo,
.pewter-sponsor-logo .sponsor-logo,
.other-sponsor-logo .sponsor-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* --- Merchandise card refinements --- */
.merch-item-title,
.merch-item-description {
  text-align: left;
}

@media (max-width: 768px) {
  .merch-item-image {
    height: auto;
    object-fit: contain;
  }
}

/* Enhanced filter tabs for mobile */
@media (max-width: 768px) {
  .events-filter {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
    justify-content: center;
    overflow-x: auto;
    padding: 0 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .events-filter::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    background-color: #f0f0f0;
    border: none;
    padding: 12px 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    min-width: auto;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .filter-btn:hover, .filter-btn.active {
    background-color: #093626;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(9, 54, 38, 0.3);
  }

  .events-header {
    margin-bottom: 20px;
    padding: 0 10px;
  }

  .events-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
  }
}

/* Additional mobile improvements */
@media (max-width: 480px) {
  .nav-container {
    padding: 0 15px;
  }

  .nav-brand {
    font-size: 1.4rem;
  }

  .nav-links {
    padding: 100px 30px 60px;
  }

  .nav-link {
    font-size: 1.4rem;
    padding: 25px 0;
  }

  .filter-btn {
    padding: 14px 20px;
    font-size: 0.95rem;
  }

  .events-title {
    font-size: 1.4rem;
  }
}

/* Sponsor tier heading scaling */
.gold-sponsor-section .sponsor-title {
  font-size: 2.25rem;
}

.silver-sponsor-section .sponsor-title {
  font-size: 2.125rem;
}

.bronze-sponsor-section .sponsor-title {
  font-size: 2rem;
}

.pewter-sponsor-section .sponsor-title {
  font-size: 1.85rem;
}

.other-sponsor-section .sponsor-title {
  font-size: 1.75rem;
}

@media (max-width: 768px) {
  .gold-sponsor-section .sponsor-title { font-size: 1.9rem; }
  .silver-sponsor-section .sponsor-title { font-size: 1.8rem; }
  .bronze-sponsor-section .sponsor-title { font-size: 1.7rem; }
  .pewter-sponsor-section .sponsor-title { font-size: 1.6rem; }
  .other-sponsor-section .sponsor-title { font-size: 1.5rem; }
}

/* Newsletter Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  box-sizing: border-box;
}

.newsletter-modal {
  background: #fff;
  width: 90%;
  max-width: 640px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  height: 30vh;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background-color: #093626;
  color: white;
  flex-shrink: 0;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.newsletter-modal-title {
  font-size: 1.5rem;
  color: white;
  margin: 0;
  padding: 0;
}

.newsletter-iframe {
  width: 100%;
  height: calc(90vh - 60px);
  border: none;
  display: block;
  flex: 1;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.modal-close-btn {
  position: relative;
  top: auto;
  right: auto;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: white;
  transition: color 0.2s ease;
  z-index: 2;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  color: #ddd;
}

@media (max-width: 768px) {
  .newsletter-iframe { 
    height: calc(85vh - 60px);
  }
  
  .newsletter-modal {
    width: 95%;
    height: 85vh;
  }
}

/* Featured event card as two-column grid */
.event-card.featured {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: stretch;
  background: #f7fafc;
  border: 2px solid #1a2a3a;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  padding: 0;
  margin-bottom: 32px;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
}
.event-card.featured .event-image {
  width: 100%;
  height: 100%;
  min-height: 220px;
  max-height: 340px;
  object-fit: cover;
  border-radius: 0;
  display: block;
}
.event-card.featured .event-card-header {
  background: none;
  padding: 32px 32px 0 32px;
  margin: 0;
}
.event-card.featured .event-title {
  font-size: 2rem;
  font-weight: bold;
  color: #1a2a3a;
  background: none;
  margin: 0 0 12px 0;
  padding: 0;
  line-height: 1.1;
}
.event-card.featured .event-date {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 18px;
  font-weight: 500;
}
.event-card.featured .event-card-body {
  padding: 0 32px 32px 32px;
  font-size: 1.08rem;
}
.event-card.featured .event-time,
.event-card.featured .event-location {
  margin-bottom: 10px;
  font-size: 1rem;
}
.event-card.featured .event-description {
  margin-top: 10px;
  font-size: 1.08rem;
  color: #222;
}
@media (max-width: 900px) {
  .event-card.featured {
    grid-template-columns: 1fr;
  }
  .event-card.featured .event-card-header,
  .event-card.featured .event-card-body {
    padding: 24px 20px;
  }
  .event-card.featured .event-card-body {
    padding-top: 0;
  }
  .event-card.featured .event-image {
    min-height: 140px;
    max-height: 200px;
  }
}

/* Featured event card - contained within events section */
.event-card.featured {
  width: 100%;
  max-width: 100%;
  position: relative;
  margin-left: 0;
  margin-right: 0;
  left: auto;
  right: auto;
  border-radius: 3px;
  grid-column: 1 / -1;
  border: none;
  margin-bottom: 16px;
  /* Keep other styles for grid layout, etc. */
}

@media (max-width: 900px) {
  .event-card.featured {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    left: auto;
    right: auto;
    border-radius: 3px;
    margin-bottom: 16px;
  }
}

/* Mission Section Styling */
.mission-section {
  padding: 60px 0;
  margin: 40px 0;
}

.mission-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.mission-content {
  margin-top: 20px;
}

.mission-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
  max-width: 900px;
  margin: 0 auto;
}

#mission .section-title {
  text-align: center;
  font-size: 2rem;
  color: #1a2a3a;
  margin-bottom: 20px;
}


@media (max-width: 768px) {
  .mission-section {
    padding: 40px 0;
    margin: 30px 0;
  }
  
  .mission-text {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  #mission .section-title {
    font-size: 1.8rem;
  }
}

.event-card-footer button {
  margin-right: 10px;
}

.event-card-footer .event-popover-link-btn {
  margin-right: 10px !important;
}

.event-button {
  margin-right: 10px;
}

.event-popover-body .event-popover-link-btn {
  margin-right: 10px;
}

/* Partners Section Styles */
.partners-section {
  padding: 60px 0;
  background: #fff;
  overflow: hidden;
}

.partners-title {
  font-size: 2.5rem;
  color: #093626;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
}

.partner-ribbon {
  width: 100%;
  overflow: hidden;
  padding: 1rem 0;
  cursor: pointer;
}

.partner-container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.partner-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  flex-shrink: 0;
  flex-grow: 0;
}

.partner-logo-img {
  max-height: 150px;
  height: auto;
  width: auto;
  display: block;
  margin: 0 1rem;
}

.partner-label {
  font-size: 0.8rem;
  text-align: center;
  margin-top: 0.25rem;
}

.partner-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 40px;
  border: 1px dashed #ccc;
  text-align: center;
  font-size: 0.7rem;
  padding: 5px;
  box-sizing: border-box;
  word-break: break-word;
  white-space: normal;
}

/* --- Partner logo uniformity --- */
.partner-logo {
  width: 90%;
  max-width: 260px;
}

.partner-logo-img {
  max-width: 100%; /* ensure image never exceeds its container width */
  height: auto;
  object-fit: contain;
}

/* --- Sponsor logo uniformity (override) --- */
.gold-sponsor-logo,
.silver-sponsor-logo,
.bronze-sponsor-logo,
.pewter-sponsor-logo,
.other-sponsor-logo {
  width: 100%;
  max-width: 260px;
}

.gold-sponsor-logo .sponsor-logo,
.silver-sponsor-logo .sponsor-logo,
.bronze-sponsor-logo .sponsor-logo,
.pewter-sponsor-logo .sponsor-logo,
.other-sponsor-logo .sponsor-logo {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}
