.AboutInfo{
    font-family: 'Roboto', sans-serif;
    font-style: normal;
}

.logo{
    border: none !important;
}
.logo img{
    width:35%;
}

.logofaq img{
    position: relative !important;
    top: 20% !important;
    width:35%;
}

.FAQ{
    text-align: left;
}

.sponsors{
    margin:1% !important;
}

.brothers{
    margin-left: 10% !important;
    margin-right: 10% !important;
}

.dropdown-menu {
    background-color: #515a50;
}

.events{
    display: flex;
    justify-content: center;
}

.frc_img{
    position: relative !important;
    top: 20% !important;
}

  .full-width-post {
    flex-basis: 100% !important;
    max-width: 100% !important;
  }
  .full-width-post .image.fit {
    max-height: 500px; /* Adjust this value as needed */
    overflow: hidden;
  }
  .full-width-post .image.fit img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }

  .event-flyer-img {
    object-fit: contain;
    max-height: 500px; /* Adjust this value as needed */
    width: 100%;
  }

  .button-spacer {
    margin-left: 1rem; /* Adjust this value as needed */
  }

  /* Styles for the event buttons */
.full-width-post .actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.full-width-post .actions li {
  margin: 0.5rem;
}

.full-width-post .button {
  min-width: 200px;
  text-align: center;
}

/* Responsive adjustments */
@media screen and (max-width: 736px) {
  .full-width-post .actions {
    flex-direction: column;
    align-items: center;
  }

  .full-width-post .actions li {
    width: 100%;
    margin: 0.5rem 0;
  }

  .full-width-post .button {
    width: 100%;
    max-width: 300px; /* Adjust this value as needed */
  }
}


.cycling-image-container {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}
.cycling-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.cycling-image.active {
  opacity: 1;
}

.popup-container {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.popup-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  max-width: 95%;
  max-height: 95%;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

.close-popup:hover {
  color: #000;
}

.popup-image {
  max-width: 50vw;  /* 30% of viewport width */
  max-height: 50vh; /* 30% of viewport height */
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

#popup-inner-content h3 {
  margin-top: 0;
}

#popup-inner-content .button {
  display: inline-block;
  margin-top: 15px;
}

@media screen and (max-width: 768px) {
  .popup-content {
    max-width: 95%;
  }
  
  .popup-image {
    max-width: 60vw;  /* Slightly larger for mobile screens */
    max-height: 30vh;
  }
}

