@font-face {
  font-family: dana;
  font-style: normal;
  font-weight: bold;
  src: url('../woff2/Dana-Bold.woff2') format('woff2'),
       url('../woff/Dana-Bold.woff') format('woff');
}
@font-face {
  font-family: dana;
  font-style: normal;
  font-weight: normal;
  src: url('../woff2/Dana-Regular.woff2') format('woff2'),
       url('../woff2/Dana-Regular.woff') format('woff');
}

body {
  font-family: dana !important;
  direction: rtl;
}

h1, h2, h3, h4, h5, h6, input, textarea {
  font-family: dana !important;
}

h1 {
  font-weight: bold;
}






.teacher-profile-page {
  position: relative;
  min-height: 100vh;
  background-color: #f5f5f5;
  padding: 80px 0 0 0;
}

.teacher-header {
  position: relative;
  color: white;
  padding: 0;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #2b194d;
  margin: auto;
  border-radius: 10px;
  max-width: 800px;
  height: 300px;
  margin-top: 0;
}

.teacher-profile-info {
  position: relative;
  z-index: 2;
  text-align: right;
  width: 100%;
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.teacher-avatar {
  width: 40%;
  height: auto;
  position: absolute;
  bottom: 0;
  left: -70px;
  z-index: 1;
}

.teacher-details {
  width: 60%;
  color: #333;
  z-index: 2;
  padding: 3rem;
}

.teacher-details h2 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 1rem;
  white-space: nowrap;
}

.teacher-details p {
  font-size: 1rem;
  line-height: 1.5;
  color: #fff;
}

.navbala {
  display: none;
}

.back-button {
  position: absolute;
  top: 1rem;
  right: calc((100% - 800px) /2);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  z-index: 100;
  background: #532e91;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.back-button:hover {
  transform: translateX(-5px);
}

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.chapters-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chapter {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.chapter-header {
  padding: 1.5rem;
  cursor: pointer;
  background-color: rgba(132, 61, 100, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.chapter-header:hover {
  background-color: rgba(132, 61, 100, 0.1);
}

.chapter-title-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.chapter-title {
  font-weight: bold;
  color: #843d64;
}

.member-badge {
  background-color: #843d64;
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.chapter-toggle {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.chapter-toggle.rotate-180 {
  transform: rotate(180deg);
}

.chapter-content {
  display: none;
  padding: 1.5rem;
}

.chapter-content.active {
  display: block;
  animation: slideDown 0.3s ease-out;
}

.section {
  margin-bottom: 1rem;
}

.section:last-child {
  margin-bottom: 0;
}

button.btn-azmoon-script:hover {
  opacity: 0.8;
}

button.btn-azmoon-script {
  padding: 15px;
  background-color: #532f91;
  color: #ffffffee;
  font-family: 'dana';
  border: 1px solid;
  margin: 0px auto;
  display: block;
  border-radius: 7px;
}

.section-header {
  width: 98%;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8f9fa;
  border: none;
  border-radius: 0.5rem;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.section-header:hover {
  background-color: #edf2f7;
  transform: translateX(-5px);
}

.section-header.locked {
  cursor: pointer;
  background-color: rgba(132, 61, 100, 0.05);
}

.section-header.locked:hover {
  background-color: rgba(132, 61, 100, 0.1);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-icon {
  width: 20px;
  height: 20px;
}

.chevron-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.chevron-icon.rotate-180 {
  transform: rotate(180deg);
}

.section-content {
  display: none;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  margin-top: 0.5rem;
}

.section-content.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

.member-only-message {
  text-align: center;
  padding: 3rem 2rem;
  background-color: #f8f9fa;
  border-radius: 0.5rem;
}

.member-only-message p {
  color: #4a5568;
  margin-bottom: 1.5rem;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.teacher-profile {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 2rem;
}

.profile-card {
  background: linear-gradient(135deg, #843d64, #5d2d7b);
  color: white;
  width: 400px;
  padding: 3rem 1.5rem;
  position: relative;
  border-radius: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  overflow: hidden;
}

.profile-image {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 180px;
  z-index: 10;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.profile-content {
  margin-top: 100px;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .teacher-profile-page{
    padding-top: 75px;
    overflow: hidden;
  }
  .teacher-header {
    flex-direction: row;
    padding: 1rem 1rem 0 1rem;
    height: 180px;
  }
  
  .teacher-details h2 {
    font-size: 1.2rem;
  }
  .teacher-details p {
    font-size: 0.8rem;
    line-height: 1.3;
    color: #fff;
  }

  .teacher-profile-info {
    max-height: 100%;
    max-width: 100%;
  }
  .teacher-avatar{
    width: 250px;
  }

  .teacher-details {
    width: calc(100% - 100px);
    padding: 1rem;
            margin-right: -22px;
        margin-top: -29px;
  }

  .main-content {
    padding: 1rem;
  }

  .chapter-header {
    padding: 1rem;
  }

  .section-header {
    padding: 0.75rem;
  }
  .back-button {
    top: 15px;
    right: 1rem;
  }
}
@media (max-width: 420px) {
  .teacher-avatar{
    width: 220px;
    left: -60px;
  }
}

.profile-card {
    background: linear-gradient(135deg, #843d64, #5d2d7b);
    color: white;
    width: 400px;
    padding: 3rem 1.5rem;
    position: relative;
    border-radius: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    overflow: hidden;
}

.profile-image {
    position: absolute;
    top: -60px; /* خارج شدن تصویر از بالای کارت */
    left: 50%;
    transform: translateX(-50%);
    width: 180px; /* بزرگ کردن عکس */
    height: 180px;
    z-index: 10; /* نمایش روی متن */
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.profile-content {
    margin-top: 100px; /* فاصله مناسب بدون تأثیرگذاری تصویر */
    font-size: 1rem;
    position: relative;
    z-index: 1;
}








.content-toggle-container {
    border-radius: 12px;
    overflow: hidden;
    max-width: 800px; /* عرض را کنترل می‌کند */
    margin: 0px auto 26px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.content-toggle-header {
    display: flex;
    justify-content: space-between; /* آیکون و متن در دو سمت */
    align-items: center;
    padding: 12px 20px;
    background: #532e91;
    color: white;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s;
    border-radius: 12px;
}

.content-toggle-header:hover {
    background: #6b2c8c;
    box-shadow: 0px 4px 12px rgba(107, 44, 140, 0.3);
}

.toggle-title {
    flex: 1;
    font-size: 16px;
    font-weight: bold;
}

.toggle-right-content {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white; /* پس‌زمینه جدا برای آیکون */
    padding: 5px 10px;
    border-radius: 8px;
}

.commicon {
    width: 35px;
    height: 35px;
}

.toggle-icon {
    transition: transform 0.5s;
    font-size: 18px;
    color: #843d64;
}

.rotate-180 {
    transform: rotate(180deg);
}

.content-toggle-content {
    display: none; /* پیش‌فرض بسته باشد */
    padding: 12px;
    background: #f9f9f9;
    border-top: 1px solid #ddd;
}

