

/* General Reset for Consistency */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


body {
  background-color: #FFFFFF;/* Fallback color */
  background-image: url('../TopoMap.SVG.svg');
  background-repeat: repeat; /* Ensures the pattern covers the whole page */
  background-attachment: fixed;
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Ensures the body takes full height */
  margin: 0;
  padding-bottom: 10px; /* Adds space at the bottom of the page */
  border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Optional: subtle bottom border */
}

main {
  flex-grow: 1; /* Ensures the main content area grows to fill available space */
  padding-bottom: 10px; /* Adds space at the bottom of content */
  /* background-color: #EBE9E3; */
}

/* Media Queries for mobile devices */
@media (max-width: 768px) {
  body {
      padding-bottom: 8px; /* Further reduce bottom padding for smaller screens */
  }

  main {
      padding-bottom: 8px; /* Adjust padding for smaller devices */
  }

  .calendar, .event-card {
    width: 100%; /* Ensure full width on smaller screens */
    margin: 0 auto; /* Center the elements */
  }
}

@media (max-width: 480px) {
  body {
      padding-bottom: 5px; /* Further reduce bottom padding on very small screens */
  }

  main {
      padding-bottom: 5px; /* Adjust for very small devices */
  }

  .calendar, .event-card {
    width: 100%; /* Ensure full width on very small screens */
    margin: 0 auto; /* Center the elements */
  }
}

  .top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    color: #FFFFFF;
    background-image: none !important;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-repeat: no-repeat;
    background-size: cover;
    border-top: 1px solid rgba(0, 0, 0, 1); /* Darker black top border */
    border-bottom: 1px solid rgba(0, 0, 0, 1); /* Darker black bottom border */
}

  .logo{
    font-weight: bolder;
    text-decoration: none;
    color:#FFFFFF;
  }

  .logo-icon {
    width: 50px;          /* Default width for the icon */
    height: auto;         /* Maintain aspect ratio */
    max-width: 100%;      /* Ensure it never exceeds container size */
    margin-right: 10px;    /* Space between icon and logo text */
}

  /* Responsive adjustments */
  @media (max-width: 768px) {
      .logo-icon {
          width: 40px;     /* Slightly smaller icon on tablet screens */
          margin-right: 6px;
      }
  }

  @media (max-width: 480px) {
      .logo-icon {
          width: 30px;     /* Even smaller icon on mobile screens */
          margin-right: 4px;
      }
  }


/* Menus Link Styling */
nav a, .right-menu a, .dropdown-toggle {
  margin: 0 10px;
  color: #7DB3B0;
  text-decoration: none;
  font-weight: bold;
}

.top-bar nav a:hover, .right-menu a:hover, .dropdown-toggle:hover {
  color: #5A8E8C; /* Slightly darker shade for hover effect */
}

/* Sticky Header and Footer */
header {
  width: 100%;
  background-image: none !important;
}

/* Style social icons with real-life branding colors */
/* Real-brand colors for social icons */
.social-icon.instagram i {
  color: #E1306C !important;
}

.social-icon.facebook i {
  color: #1877F2 !important;
}

.social-icon.instagram:hover i {
  color: #C13584 !important;
}

.social-icon.facebook:hover i {
  color: #145dbf !important;
}



/* Home Page Styling */

/* Main dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown toggle buttons */
.dropdown-toggle {
  border: none;
  cursor: pointer;
  background: none;
  padding: 0;
}

/* Account icon button */
.account-menu .dropdown-toggle {
  font-size: 1.3rem;
  line-height: 1;
  color: #7DB3B0;
  padding: 5px 10px;
}

.account-menu .dropdown-toggle:hover {
  color: #5A8E8C;
}

.account-menu .dropdown-toggle::before {
  content: "👤";
}

/* Hamburger button */
.menu-items .dropdown-toggle {
  width: 44px;
  height: 40px;
  background-color: #f8d7fc;
  border-radius: 10px;
  position: relative;
  display: inline-block;
}

/* middle line */
.menu-items .dropdown-toggle::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  height: 3px;
  background-color: #111;
  border-radius: 999px;
  transform: translateY(-50%);
  box-shadow: 0 -7px 0 #111, 0 7px 0 #111;
}

/* The dropdown menu box that appears on click/tap */
.dropdown-menu {
  display: none; /* Hidden by default */
  position: absolute;
  top: 100%;
  right: 0; /* Anchors the menu to the right of the icon */
  background-color: white;
  min-width: 160px; /* A good default width */
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 8px 0;
  z-index: 1001;
}

/* This is the class JavaScript will use to show the menu */
.dropdown-menu.show {
  display: block;
}

