/* ============================================
   PROGRAM SECTION ("Что вас ждёт...")
   3×3 grid of feature cards.
   Each card: photo on top, dark text area on bottom.
   Card corner radius 23px, grid gap 20px (Figma spec).
   ============================================ */

.program {
  padding: 10rem 10rem;
}

.program__inner {
  width: 100%;
  max-width: 148rem;             /* matches hero working area */
  margin: 0 auto;
}

/* ============================================
   TITLE
   ============================================ */

.program__title {
  font-size: 6rem;
  font-weight: 700;             /* was 800 */
  text-transform: none;         /* was uppercase — removed */
  letter-spacing: -0.05em;      /* aligned with other sections */
  line-height: 1.05;
  margin-bottom: 6rem;
  max-width: 110rem;
  color: var(--color-white);    /* base text is white */
}

.program__title-gradient {
  text-transform: uppercase;    /* only this part capitalized */
  background: linear-gradient(90deg, #FF6B2D 0%, #FF2D78 55%, #8B5CF6 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* ============================================
   GRID
   ============================================ */

.program__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;                     /* 20px — Figma spec */
}

/* ============================================
   CARD
   ============================================ */

.program-card {
  display: flex;
  flex-direction: column;

  background: rgba(15, 18, 32, 0.85);
  border-radius: 2.3rem;         /* 23px — Figma spec */
  overflow: hidden;              /* clips image corners to match card */
  
  /* Smooth animation transition */
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
              box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
              background-color 0.3s ease;
  will-change: transform;
}

.program-card__image {
  width: 100%;
  aspect-ratio: 2 / 1;           /* wide-short banner */
  flex-shrink: 0;
  overflow: hidden;              /* contains the scaling image on hover */
}

.program-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  
  /* Smooth image scale transition */
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.program-card__content {
  flex: 1;
  padding: 3rem 3rem 3.2rem;
  display: flex;
  flex-direction: column;
}

.program-card__title {
  font-size: 2.8rem;             /* 28px */
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-white);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.6rem;
}

.program-card__text {
  font-size: 1.8rem;             /* 18px */
  font-weight: 400;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   HOVER ANIMATIONS
   ============================================ */

.program-card:hover {
  transform: translateY(-6px);
  background: rgba(22, 26, 46, 0.9);
  
  /* Combined dark shadow and a thematic glowing violet ambient shadow */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 
              0 0 25px rgba(139, 92, 246, 0.15);
}

.program-card:hover .program-card__image img {
  transform: scale(1.05);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1100px) {
  .program__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .program {
    padding: 8rem 4rem;
  }

  .program__title {
    font-size: 4rem;
    margin-bottom: 4rem;
  }

  .program__grid {
    grid-template-columns: 1fr;
  }
  
  /* Disable translation hover on mobile/touch screens for better UX */
  .program-card:hover {
    transform: none;
    box-shadow: none;
  }
  
  .program-card:hover .program-card__image img {
    transform: none;
  }
}