/* ============================================================
   MFI INVESTMENTS — ACTIVITIES PAGE (PREMIUM REDESIGN)
   ============================================================ */

.activities-premium-section {
  padding: var(--section-padding) 0;
  background: var(--color-navy);
}

/* ── Bento Grid Layout ── */
.activities-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 350px;
  gap: 1.5rem;
  margin-top: 2rem;
}

.activity-bento-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  /* The default card takes 1 col and 1 row */
  grid-column: span 1;
  grid-row: span 1;
}

/* Wide bento cards span 2 columns */
.bento-wide {
  grid-column: span 2;
}

.activity-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.activity-bento-card:hover .activity-img {
  transform: scale(1.1) rotate(1deg);
}

/* ── Overlay and Glassmorphism ── */
.activity-bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.95) 0%, rgba(10, 22, 40, 0.2) 60%, transparent 100%);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.activity-bento-card:hover::after {
  opacity: 0.8;
}

.activity-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(10px);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.4s ease;
}

.activity-bento-card:hover .activity-overlay {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.08);
}

.activity-number {
  font-family: var(--font-display);
  font-size: var(--fs-h5);
  color: var(--color-gold);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.activity-title {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  color: var(--color-white-pure);
  line-height: var(--lh-tight);
}

/* ── Hover Shine Effect ── */
.activity-bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  z-index: 3;
  transition: left 0.8s ease;
  pointer-events: none;
}

.activity-bento-card:hover::before {
  left: 200%;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .activities-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-wide {
    grid-column: span 2;
  }
}
@media (max-width: 768px) {
  .activities-bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 300px;
  }
  .bento-wide {
    grid-column: span 1;
  }
  .activity-overlay {
    transform: translateY(0);
  }
}