/* Styling for ALL items (links and buttons) inside the dropdown */
.dropdown-menu a,
.dropdown-menu .btn-signout {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-size: 0.9rem;
  line-height: 1.5; /* This ensures perfect vertical alignment */
  color: #333;
  text-decoration: none;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

/* Remove margin from the Sign Out form wrapper */
.account-menu .dropdown-menu form {
    margin: 0;
}

/* Hover effect for ALL items */
.dropdown-menu a:hover,
.dropdown-menu .btn-signout:hover {
  background-color: #f1f1f1;
}

/* --- Mobile Fix for Dropdowns --- */
@media (max-width: 600px) {
    .dropdown-menu {
        min-width: 140px; /* Use a smaller width on mobile to prevent overflow */
    }
}


/* Additional small spacing for better layout */
.right-menu {
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.right-menu .dropdown {
  margin-right: 1px; /* Add spacing between dropdowns */
}


/* Remove competing backgrounds from specific pages */
.homepage, .page-container{
    background-color: transparent !important; 
    padding: 0 !important;
    margin: 0 !important;
}


/* Styles for homepage */


.centered-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.3rem 0.5rem;
  text-align: center;
}

.homepage h2 {
  background-color: transparent !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  font-size: 2.8rem;
  color: black;
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.homepage p {
  font-size: 1.4rem;
  color: #444;
  font-weight: bold;
}

.card-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin: 0;
  padding: 0 1rem 2rem;
}

.card {
  position: relative;
  width: 30%;
  height: 32rem;
  display: block;
  overflow: hidden;
  padding: 6px;
  background-color: #e6c4ec;
  border: 2px solid #cfa8da;
  border-radius: 26px;
    box-shadow:
    0 0 0 5px rgba(230, 196, 236, 0.95),
    0 2px 10px rgba(0, 0, 0, 0.06);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: white;
}

.card-content {
  position: absolute;
  top:-2px;
  left: -1px;
  z-index: 3;
  padding: 0.8rem 1.5rem;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 0 0 22px 22px;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.card h3 {
  margin: 0;
  font-size: 3.1rem;
  line-height: 1;
  font-weight: 700;
  color: #7DB3B0;
}

.card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0));
  padding: 1.25rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

.card-overlay p {
  margin: 0 0 0.8rem 0;
  font-size: 1rem;
  line-height: 1.3;
  color: black;
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}

.card:hover .card-overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.overlay-button {
  background-color: #7DB3B0;
  display: inline-block;
  align-self: flex-start;
  margin-top: 0;
  padding: 0.65rem 1rem;
  color: white;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.overlay-button:hover {

  transform: translateY(-1px);
  border-radius: 999px;

}

@media (max-width: 768px) {
  .card-container {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 0 0 2rem;
  }

  .card {
    width: 100%;
    height: 32rem;
    border-radius: 22px;
    padding: 4px;
  }

  .card-link {
    border-radius: 18px;
  }

  .card-content {
    top: -2px;
    left: -1px;
    padding: 0.75rem 1.1rem;
  }

  .card h3 {
    font-size: 2rem;
  }
}


/* About Section Layout */
.about-page-container.white-card {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 2.5rem 2rem 3rem !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1.5px solid rgba(80, 80, 80, 0.2);
  border-radius: 28px;
  box-shadow: 6px 6px 0 rgba(230, 196, 236, 0.8);
}

.about-text-content {
  max-width: 850px;
  margin: 0 auto 2rem;
  text-align: center;
  color: #333;
}

.about-text-content h1 {
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.about-text-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.about-text-content blockquote {
  margin: 20px 0;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.5);
  border-left: 5px solid #7DB3B0;
  font-style: italic;
}

.about-text-content .event-link {
  font-weight: bold;
  color: #7DB3B0;
}

.slideshow-container {
  max-width: 900px;
  position: relative;
  margin: 0 auto;
  border: 4px solid #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  aspect-ratio: 16 / 9;
}

.mySlides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out;
}

.mySlides.active-slide {
  opacity: 1;
  visibility: visible;
}

.mySlides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.5);
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Dots / indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}


/* Hosting Section Layout */

.hosting-section {
    width: 100%;
    background-color: #EBE9E3;
    padding: 0;
}

.hosting-container {
    max-width: 100%;
    margin: 0 auto;
}

.hosting-image-container {
    position: relative; /* This is the positioning context for the text bubble */
    width: 100%;
    display: flex; /* Use flexbox to align the text bubble */
    justify-content: flex-start; /* Align content to the left */
    align-items: flex-end; /* Align content to the bottom */
}

.hosting-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hosting-text-bubble {
    position: absolute;
    top: 2%; /* Position from the top of the image */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 700px; /* Set a maximum width */
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent background */
    border: 2px solid #7DB3B0;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.hosting-text-bubble h1 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.hosting-text-bubble p {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #555;
    font-weight: bold;
}

.hosting-application-link {
    display: inline-block;
    font-size: 1rem;
    font-weight: bold;
    color: #7DB3B0;
    text-decoration: none;
    border-bottom: 2px solid #7DB3B0;
    margin-top: 10px;
}

.hosting-application-link:hover {
    color: #6aa8a1;
    border-bottom-color: #6aa8a1;
}

/* --- Mobile Responsiveness for Hosting Section --- */
@media (max-width: 768px) {
    .hosting-image-container {
        flex-direction: column; /* Stack image and text bubble vertically */
        align-items: center; /* Center items horizontally */
    }

    .hosting-image {
        height: auto; /* Let the image determine its height */
    }
    
    .hosting-text-bubble {
      position: static; /* This is the key change */
      transform: none;
      margin: 20px auto; /* Adds space above/below and centers it */
    }

    .hosting-text-bubble h1 {
        font-size: 1.25rem;
    }

    .hosting-text-bubble p {
        font-size: 0.9rem;
    }

    .hosting-application-link {
        font-size: 0.95rem;
    }
}




