body {
    font-family: 'Vazirmatn', Arial, sans-serif;
    line-height: 1.6;
    margin: 20px;
}

.toc {
    background-color: #e5f5f8;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    border:1px solid #f0f0f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.toc-title {
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    cursor: pointer;
    user-select: none;
}

.toc-title::after {
  content: " ▼";
  font-size: 16px;
  transition: transform 0.3s ease;
}

.toc-title.open::after {
  content: " ▲";
}

#tocList {
    text-align: right;
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

#tocList.open {
    max-height: 500px;
}

#tocList li {
    padding: 8px 0;
}

#tocList a {
    text-decoration: none;
    color: #0a8399;
    font-size: 18px;
}

h2 {
    color: #18444c;
}

h3 {
    color: #eac382;
}

.section {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    border:1px solid #f0f0f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

a {
    color: #21130d;
    text-decoration: none;
}

a.external {
    color: #729ffc;
}

a.internal {
    color: #729ffc;
}

.audio-container, .video-container {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.audio-container audio {
    width: 100%;
    max-width: 500px;
}

.video-container video {
    width: 100%;
    max-width: 700px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

img {  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px auto;
}

.faq-container {  max-width: 700px;
  margin: auto;
  font-family: sans-serif;
}

.faq-item {
  background: #049ebb;
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0,0,0,0.10);
}

.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 15px;
}

.faq-header h3 {
  margin: 0;
  font-size: 16px;
  color: #ffffff;
}

/* The arrow */
.faq-arrow {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-left: 2px solid #555;
  border-bottom: 2px solid #555;
  transform: rotate(-45deg); /* points right */
  transition: transform 0.3s ease;
  margin-left: 10px;
}

/* Rotate arrow when active */
.faq-item.active .faq-arrow {
  transform: rotate(45deg); /* points down */
}

/* FAQ content */
.faq-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.2s ease, padding 0.2s ease;
  color: #000202;
}

.faq-item.active .faq-content {
  max-height: 500px; /* adjust if content is long */
  padding: 15px;
}

.faq-content p {
  margin: 0;
}