/* General Styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  background: url('images/bartop.jpg') no-repeat center center fixed;
  background-size: cover;
  color: white;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
	margin: 0;
}

body.site-theme {
  background:
    radial-gradient(circle at top, rgba(232, 78, 54, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(8, 8, 8, 0.72), rgba(8, 8, 8, 0.94)),
    url('images/bartop.jpg') no-repeat center center fixed;
  background-size: cover;
}

.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;/* Pushes footer to bottom if not enough content */
}

.site-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.page-panel {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: rgba(14, 14, 14, 0.76);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

.page-panel.light-panel {
  background: rgba(255, 255, 255, 0.92);
  color: #1f1f1f;
}

.page-panel.light-panel h1,
.page-panel.light-panel h2,
.page-panel.light-panel h3,
.page-panel.light-panel p,
.page-panel.light-panel li,
.page-panel.light-panel strong,
.page-panel.light-panel a {
  color: inherit;
}

.page-eyebrow {
  margin: 0 0 0.85rem;
  color: #ffb347;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-title {
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  text-align: center;
}

.hero-title {
  width: 100%;
  max-width: 100%;
  font-size: clamp(0.9rem, 3.2vw, 3rem);
  white-space: nowrap;
  letter-spacing: 0;
}

.page-panel.light-panel .page-title,
.page-panel.light-panel .page-subtitle,
.page-panel.light-panel .page-copy,
.page-panel.light-panel .info-tile p,
.page-panel.light-panel .showcase-list li,
.page-panel.light-panel .feature-pill {
  color: #1f1f1f;
}

.page-subtitle {
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(1.3rem, 3vw, 2rem);
}

.page-copy {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.75;
  font-size: 1.05rem;
}

.page-panel.left-align {
  text-align: left;
}

.page-panel.center-copy .page-copy {
  margin-left: auto;
  margin-right: auto;
}

.action-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.page-panel.left-align .action-row {
  justify-content: flex-start;
}

.brand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.brand-btn:hover {
  transform: translateY(-2px);
}

.brand-btn.primary {
  background: #e84e36;
  color: #fff;
}

.brand-btn.primary:hover {
  background: #ff654c;
}

.brand-btn.secondary {
  border: 2px solid rgba(255, 255, 255, 0.72);
  background: transparent;
  color: #fff;
}

.page-panel.light-panel .brand-btn.secondary {
  border-color: rgba(31, 31, 31, 0.32);
  color: #1f1f1f;
}

.feature-pill-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.page-panel.left-align .feature-pill-row {
  justify-content: flex-start;
}

.feature-pill {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.94rem;
}

.page-panel.light-panel .feature-pill {
  background: rgba(20, 20, 20, 0.08);
}

.split-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2rem;
  align-items: stretch;
}

.showcase-rotator {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  width: 100%;
}

.showcase-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border-radius: 24px;
  display: block;
  transition: opacity 0.35s ease;
  background: rgba(255, 255, 255, 0.06);
}

.showcase-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
}

.showcase-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.showcase-dot.active {
  background: #ffb347;
}

.showcase-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.showcase-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.showcase-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

.page-panel.light-panel .showcase-list li {
  border-bottom-color: rgba(20, 20, 20, 0.1);
}

.showcase-list li:last-child {
  border-bottom: none;
}

.showcase-list strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #fff;
}

.page-panel.light-panel .showcase-list strong {
  color: #151515;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.info-tile {
  padding: 1.35rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-panel.light-panel .info-tile {
  background: rgba(20, 20, 20, 0.05);
  border-color: rgba(20, 20, 20, 0.08);
}

.info-tile strong {
  display: inline-block;
  margin-bottom: 0.4rem;
  color: #ffb347;
}

.info-tile p {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.9);
}

.stack-section {
  display: grid;
  gap: 2rem;
}

.menu-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.menu-page-grid .menu-item {
  max-width: none;
  padding: 0.8rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-page .menu-page-grid .menu-item {
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0;
}

.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.contact-person {
  padding: 1rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.contact-person img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  display: block;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.contact-person p {
  margin: 0.9rem 0 0;
  font-weight: 700;
  color: #fff;
}

.contact-links {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-link-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-link-row i {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 78, 54, 0.2);
  color: #ffb347;
}

.contact-link-row a,
.contact-link-row span {
  color: #fff;
  text-decoration: none;
}

.ice-cream-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 179, 71, 0.18), rgba(232, 78, 54, 0.08)),
    rgba(14, 14, 14, 0.82);
}

.ice-cream-hero::after {
  content: "";
  position: absolute;
  inset: auto -140px -140px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 179, 71, 0.28), transparent 68%);
  pointer-events: none;
}

.ice-cream-hero .page-copy {
  max-width: 820px;
}

.season-layout {
  display: grid;
  gap: 1.75rem;
}

.season-image-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1rem;
  margin-top: 2rem;
}

.season-image-grid img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: 24px;
  display: block;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.season-image-stack {
  display: grid;
  gap: 1rem;
}