/* Faq Page Styling */
.full-width-background-faq {
  background-color: #EBE9E3; /* Use the muted brand color */
  width: 100%;
}


.faq {
  padding: 30px;
  background-color: #EBE9E3; /* Match footer background */
  max-width: 800px;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Added shadow for consistency */
}

.faq h1 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
  color: #333;
}

.faq-item {
  margin-bottom: 20px;
  padding: 20px;
  border: 2px solid #7DB3B0; /* Light border with brand color */
  border-radius: 8px;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow effect on hover */
}

.faq-question {
  display: flex;
  align-items: center;
  font-size: 1.25em;
  font-weight: bold;
  color: #007BFF;
  cursor: pointer;
}

.faq-question .toggle-sign {
  margin-right: 15px; /* Space between sign and question text */
  font-size: 1.5em; /* Bigger sign for better visual */
  transition: transform 0.3s ease;
}

.faq-answer {
  display: none; /* Hide answers by default */
  margin-top: 10px;
  font-size: 1.1em;
  font-weight: bold;
  color: #333;
}

.faq-answer p {
  margin: 0;
}

.faq-item:hover .faq-question .toggle-sign {
  color: #7DB3B0; /* Change color on hover */
}


/* Subscriptions Page Styling */
  .full-width-background-subscriptions {
      display: flex;
      justify-content: center; /* Center horizontally */
      align-items: center;     /* Center vertically */
      min-height: 80vh;        /* Make sure container has height */
      padding: 2rem;
  }
  .subscriptions {
      text-align: center;      /* Center all text inside the section */
      max-width: 500px;        /* Optional: constrain max width */
      width: 100%;
  }

.subscriptions h1 {
  text-align: center;
  font-size: 2.8rem;
  color: #333;
  margin-bottom: 20px;
  font-weight: bold;
}

.intro-text {
  text-align: center;
  font-size: 1.35rem;
  color: #555;
  margin-bottom: 40px;
}