.calendar-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  padding: 2rem;
  margin: 2rem auto;
  max-width: 1000px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.calendar-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2.5rem;
  padding: 0 1rem;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.calendar-nav button {
  background: rgba(102, 187, 106, 0.1);
  border: none;
  color: #66BB6A;
  cursor: pointer;
  font-family: "Source Sans Pro", Helvetica, sans-serif;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
  border-radius: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.calendar-nav button:hover {
  background: #66BB6A;
  color: white;
  transform: translateY(-1px);
}

.current-month {
  font-family: "Source Sans Pro", Helvetica, sans-serif;
  font-weight: 900;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.075em;
  min-width: 240px;
  text-align: center;
  font-size: 1.4rem;
  background: #66BB6A;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(102, 187, 106, 0.2);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  background: transparent;
  padding: 0.5rem;
  border-radius: 0.75rem;
}

.calendar-day-header {
  text-align: center;
  padding: 1rem;
  font-family: "Source Sans Pro", Helvetica, sans-serif;
  font-weight: 600;
  color: #66BB6A;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.calendar-day {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
  aspect-ratio: 1;
  padding: 0.75rem;
  position: relative;
  border-radius: 0.5rem;
  transition: background 0.2s ease;
}

.calendar-day:hover {
  background: rgba(0, 0, 0, 0.03);
}

.calendar-day.other-month {
  background: rgba(0, 0, 0, 0.03);
}

.day-number {
  font-family: "Source Sans Pro", Helvetica, sans-serif;
  color: rgb(33, 41, 49);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.other-month .day-number {
  color: rgba(33, 41, 49, 0.3);
}

.event {
  background: linear-gradient(45deg, #66BB6A, #81c784);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.4rem;
  font-size: 0.75rem;
  margin-top: 0.35rem;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "Source Sans Pro", Helvetica, sans-serif;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(102, 187, 106, 0.2);
  transition: all 0.2s ease;
}

.event:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(102, 187, 106, 0.3);
  background: linear-gradient(45deg, #81c784, #a5d6a7);
}

.event.continuing {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-left: -0.75rem;
  padding-left: 0.75rem;
}

.event.continued {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  margin-right: -0.75rem;
  padding-right: 0.75rem;
}

@media (max-width: 768px) {
  .calendar-container {
      padding: 1rem;
      margin: 1rem;
  }

  .calendar-nav {
      gap: 1rem;
  }

  .current-month {
      font-size: 1.1rem;
      min-width: 180px;
      padding: 0.5rem 1rem;
  }

  .calendar-nav button {
      padding: 0.5rem 1rem;
      font-size: 0.8rem;
  }

  .calendar-day-header {
      padding: 0.5rem;
      font-size: 0.7rem;
  }

  .calendar-day {
      padding: 0.5rem;
  }

  .event {
      padding: 0.35rem 0.5rem;
      font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .calendar-container {
      padding: 0.75rem;
      margin: 0.5rem;
  }

  .calendar-header {
      margin-bottom: 1.5rem;
  }

  .current-month {
      font-size: 1rem;
      min-width: 140px;
  }

  .calendar-grid {
      gap: 0.25rem;
  }

  .day-number {
      font-size: 0.8rem;
  }

  .event {
      font-size: 0.65rem;
      padding: 0.25rem 0.4rem;
  }
}
/* Add/update these mobile styles */
@media (max-width: 768px) {
  .calendar-container {
      padding: 1rem;
      margin: 1rem;
  }

  .calendar-nav {
      gap: 0.75rem;
  }

  .current-month {
      font-size: 1rem;
      min-width: 160px;
      padding: 0.5rem;
  }

  .calendar-nav button {
      padding: 0.5rem;
      font-size: 0.8rem;
  }

  .calendar-header {
      margin-bottom: 1.5rem;
  }

  .calendar-grid {
      gap: 0.25rem;
  }
}

@media (max-width: 480px) {
  .calendar-container {
      padding: 0.5rem;
      margin: 0.5rem;
  }

  .calendar-header {
      margin-bottom: 1rem;
  }

  /* Make the navigation more compact */
  .calendar-nav {
      width: 100%;
      justify-content: space-between;
      padding: 0 0.5rem;
  }

  .current-month {
      font-size: 0.9rem;
      min-width: 120px;
      padding: 0.5rem;
  }

  .calendar-nav button {
      padding: 0.4rem;
      font-size: 0.75rem;
  }

  /* Adjust grid and days */
  .calendar-grid {
      gap: 1px;
      padding: 1px;
  }

  .calendar-day {
      padding: 0.25rem;
      aspect-ratio: auto;
      min-height: 60px;
  }

  .calendar-day-header {
      padding: 0.25rem;
      font-size: 0.7rem;
  }

  .day-number {
      font-size: 0.75rem;
      margin-bottom: 0.25rem;
  }

  /* Make events more compact */
  .event {
      font-size: 0.65rem;
      padding: 0.2rem 0.3rem;
      margin-top: 0.2rem;
  }

  .event.continuing {
      margin-left: -0.25rem;
      padding-left: 0.3rem;
  }

  .event.continued {
      margin-right: -0.25rem;
      padding-right: 0.3rem;
  }
}

/* Add styles for very small screens */
@media (max-width: 360px) {
  .calendar-container {
      padding: 0.25rem;
      margin: 0.25rem;
  }

  .calendar-day {
      min-height: 50px;
  }

  .current-month {
      font-size: 0.8rem;
      min-width: 100px;
  }

  .calendar-nav button {
      font-size: 0.7rem;
      padding: 0.3rem;
  }

  .event {
      font-size: 0.6rem;
      padding: 0.15rem 0.25rem;
  }
}

/* Add/update event styles */
.event {
  background: linear-gradient(45deg, #66BB6A, #81c784);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.4rem;
  font-size: 0.75rem;
  margin-top: 0.35rem;
  cursor: pointer;
  font-family: "Source Sans Pro", Helvetica, sans-serif;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(102, 187, 106, 0.2);
  transition: all 0.2s ease;
  
  /* Text truncation */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  position: relative;
  
  /* Make sure the tooltip appears above other content */
  z-index: 1;
}

/* Tooltip styles */
.event[data-title] {
  position: relative;
}

.event[data-title]:hover::before {
  content: attr(data-title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 1rem;
  background: rgba(33, 41, 49, 0.95);
  color: white;
  font-size: 0.75rem;
  border-radius: 0.25rem;
  white-space: normal;
  max-width: 200px;
  width: max-content;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  margin-bottom: 0.5rem;
}

/* Arrow for tooltip */
.event[data-title]:hover::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(33, 41, 49, 0.95) transparent transparent transparent;
  margin-bottom: 0.5rem;
  z-index: 1000;
}

/* Adjustments for continuing events */
.event.continuing {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-left: -0.75rem;
  padding-left: 0.75rem;
}

.event.continued {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  margin-right: -0.75rem;
  padding-right: 0.75rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .event[data-title]:hover::before {
      max-width: 150px;
      font-size: 0.7rem;
      padding: 0.35rem 0.75rem;
  }
}
.calendar-day {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 0.75rem;
  position: relative;
  border-radius: 0.5rem;
  transition: background 0.2s ease;
  height: 120px; /* Fixed height */
  overflow: hidden; /* Ensure content doesn't overflow */
}

.event {
  background: linear-gradient(45deg, #66BB6A, #81c784);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.4rem;
  font-size: 0.75rem;
  margin-top: 0.35rem;
  cursor: pointer;
  font-family: "Source Sans Pro", Helvetica, sans-serif;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(102, 187, 106, 0.2);
  
  /* Critical truncation properties */
  display: block;
  width: calc(100% + 1.5rem); /* Account for negative margins */
  margin-left: -0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Adjust for mobile */
@media (max-width: 768px) {
  .calendar-day {
      height: 100px;
      padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .calendar-day {
      height: 80px;
      padding: 0.25rem;
  }
}

/* Keep existing calendar-day and event styles, and add these tooltip styles */
.event {
  /* Keep existing styles */
  background: linear-gradient(45deg, #66BB6A, #81c784);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.4rem;
  font-size: 0.75rem;
  margin-top: 0.35rem;
  cursor: pointer;
  font-family: "Source Sans Pro", Helvetica, sans-serif;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(102, 187, 106, 0.2);
  display: block;
  width: calc(100% + 1.5rem);
  margin-left: -0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative; /* Added for tooltip positioning */
}

/* Tooltip styles */
.event:hover::before {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(33, 41, 49, 0.95);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  white-space: normal;
  width: auto;
  min-width: max-content;
  max-width: 200px;
  text-align: center;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 8px;
  word-break: break-word;
}

/* Tooltip arrow */
.event:hover::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(33, 41, 49, 0.95);
  margin-bottom: 2px;
  z-index: 1000;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .event:hover::before {
      font-size: 0.7rem;
      padding: 0.4rem 0.8rem;
      max-width: 160px;
  }
}