/* =========================
   Success Stories Banner
========================= */

.success-banner{
  padding: 48px 0 0;
  background-image: url("images/home-banner.jpg");
}

.success-hero-card{
  margin-bottom: 72px;
  box-shadow:
    0 18px 50px rgba(15,23,42,0.12),
    inset 0 1px 0 rgba(255,255,255,0.15);
  background:
    radial-gradient(900px 380px at 20% 30%, rgba(200,16,46,0.10), transparent 55%),
    radial-gradient(900px 420px at 80% 40%, rgba(59,130,246,0.08), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.success-hero-card .page-hero-inner h1{
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 18px 0;
  letter-spacing: -0.02em;
}

.success-hero-card .page-hero-inner p{
  font-size: clamp(18px, 2.5vw, 22px);
  color: #4b5563;
  margin: 0;
  max-width: 65ch;
  line-height: 1.6;
}

/* =========================
   Success Stories Container
========================= */

.success-stories-container{
  background: #ffffff;
  padding: 64px 0;
}

.stories-header{
  margin-bottom: 64px;
  text-align: center;
}

.stories-header h2{
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  color: #c8102e;
  margin: 0;
  letter-spacing: -0.015em;
}

/* =========================
   Trainee Story Card
========================= */

.trainee-story{
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
  padding: 40px 0;
}

.trainee-story--alternate{
  grid-template-columns: 1.2fr 1fr;
}

.trainee-story--alternate .story-photo{
  order: 2;
}

.trainee-story--alternate .story-content{
  order: 1;
}

.story-photo{
  display: flex;
  justify-content: center;
  align-items: center;
}

.story-photo img{
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow:
    0 8px 32px rgba(15,23,42,0.15),
    0 0 32px rgba(59,130,246,0.1),
    0 0 64px rgba(200,16,46,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trainee-story:hover .story-photo img{
  transform: translateY(-8px);
  box-shadow:
    0 16px 48px rgba(15,23,42,0.2),
    0 0 48px rgba(59,130,246,0.15),
    0 0 96px rgba(200,16,46,0.1);
}

.story-content h3{
  font-size: 20px;
  font-weight: 500;
  color: #0f172a;
  margin: 0 0 18px 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.story-content h3 strong{
  color: #c8102e;
  font-weight: 500;
}

.story-content p{
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
  margin: 0;
}

.story-content strong{
  color: #c8102e;
  font-weight: 600;
}

/* =========================
   Company Logos Section
========================= */

.company-logos{
  margin-top: 120px;
  padding-top: 80px;
  border-top: 2px solid rgba(200,16,46,0.15);
}

.company-logos h3{
  font-size: 24px;
  font-weight: 500;
  color: #0f172a;
  text-align: center;
  margin: 0 0 48px 0;
  letter-spacing: -0.01em;
}

.logos-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
  align-items: center;
  justify-items: center;
}

.logo-item{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: transform 0.3s ease;
  width: 100%;
  height: 100px;
}

.logo-item:hover{
  transform: scale(1.08);
}

.logo-item img{
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

/* EAI logo (last child) - slightly larger than others */
.logo-item:last-child img{
  max-height: 110px;
  max-width: 250px;
}

/* MGB logo (4th child) - much larger */
.logo-item:nth-child(4) img{
  max-height: 120px;
  max-width: 280px;
}

/* =========================
   Responsive
========================= */

@media (max-width: 1000px){
  .trainee-story{
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .trainee-story--alternate{
    grid-template-columns: 1fr;
  }

  .trainee-story--alternate .story-photo{
    order: 0;
  }

  .trainee-story--alternate .story-content{
    order: 0;
  }

  .story-photo img{
    width: 240px;
    height: 240px;
  }
}

@media (max-width: 600px){
  .success-stories-container{
    padding: 48px 0;
  }

  .trainee-story{
    margin-bottom: 60px;
    padding: 32px 0;
  }

  .story-photo img{
    width: 200px;
    height: 200px;
  }

  .story-content h3{
    font-size: 18px;
    margin-bottom: 14px;
  }

  .story-content p{
    font-size: 15px;
    line-height: 1.7;
  }

  .company-logos{
    margin-top: 80px;
    padding-top: 60px;
  }

  .company-logos h3{
    font-size: 20px;
    margin-bottom: 36px;
  }

  .logos-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .logo-item{
    padding: 20px;
    min-height: 100px;
  }

  .logo-item img{
    max-width: 120px;
  }
}
