.date_section {
  width: 90%;
  margin: 0 auto;
  margin-top: 20px;
}
.filter-date-header {
  font-size: 20px;
  font-family: "Poppins Black";
}
.filter-date-subheader {
  display: flex;
  gap: 13px;
  width: 150%;
}
.filter-date-button {
  background-color: white;
  border: 1px solid gray;
  color: black;
  text-align: center;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  /* width: 110px; */
  width: 80px;
  height: 32px; /* 24pt ≈ 32px */
  padding: 0; /* Remove padding to respect exact dimensions */
  box-sizing: border-box; /* Include border in width/height */
}

.filter-date-button-blue {
  background-color: #499dd6;
  border: 1px solid #499dd6;
  color: white;
  text-align: center;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px; /* 77pt ≈ 103px */
  height: 32px; /* 24pt ≈ 32px */
  padding: 0; /* Remove padding to respect exact dimensions */
  box-sizing: border-box; /* Include border in width/height */
}
.filter-date-button:hover,
.filter-date-button.active {
  background-color: #499dd6; /* Button color when active/hover */
  color: white; /* Text becomes white when background is #499dd6 */
}

.filter-date-text {
  text-align: center;
  padding-top: 2px;
  font-family: "Acumin Pro Condensed Light";
  font-size: 13px;
}
.filter-date-text-blue {
  text-align: center;
  /* padding-top: 2px; */
  font-family: "Acumin Pro Semi Bold";
  font-size: 11px;
}
.list-wrapper {
  display: flex;
  justify-content: end;
  gap: 16px; /* Equal space between items */
  align-items: center; /* Vertically center items */
  margin-left: -8px;
}

.list-item,
.list-item-other {
  display: flex;
  gap: 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.list-item img,
.list-item-other img {
  margin-bottom: 4px; /* Space between image and text */
  object-fit: contain; /* Ensure images maintain aspect ratio */
  max-height: 40px; /* Limit image height */
}
.list-item-other img {
  margin-bottom: 4px; /* Space between image and text */
  object-fit: contain; /* Ensure images maintain aspect ratio */
  max-height: 40px; /* Limit image height */
}

.list-item p {
  margin: 0; /* Remove default margins */
  font-size: 18px;
  text-align: center;
  width: 100%; /* Ensure text takes full width */
  font-family: "Acumin Pro Semi Bold";
}
.list-item-other p {
  margin: 0;
  margin-top: 5px;
  font-size: 18px;
  text-align: center;
  font-family: "Acumin Pro Semi Bold";
  width: 100%; /* Ensure text takes full width */
}
.event-card {
  width: 269px; /* 202pt ≈ 269px */
  font-family: "Acumin Pro", sans-serif;
  display: flex;
  gap: 8px; /* Space between image and text */
}
.card-container {
  position: relative;
  width: 210px;
}
.corner-badge {
  position: absolute;
  top: -1px;
  left: -1px; /* Adjust as needed for corner positioning */
  z-index: 2; /* Higher than image */
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.card-container:hover .corner-badge {
  transform: rotate(1.1deg); /* Counter-rotate to stay upright */
}
.card-image {
  width: 100%;
  height: 250px; /* 138pt ≈ 184px */
  object-fit: cover;
  display: block;
  position: relative;
}

.card-content {
  padding: 5px 4px;
}

.card-title {
  font-size: clamp(16px, 1vw, 24px); /* 10.52pt ≈ 14px */
  font-weight: 600;
  margin: 0 0 4px 0;
  color: #000000;
  line-height: 1.3;
  font-family: "Acumin Pro Condensed Bold";
    /* Truncate text with ellipsis */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card-description {
  font-size: clamp(11px, 0.8vw, 16px);
  margin: 0;
  color: #000000;
  line-height: 1.4;
  font-family: "Poppins Medium";
    /* add this part for multi-line ellipsis */
  display: -webkit-box;          
  -webkit-box-orient: vertical;   
  -webkit-line-clamp: 3;         
  overflow: hidden;               
  text-overflow: ellipsis;        
}
.quick-overview {
  font-size: clamp(12px, 0.9vw, 16px);
  font-family: "Acumin Pro Condensed Bold Italic";
  color: #4092d0;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 30px;
}
.footer-line {
  /* width: 210px; */
  height: 3px;
  background-color: #a5afbf;
  margin: 3px auto;
}
.date-badge {
  background-color: red;
  color: white;
  width: 37px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 0 0 1px white, 0 0 0 2px rgba(255, 255, 255, 0.7),
    0 0 0 3px rgba(255, 255, 255, 0.4);
  position: absolute;
  right: -2.5%;
  height: 37px;
  top: 87%;
  z-index: 2;
}

.date-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: "Acumin Variable Concept", "Arial Narrow", sans-serif;
  line-height: 0.8;
  margin: -2px 0;
}

.date-day {
  font-size: 17px;
  font-weight: 400;
  font-stretch: extra-condensed;
  font-variation-settings: "wght" 900, "wdth" 60;
}

.date-month {
  font-size: 17px;
  font-weight: 400;
  font-stretch: extra-condensed;
  text-transform: lowercase;
  font-variation-settings: "wght" 900, "wdth" 60;
}
.arrow-wrapper {
  display: flex;
  justify-content: center;
  gap: 18px;
  cursor: pointer;
  margin-left: 562px;
}
.cards-wrapper {
  position: relative;
  margin-top: 20px;
}

.navigation-arrows {
  display: flex;
  position: absolute;
  top: 41.9%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 1000; /* Increased z-index */
  pointer-events: none;
}

.arrow-left,
.arrow-right {
  pointer-events: auto;
  cursor: pointer;
  padding: 10px;
  transition: all 0.3s ease;
  position: absolute;
}

.arrow-left:hover,
.arrow-right:hover {
  transform: scale(1.1);
}

.arrow-left {
  left: -64px; /* Position from left edge of screen */
}

.arrow-right {
  right: -54px; /* Position from right edge of screen */
}

.arrow-icon {
  display: block;
}

.event-card-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.event-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-container {
  position: relative;
  width: 23.5%;
  margin-bottom: 20px;
  /* cursor:pointer */
}
.card-image-wrapper {
  position: relative;
  display: block;
  width: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.4s ease, z-index 0.4s ease;
     cursor:pointer
}

.card-container:hover .card-image-wrapper {
  transform: translateY(-20px) scale(1.0) rotate(-1.1deg);
}

.cards-wrapper {
  position: relative;
  margin-top: 20px;
  z-index: 1;
}

.category-dropdown-content::before:hover {
  color: #ed3c3c;
}

.category-dropdown-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  /* gradient fades from more transparent at top to more opaque at bottom */
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.4) 0%,
    /* top – more transparent */ rgba(255, 255, 255, 0.9) 100%
      /* bottom – more opaque */
  );

  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
}