.season-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 1.75rem;
}

.season-highlight {
  padding: 1.3rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.season-highlight strong {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: #ffb347;
}

.season-highlight p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.season-note {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid #ffb347;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

.narrow-panel {
  width: min(900px, 100%);
}

/* Navigation */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.logo-container {
  flex-shrink: 0;
}

.logo-container img {
  height: 180px;
  width: auto;
}

.nav-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  flex-grow: 1;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  font-size: 1.1rem;
  transition: 0.3s;
}

.nav-links a:hover {
  background-color: #FF0000;
  border-radius: 5px;
}

/* Main Content */
.main-content {
  padding-top: 100px;
	padding-bottom: 50px;
  text-align: center;
}
/* image carosel */
.carousel {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 12px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-track img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  flex-shrink: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 1;
  border-radius: 50%;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

@media screen and (max-width: 768px) {
  .carousel-btn {
    font-size: 1.5rem;
    padding: 0.3rem 0.6rem;
	  height: auto;
	  width:auto;
  }

  .carousel-track img {
    height: 340px;
  }
}
/* Main Content */
.menu-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 2rem;
}

.menu-item {
  text-align: center;
  cursor: pointer;
  flex: 1 1 250px;
  max-width: 300px;
  transition: transform 0.3s ease;
}

.menu-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.menu-item img:hover {
  transform: scale(1.05);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
}

.modal-content:hover {
  transform: none;
}

.close {
  position: absolute;
  top: 30px;
  right: 35px;
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
}

/* Footer */
footer {

  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
	
  margin-top: auto;
}

.footer-info {
  margin-top: 10px;
}

.social-icons {
  margin-top: 15px;
}

.social-icons i {
  font-size: 2rem;
  margin: 0 10px;
}

.site-credit {
  margin-top: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(232, 78, 54, 0.22);
  border-color: rgba(255, 179, 71, 0.45);
}

.menu-toggle.active {
  background: rgba(232, 78, 54, 0.28);
  border-color: rgba(255, 179, 71, 0.5);
  transform: rotate(90deg);
}

/* Responsive behavior */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    gap: 0.9rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.6rem;
    gap: 0.25rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(11, 11, 11, 0.94);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26);
    text-align: center;
  }

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

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links a {
    display: block;
    padding: 0.9rem 1rem;
    border-bottom: none;
    border-radius: 14px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.02);
  }

  .nav-links a:hover {
    background: rgba(232, 78, 54, 0.2);
  }

  .logo-container img {
    height: 100px;
  }
}
.apply-button {
  background-color: #FF0000;
  color: white;
  padding: 15px 30px;
  font-size: 1.2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
	text-decoration: none;}
.apply-button:hover {
            background-color: #e04e2a;
        }


/* Optional: Adjust height on smaller screens */
@media screen and (max-width: 768px) {
  .reservation-iframe {
    height: 800px;
  }
}

.reservation-container {
  width: 100%;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
  min-height: 600px; /* Minimum space reserved for the widget */
  box-sizing: border-box;
}

.reservation-widget-panel {
  width: min(860px, 100%);
  padding: 1rem;
}

.reservation-widget-panel .reservation-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
  min-height: auto;
}

/* Optional: adjust spacing on mobile */
@media screen and (max-width: 768px) {
  .reservation-container {
    min-height: 700px;
  }

  .reservation-widget-panel .reservation-container {
    min-height: auto;
  }
}
/* Events Section */
#events-section {
  max-width: 1000px;
  margin: 3em auto;
  padding: 0 1em;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 1.5em;
}

.event-box {
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  background: #fff;
  transition: transform 0.3s ease;
}

.event-box:hover {
  transform: translateY(-4px);
}

.event-image-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.event-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Ribbon date */
.event-date {
  position: absolute;
  top: 20px;
  left: -98px;
  width: 280px;
  transform: rotate(-45deg);
  background: #e84e36;
  color: #fff;
  text-align: center;
  font-size: .80rem;
  font-weight: 700;
  padding: 10px 0;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  letter-spacing: 1px;
  text-transform: uppercase;
  pointer-events: none;
}

.event-box:hover .event-date {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Title section */
.event-info {
  padding: 1.5em 1em 1em;
  background: #fff;
  text-align: center;
}

.event-info h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #222;
  text-align: center;
  line-height: 1.35;
}

.event-info h3 a {
  color: inherit;
  text-decoration: none;
}

.event-info h3 a:hover {
  color: #e84e36;
}

.event-title-link {
  display: inline;
  color: #e84e36 !important;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  touch-action: manipulation;
}

.event-link-badge {
  display: none;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(232, 78, 54, 0.12);
  border: 1px solid rgba(232, 78, 54, 0.35);
  color: #e84e36;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .event-title-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
  }

  .event-link-badge {
    display: inline-block;
  }
}

/* Hover overlay for extra info */
.hover-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1em;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 0.9rem;
  z-index: 5;
}

.hover-info p {
  margin: 4px 0;
  line-height: 1.3;
}