.subscription-plans {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.plan {
  background-color: #fff;
  border: 2px solid #7DB3B0; /* Light border with brand color */
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  width: 100%;
  max-width: 180px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan:hover {
  transform: translateY(-10px); /* Slight lift effect on hover */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Enhanced shadow */
}

.plan h2 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 10px;
}

.plan .price {
  font-size: 1.75rem;
  font-weight: bold;
  color: #7DB3B0; /* Brand color for price */
  margin-bottom: 10px;
}

.plan .details {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 20px;
}

.btn-signup {
  background-color: #7DB3B0;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-signup:hover {
  background-color: #6aa8a1; /* Darker shade on hover */
}

.note, .discount {
  text-align: center;
  font-size: 1.3rem;
  color: #333;
  margin-top: 40px;
}

.note {
  font-style: italic;
  color: #888;
}

.discount {
  color: #007BFF; /* Blue color for the discount message */
}

/* Specific styles for the promo bubble */
/* General subscription plan styling */
.plan {
  background-color: #fff;
  border: 2px solid #7DB3B0; /* Light teal border for the regular plans */
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  width: 100%;
  max-width: 180px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan:hover {
  transform: translateY(-10px); /* Hover effect */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Promo bubble specific styles */
/* Promo bubble specific styles */
.plan.promo {
  background-color: #fff; /* White background for consistency */
  border: 2px solid #7DB3B0; /* Same teal border as other tiers */
  color: #333; /* Default text color */
}

.plan.promo .details {
  color: #e6c4ec; /* Purple-pink color for the text */
  font-size: 1.1rem; /* Same font size as the other plans */
  font-weight: bold;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.3); /* Black text shadow to make the text pop */
  -webkit-text-stroke: 0.5px black; /* Add black border around the text */
  margin-bottom: 20px; /* Space below the text */
  padding: 10px;
}

.plan.promo h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* Optional hover effect for the promo plan */
.plan.promo:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Hover shadow effect */
}

.plan.promo button {
  display: none; /* No signup button for the promo plan */
}

@media (max-width: 768px) {

  .subscription-plans {
    display: flex;
    flex-direction: column;
    align-items: center;   /* 🔥 centers the cards */
    gap: 1.5rem;
  }

  .plan-card {
    width: 90%;            /* makes them nicely sized */
    max-width: 320px;      /* prevents them from getting too wide */
  }

}



html {
  scroll-behavior: smooth;
}



/* Account Forms Register Styling */

.full-width-container {
  width: 100vw;
  display: flex;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.form-background {
  background-color: #f2e5ea; /* Adjust to match the pastel-like color in your image */
  border-radius: 15px;
  padding: 40px;
  width: 100%;
  max-width: 600px; /* Set a maximum width for readability */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-style {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 20px;
}

.input-field {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.submit-btn {
  background-color: #b83b5e; /* Adjust this to a color that matches your theme */
  color: #fff;
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.submit-btn:hover {
  background-color: #13090c; /* A darker shade for hover effect */
}


/* Responsive Design */
@media (max-width: 768px) {
  .container {
      width: 90%;
      padding: 15px;
  }
}



/* Modal Styles for adding event*/
/* Modal background overlay */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
}

/* Modal content box */
.modal-content {
  background-color: #fff;
  margin: 10% auto; /* Centered vertically and horizontally */
  padding: 20px;
  border: 1px solid #888;
  border-radius: 10px;
  width: 50%; /* Adjust size as needed */
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Close button */
.close-button {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  background: none;
  border: none;
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

.close-button:hover {
  color: #ff0000; /* Highlight color on hover */
}


/* Ensure all submit buttons with the class 'btn-green' are styled correctly */
.modal .btn-green {
  background-color: #28a745; /* Green */
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal .btn-green:hover {
  background-color: #218838; /* Darker green on hover */
}





/* signin/register/profile extra Styling */


.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #3498db;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  margin: 10px auto;
}

@keyframes spin {
  to {
      transform: rotate(360deg);
  }
}

.alert {
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  color: #fff;
}

.alert.success {
  background-color: #4caf50;
}

.alert.error {
  background-color: #f44336;
}


.popup-container {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 20px;
  border-radius: 10px;
  z-index: 1000;
  max-width: 350px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.popup-content {
  position: relative;
  background: #7DB3B0;
  padding: 20px;
  border-radius: 10px;
}

.close-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  color: white;
  border: none;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover {
  color: #E6C4EC;
}

.popup-content p a {
  color: #E6C4EC;
  text-decoration: underline;
}

.popup-content p a:hover {
  text-decoration: none;
}


.popup-content p span {
  display: block; /* Each span will take a full line */
  margin-bottom: 8px; /* Add some spacing between lines */
}

.popup-content p span a {
  color: #E6C4EC; /* Style the link */
  text-decoration: underline;
}

.popup-content p span a:hover {
  text-decoration: none;
}


.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  background-color: #f8d7fc;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  padding: 10px;
  z-index: 1;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a,
.dropdown-menu button {
  display: block;
  padding: 5px 10px;
  text-decoration: none;
  color: black;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  cursor: pointer;
  text-align: left;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
  background-color: #f0f0f0;
}

.btn-signout {
  background-color: transparent;
  color: black;
  font-weight: bold;
  padding: 5px 10px;
  cursor: pointer;
}

/* Mobile-friendly styles */
@media (max-width: 600px) {
  .dropdown-menu a,
  .dropdown-menu button {
    width: 100%;
    text-align: center;
  }

  .btn-signout {
    width: 100%;
    padding: 10px;
    font-size: 1.2em;
  }
}



/* Events Page all styles*/

/* Calendar Container */
#calendar {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 5px;
}

/* Events Container */
.events-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 10px;
}

/* Event Card */
/* --- Updated Event Card Styles --- */

/* 1. Use CSS Grid for the main container */
.events-container {
  display: grid;
  /* Create responsive columns: they will be at least 350px wide, 
     but can grow to fill the space. The number of columns adjusts automatically. */
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px; /* The space between your cards */
  padding: 20px;
}

/* 2. Make each card a flex container to control its internal layout */
.event-card {
  display: flex;
  flex-direction: column; /* Stack children (header, body) vertically */
  background-color: #fff;
  border: 1px solid #5e5d5d;
  border-radius: 6px;
  box-shadow: 4px 4px 0 rgba(230, 196, 236, 0.85);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow:6px 6px 0 rgba(230, 196, 236, 0.9);
}

.event-header {
  padding: 18px 18px 10px;
  border-bottom: none;
}

.events-page-header {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0 1rem;
}

.events-highlight-title {
  display: inline-block;
  width: min(100%, 1000px);
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1.5px solid rgba(80, 80, 80, 0.35);
  border-radius: 30px;
  padding: 0.8rem 2rem;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.1;
  color: #111;
  box-shadow: 6px 6px 0 rgba(230, 196, 236, 0.85);
  margin: 0;
}

.events-tabs-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  padding: 0.45rem 0.6rem;
  margin: 0 0 1.75rem 0;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(80, 80, 80, 0.3);
  border-radius: 999px;
  box-shadow: 4px 4px 0 rgba(230, 196, 236, 0.7);
  width: fit-content;
  border-bottom: none;
}

.events-tabs-pill .nav-item {
  margin: 0;
}

.events-tabs-pill .nav-link {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #7DB3B0;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.events-tabs-pill .nav-link.active {
  background: rgba(255, 255, 255, 0.98);
  color: #111;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  border: none;
  margin-bottom: 0;
}
/* 3. Make the card's body grow to fill available space */
.event-body {
  display: flex;
  flex-direction: column; /* Stack content inside the body vertically */
  flex-grow: 1; /* This is the key! It makes the body take up all free space */
  padding: 15px;
}

.event-body img {
  width: 100%;
  height: 200px; /* Give images a consistent height */
  object-fit: cover; /* Prevents images from stretching */
  margin-bottom: 15px;
  border-radius: 4px;
  transition: transform 0.3s ease-in-out; /* Smooths the animation */
}

/* This targets the image when you hover over the ENTIRE card */
.event-card:hover .event-body img {
  transform: scale(1.05); /* Gently zooms the image */
}

.event-description {
  /* Let the description take up available space before the button */
  flex-grow: 1;
}

/* 4. Push action buttons to the bottom using an auto margin */
.event-body .custom-attend-button,
.event-body .rsvp-box,
.event-body .btn-secondary[disabled] {
  margin-top: auto; /* Pushes the button to the bottom of the flex container */
  align-self: flex-start; /* Aligns button to the left; use flex-end for right */
}

/* Minor tweaks for cleaner text styling */
.event-card h2.event-title {
  font-size: 1.25rem;
  color: #333;
  margin: 0 0 10px 0;
  border-bottom: none; /* remove old border */
}

.event-card p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 8px;
}





/* Calendar Adjustments */
.fc-toolbar {
  flex-wrap: wrap; /* Wrap toolbar elements on smaller screens */
  font-size: 0.8rem;
}

.fc-daygrid-day-number {
  font-size: 0.7rem; /* Smaller day numbers */
}

.fc-event {
  font-size: 0.6rem; /* Smaller event text */
  padding: 2px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .event-card {
      flex: 1 1 calc(100% - 20px); /* Full width for smaller screens */
      margin: 5px 0;
  }

  .event-card h2 {
      font-size: 1rem; /* Slightly smaller title */
  }

  .event-card p {
      font-size: 0.8rem; /* Smaller text */
  }

  #calendar {
      padding: 5px; /* Reduce padding for small screens */
  }
}

@media (max-width: 480px) {
  .event-card {
      flex: 1 1 100%; /* Ensure full width for very small screens */
      padding: 8px; /* Reduce padding */
  }

  .event-card h2 {
      font-size: 0.9rem; /* Smaller title font */
  }

  .event-card p {
      font-size: 0.8rem; /* Smaller paragraph font */
  }

  .fc-toolbar {
      font-size: 0.7rem; /* Smaller toolbar text */
  }

  .fc-daygrid-day-number {
      font-size: 0.6rem; /* Adjust day numbers */
  }

  .fc-event {
      font-size: 0.5rem; /* Adjust event text */
  }
}

/* Prevent Cut-Offs */
html, body {
  width: 100%;
  min-width: 320px; /* Minimum width for mobile devices */
}

#calendar, .event-card, .fc-toolbar {
  max-width: 100%;
  overflow: hidden; /* Prevent elements from overflowing */
}

/* Event Menu */
.event-menu {
  position: absolute; /* Position relative to the card */
  top: 1px; /* Add spacing from the top edge */
  right: 10px; /* Add spacing from the right edge */
  display: flex;
  flex-direction: column; /* Stack menu options vertically */
  align-items: flex-end; /* Align to the right */
  z-index: 10; /* Ensure it appears above other elements */
}

.custom-attend-button {
  align-self: flex-end;
  margin-top: auto;
  background-color: #198754;
  color: #fff;
  border: 1px solid #198754;
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
  transition: color .15s ease-in-out,
              background-color .15s ease-in-out,
              border-color .15s ease-in-out,
              box-shadow .15s ease-in-out;
}

.custom-attend-button:hover {
  background-color: #157347;
  border-color: #146c43;
  color: #fff;
}

.custom-attend-button:focus {
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

.custom-attend-button:active {
  background-color: #146c43;
  border-color: #13653f;
  color: #fff;
}

.event-menu-button {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: #333; /* Neutral color for the button */
  padding: 5px;
  transition: color 0.2s ease;
}

.event-menu-button:hover {
  color: #4CAF50; /* Highlight color on hover */
}

.event-menu-options {
  display: none; /* Hidden by default */
  position: absolute;
  right: 0;
  top: 30x; /* Adjusted to sit below the button */
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  border-radius: 5px;
  overflow: hidden;
  z-index: 20; /* Ensure visibility over other content */
}

.event-menu-options button {
  display: block;
  width: 100%;
  padding: 6px;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font-size: 1.3rem;
}

.event-menu-options button:hover {
  background-color: #f0f0f0; /* Light hover effect */
}

/* Show menu on hover or focus */
.event-menu:hover .event-menu-options,
.event-menu-button:focus + .event-menu-options {
  display: block;
}

/* Event Cancel Effects */

.event-card.canceled {
  background-color: #f0f0f0;
  color: #a9a9a9;
}

.event-card.canceled .event-date {
  color: red;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
}

.event-card.canceled .custom-attend-button {
  display: none;
}


.see-more-button {
  display: inline-block;
  background-color: white;
  color: black;
  border: 1px solid black;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  vertical-align: middle;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.see-more-button:hover {
  background-color: #f5f5f5;
  border-color: #555;
}



.paypal-loading {
  padding: 1rem;
  text-align: center;
  font-size: 1rem;
  color: #333;
  font-style: italic;
}


.hidden { display: none; }
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex; justify-content: center; align-items: center;
}
.modal-content {
  position: relative;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 500px; width: 90%;
}
.modal-close {
  position: absolute;
  top: 10px; right: 10px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}
.guest-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}


.guest-counter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  font-size: 1.25rem;
  justify-content: center; /* Center the guest counter elements */
}

