/* ========================================================
   STUDENT TESTIMONIALS & FEEDBACK SECTION
   Sleek Dark Teal Theme matching Skill Certifications
   ======================================================== */

#feedback_section {
  position: relative;
  background: linear-gradient(180deg, #16302b 0%, #0e1e1b 50%, #142a25 100%);
  padding: 55px 0 45px 0;
  border-top: 3px solid #224f47;
  border-bottom: 3px solid #224f47;
  color: #e0f2ef;
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
}

/* Background ambient light glow */
#feedback_section::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 250px;
  background: radial-gradient(circle, rgba(22, 210, 201, 0.18) 0%, rgba(22, 210, 201, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.feedback-container {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
}

/* Header */
.feedback-header {
  text-align: center;
  padding: 0 20px 28px 20px;
}

.feedback-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(22, 210, 201, 0.12);
  border: 1px solid rgba(22, 210, 201, 0.35);
  border-radius: 50px;
  color: #16d2c9;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 12px;
  box-shadow: 0 4px 15px rgba(22, 210, 201, 0.15);
}

.feedback-pill-badge .stars {
  color: #ffb703;
  display: inline-flex;
  gap: 2px;
  font-size: 11px;
}

#feedback_section .section_title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 10px 0;
  padding: 0;
  color: #16d2c9;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(22, 210, 201, 0.3);
}

.feedback-subtitle {
  font-size: 16px;
  color: #a4ccc6;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ========================================================
   INFINITE SCROLLING MARQUEE TRACK
   ======================================================== */

.testimonials-marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
  /* Soft edge fade for luxury feel */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.testimonials-marquee-track {
  display: flex;
  width: max-content;
  gap: 22px;
  animation: infiniteFeedbackScroll 48s linear infinite;
  will-change: transform;
}

/* Pause scroll when hovering over the marquee track */
.testimonials-marquee-wrapper:hover .testimonials-marquee-track,
.testimonials-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes infiniteFeedbackScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.testimonials-track-group {
  display: flex;
  gap: 22px;
  flex-shrink: 0;
}

/* ========================================================
   TESTIMONIAL CARD & HOVER EFFECTS
   ======================================================== */

.feedback-card {
  position: relative;
  width: 270px;
  flex-shrink: 0;
  background: #192e2a;
  border: 1.5px solid rgba(48, 89, 84, 0.85);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
              box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
              border-color 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  user-select: none;
}

/* Hover Action for Card / Image */
.feedback-card:hover {
  transform: translateY(-8px) scale(1.025);
  border-color: #16d2c9;
  box-shadow: 0 18px 38px rgba(22, 210, 201, 0.28), 0 6px 14px rgba(0, 0, 0, 0.45);
}

.feedback-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feedback-image-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #0f1c19;
  overflow: hidden;
}

.feedback-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease, filter 0.35s ease;
}

/* Image slight zoom on hover */
.feedback-card:hover .feedback-image-box img {
  transform: scale(1.06);
}

/* Hover Overlay with View Prompt */
.feedback-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 30, 27, 0.3) 0%, rgba(14, 30, 27, 0.85) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.feedback-card:hover .feedback-hover-overlay {
  opacity: 1;
  visibility: visible;
}

.hover-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #16d2c9;
  color: #0d211d;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(22, 210, 201, 0.6);
  transform: translateY(10px);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.feedback-card:hover .hover-action-btn {
  transform: translateY(0);
}

