/* Flex Teaser Cards Container */



[data-flex-teaser-cards] {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 5%;
  margin-bottom: 0;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
}

[data-flex-teaser-cards] [data-flex-grid] {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

[data-flex-teaser-cards] .flex-teaser-cards__item {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 0 1 calc(25% - 0.75rem);
}

/* Tablet: 2 columns */
@media (max-width: 1023px) {
  [data-flex-teaser-cards] .flex-teaser-cards__item {
    flex: 0 1 calc(50% - 0.5rem);
  }
}

/* Mobile: 1 column */
@media (max-width: 639px) {
  [data-flex-teaser-cards] .flex-teaser-cards__item {
    flex: 0 1 100%;
  }
}

/* Hide items beyond current page (JS will manage visibility) */
[data-flex-teaser-cards] .flex-teaser-cards__item.is-hidden {
  display: none;
}

/* Base card styling */
.flex-teaser-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 0.8px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  font-family: Outfit, "Helvetica Neue", Arial, Helvetica, sans-serif;
  color: oklch(0.502 0.038 189);
  padding: 0;
  margin: 0;
  width: 100%;
  min-width: 0;
  text-decoration: none;
}

/* Hover state */
.flex-teaser-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.12);
}

.flex-teaser-card__media {
  overflow: hidden;
  background: #f5f5f5;
  flex-shrink: 0;
}

.flex-teaser-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flex-teaser-card__body {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  flex-grow: 1;
}

.flex-teaser-card__title {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: inherit;
  text-decoration: none;
}

.flex-teaser-card__summary {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #666;
  overflow: hidden;
  flex-grow: 1;
}

/* Pagination Controls */
[data-flex-teaser-cards] .flex-teaser-cards__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0;
}

.flex-teaser-cards__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid #333;
  border-radius: 50%;
  background: transparent;
  color: #333;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease-out;
  padding: 0;
}

.flex-teaser-cards__nav:hover,
.flex-teaser-cards__nav:focus {
  background: #333;
  color: #fff;
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

.flex-teaser-cards__nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.flex-teaser-cards__dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.flex-teaser-cards__dot {
  width: 10px;
  height: 10px;
  border: 2px solid #333;
  border-radius: 50%;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease-out;
}

.flex-teaser-cards__dot:hover,
.flex-teaser-cards__dot:focus {
  background: #333;
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

.flex-teaser-cards__dot.is-active {
  background: #333;
  border-color: #333;
}

/* Accessibility: Focus visible */
:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

/* Heading */
.flex-teaser-cards__heading {
  margin: 0 0 1rem 0;
  padding: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Empty state */
.flex-teaser-cards__empty {
  grid-column: 1 / -1;
  padding: 2rem;
  text-align: center;
  color: #666;
}