.guest-counter button {
  padding: 6px 14px;
  font-size: 1.25rem;
  background-color: #7DB3B0;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.guest-counter button:hover {
  background-color: #639996;
}

#guestCount {
  min-width: 30px;
  text-align: center;
  font-weight: bold;
  font-size: 1.4rem;
}

/* New/Updated styles for RSVP Box and Modal Content */
.rsvp-box {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid teal;
    border-radius: 8px;
    background-color: #e0f2f1; /* Light teal background */
    text-align: center;
}

.rsvp-box p {
    font-weight: bold;
    color: teal;
    margin: 0;
}

.rsvp-box a {
    color: teal;
    text-decoration: underline;
}

.rsvp-box a:hover {
    text-decoration: none;
}

.modal-content #rsvpTitle {
    color: #333; /* Darker color for modal title */
    margin-bottom: 10px;
}

.modal-content #rsvpEventInfo {
    color: #555;
    margin-bottom: 5px;
}

.modal-content #editGuestPrompt {
    color: #333;
    margin-top: 15px;
    margin-bottom: 10px;
}

.modal-content #totalPrice {
    font-size: 1.2rem;
    color: #333;
    margin-top: 15px;
    text-align: center;
}

.modal-content #totalPrice strong {
    color: #4CAF50; /* Green for total price */
}

