.student-reviews-wrapper {
    display: flex;
    flex-wrap: nowrap;          /* مهم: جلوگیری از رفتن به خط بعد */
    gap: 20px;
    overflow-x: auto;           /* اسکرول افقی */
    overflow-y: hidden;
    padding: 20px 0;
    scroll-behavior: smooth;    /* اسکرول نرم */
    scroll-snap-type: x mandatory;
}

.student-card {
    flex: 0 0 413px;            /* جلوگیری از کوچک شدن */
    height: 319px;
    color:#060097;
    background: #603B96;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-color: #060097;
    border-style: solid;
    border-width: 2px;
    scroll-snap-align: start;

}




.student-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}



.student-card-inner h4 {
    margin: 10px 0 5px;
    font-weight: 600;
    color:#ffff;
}
.inner{
    background-color: #3D1E6C;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    border-radius: 36px;
    padding: 6px;
    margin-top: 35px;
    padding-bottom: 6px;
}
.micIcon{
    background-color: #603B96;
    border-radius: 50%;
    padding: 10px 10px 5px 10px;
}
.student-card a {
    display: inline-block;
    padding: 8px 16px;
   
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.student-card a:hover {
    background: #005f8d;
}

.video-popup-overlay {
  display: none;               /* مخفی در ابتدا */
  position: fixed;
  inset: 0;                     /* بالا، پایین، چپ، راست = 0 */
  background: rgba(0,0,0,0.7); /* بک‌گراند نیمه شفاف */
  z-index: 9999;
  display: flex;                /* flex container */
  justify-content: center;      /* وسط افقی */
  align-items: center;          /* وسط عمودی */
}

.video-popup-content {
  position: relative;
  background: transparent;
  border-radius: 10px;
  padding: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-popup-content iframe {
  width: 413px;
  height: 319px;
  border: 0;
  border-radius: 8px;
  display: block;
}

.close-popup {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #222;
  color: #fff;
  border: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  text-align: center;
  cursor: pointer;
}
/* اسکرول نرم */
.student-reviews-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0;
    scroll-behavior: smooth;
    scrollbar-width: none;   /* فایرفاکس */
}

.student-reviews-wrapper::-webkit-scrollbar {
    display: none;           /* کروم */
}

/* وقتی ماوس روی اسلایدر میره حرکت متوقف شود */
.student-reviews-wrapper.paused {
    scroll-behavior: auto !important;
}




