body { font-family: 'Vazirmatn', Tahoma, sans-serif; }
:root {
  --gap: 24px;
  --box-radius: 20px;
}

/* Wrapper به Grid تبدیل شد */
.tp-wrapper.grid {
  display: grid;
  grid-template-columns: 380px 1fr; /* ستون ثابت پروفایل + ستون انعطاف‌پذیر ویدئو */
  grid-template-areas: "profile videos";
  gap: 48px;
  align-items: start;
  padding: 40px 20px;
  direction: rtl;
}

/* دو حالت: پروفایل راست/چپ فقط با تغییر کلاس روی wrapper */
.tp-wrapper.grid.profile-right {
  grid-template-columns: 560px 1fr; /* ستون اول پهن‌تر */
  grid-template-areas: "profile videos";
}
.tp-wrapper.grid.profile-left {
  grid-template-columns: 1fr 380px;
  grid-template-areas: "videos profile";
}

/* ریسپانسیو: در موبایل زیر هم بیفتند */
@media (max-width: 980px) {
  .tp-wrapper.grid,
  .tp-wrapper.grid.profile-left,
  .tp-wrapper.grid.profile-right {
    grid-template-columns: 1fr;
    grid-template-areas:
      "profile"
      "videos";
    gap: 24px;
    padding: 24px 16px;
  }
}

