/* Header CSS Language */
.language-selector {
  padding: 0.5rem 0.75rem;
}

.language-selector .flag-icon {
  width: 20px;
  height: auto;
  border-radius: 2px;
}

.language-selector.dropdown-toggle::after {
  margin-left: 0.3em;
  vertical-align: middle;
}

.language-dropdown-menu .dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
}

.language-dropdown-menu .flag-icon {
  width: 20px;
  height: auto;
  margin-right: 8px;
  border-radius: 2px;
}

.language-dropdown-menu .dropdown-item.active {
  background-color: #f8f9fa;
  color: #212529;
  font-weight: 500;
}

.language-dropdown-menu .dropdown-item:hover {
  background-color: #f1f3f5;
}

/* Banner Image Carousel Styles */
.event-dt-block .owl-carousel .owl-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.event-dt-block .owl-carousel .owl-stage-outer {
  border-radius: 16px;
}

/* Owl Carousel Navigation Dots */
.event-dt-block .owl-carousel .owl-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  gap: 4px;
  width: 100%;
  justify-content: center;
}

.event-dt-block .owl-carousel .owl-dots .owl-dot {
  display: inline-block;
  margin: 0 -8px;
}

.event-dt-block .owl-carousel .owl-dots .owl-dot span {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5) !important;
  border-radius: 12px;
  display: block;
  transition: all 0.3s ease;
}

.event-dt-block .owl-carousel .owl-dots .owl-dot.active span {
  background: #fff !important;
  width: 24px;
  height: 8px;
}

@media screen and (max-width: 767px) {
  .event-dt-block .owl-carousel .owl-item {
    height: auto;
  }

  .event-dt-block .owl-carousel .owl-item img {
    height: auto;
  }

  .event-dt-block .owl-carousel .owl-dots {
    bottom: 5px;
  }

  .event-dt-block .owl-carousel .owl-dots .owl-dot span {
    width: 8px;
    height: 8px;
  }

  .event-dt-block .owl-carousel .owl-dots .owl-dot.active span {
    width: 20px;
    height: 8px;
  }
}

/* Event Categories */
.categories-slider-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 15px; /* Add consistent padding for all screen sizes */
  margin: 0 -15px; /* Negative margin to align with container */
}

.categories-slider-container::-webkit-scrollbar {
  display: none;
}

.controls {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 8px 0 16px;
  min-width: max-content;
}

.control {
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 8px;
  padding: 8px 16px;
  border: 1px solid #e0e0e0;
  background-color: #fff;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.control:first-of-type {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
}

@media (min-width: 992px) {
  .control {
    padding: 8px 16px;
    font-size: 14px;
  }
}

@media (max-width: 991px) {
  .control {
    padding: 6px 14px;
    font-size: 13px;
  }
}

/* Main Card Event */
.main-card {
  border-radius: 8px;
}

/* List Event */
.event-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1199px) {
  .event-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

@media (max-width: 575px) {
  .event-grid {
    grid-template-columns: 1fr;
  }
}

/* Event Card Styling */
.event-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0px 4px 8px rgba(30, 44, 106, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Event Thumbnail */
.event-thumbnail {
  position: relative;
  width: 100%;
  height: 150px;
  overflow: visible;
  border-radius: 12px;
}

.promo-label {
  position: absolute;
  top: 15px;
  left: -5px;
  background-color: #ff3b30;
  color: white;
  font-weight: bold;
  font-size: 14px;
  padding: 5px 12px;
  z-index: 2;
  border-radius: 0 15px 15px 0;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3), 0 2px 3px rgba(0, 0, 0, 0.2);
  border-left: 3px solid rgba(0, 0, 0, 0.2);
}

.original-price {
  font-size: 14px;
  color: #ff3b30;
  text-decoration: line-through;
  margin-left: 5px;
  font-weight: normal;
}

.event-thumbnail a img {
  width: 100%;
  height: 143px;
  object-fit: cover;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

/* Event Content */
.event-content {
  padding: 10px 10px;
  display: flex;
  grid-row-gap: 8px;
  justify-content: center;
  overflow: hidden;
  flex-direction: column;
  flex-grow: 1;
}

.event-content > .event-title {
  font-weight: normal;
  font-size: 16px;
  color: #333;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
  margin-bottom: 4px;
  height: 0px;
  min-height: 25px;
}

.event-date {
  font-size: 16px;
  color: #8e919b;
  margin-bottom: 4px;
  font-weight: normal;
}

.event-price {
  font-weight: 700;
  font-size: 16px;
  color: #000000;
  margin-top: auto;
  padding-top: 4px;
}

/* Event Footer */
.event-footer {
  display: flex;
  background: none;
  grid-template-columns: 32px 1fr;
  grid-column-gap: 12px;
  overflow: hidden;
  align-items: center;
  padding: 12px;
  border-top: 1px solid #f0f0f0;
}

.event-organizer {
  display: flex;
  align-items: center;
  width: 100%;
}

.organizer-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 8px;
  flex-shrink: 0;
}

.organizer-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.organizer-name {
  font-size: 14px;
  color: #666;
  font-weight: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #ffffff;
  display: none;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #757575;
  width: 33.33%;
  height: 100%;
}

.bottom-nav-item.active {
  color: #2267c7;
}

.bottom-nav-icon {
  font-size: 18px;
  margin-bottom: 4px;
}

.bottom-nav-text {
  font-size: 10px;
  font-weight: 500;
}

@media (max-width: 767px) {
  .bottom-nav {
    display: flex;
  }

  /* .footer {
    margin-bottom: 60px;
  } */

  .footer.footer-event {
    margin-bottom: 0px;
  }
}

/* No Data Event Found */
.event-grid.empty-grid {
  display: block;
  grid-template-columns: none;
}

.no-events-container {
  text-align: center;
  padding: 40px 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  width: 100%;
  min-height: 175px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.no-events-icon {
  font-size: 40px;
  color: #ccc;
  margin-bottom: 5px;
}

.no-events-title {
  font-size: 20px;
  color: #333;
  font-weight: 600;
}

.no-events-icon i {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Share Event */
.social-share-links {
  display: flex;
  gap: 8px;
}

.social-share-links .social-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  background-color: #f5f5f5;
}

.social-share-links .social-link i {
  color: #4267b2;
  /* Facebook blue */
}

.social-share-links .twitter-link i {
  color: #1da1f2;
  /* Twitter blue */
}

.social-share-links .copy-link i {
  color: #6c757d;
  /* Gray for link icon */
}

.social-share-links .social-link:hover {
  background-color: #ededed;
}

.share-title h4 {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.copyable-link {
  display: flex;
  margin-top: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.copyable-link input {
  flex-grow: 1;
  padding: 8px 12px;
  border: none;
  background-color: #f9f9f9;
  color: #555;
  font-size: 13px;
}

.copyable-link button {
  padding: 8px 12px;
  background-color: #f0f0f0;
  border: none;
  color: #555;
  cursor: pointer;
  font-size: 13px;
}

.copyable-link button:hover {
  background-color: #e5e5e5;
}