/* Card Caption / Meta */
.feedback-card-caption {
  padding: 12px 14px 14px 14px;
  background: #142824;
  border-top: 1px solid rgba(48, 89, 84, 0.5);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.student-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.student-name {
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #16d2c9;
  font-size: 11px;
  font-weight: 600;
  background: rgba(22, 210, 201, 0.12);
  padding: 2px 7px;
  border-radius: 12px;
  flex-shrink: 0;
}

.student-rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.student-stars {
  color: #ffb703;
  font-size: 11.5px;
  display: inline-flex;
  gap: 2px;
}

.click-hint {
  font-size: 11px;
  color: #8bbbb3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* User interaction guide under the track */
.feedback-marquee-footer {
  text-align: center;
  margin-top: 15px;
  font-size: 13px;
  color: #82aba3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.feedback-marquee-footer span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.feedback-marquee-footer i {
  color: #16d2c9;
}

/* ========================================================
   LIGHTBOX MODAL POPUP
   ======================================================== */

.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.feedback-modal.show {
  display: flex;
}

.feedback-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 18, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.feedback-modal.show .feedback-modal-backdrop {
  opacity: 1;
}

.feedback-modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  max-height: 94vh;
  background: #142824;
  border: 1.5px solid rgba(22, 210, 201, 0.4);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 45px rgba(22, 210, 201, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.92) translateY(12px);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
}

.feedback-modal.show .feedback-modal-dialog {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Modal Header */
.feedback-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #19312c;
  border-bottom: 1px solid rgba(48, 89, 84, 0.8);
}

.modal-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-header-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(22, 210, 201, 0.15);
  border: 1px solid rgba(22, 210, 201, 0.4);
  color: #16d2c9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.modal-title-group h4, .modal-title-group h3 {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.modal-title-group span {
  font-size: 12px;
  color: #16d2c9;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Prominent Close Button */
.feedback-modal-close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2f4f1;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.feedback-modal-close i {
  font-size: 15px;
  transition: transform 0.25s ease;
}

.feedback-modal-close:hover {
  background: #e63946;
  border-color: #e63946;
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.45);
}

.feedback-modal-close:hover i {
  transform: rotate(90deg);
}

/* Modal Body */
.feedback-modal-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d1a17;
  padding: 12px;
  overflow: hidden;
  max-height: calc(88vh - 120px);
}

.modal-image-holder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.modal-image-holder img {
  max-width: 100%;
  max-height: calc(85vh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  user-select: none;
}

/* Navigation Arrows inside Modal */
.modal-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(14, 30, 27, 0.75);
  border: 1.5px solid rgba(22, 210, 201, 0.45);
  color: #ffffff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
}

.modal-nav-arrow:hover {
  background: #16d2c9;
  color: #0d211d;
  border-color: #16d2c9;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 18px rgba(22, 210, 201, 0.5);
}

.modal-nav-arrow.prev {
  left: 14px;
}

.modal-nav-arrow.next {
  right: 14px;
}

/* Modal Footer */
.feedback-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: #19312c;
  border-top: 1px solid rgba(48, 89, 84, 0.8);
  font-size: 12.5px;
  color: #92bfb8;
}

.modal-counter {
  font-weight: 600;
  color: #16d2c9;
  background: rgba(22, 210, 201, 0.12);
  padding: 3px 10px;
  border-radius: 12px;
}

.modal-instructions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ========================================================
   RESPONSIVE BREAKPOINTS
   ======================================================== */

@media (max-width: 768px) {
  #feedback_section {
    padding: 40px 0 35px 0;
  }

  #feedback_section .section_title {
    font-size: 24px;
  }

  .feedback-subtitle {
    font-size: 14px;
    padding: 0 10px;
  }

  .feedback-card {
    width: 220px;
    border-radius: 14px;
  }

  .student-name {
    font-size: 13.5px;
  }

  .hover-action-btn {
    font-size: 12px;
    padding: 7px 14px;
  }

  .feedback-modal-dialog {
    max-width: 95vw;
    border-radius: 16px;
  }

  .modal-nav-arrow {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .modal-nav-arrow.prev {
    left: 8px;
  }

  .modal-nav-arrow.next {
    right: 8px;
  }

  .modal-instructions {
    display: none;
  }
}

@media (max-width: 480px) {
  .feedback-card {
    width: 200px;
  }

  .feedback-modal-header {
    padding: 10px 14px;
  }

  .modal-header-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .modal-title-group h4, .modal-title-group h3 {
    font-size: 14px;
  }

  .feedback-modal-close span {
    display: none;
  }

  .feedback-modal-close {
    padding: 6px 10px;
  }
}
