/* ==========================================================================
   Feed Events Section - Completely Scoped Styles
   All classes use ths-event- prefix to avoid any inheritance
   ========================================================================== */

/* Section Container */
.feed_events_section {
  position: relative;
}

/* Slider Wrapper */
.feed_events_section .slider-wpr {
  position: relative;
  padding: 0 50px;
}

@media (max-width: 575.98px) {
  .feed_events_section .slider-wpr {
    padding: 0 20px;
  }
}

/* Slider Arrows */
.feed_events_section .arrow {
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 3;
}

.feed_events_section .arrow:before,
.feed_events_section .arrow:after {
  content: "";
  display: block;
  width: 12px;
  height: 2px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  transform-origin: right;
}

.feed_events_section .arrow:before {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.feed_events_section .arrow.next {
  right: 0;
}

.feed_events_section .arrow.back {
  left: 0;
}

.feed_events_section .arrow.back:before,
.feed_events_section .arrow.back:after {
  transform-origin: left;
}

/* Slide Items */
.feed_events_section .slide-item {
  padding: 20px;
}

@media (max-width: 1079.98px) {
  .feed_events_section .slide-item {
    padding: 0 10px;
  }
}

/* No Events Message */
.feed_events_section .no-events-message {
  padding: 40px 20px;
  font-size: 1rem;
  text-align: center;
  color: #666;
}

/* Row Layout */
.feed_events_section .row > [class*="col-"] {
  margin-bottom: 30px;
}

@media (min-width: 768px) {
  .feed_events_section .row {
    display: flex;
    flex-wrap: wrap;
  }
  
  .feed_events_section .row > [class*="col-"] {
    display: flex;
  }
}

/* ==========================================================================
   Event Card - Standalone Component (ths-event-card)
   Used in feed_events section, archive-events, and anywhere events are listed
   ========================================================================== */

.ths-event-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  border: none;
  list-style: none;
}

.ths-event-card * {
    color: #000 !important;
}

.ths-event-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* Card Link */
.ths-event-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.ths-event-card__link:hover,
.ths-event-card__link:focus {
  text-decoration: none;
  color: inherit;
}

/* Card Image */
.ths-event-card__image {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.ths-event-card__image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.3s ease;
  margin: 0;
  padding: 0;
  border: none;
}

.ths-event-card:hover .ths-event-card__image img {
  transform: scale(1.05);
}

/* Date Badge */
.ths-event-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--ths-primary-color, #333333) !important;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
  text-align: center;
  line-height: 1.2;
  z-index: 2;
}

.ths-event-card__badge-month {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}

.ths-event-card__badge-day {
  display: block;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}

/* Card Content */
.ths-event-card__content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Meta Line */
.ths-event-card__meta {
  font-size: 13px;
  line-height: 1.4;
  color: #666666;
  margin: 0 0 8px 0;
  padding: 0;
}

.ths-event-card__category {
  color: #666666;
}

.ths-event-card__separator {
  color: #999999;
}

.ths-event-card__date {
  color: #666666;
}

.ths-event-card__time {
  color: #666666;
}

/* Title */
.ths-event-card__title {
  margin: 0 0 10px 0;
  padding: 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  color: #222222;
}

/* Location */
.ths-event-card__location {
  font-size: 13px;
  line-height: 1.4;
  color: #666666;
  margin: 0 0 10px 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ths-event-card__location-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #666666;
}

/* Excerpt */
.ths-event-card__excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: #444444;
  flex-grow: 1;
  margin: 0;
  padding: 0;
}

.ths-event-card__excerpt p {
  margin: 0;
  padding: 0;
}

/* CTA / Read More */
.ths-event-card__cta {
  display: inline-block;
  margin-top: auto;
  padding-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ths-primary-color, #333333) !important;
  text-decoration: underline;
}

.ths-event-card:hover .ths-event-card__cta {
  text-decoration: underline;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (min-width: 768px) {
  .ths-event-card {
    margin-bottom: 0;
  }
}

@media (max-width: 767.98px) {
  .ths-event-card__content {
    padding: 16px;
  }
  
  .ths-event-card__title {
    font-size: 1rem;
  }
  
  .ths-event-card__badge {
    padding: 6px 10px;
  }
  
  .ths-event-card__badge-day {
    font-size: 18px;
  }
}