.event-box:hover .hover-info {
  opacity: 1;
}

div.event-image-wrapper[data_liveedit_tagid="00000000276D13D0"] {
  display: none !important;
}

.popup-open {
  overflow: hidden;
}

.site-popup-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.7);
  z-index: 3000;
}

.site-popup {
  position: relative;
  width: min(100%, 480px);
  padding: 32px 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(31, 31, 31, 0.97), rgba(12, 12, 12, 0.98));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.site-popup-eyebrow {
  margin: 0 0 10px;
  color: #ffb347;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-popup h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 2rem;
  line-height: 1.15;
}

.site-popup-message {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.6;
}

.site-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.site-popup-action {
  margin-top: 22px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: #e84e36;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.site-popup-action:hover {
  background: #ff654c;
}

@media (max-width: 600px) {
  .site-popup {
    padding: 28px 20px 24px;
  }

  .site-popup h2 {
    font-size: 1.65rem;
  }
}

@media (max-width: 960px) {
  body.site-theme {
    background-attachment: scroll;
  }

  .site-main {
    width: min(100%, calc(100% - 24px));
    padding: 1.25rem 0 3rem;
  }

  .page-panel {
    padding: 1.6rem;
    border-radius: 22px;
  }

  .split-showcase {
    grid-template-columns: 1fr;
  }

  .showcase-photo {
    aspect-ratio: 16 / 11;
  }

  .season-image-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

  .hero-title {
    font-size: clamp(0.78rem, 3vw, 1.6rem);
  }

  .page-copy {
    font-size: 1rem;
  }

  .feature-pill-row,
  .action-row {
    gap: 0.8rem;
  }

  .brand-btn {
    width: 100%;
  }

  .contact-link-row {
    align-items: flex-start;
  }

  .menu-page-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.9rem;
  }

  .season-image-stack {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .navbar {
    padding: 10px 14px;
  }

  .hero-title {
    font-size: clamp(0.68rem, 2.9vw, 1rem);
  }

  .page-panel {
    padding: 1.25rem;
  }

  .showcase-photo {
    aspect-ratio: 1 / 1;
  }

  .info-grid,
  .contact-card-grid,
  .menu-page-grid,
  .season-highlight-grid,
  .season-image-stack {
    grid-template-columns: 1fr;
  }

  .contact-link-row {
    padding: 0.95rem;
  }
}
/* On touch devices: show hover-info below image instead of as overlay */
@media screen and (max-width: 1024px) {
  .event-box {
    display: block; /* ensure flexible stack */
  }
  .event-image-wrapper {
    position: relative;
    width: 100%;
    height: auto; /* let it expand as needed */
  }
  .event-image-wrapper img {
    width: 100%;
    height: auto;
  }
  .hover-info {
    position: static !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
    background: rgba(0,0,0,0.85) !important;
    color: #fff !important;
    padding: 1em !important;
    font-size: 0.9rem !important;
    margin-top: 10px !important;
    pointer-events: auto !important;
    display: block !important;
    text-align: center !important;
    z-index: 1 !important;
  }
  /* Keep date ribbon visible on smaller devices */
  .event-date {
    opacity: 1 !important;
  }
}
#events-section h2 {
  text-align: center;
  color: #e84e36;
  margin-top: 1em;
  font-size: 2rem;
  border-bottom: 2px solid #e84e36;
  display: inline-block;
  padding-bottom: 0.5em;
}

#past-events {
  margin-top: 0em;
  opacity: 0.85;
}

.past-events-grid .event-box {
  background-color: #f4f4f4;
}

.past-events-grid .event-info h3 {
  color: #888;
}

.past-events-grid .hover-info {
  background: rgba(50, 50, 50, 0.9);
}

/* Ribbon Styling */
.ribbon-header {
  display: inline-block;
  position: relative;
  background-color: #e84e36;
  color: #fff;
  padding: 0.75em 1.5em;
  font-size: 1.8rem;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  border-radius: 12px;
  margin: 1.5em auto 1.5em;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#events-section .section-header {
  display: table;
  margin-left: auto;
  margin-right: auto;
}

.ribbon-header::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #e84e36;
}

/* Past Ribbon Styling */
.past-ribbon {
  background-color: #666;
}

.past-ribbon::after {
  border-top-color: #666;
}


#upcoming-events,
#past-events {
  margin-bottom: 10px;
  padding-bottom: 0;
}

/* Remove extra margin below event boxes */
.event-box:last-child {
  margin-bottom: 0;
}

/* Reduce spacing after Past Events section */
#past-events + * {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
#events-section {
  padding-bottom: 0;
  margin-bottom: 0;
}
.ticket-link-wrap {
  margin-top: 10px;
  text-align: center;
}
.buy-ticket {
  display: inline-block;
  padding: 8px 14px;
  background-color: #4caf50;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}
.buy-ticket:hover {
  background-color: #388e3c;
}
@media (max-width: 600px) {
  .buy-ticket {
    font-size: 16px;
    padding: 10px 20px;
    width: 80%;
  }
}
