/* ============================================
   CAROLS_PROGRAMS.CSS — Carol's Programs Page
   Brief intro and auto-fit program card grid
   with a reveal-on-hover gradient top border.
   ============================================ */
@import "globals.css?v=14";

/* ============================================
   INTRO SECTION
   Centered text block, no bottom padding so
   it flows directly into the programs section.
   ============================================ */
.intro-section {
  background: var(--white-clr);
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.intro-text p {
  font-size: var(--fs-body);
  color: var(--dark-clr);
  line-height: var(--lh-loose);
}

/* ============================================
   PROGRAMS SECTION
   Auto-fit card grid on soft cream background.
   Each card has a hidden gradient top-border
   that fades in on hover via opacity.
   ============================================ */
.programs-section {
  background: var(--cream-clr);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.program-card {
  background: var(--white-clr);
  border-radius: var(--radius-sm);
  padding: 2rem;
  box-shadow: 0 2px 8px #d4c8bd, 0 4px 16px rgba(34, 44, 42, 0.1);
  border: 1px solid #d4c8bd;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* Hidden gradient stripe — brown-to-green at top of card.
   Starts at opacity: 0, revealed on hover. */
.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-clr), var(--alt-txt-clr));
  opacity: 0;
  transition: var(--transition);
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.program-card:hover::before {
  opacity: 1;
}

/* ---- Program Icon Badge ---- */
.program-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(92, 110, 84, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.program-icon i {
  font-size: var(--fs-md);
  color: var(--primary-clr);
}

.program-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1.25rem;
  border: 2px solid rgba(92, 110, 84, 0.15);
}

.program-card h3 {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  color: var(--dark-clr);
  margin-bottom: 0.5rem;
  line-height: var(--lh-snug);
}

.program-card p {
  font-size: var(--fs-sm);
  color: var(--dark-clr);
  opacity: 0.7;
  line-height: var(--lh-normal);
}

/* NOTE: No @media queries needed — the .programs-grid CSS grid
   uses auto-fit with minmax(), so cards reflow responsively
   without breakpoint overrides.  */