/* پروفایل */
.tp-profile-box {
  padding: 32px;
  border: 1px solid #eee;
  border-radius: var(--box-radius);
  text-align: center;
  background: #fdfdfd;
  box-shadow: 0 0 10px rgba(0,0,0,0.03);
}
.tp-avatar {
  width: 120px; height: 120px; border-radius: 50%;
  object-fit: cover; margin-bottom: 16px;
}
.tp-name { font-size: 20px; font-weight: 700; margin: 0 0 6px; }
.tp-location { font-size: 14px; color: #777; margin-bottom: 12px; }
.tp-rating { font-size: 22px; color: #f4b400; margin-bottom: 24px; }
.tp-link-box {
  display: flex; align-items: center; border: 1px solid #ffa500;
  border-radius: 8px; overflow: hidden; font-size: 13px;
}
.tp-link-box input {
  flex: 1; padding: 8px; border: none; background: #fff; direction: ltr;
}
.tp-copy-btn {
  background: #fff; border: none; color: #333; padding: 8px 12px;
  border-right: 1px solid #ffa500; cursor: pointer;
}
.tp-open-link {
  padding: 8px 12px; color: #805500; background: #fff8e1;
  border-right: 1px solid #ffa500; text-decoration: none; white-space: nowrap;
}
.tp-link-disabled {
  width: 100%; padding: 10px 12px; color: #777; background: #f7f7f7;
}

/* ویدئوها */
.tp-videos-section { display: flex; flex-direction: column; }
.tp-video-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .tp-video-row { grid-template-columns: 1fr; } }

.tp-video-card {
  position: relative;
  border-radius: 12px; overflow: hidden;
  background: #000; aspect-ratio: 16/9;
}
.tp-video-card video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.tp-video-empty {
  background: #ccc; color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center; height: 100%;
}

/* دکمه‌ها زیر ویدئو */
.tp-video-buttons-row {
  display: flex; gap: 12px; margin-top: 16px; justify-content: flex-end; flex-wrap: wrap;
}
.tp-btn {
  font-size: 13px; padding: 10px 16px; border-radius: 20px; border: none; font-weight: 600; white-space: nowrap;
}
.tp-btn.consult { background:#333; color:#fff; text-decoration:none; }
.tp-btn.refund {
  background: #e1ffe7;
  border: 1px solid #ffc107;
  border-radius: 12px;
  color: #795548;
  padding: 10px 20px;
  font-weight: bold;
  font-size: 14.5px;
  text-align: center;
  display: inline-block;
  animation: blink-refund 2.5s infinite;
  box-shadow: 0 0 6px rgba(255, 193, 7, 0.35);
  transition: all 0.3s ease-in-out;
  cursor: default;
}

@keyframes blink-refund {
  0%, 100% { background-color: #fff8e1; }
  50% { background-color: #eee6cf; }
}

.tp-resume-section {
  margin-top: 32px;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tp-resume-item {
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: all 0.3s ease;
}

.tp-resume-header {
  cursor: pointer;
  padding: 14px 20px;
  background: #f5f5f5;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
}

.tp-resume-body {
  padding: 16px 20px;
  display: none;
  font-size: 14px;
  line-height: 2;
  color: #333;
}

.tp-resume-item.active .tp-resume-body {
  display: block;
  text-align: justify;
}

.tp-resume-item .arrow {
  font-size: 18px;
  color: #888;
}


.tp-resume-list {
  list-style: none;
  padding: 0;
  margin: 0;
  direction: rtl;
}

.tp-resume-list li {
  background-color: #f9f9f9;
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: 10px;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Vazirmatn", sans-serif;
  transition: background-color 0.3s ease;
}

.resume-text {
  flex: 1;
  padding-left: 12px;
  text-align: right;
}

.tp-resume-list li:hover {
  background-color: #f3f3f3; /* هاور خیلی نرم با تناژ زرد بسیار روشن */
}

.verified-badge {
  background-color: #e1f5e1;
  color: #137c17;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  white-space: nowrap;
}


.section-title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
  margin-top: 40px;
  direction: rtl;
  text-align: right;
}

.class-box {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 12px;
  border: 1px solid #ddd;
}

.class-list {
  list-style: none;
  padding: 0;
  margin: 0;
  direction: rtl;
}

.class-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 14px 18px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid #ffd23f; /* خط زرد نازک */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-size: 16px;
}

.class-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(181, 29, 29, 0.06);
}

.class-link {
  background-color: #ffc107;
  color: #000;
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.class-link:hover {
  background-color: #ffb300;
}

.slot-list {
  display: flex;
  flex-direction: column;
  gap: 0; /* حذف فاصله قبلی؛ حالا با border جدا می‌کنیم */
  margin-top: 20px;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

/* هر ردیف روز + ساعت */
.slot-row {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}

.slot-row:last-child {
  border-bottom: none;
}

/* ستون روز */
.slot-day {
  width: 100px;
  flex-shrink: 0;
  font-weight: 600;
  color: #444;
  background: #fafafa;
  padding: 8px 12px;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  border: 1px solid #ddd;
  line-height: 1.5;
  white-space: nowrap;
  text-transform: uppercase
}

/* مجموعه ساعت‌ها */
.slot-times {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-inline-start: 12px;
}

/* باکس ساعت */
.slot-cell {
  padding: 6px 12px;
  font-size: 10px;
  border-radius: 8px;
  font-weight: 500;
  border: 1px solid #ddd;
  background: #f9f9f9;
  color: #333;
  transition: all 0.2s ease;
}

.slot-cell:hover {
  background: #eee;
  cursor: pointer;
}

/* حالت‌های مختلف */
.slot-cell[data-status="available"] {
  background: #eaf4e7;
  color: #1a571a;
  border-color: #c5e3c0;
}

.slot-cell[data-status="reserved"] {
  background: #fff2cc;
  color: #8b5a00;
  border-color: #ffe599;
}



.slot-range {
  background: #1d1c1c;
  padding: 8px 12px;
  border-radius: 8px;
  margin: 4px 4px;
  display: inline-block;
  font-weight: 400;
  color: #ffc107;
  font-size:14px;
  line-height:1.5;
  transition:all 0.2s ease;
}


.availability-wrap {
  background:#fff;
  border-radius:16px;
  padding:24px;
  margin-top:24px;
  box-shadow:0 1px 6px rgba(0,0,0,.06);
}

.avail-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}

.avail-title { font-weight:700; font-size:18px; color:#333; }
.avail-legend {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.legend-item {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color:#555;
}
.legend-color {
  width:18px;
  height:18px;
  border-radius:6px;
  border:1px solid #ddd;
}

.availability-title {
  font-size: 24px;
  font-weight: 800;
  color: #444;
  margin-bottom: 24px;
  margin-top: 80px;
  padding-right: 8px;
  direction: rtl;
  text-align: right;
}

.availability-info-box {
  background: #fefefe;
  border-radius: 20px;
  padding: 28px 24px;
  margin-bottom: 32px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  direction: rtl;
  text-align: right;
  border: 1px solid #eee;
}

.availability-seasons {
  display: grid;
  gap: 18px;
}

.availability-season {
  margin: 0;
  padding: 0;
}

.availability-season-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 8px;
}

.availability-season-header strong {
  color: #252525;
  font-size: 15px;
}

.availability-season-header span {
  color: #806000;
  background: #fff7d6;
  border: 1px solid #f2d56b;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  white-space: nowrap;
}

.availability-season .slot-list {
  margin-top: 0;
}

.availability-empty {
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px dashed #d9d9d9;
  border-radius: 10px;
  background: #fafafa;
  color: #777;
  text-align: center;
  font-size: 13px;
}

@media (max-width: 620px) {
  .availability-season-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}





.legend-row {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  background: #f3f3f3;
  padding: 8px 14px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.legend-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #fff;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}

.legend-label {
  margin-top: 2px;
}

.legend-divider {
  border-bottom: 1px dashed #ffa50099;
  margin: 10px 0 20px;
}

.legend-description p {
  font-size: 13.8px;
  color: #666;
  line-height: 2;
  margin: 0 0 8px;
}


.course-section-title {
  font-size: 22px;
  font-weight: bold;
  color: #444;
  margin: 40px 0 20px;
  padding-right: 8px;
  direction: rtl;
}

.course-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  direction: rtl;
}

.course-card {
  width: 280px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: all 0.2s ease-in-out;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.course-image {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  border-radius: 6px;
}

.badge.top-left { top: 12px; right: 12px; }
.badge.top-right { top: 12px; left: 12px; }

.badge.yellow { background-color: #ffc107; color: #000; }
.badge.purple { background-color: #673ab7; }
.badge.discount { background-color: #ff5722; }

.course-info {
  padding: 16px;
  text-align: right;
}

.course-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.course-meta {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
  line-height: 1.8;
}

.course-teacher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.teacher-pic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #ccc;
}

.teacher-name {
  font-size: 13.5px;
  color: #444;
}

.course-price {
  font-size: 14px;
  margin-bottom: 12px;
}

.original-price {
  text-decoration: line-through;
  color: #d00;
  margin-left: 8px;
  font-weight: bold;
}

.final-price {
  font-weight: bold;
  color: #222;
}

.btn-view-course {
  display: inline-block;
  padding: 8px 16px;
  background: #444;
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s ease-in-out;
}

.btn-view-course:hover {
  background: #000;
}

.review-item {
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 18px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.review-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.review-top .student {
  font-weight: bold;
  font-size: 15px;
  color: #333;
}

.review-top .badge {
  font-size: 13px;
  background: #eee;
  color: #444;
  border-radius: 6px;
  padding: 2px 10px;
  margin: 4px 8px;
}

.review-text {
  font-size: 14px;
  color: #444;
  line-height: 1.8;
}

.review-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.student-info {
  display: flex;
  flex-direction: column;
}

.student-info .student {
  font-weight: bold;
  font-size: 15px;
  color: #333;
}

.student-info .badge {
  font-size: 13px;
  background: #eee;
  color: #444;
  border-radius: 6px;
  padding: 2px 10px;
  margin-top: 6px;
  display: inline-block;
  width: fit-content;
}