.modal-content #paypal-container {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee; /* Separator for PayPal buttons */
}

.modal-content .btn-grey {
    background-color: #6c757d;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
    display: block; /* Make it a block element to center */
    margin-left: auto;
    margin-right: auto;
}

.modal-content .btn-grey:hover {
    background-color: #5a6268;
}

/* Confirmation Message Box */
.confirmation-message {
    display: none; /* Hidden by default */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #4CAF50; /* Green for success */
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1001; /* Above modals */
    text-align: center;
    font-size: 1.2rem;
}

.confirmation-message.error {
    background-color: #f44336; /* Red for error */
}

.confirmation-message button {
    background-color: white;
    color: #4CAF50;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    font-weight: bold;
}

.confirmation-message.error button {
    color: #f44336;
}

.confirmation-message button:hover {
    opacity: 0.8;
}


/* Event Page Tabs Styles */

.nav-tabs {
    display: flex;
    list-style: none;
    padding-left: 0;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1rem;
}
.nav-tabs .nav-link {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #66a8a6;
    font-weight: bold;
    font-size: 0.9rem;
    border: 1px solid transparent;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}
.nav-tabs .nav-link.active {
    color: #495057;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    border-bottom: 3px solid #fff;
    margin-bottom: -1px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.page-container {
    
    /* Pushes the container away from the edges of the screen to show the map */
    margin: 2rem auto; 
    
    /* Maximum width so it doesn't stretch too far on large screens */
    max-width: 1200px; 
    
    /* Internal spacing for your content */
    padding: 2rem;
}

/* Make Edit Modal wider */
#editEventModal .modal-content {
    max-width: 800px;
    width: 90%;
}

/* General Form Styling */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 150px;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

/* Special alignment for checkboxes */
.form-group-checkbox {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-grow: 0.5;
}

.form-group-checkbox label {
    margin-bottom: 0;
    order: 1; /* Puts label after checkbox */
}

.form-group-checkbox input {
    order: 0;
}

/* Quill editor styling */
.ql-editor {
    min-height: 150px;
}

/* --- Styling for Cancel Event Modal Buttons --- */

/* Targets the 'Confirm Cancellation' button specifically */
#cancelEventModal #confirmCancelEvent {
  background-color: #4CAF50; /* Green color from the 'Attend' button */
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-right: 10px; 
  margin-top: 15px;

}

/* Adds a darker green hover effect */
#cancelEventModal #confirmCancelEvent:hover {
  background-color: #a3c7ab;
}


/* --- Styles for Add Event Button --- */

/* Base styling for tab-header to use Flexbox */
.tab-header {
    display: flex;
    justify-content: space-between; /* Space out the h1 and the buttons */
    align-items: center;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    margin-bottom: 20px;
}

/* Media Query for Mobile Devices */
@media (max-width: 768px) {
    .tab-header {
        flex-direction: column; /* Stack the h1 and the buttons vertically */
        align-items: flex-start; /* Align all items to the start (left) */
        gap: 10px; /* Space between the h1 and the button group */
    }

    /* Target the admin buttons directly or wrap them in a container 
       and style the container for better grouping/spacing. */
    .tab-header button {
        width: 100%; /* Make buttons full width */
        margin-top: 5px; /* Add a little space between the buttons themselves */
        /* You might need to adjust padding/margins if the buttons were styled
           to be inline-block or had specific width */
    }
}

/* Style specifically for the Add Event button */
#addEventButton.btn-green {
    background-color: #28a745; /* Green */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none; /* Ensures it doesn't look like a link */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#addEventButton.btn-green:hover {
    background-color: #218838; /* Darker green on hover */
}


/* Login/Register Prompt Modal Buttons --- */
#authPromptModal .auth-prompt-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

#authPromptModal .auth-prompt-buttons .btn {
    min-width: 140px;  /* This forces both buttons to be the same width */
    text-align: center; /* This keeps the text centered inside */
    padding: 12px 20px;
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    color: white !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease-in-out;
}

