/* CTWC Upcoming Events widget (homepage / any page via shortcode) */
.ctwc-upcoming-widget {
  font-family: inherit;
  color: #fff;
}

.ctwc-upcoming-title {
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 10px;
}

.ctwc-upcoming-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ctwc-upcoming-item { margin: 0; }

/* Kubio can apply [data-kubio] a color rule. Force CTWC yellow for links by default. */
.ctwc-upcoming-link,
.ctwc-upcoming-link:visited,
.ctwc-upcoming-link:hover,
.ctwc-upcoming-link:focus,
[data-kubio] .ctwc-upcoming-link,
[data-kubio] .ctwc-upcoming-link:visited,
[data-kubio] .ctwc-upcoming-link:hover,
[data-kubio] .ctwc-upcoming-link:focus {
  color: #FFD700 !important;
  text-decoration: none !important;
  font-weight: 800;
}

.ctwc-upcoming-meta {
  font-size: 14px;
  opacity: 0.9;
  margin-top: 2px;
}

.ctwc-upcoming-more,
.ctwc-upcoming-more:visited,
.ctwc-upcoming-more:hover,
.ctwc-upcoming-more:focus,
[data-kubio] .ctwc-upcoming-more,
[data-kubio] .ctwc-upcoming-more:visited,
[data-kubio] .ctwc-upcoming-more:hover,
[data-kubio] .ctwc-upcoming-more:focus {
  display: inline-block;
  margin-top: 12px;
  color: #FFD700 !important;
  text-decoration: none !important;
  font-weight: 800;
}

/* ---------------------------
   Upcoming grid (match Events page look)
   --------------------------- */
.ctwc-upcoming-widget .ctwc-upcoming-grid{
  display: grid;
  grid-template-columns: 1.5fr 1.4fr 1fr;
  gap: 18px;
  text-align: left;
}

/* Smaller typography than the full slide, but same visual language */
.ctwc-upcoming-widget .ctwc-upcoming-grid .ctwc-column{
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.1;
  font-family: Arial, sans-serif;
  font-weight: 800;

  /* optional stroke effect to match the slide; subtle so it works on light backgrounds too */
  -webkit-text-stroke-width: 2px;
  -webkit-text-stroke-color: rgba(0,0,0,0.85);
  paint-order: stroke fill;
}

.ctwc-upcoming-widget .ctwc-upcoming-grid .ctwc-event-name{ color: #FFD700 !important; }
.ctwc-upcoming-widget .ctwc-upcoming-grid .ctwc-location,
.ctwc-upcoming-widget .ctwc-upcoming-grid .ctwc-date{ color: #fff !important; }

/* Keep dates on one line like the slide */
.ctwc-upcoming-widget .ctwc-upcoming-grid .ctwc-date{
  white-space: nowrap;
}

/* Links should look like the yellow names (override theme styles) */
.ctwc-upcoming-widget a.ctwc-event-link,
.ctwc-upcoming-widget a.ctwc-event-link:visited,
.ctwc-upcoming-widget a.ctwc-event-link:hover,
.ctwc-upcoming-widget a.ctwc-event-link:focus{
  color: #FFD700 !important;
  text-decoration: none !important;
  font-weight: 800 !important;
}



/* ===========================
   Upcoming Events: Featured + Card Carousel
   =========================== */

.ctwc-upcoming-widget.ctwc-upcoming-cards {
  width: 100%;
}

.ctwc-upcoming-featured {
  position: relative;
  border-radius: 16px;
  padding: 18px 18px 16px;
  margin-bottom: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
}

/* Full-tile clickable overlay link (featured + cards) */
.ctwc-upcoming-tile-link {
  position: absolute;
  inset: 0;
  z-index: 5; /* sit above the card content so the whole tile is clickable */
  display: block;
  border-radius: inherit;
  text-decoration: none;
}

/* If there are any "real" links/buttons inside a tile, lift them above the overlay */
.ctwc-upcoming-featured a:not(.ctwc-upcoming-tile-link),
.ctwc-upcoming-card a:not(.ctwc-upcoming-tile-link),
.ctwc-upcoming-featured button,
.ctwc-upcoming-card button {
  position: relative;
  z-index: 6;
}

.ctwc-upcoming-featured-label {
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 8px;
}

.ctwc-upcoming-featured-inner .ctwc-upcoming-card-title a {
  font-size: 26px;
  font-weight: 800;
}

.ctwc-upcoming-card-title a {
  text-decoration: none;
}

.ctwc-upcoming-card-location,
.ctwc-upcoming-card-dates {
  margin-top: 4px;
  font-size: 16px;
  opacity: 0.92;
}

.ctwc-upcoming-carousel {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ctwc-carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  padding: 0;
}

.ctwc-carousel-btn[disabled] {
  opacity: 0.35;
  cursor: default;
}

.ctwc-carousel-btn:hover {
  background: rgba(255,255,255,0.12);
}

.ctwc-carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.ctwc-carousel-track {
  display: flex;
  gap: 12px;
  transition: transform 260ms ease;
  will-change: transform;
}

.ctwc-upcoming-card {
  flex: 0 0 300px;
  position: relative;
  border-radius: 16px;
  padding: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.16);
  min-height: 120px;
}

.ctwc-upcoming-card:hover,
.ctwc-upcoming-featured:hover {
  background: rgba(255,255,255,0.07);
}

.ctwc-upcoming-card .ctwc-upcoming-card-title a {
  font-size: 18px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .ctwc-upcoming-featured-inner .ctwc-upcoming-card-title a { font-size: 22px; }
  .ctwc-upcoming-card { flex-basis: 260px; }
}

@media (max-width: 600px) {
  .ctwc-carousel-btn { width: 34px; height: 34px; font-size: 24px; }
  .ctwc-upcoming-card { flex-basis: 240px; }
}

