/* Category Cards Shortcode Styles */
/* Used by [category_cards] shortcode */
.tagdiv-type img {
  margin-bottom: 0 !important;
}
.custom-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.custom-card {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  height: 100%;
}
.custom-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.custom-card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.custom-card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}
.custom-card:hover .custom-card-image {
  transform: scale(1.02);
}
.custom-card-image-wrapper {
  overflow: hidden;
}
.custom-card-footer {
  padding: 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  flex: 1;
}
.custom-card-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: #333;
  line-height: 1.3;
}
.custom-card-date {
  font-size: 0.85rem;
  color: #777;
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.custom-card-date i {
  color: #1E96DB;
}
.custom-card-excerpt {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #5b5b5b;
  margin-top: 8px;
  text-align: left;
}
/* Mobile Slider Styles - starts at 1200px */
@media (max-width: 1200px) {
  .custom-card-grid:not(.mobile-slider) {
    grid-template-columns: repeat(3, 1fr);
  }
  .custom-card-grid.mobile-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 8px 12px 12px;
    margin: 0 -12px;
  }
  .custom-card-grid.mobile-slider::-webkit-scrollbar {
    display: none;
  }
  .custom-card-grid.mobile-slider {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .custom-card-grid.mobile-slider .custom-card {
    flex: 0 0 80%;
    max-width: 270px;
    scroll-snap-align: start;
  }
  .custom-card-grid.mobile-slider .custom-card-content {
    flex-direction: column;
  }
  .custom-card-grid.mobile-slider .custom-card-image {
    width: 100%;
    height: 180px;
    border-radius: 0;
  }
  .custom-card-grid.mobile-slider .custom-card-footer {
    width: 100%;
    padding: 12px;
  }
}
@media (max-width: 900px) {
  .custom-card-grid:not(.mobile-slider) {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .custom-card-grid:not(.mobile-slider) {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .custom-card-grid:not(.mobile-slider) .custom-card-content {
    flex-direction: row;
    align-items: stretch;
  }
  .custom-card-grid:not(.mobile-slider) .custom-card-image {
    width: 30%;
    min-width: 100px;
    flex-shrink: 0;
    height: auto;
    object-fit: cover;
    border-radius: 16px 0 0 16px;
    min-height: 120px;
    max-height: 120px;
  }
  .custom-card-grid:not(.mobile-slider) .custom-card:hover .custom-card-image {
    transform: none;
  }
  .custom-card-grid:not(.mobile-slider) .custom-card-footer {
    width: 70%;
    padding: 15px;
    justify-content: center;
  }
  .custom-card-grid:not(.mobile-slider) .custom-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #333;
  }
  .custom-card-grid:not(.mobile-slider) .custom-card-date {
    font-size: 0.8rem;
    padding-top: 8px;
  }
  .custom-card-grid:not(.mobile-slider) .custom-card-excerpt {
    font-size: 0.85rem;
    margin-top: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  /* Smaller slider cards on mobile */
  .custom-card-grid.mobile-slider .custom-card {
    flex: 0 0 80%;
    max-width: 300px;
  }
  .custom-card-grid.mobile-slider .custom-card-image {
    height: 160px;
  }
  .custom-card-grid.mobile-slider .custom-card-footer {
    padding: 10px;
  }
  .custom-card-grid.mobile-slider .custom-card-title {
    font-size: 0.95rem;
  }
}
.activities-more {
  text-align: left;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}
.activities-more-link {
  color: var(--accent-green);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s ease;
}
.activities-more-link:hover {
  gap: 12px;
}

/* Pull-to-view indicator (mobile slider only)
   Width must match INDICATOR_WIDTH (120) in the pull-to-navigate script. */
.pull-to-view-indicator {
  display: none;
}
@media (max-width: 1200px) {
  .custom-card-grid.mobile-slider .pull-to-view-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 120px;
    max-width: 120px;
    scroll-snap-align: end;
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  .custom-card-grid.mobile-slider .pull-to-view-indicator.visible {
    opacity: 1;
  }
  .pull-indicator-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    color: #777;
    transition: color 0.2s ease;
  }
  .pull-to-view-indicator.ready .pull-indicator-content {
    color: var(--accent-green, #1E96DB);
  }
  .pull-arrow {
    font-size: 1.75rem;
    line-height: 1;
    transition: transform 0.2s ease;
  }
  .pull-to-view-indicator.ready .pull-arrow {
    transform: translateX(6px);
  }
  .pull-text {
    font-size: 0.8rem;
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .custom-card,
  .custom-card-image,
  .pull-arrow,
  .pull-to-view-indicator {
    transition: none;
  }
}