/* Hover effect */
#authPromptModal .auth-prompt-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Specific green style for the Login button */
#authPromptModal .btn-login {
    background-color: #28a745; /* Green */
}
#authPromptModal .btn-login:hover {
    background-color: #218838; /* Darker Green */
}

/* Specific teal style for the Register button */
#authPromptModal .btn-register {
    background-color: #b83b5e; /* Teal */
}
#authPromptModal .btn-register:hover {
    background-color: #b44867; /* Darker Teal */
}

/* --- Waiver Checkbox Styling --- */

/* Use flexbox to align the label text and checkbox on one line */
.waiver-group label {
    align-items: center; /* Vertically align items */
    cursor: pointer;     /* Makes the whole area clickable */
    flex-wrap: wrap;     /* Allows text to wrap on small screens */
}

/* Style and resize the checkbox */
.waiver-group input[type="checkbox"] {
    transform: scale(1.5);   /* Makes the checkbox 50% larger */
    margin-left: 10px;       /* Adds space between the text and the checkbox */
}


/* --- Digital Signature Pad Responsive Styles --- */
.signature-pad-container {
    border: 1px solid #ccc;
    border-radius: 5px;
    position: relative;
    width: 100%; /* Ensure container takes full width of its parent */
    aspect-ratio: 3 / 1; /* Maintain a 3:1 width-to-height ratio, making it responsive */
    touch-action: none; /* Prevents page scroll while drawing on touch devices */
}

.signature-pad {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

/* --- Show Password Toggle Styles --- */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 15px; /* Adjust spacing from the right edge */
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d; /* A neutral gray color */
}

/* --- FINAL Dropdown Fixes --- */

/* This uses a class toggled by JavaScript to show the menu */
.dropdown-menu.show {
  display: block;
}

/* This forces consistent styling on all dropdown items to fix alignment and font size */
.dropdown-menu a,
.dropdown-menu .btn-signout {
    display: block;
    width: 100%;
    padding: 10px 16px !important;
    font-size: 0.8rem !important;
    text-align: left !important;
    background: none !important;
    border: none !important;
    margin: 0 !important;
    font-family: 'Poppins', sans-serif !important;
}

/* On desktop devices that can hover, this re-enables the hover-to-open feature */
@media (hover: hover) and (min-width: 992px) {
  /* Hide the JS-toggled menu if not hovering */
  .dropdown-menu.show {
    display: none;
  }
  /* Show menu on hover */
  .dropdown:hover .dropdown-menu {
    display: block;
  }
}



  .event-details-container {
    margin: 20px; /* Provides spacing from the top/bottom and screen edges */
    padding: 25px; /* Adds space inside the border */
  }

  .event-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
  }

  /* Media query for mobile devices */
  @media (max-width: 768px) {
    .event-details-container {
      padding: 15px;
      margin: 10px; /* Reduces margin on smaller screens */
    }
    .event-image {
      max-height: 250px;
    }
  }


  /* --- Styling for Recurring Event Modal --- */

/* Make the "Add Recurring Event" button blue to differentiate it */
#addRecurringEventButton.btn-blue {
    background-color: #28a745; /* A standard blue color */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#addRecurringEventButton.btn-blue:hover {
    background-color: #218838; /* A darker blue on hover */
}

/* Style the modal content box to match the other modals */
#createRecurringEventModal .modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 10px;
    width: 50%;
    max-width: 800px; /* Match the max-width of the other modal */
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Style the header and form elements inside the new modal */
#createRecurringEventModal h2 {
    margin-bottom: 20px;
}

#createRecurringEventModal label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

#createRecurringEventModal input[type="text"],
#createRecurringEventModal input[type="file"],
#createRecurringEventModal input[type="date"],
#createRecurringEventModal input[type="time"],
#createRecurringEventModal input[type="number"],
#createRecurringEventModal select {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* Special styling for the recurrence rules section */
.recurrence-rules {
    background-color: #f8f9fa; /* A very light grey */
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 20px;
}

.recurrence-rules h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

/* Weekday checkbox styling */
.weekday-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px; /* Vertical and horizontal gap */
    margin-top: 5px;
}

.weekday-selector label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
}

/* Style the submit button to match the green "Add Event" button */
#createRecurringEventForm .btn-blue {
    background-color: #28a745; /* Green, to match the other modal's submit */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#createRecurringEventForm .btn-blue:hover {
    background-color: #218838; /* Darker green on hover */
}


/* Add this class to your main stylesheet */
.cropper-view-box,
.cropper-face {
    border-radius: 50% !important;
}


  .details-grid {
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 2rem;
      align-items: start;
  }

  .event-info {
      grid-column: 1 / 2;
  }

.sticky-action-bar {
  position: fixed; /* This makes it stick to the viewport */
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  background-image: none !important;
  padding: 1rem;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.1); /* Shadow on top */
  border-top: 1px solid #e0e0e0;
  z-index: 999; /* Ensures it's above other content */

  /* Use flexbox to arrange items inside */
  display: flex;
  justify-content: space-between; /* Pushes price and buttons to opposite ends */
  align-items: center;
  gap: 1rem;
}

