/* ===== GALLERY GROWTH BANNER ===== */
.gallery-growth-banner {
  background: linear-gradient(135deg,
    #56B6C6 0%,
    #8ACBD0 35%,
    #FF97D0 75%,
    #FF97D0 100%);
  background-size: 300% 300%;
  animation: banner-shift 8s ease-in-out infinite alternate;
  padding: 52px 24px;
  position: relative;
  overflow: hidden;
}
.gallery-growth-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(86,182,198,.25) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(255,151,208,.2) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 0%, rgba(255,225,77,.15) 0%, transparent 50%);
  pointer-events: none;
}
/* floating sparkle dots */
.gallery-growth-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,225,77,.6) 1.5px, transparent 1.5px),
    radial-gradient(circle, rgba(86,182,198,.4) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,151,208,.5) 1px, transparent 1px);
  background-size: 60px 60px, 40px 40px, 80px 80px;
  background-position: 0 0, 20px 20px, 10px 35px;
  pointer-events: none;
  opacity: 0.4;
}
@keyframes banner-shift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.gallery-growth-banner__inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1;
  text-align: center;
  flex-direction: column;
}
@media (min-width: 768px) {
  .gallery-growth-banner__inner {
    flex-direction: row;
    justify-content: center;
  }
}
.gallery-growth-banner__deco {
  font-size: 1.1rem;
  color: rgba(255,225,77,.6);
  letter-spacing: 8px;
  flex-shrink: 0;
}
.gallery-growth-banner__tag {
  display: inline-block;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.gallery-growth-banner__headline {
  font-family: 'Fredoka', 'Inter', sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 14px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(23,12,121,.35), 0 1px 0 rgba(23,12,121,.2);
}
@keyframes gradient-flow {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}
.gallery-growth-banner__sub {
  font-size: .95rem;
  color: rgba(255,255,255,.7);
  margin: 0;
  line-height: 1.6;
}

/* ===== YEAR GRID HOVER — POP OUT EFFECT ===== */
/* Grid MUST allow overflow so cards pop beyond their slot */
.year-grid {
  overflow: visible !important;
}

.year-card {
  position: relative;
  z-index: 1;
  will-change: transform;
  /* Cards transition smoothly; z-index resets after transition ends on mouseout */
  transition: transform 0.32s cubic-bezier(.22,1,.36,1),
              box-shadow 0.32s cubic-bezier(.22,1,.36,1),
              z-index 0s 0.32s;
}
.year-card:hover,
.year-card:focus-visible {
  transform: scale(1.09);
  z-index: 20;
  /* Transition: z-index jumps immediately on hover, delays on mouseout */
  transition: transform 0.32s cubic-bezier(.22,1,.36,1),
              box-shadow 0.32s cubic-bezier(.22,1,.36,1),
              z-index 0s 0s;
  /* Stroke + glow + depth shadow */
  box-shadow:
    0 0 0 2.5px #56B6C6,
    0 0 0 5px rgba(255,151,208,.35),
    0 0 28px rgba(86,182,198,.55),
    0 0 52px rgba(255,151,208,.22),
    0 20px 64px rgba(23,12,121,.6);
}

/* No scale on touch devices — prevents edge-card horizontal scroll */
@media (hover: none) {
  .year-card:hover,
  .year-card:focus-visible {
    transform: none;
  }
}

/* Inner image still zooms a bit extra within the already-scaled card */
.year-card:hover img {
  transform: scale(1.04);
  filter: brightness(.92);
}

/* Glassy overlay effect on hover */
.year-card-overlay {
  background: linear-gradient(to top, rgba(23,12,121,.78) 0%, rgba(23,12,121,.12) 55%, transparent 100%);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background 0.32s, backdrop-filter 0.32s;
}
.year-card:hover .year-card-overlay {
  background: linear-gradient(to top, rgba(23,12,121,.88) 0%, rgba(86,182,198,.18) 55%, transparent 100%);
}

/* Year badge — big impactful number */
.year-card-badge {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(23,12,121,.5), 0 0 40px rgba(86,182,198,.3);
  margin-bottom: 4px;
  transition: transform 0.28s, text-shadow 0.28s;
}
.year-card:hover .year-card-badge {
  transform: scale(1.06);
  text-shadow: 0 2px 20px rgba(23,12,121,.7), 0 0 50px rgba(255,225,77,.4);
}
.year-card-cta {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-top: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s, transform 0.22s;
}
.year-card:hover .year-card-cta {
  opacity: 1;
  transform: translateY(0);
}

/* Placeholder (no cover photo) */
.year-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #170C79 0%, #1a2a8a 50%, #1e5075 100%);
  background-size: 200% 200%;
  animation: placeholder-pulse 3s ease-in-out infinite alternate;
}
@keyframes placeholder-pulse {
  0%   { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

/* ===== SUBCAT CARD HOVER — same pop principle ===== */
.subcat-grid {
  overflow: visible !important;
}
.subcat-card {
  position: relative;
  z-index: 1;
  transition: transform 0.28s cubic-bezier(.22,1,.36,1),
              box-shadow 0.28s cubic-bezier(.22,1,.36,1),
              z-index 0s 0.28s;
}
.subcat-card:hover {
  transform: scale(1.06) translateY(-4px);
  z-index: 15;
  transition: transform 0.28s cubic-bezier(.22,1,.36,1),
              box-shadow 0.28s cubic-bezier(.22,1,.36,1),
              z-index 0s 0s;
  box-shadow:
    0 0 0 2px #56B6C6,
    0 0 18px rgba(86,182,198,.45),
    0 12px 40px rgba(23,12,121,.45);
}
.subcat-card:hover img {
  transform: scale(1.05);
}

/* ===== BUTTON HOVER GLOW ===== */
.btn-primary:hover {
  box-shadow: 0 0 0 2px rgba(86,182,198,.5), 0 0 20px rgba(86,182,198,.35), 0 6px 24px rgba(23,12,121,.4);
  transform: translateY(-2px);
}
.btn-secondary:hover {
  box-shadow: 0 0 0 2px rgba(255,151,208,.45), 0 0 16px rgba(255,151,208,.3);
  transform: translateY(-1px);
}

/* ===== GALLERY HERO ===== */
.page-hero--gallery {
  background: linear-gradient(135deg, #170C79 0%, #1a2a8a 35%, #1e5a75 70%, #246d82 100%);
}

/* Stats strip on gallery page — white background to break up dark sections */
.stats-strip {
  background: #fff;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, #56B6C6, #FF97D0, #FFE14D, #56B6C6) 1;
}
.stats-strip .stat-number { color: #170C79; }
/* Higher specificity (0,4,0) overrides main.css .stat-item:nth-child(2) .stat-number (0,3,0) */
.stats-strip .stat-item:nth-child(2) .stat-number { color: #170C79; }
.stats-strip .stat-label { color: #666; }
