/* =====================================================
   STUDENT SUCCESS STORIES : WRAPPER
===================================================== */
.success-section {
  position: relative;
  padding: 80px 0;
  background-color: #E9E9E9;
  overflow: hidden;
}

/* BACKGROUND IMAGE LAYER (VISIBLE & SAFE) */
.success-section::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url('../images/profile/bg-success.webp');
  background-repeat: no-repeat;
  background-size: contain;        /* NO CROP */
  background-position: center bottom; /* IMAGE ABOVE CONTENT */

  z-index: 0;
  pointer-events: none;
}

/* =====================================================
   CONTENT CONTAINER
===================================================== */
.success-container {
  position: relative;
  z-index: 1; /* content above image */

  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;

  display: flex;
  gap: 40px;
}

/* =====================================================
   LEFT COLUMN (20%)
===================================================== */
.success-left {
  flex: 0 0 20%;
}

.success-left-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.success-icon {
  color: #F37422;
  font-size: 16px;
  margin-top: 4px;
}

.success-subtitle {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin-top:15px;
}

/* =====================================================
   RIGHT COLUMN (80%)
===================================================== */
.success-right {
  flex: 0 0 80%;
}

/* =====================================================
   SECTION HEADING
===================================================== */
.success-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 40px;
}

/* =====================================================
   TESTIMONIAL CARDS GRID
===================================================== */
.success-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* =====================================================
   INDIVIDUAL CARD
===================================================== */
.success-card {
  background: #ffffff;
  border: 1px solid #d5d5d5;
  border-radius: 16px;
  padding: 30px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Testimonial text */
.success-text {
  font-size: 16px;
  line-height: 1.7;
  color: #777;
  font-style: italic;
}

/* Divider */
.card-divider {
  height: 1px;
  background-color: #f27a32;
  margin: 24px 0;
  opacity: 0.7;
}

/* =====================================================
   PROFILE
===================================================== */
.card-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-profile img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #f4c542;
}

.card-profile h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.card-profile span {
  font-size: 13px;
  color: #777;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 991px) {

  .success-container {
    flex-direction: column;
  }

  .success-left,
  .success-right {
    flex: 100%;
  }

  .success-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {

  .success-cards {
    grid-template-columns: 1fr;
  }
.success-section::before {
    background-size: 90% auto; /* keeps image readable */
    background-position: center bottom;
  }
}