.sticky-action-bar .price-info {
    display: flex;
    flex-direction: column; /* Stack price and spots-left vertically */
    align-items: flex-start;
}

.sticky-action-bar .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.sticky-action-bar .spots-left {
    font-size: 0.9rem;
    color: #2c2c2c;
    font-weight: bold;;
}

.sticky-action-bar .action-buttons {
    display: flex;
    gap: 0.75rem; /* Space between the Share and Attend buttons */
}

.sticky-action-bar .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 8px;
    white-space: nowrap; /* Prevents button text from wrapping */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 480px) {
    .sticky-action-bar {
        padding: 0.75rem;
        flex-direction: column; /* Stack price and buttons vertically */
        align-items: stretch; /* Make children full-width */
    }

    .sticky-action-bar .price-info {
        flex-direction: row; /* Put price and spots side-by-side */
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .sticky-action-bar .action-buttons {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr; /* Make buttons equal width */
    }
}


/* --- Back to Events Button Style --- */

.btn-back-gray {
    display: inline-block; /* Allows the button to sit on the left */
    margin-top: 2rem;
    padding: 10px 20px;
    background-color: #6c757d; /* A standard bootstrap secondary gray */
    color: white;
    font-weight: bold;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.btn-back-gray:hover {
    background-color: #5a6268; /* A slightly darker gray for hover */
    color: white;
}


header, .top-bar {
    background-color: #FFFFFF !important;
    background-image: none !important;
}



.hero-text-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.5rem;
  margin-bottom: 2.25rem;
}

.text-chip {
  display: inline-block;
  width: fit-content;
  width: auto;
  max-width: none;
  background: rgba(255, 255, 255, 0.97);
  border: 1.5px solid rgba(60, 60, 60, 0.35);
  border-radius: 999px;
  padding: 16px 28px; 
}

.title-chip {
  position: relative;
  z-index: 2;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  box-shadow: 6px 3px 0 rgba(230, 196, 236, 0.8)
}

.subtitle-chip {
  position: relative;
  z-index: 2;
  margin-top: -10px;
  padding: 12px 22px;
  background: #fff;
  border: 1px solid rgba(107, 107, 107, 0.25);
  border-top: 2px solid rgba(129, 129, 129, 0.35); /* this is the visible separator */
  border-radius: 999px;
  box-shadow:
    0 2px 6px rgba(126, 126, 126, 0.08),
    0 5px 0 rgba(125, 179, 176, 0.8);
}
.title-chip h2 {
  margin: 0;
  font-size: 2.6rem;
  line-height: 1.15;
  font-weight: 700;
  white-space: nowrap;
  color: #2f261f;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.12);
}

.subtitle-chip p {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 700;
  white-space: nowrap;
  color: #2f261f;
}

/* neutralize older homepage rules for this hero only */
.hero-text-group h2,
.hero-text-group p {
  background: transparent !important;
  display: block;
}

/* stop earlier homepage rules from fighting this */
.homepage h2,
.homepage p {
  background: transparent !important;
  display: inline;
}

.title-chip {
  min-width: max-content;
}

.subtitle-chip {
  min-width: max-content;
}


@media (max-width: 768px) {
  .text-chip {
    max-width: calc(100vw - 24px);
    overflow: visible;
  }

  .title-chip,
  .subtitle-chip {
    min-width: 0;
    width: auto;
  }

  .title-chip h2,
  .subtitle-chip p {
    white-space: nowrap;
    text-align: center;
  }

  .title-chip h2 {
    font-size: 1.35rem;
  }

  .subtitle-chip p {
    font-size: 1rem;
  }

  .title-chip {
    padding: 10px 14px;
  }

  .subtitle-chip {
    padding: 8px 12px;
    margin-top: 0.5rem;
    margin-left: 0;
  }
}

.calendar-wrapper {
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(80, 80, 80, 0.25);
  border-radius: 28px;
  padding: 20px;
  margin: 1.5rem 0 2rem;
  box-shadow: 6px 6px 0 rgba(230, 196, 236, 0.8);
}

.events-sub-highlight {
  display: inline-block;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(80, 80, 80, 0.25);
  border-radius: 999px;
  padding: 6px 14px;
  margin: 0.5rem 0 1.5rem;
  font-size: 0.95rem;
  color: #333;
  font-weight: semi-bold;
  box-shadow: 4px 4px 0 rgba(230, 196, 236, 0.7);
}

.white-card {
  background: rgba(255, 255, 255, 0.92);
  padding: 24px;
  border-radius: 16px;

  /* subtle depth */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);

  /* optional border to match your style */
  border: 1px solid rgba(0,0,0,0.05);
}

.white-card.large {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 2.5rem 2rem 3rem;

  border-radius: 28px;

  /* your signature style */
  box-shadow: 6px 6px 0 rgba(230, 196, 236, 0.8);

  border: 1.5px solid rgba(80, 80, 80, 0.2);
}

.white-card.large {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 2.5rem 2rem 3rem;

  border-radius: 28px;

  /* your signature style */
  box-shadow: 6px 6px 0 rgba(230, 196, 236, 0.8);

  border: 1.5px solid rgba(80, 80, 80, 0.2);
}