.category-dropdown-content {
  background: white;
 border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  padding: 20px;
  /* max-width: 800px; */
  width: 60%;
  height:320px;
  position: relative;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 columns for 38 items (8 per column) */
  grid-template-rows: repeat(8, 35px);
    grid-auto-flow: column;
  gap: 0;
  width: 100%;
  max-height: 320px; /* Limit height to show only 7 rows */
  overflow: hidden; /* Hide extra items */
}
.category-option {
  font-family: "Acumin Pro Condensed Medium";
  font-size: clamp(1rem, 1.4vw, 1.4rem);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  line-height: 1.5;
  min-height: auto;
    padding: 5px 24px;
  /* display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2px 50%; */
}
/* Add vertical lines between columns */
.category-grid::before,
.category-grid::after,
.category-grid > :nth-child(8n)::after {
  content: '';
  position: absolute;
  top: 20px;
  bottom: 5px;
  width: 1px;
  height: 280px;
  background-color: rgb(224, 217, 217);
}

.category-grid::before {
  left: 21%;
}

.category-grid::after {
  left: 40%;
}

.category-grid > :nth-child(8n)::after {
  left: 59%;
}

.category-grid > :nth-child(16n)::after {
  left: 78%;
}
/* .category-option:not(:nth-child(3n))::after {
  content: '';
  position: absolute;
  right: 33%;
  top: 1.25rem ;
  bottom: 5px;
    width: 0.1px;
    height: 240px;
   background-color: rgb(224, 217, 217)
} */
.category-option:hover {
  color: red;
}

/* animations for the slider for the cateogories */

/* Add these new styles to your existing CSS */

/* Events container animation */
.events-container {
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.events-container.next .animated-row {
  animation: slideInFromRight 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.events-container.previous .animated-row {
  animation: slideInFromLeft 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* Row animations */
.animated-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
}

.animated-card {
  animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* Individual card animations with staggered delay */
.animated-row .card-container:nth-child(1) { animation-delay: 0.1s; }
.animated-row .card-container:nth-child(2) { animation-delay: 0.15s; }
.animated-row .card-container:nth-child(3) { animation-delay: 0.2s; }
.animated-row .card-container:nth-child(4) { animation-delay: 0.25s; }

/* Slide animations */
@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced page indicator */
.page-indicator {
  text-align: center;
  margin: 20px 0;
  font-family: "Acumin Pro Semi Bold";
  font-size: 16px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.page-current {
  color: #499dd6;
  font-size: 18px;
  font-weight: bold;
}

.page-separator {
  color: #999;
}

.page-total {
  color: #333;
}

/* Enhanced arrow states */
.arrow-left.disabled,
.arrow-right.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: scale(0.9);
}

.arrow-left:not(.disabled):hover,
.arrow-right:not(.disabled):hover {
  transform: scale(1.15);
  filter: brightness(1.2);
}

.arrow-left:not(.disabled):active,
.arrow-right:not(.disabled):active {
  transform: scale(1.05);
  transition: transform 0.1s ease;
}

/* Smooth transitions for all interactive elements */
.navigation-arrows,
.card-container,
.event-card-row {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Loading state for arrows during animation */
.arrow-left.disabled,
.arrow-right.disabled {
  position: relative;
}

.arrow-left.disabled::after,
.arrow-right.disabled::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid #499dd6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Enhanced card hover effects during transitions */
.events-container.next .card-container:hover .card-image-wrapper,
.events-container.previous .card-container:hover .card-image-wrapper {
  transform: translateY(-15px) scale(1.02) rotate(-0.8deg);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Keep your existing styles below, these are just additions */

@media (min-width: 1780px) and (max-width: 2000px) {
  .date_section {
    max-width: 1600px;
  }
}

@media (min-width: 2000px) {
  .navigation-arrows {
    top: 42.3%;
  }
}
