/*!
 * Team Building Activities widget styling
 * Applies glassy panel + compact list with glow on hover.
 */

/* 
 * 1. Reset container context 
 * Ensure no "ghost" layers from the generic .textwidget wrapper.
 * CRITICAL: overflow: visible is needed for the outset border to show.
 */
.widget_text .textwidget,
.textwidget {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

.widget_text .textwidget::before,
.widget_text .textwidget::after,
.textwidget::before,
.textwidget::after {
  display: none !important;
}

/* 
 * 2. Main Card Structure 
 * Single wrapper with padding + 2 pseudo-layers (Glass + Surface).
 * Aligns with .vu-testimonial-widget and .vu-newsletter-widget models.
 */
.activities-box {
  --aw-surface: var(--grad-team-gold, linear-gradient(135deg, #ffd900, #fff6a5));
  --aw-outline: rgba(255, 217, 0, 0.4);
  --aw-shadow: 0 16px 28px rgba(255, 190, 79, 0.25);

  position: relative;
  /* Match padding to testimonial/newsletter widgets */
  padding: clamp(14px, 3vw, 18px);
  border-radius: 18px;
  background: transparent;
  /* Allow the outset border (::before) to overflow */
  overflow: visible;
  color: var(--vu-ink, #1f2c57);
  box-sizing: border-box;
  width: 100%;
  margin: 0;
}

/* Layer 1: Outer Glass Glow (The "Border") */
.activities-box::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -2;
  /* Stronger gold glass gradient for visibility */
  background: linear-gradient(140deg, rgba(255, 217, 0, 0.5), rgba(255, 255, 255, 0.25));
  border-radius: 22px;
  border: 1px solid rgba(255, 217, 0, 0.4);
  box-shadow: 0 18px 30px rgba(255, 190, 79, 0.3);
  pointer-events: none;
}

/* Layer 2: Main Gold Surface */
.activities-box::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--aw-surface);
  border: 1px solid var(--aw-outline);
  border-radius: 18px;
  box-shadow: var(--aw-shadow);
  pointer-events: none;
}

/* 
 * 3. Inner Content 
 */
.activities-tophedbox {
  margin: 0 0 12px;
  /* Slightly increased gap for breathing room */
  font-family: var(--vu-title-font);
  font-weight: 700;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vu-ink, #1f2c57);
  text-align: center;
  line-height: 1.1;
  display: block;
}

.activities-body {
  display: grid;
  gap: 6px;
  padding: 0;
  width: 100%;
}

.activities-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.activities-body li {
  margin: 0;
  padding: 0;
}

/* List Items - Global White Token */
.activities-body a {
  display: block;
  padding: 8px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--vu-ink, #1f2c57);
  /* Use the global near-white token */
  background: var(--vu-fg, #f4f4f4);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: transform 140ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  font-weight: 500;
}

.activities-body a:hover,
.activities-body a:focus-visible {
  transform: translateY(-1px);
  /* Pure white on hover */
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--vu-night, #050713);
  outline: none;
  box-shadow: 0 4px 12px rgba(196, 148, 0, 0.15);
}

.activities-body a:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 0 4px rgba(255, 217, 0, 0.5);
}