@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('../../woff/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;
  }

  /* اطمینان از اعمال فونت دانا به تمام عناصر متنی در صفحه محصول */
  p, span, div, a, button, li, td, th {
    font-family: dana !important;
  }
  
  /* فونت دانا برای عناصر خاص ووکامرس */
  .product_title, .price, .woocommerce-product-details__short-description, 
  .woocommerce-tabs, .related.products h2, .woocommerce-product-attributes-item__label, 
  .woocommerce-product-attributes-item__value, .woocommerce-review__author, 
  .woocommerce-review__published-date, .woocommerce-Reviews-title {
    font-family: dana !important;
  }
  
  /* فونت دانا برای دکمه‌های خاص */
  button.enroll-button {
    font-family: 'dana' !important;
  }

  /* اطمینان از اینکه تمام المنت‌های متنی در محتوای محصول فونت دانا دارند */
  .product-info-box, .product-info-item, .product-info-label, 
  .product-info-price, .product-info-actions, .product-info-status,
  .content-toggle-container, .content-toggle-header, .content-toggle-content,
  .toggle-title, .comments-toggle-header, .comments-toggle-content {
    font-family: dana !important;
  }

  /* فونت دانا برای بخش نظرات */
  .comment-text, .comment-author, .comment-metadata, 
  .comment-content, .comment-reply-title, .comment-form label, 
  .comment-form input, .comment-form textarea, .comment-form button {
    font-family: dana !important;
  }
  
  .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;
    overflow-x: hidden;
  }
  
  .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) {
    body {
      overflow-x: hidden;
      width: 100%;
      max-width: 100vw;
    }
  
    .teacher-profile-page {
      padding-top: 75px;
      overflow-x: hidden;
      width: 100%;
      max-width: 100vw;
    }
  
    .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;
    }
  
    .product-info-box {
      padding: 15px;
      margin-bottom: 20px;
      border-radius: 10px;
      width: calc(100% - 30px);
      margin-left: auto;
      margin-right: auto;
    }
  
    .product-info-box::before {
      width: 5px;
    }
  
    .product-info-item {
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 8px;
      padding-bottom: 10px;
      margin-bottom: 10px;
    }
    
    .product-info-actions {
      flex-direction: column;
      width: 100%;
    }
    
    .product-info-price, 
    .product-info-status {
      align-self: center;
      margin-top: 5px;
      display: inline-flex;
      justify-content: center;
    }
  
    .product-info-label {
      justify-content: center;
      width: 100%;
      margin-bottom: 5px;
    }
  
    .product-info-label::before {
      margin-left: 0;
    }
  
    .product-info-actions .enroll-button, 
    .product-info-actions .share-button {
      padding: 10px;
      width: 100%;
    }
  
    .product-info-actions .enroll-button svg,
    .product-info-actions .share-button svg {
      width: 16px;
      height: 16px;
    }
  
    .content-toggle-container,
    .chapters-container {
      width: calc(100% - 30px);
      padding: 0;
      margin-left: auto;
      margin-right: auto;
    }
  
    .main-content {
      padding: 1rem 0.5rem;
      overflow-x: hidden;
      width: 100%;
      max-width: 100vw;
      box-sizing: border-box;
    }
  
    .product-info-price del, 
    .product-info-price ins {
      display: block;
      text-align: center;
      margin: 5px auto;
    }
    
    .product-info-price del {
      font-size: 14px;
      margin-left: 0;
    }
    
    .product-info-price ins {
      font-size: 18px;
      padding: 5px 10px;
      margin-top: 8px;
    }
  }
  @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;
  }
  
  /* باکس اطلاعات محصول */
  .product-info-box {
      background-color: #fff;
      border-radius: 12px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
      margin: 0 auto 26px;
      padding: 20px;
      direction: rtl;
      text-align: right;
      max-width: 800px;
      position: relative;
      overflow: hidden;
      animation: fadeIn 0.5s ease;
      box-sizing: border-box;
  }
  
  @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
  }
  
  .product-info-box::before {
      content: '';
      position: absolute;
      top: 0;
      right: 0;
      width: 8px;
      height: 100%;
      background: #843d64;
      border-radius: 6px 0 0 6px;
  }
  
  .product-info-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 15px;
      border-bottom: 1px solid #eee;
      padding-bottom: 15px;
  }
  
  .product-info-label {
      font-weight: bold;
      color: #333;
      font-size: 16px;
      display: flex;
      align-items: center;
      gap: 8px;
  }
  
  .product-info-label::before {
      content: "📌";
      font-size: 18px;
  }
  
  .product-info-price {
      font-size: 20px;
      color: #843d64;
      font-weight: bold;
      background-color: rgba(132, 61, 100, 0.05);
      padding: 5px 12px;
      border-radius: 8px;
      transition: all 0.3s ease;
  }
  
  .product-info-price:hover {
      background-color: rgba(132, 61, 100, 0.1);
      transform: translateY(-2px);
  }
  
  .product-info-actions {
      display: flex;
      justify-content: space-between;
      gap: 10px;
  }
  
  .product-info-actions .enroll-button,
  .product-info-actions .share-button {
      padding: 12px 15px;
      border-radius: 8px;
      cursor: pointer;
      font-weight: bold;
      border: none;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: all 0.3s ease;
  }
  
  .product-info-actions .enroll-button {
      background-color: #843d64;
      color: white;
      flex: 2;
      position: relative;
      overflow: hidden;
      animation: pulse 2s infinite;
  }
  
  @keyframes pulse {
      0% {
          box-shadow: 0 0 0 0 rgba(132, 61, 100, 0.4);
      }
      70% {
          box-shadow: 0 0 0 10px rgba(132, 61, 100, 0);
      }
      100% {
          box-shadow: 0 0 0 0 rgba(132, 61, 100, 0);
      }
  }
  
  .product-info-actions .enroll-button::after {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: rgba(255, 255, 255, 0.2);
      transition: 0.6s;
      transform: skewX(-15deg);
  }
  
  .product-info-actions .enroll-button:hover::after {
      left: 100%;
  }
  
  .product-info-actions .share-button {
      background-color: #f5f5f5;
      color: #333;
      flex: 1;
  }
  
  .product-info-actions .enroll-button:hover {
      background-color: #6b2c8c;
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(132, 61, 100, 0.2);
  }
  
  .product-info-actions .share-button:hover {
      background-color: #e0e0e0;
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .product-info-status {
      font-size: 14px;
      padding: 5px 12px;
      border-radius: 8px;
      display: inline-flex;
      align-items: center;
      font-weight: bold;
      position: relative;
  }
  
  .product-info-status::before {
      content: '';
      display: inline-block;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      margin-left: 6px;
  }
  
  .product-info-status.in-stock {
      background-color: rgba(72, 187, 120, 0.1);
      color: #38a169;
  }
  
  .product-info-status.in-stock::before {
      background-color: #38a169;
  }
  
  .product-info-status.out-of-stock {
      background-color: rgba(245, 101, 101, 0.1);
      color: #e53e3e;
  }
  
  .product-info-status.out-of-stock::before {
      background-color: #e53e3e;
  }
  
  /* New status classes */
  .product-info-status.ongoing {
      background-color: rgba(66, 153, 225, 0.1);
      color: #3182ce;
  }
  
  .product-info-status.ongoing::before {
      background-color: #3182ce;
  }
  
  .product-info-status.not-started {
      background-color: rgba(226, 232, 240, 0.3);
      color: #718096;
  }
  
  .product-info-status.not-started::before {
      background-color: #718096;
  }
  
  .product-info-status.completed {
      background-color: rgba(154, 230, 180, 0.2);
      color: #2f855a;
  }
  
  .product-info-status.completed::before {
      background-color: #2f855a;
  }
  
  /* باکس‌های محتوا */
  .content-toggle-container,
  .product-info-box,
  .chapters-container,
  .comments-toggle-container {
      max-width: 800px;
      margin-left: auto;
      margin-right: auto;
      width: 100%;
      box-sizing: border-box;
  }
  
  /* استایل‌های قیمت تخفیف خورده */
  .product-info-price del {
      display: inline-block;
      color: #999;
      text-decoration: line-through;
      font-size: 16px;
      position: relative;
      margin-left: 8px;
  }
  
  .product-info-price del::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 0;
      right: 0;
      height: 2px;
      background-color: #e74c3c;
      transform: rotate(-8deg);
  }
  
  .product-info-price ins {
      display: inline-block;
      text-decoration: none;
      font-size: 20px;
      font-weight: bold;
      color: #e74c3c;
      background-color: rgba(231, 76, 60, 0.05);
      padding: 2px 8px;
      border-radius: 6px;
      transition: all 0.3s ease;
  }
  
  .product-info-price ins:hover {
      background-color: rgba(231, 76, 60, 0.1);
      transform: translateY(-2px);
  }
  
  @media (max-width: 768px) {
      .product-info-price del, 
      .product-info-price ins {
          display: block;
          text-align: center;
          margin: 5px auto;
      }
      
      .product-info-price del {
          font-size: 14px;
          margin-left: 0;
      }
      
      .product-info-price ins {
          font-size: 18px;
          padding: 5px 10px;
          margin-top: 8px;
      }
  }
  
  .section-link-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    cursor: pointer;
    background-color: rgba(83, 47, 145, 0.05);
    color: inherit;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }
  
  .section-link-header:hover {
    background-color: rgba(83, 47, 145, 0.1);
    transform: translateX(-5px);
  }
  
  .external-link-icon {
    color: #532e91;
    stroke-width: 2;
    transition: transform 0.2s ease;
  }
  
  .section-link-header:hover .external-link-icon {
    transform: scale(1.2);
  }
  
  