/* -------------------------------------- */
/* PAGE 3 — The Strain: Mental Health and Money */
/* -------------------------------------- */

#page3 {
  background: linear-gradient(135deg, #FEF6F6 0%, #E7F0FF 50%, #FFE8E0 100%);
  color: #1a237e;
  position: relative;
  padding: 80px 120px;
  transition: background 0.8s ease;
  overflow: hidden;
}

#page3::before {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -15%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(244, 143, 177, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

#page3 .split-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- LEFT COLUMN --- */
#page3 .text-box {
  flex: 1;
  padding-right: 40px;
  font-size: 1.1rem;
  line-height: 1.8;
  border-right: 1.5px solid rgba(0, 0, 0, 0.06);
}

#page3 .highlight {
  background: linear-gradient(135deg, rgba(245, 194, 203, 0.3) 0%, rgba(255, 215, 176, 0.25) 100%);
  border-left: 4px solid #f48fb1;
  padding: 16px 20px;
  border-radius: 12px;
  margin: 24px 0;
  font-style: italic;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(5px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#page3 .highlight:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

#page3 .page-message {
  font-style: italic;
  opacity: 0.8;
  margin-top: 20px;
}

/* --- RIGHT COLUMN --- */
#page3 .chart-box {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  position: relative;
}

#page3 #chart1 {
  width: 100%;
  height: 400px;
}

#page3 #chart1b {
  width: 320px;
  height: 280px;
}

/* --- Floating Stat --- */
#page3 .floating-stat {
  position: absolute;
  top: -10px;
  right: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 240, 245, 0.95) 100%);
  color: #1a237e;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1),
              0 2px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  animation: floatUp 5s ease-in-out infinite alternate;
}

@keyframes floatUp {
  0%   { transform: translateY(0); opacity: 0.9; }
  100% { transform: translateY(-8px); opacity: 1; }
}

/* --- Overlay Text --- */
#page3 .overlay-text {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 240, 245, 0.85) 100%);
  color: #1a237e;
  font-weight: 500;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 1rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* --- Stress Overlay --- */
#page3 .stress-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 60% 40%, rgba(255,255,255,0) 0%, rgba(255,120,120,0.15) 70%);
  pointer-events: none;
  z-index: 0;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  #page3 .split-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #page3 .text-box {
    border-right: none;
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 20px;
  }

  #page3 .chart-box {
    width: 100%;
  }

  #page3 .floating-stat {
    position: static;
    margin-bottom: 10px;
  }
}




