/* =========================================
   1. FONTS & VARIABLES
   ========================================= */
@font-face {
  font-family: "Vazir";
  src:
    url("../assets/Font/Vazirmatn-VariableFont_wght.ttf") format("woff2"),
    url("../assets/Font/Vazirmatn-VariableFont_wght.ttf") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "lalezar";
  src:
    url("../assets/Font/Lalezar-Regular.ttf") format("woff2"),
    url("../assets/Font/Lalezar-Regular.ttf") format("woff");
  font-weight: normal;
  font-style: normal;
}

:root {
  --primary-color: #ffd700; /* زرد طلایی */
  --secondary-color: #333333; /* مشکی */
  --background-color: #1a1a1a; /* مشکی تیره */
  --card-color: #2a2a2a; /* خاکستری تیره */
  --text-color: #ffffff; /* سفید */
  --light-gray: #444444; /* خاکستری روشن */
  --border-color: #555555;
  --accent-color: #ffa500; /* نارنجی برای هایلایت */
}

/* =========================================
   2. RESET & GLOBAL STYLES
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Vazir", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.include-header{
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.include-footer{
  width: 100%;
  top: 0;
  z-index: 1;
}

.main-content {
  flex: 1;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px;
}

/* =========================================
   3. SHARED COMPONENTS (Header, Containers)
   ========================================= */

/* استایل مشترک کانتینرهای اصلی هر سه صفحه */
.help-container,
.contact-container,
.terms-container {
  background: var(--card-color);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  margin-bottom: 30px;
  border: 1px solid var(--border-color);
  direction: rtl;
}

/* استایل مشترک هدرهای رنگی بالای صفحات */
.help-header,
.contact-header,
.terms-header {
  text-align: center;
  padding: 40px 20px;

  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--accent-color) 100%
  );
  margin-bottom: 30px;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: var(--secondary-color);
}

.help-header h1,
.contact-header h1,
.terms-header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  font-family: "lalezar", sans-serif;
}

.help-header p,
.contact-header p,
.terms-header p {
  font-size: 1.1rem;
  opacity: 0.9;
  font-family: "vazir", sans-serif;
}

/* =========================================
   4. PAGE: HELP CENTER & FAQ
   ========================================= */
/* .help-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 10px;
} */

.mostAskedQuestions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.mostAskedQuestions h3 {
  margin-bottom: 30px;
  font-size: 0.9rem;
  a{
    text-decoration: none;
    color: var(--primary-color);
  }
}

/* .help-section {
  background: var(--card-color);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 20px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
} */

/* .help-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.2);
  border-color: var(--primary-color);
} */

/* .help-section h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
} */

/* .help-section h3 i {
  margin-left: 10px;
  font-size: 1.5rem;
}

.help-section ul {
  list-style-type: none;
} */

/* .help-section li {
  margin-bottom: 10px;
  padding-right: 10px;
  position: relative;
}

.help-section li:before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  right: -10px;
} */

/* .help-section a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
  display: block;
  padding: 5px 0;
}

.help-section a:hover {
  color: var(--primary-color);
} */

/* FAQ Styles */
.faq-section {
  padding: 20px;
  border-top: 1px solid var(--border-color);
}

.faq-section h2 {
  text-align: center;
  color: var(--primary-color);
  font-size: 1.8rem;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background: var(--card-color);
  transition: all 0.3s ease;
}

.faq-question {
  background: var(--light-gray);
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  transition: background 0.3s;
}

.faq-question:hover {
  background: #555555;
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s,
    padding 0.3s;
  background: var(--card-color);
}

.faq-item.active .faq-answer {
  padding: 15px 20px;
}

/* video styles */

.videoHeadingText {
  text-align: center;
  position: relative;
  color: var(--primary-color);
}

.videoHeadingText::after {
  content: "";
  display: block;
  width: 20%;
  height: 2px;
  background-color: var(--primary-color);
  margin: 4px auto 0;
}

.videoSection {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
  /* border: 2px solid var(--dark); */
  padding: 20px;
  border-radius: 30px;
}

.videoContainer {
  background: var(--secondary-color);
  border-radius: 15px;
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 2px solid var(--border-color);
}

.mainVideoSection {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.videoThumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.videoInformationSection {
  background-color: var(--gray-light);
  color: var(--text-color);
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 15px;
  position: relative;
}

.videoCategory {
  background-color: transparent;
  backdrop-filter: blur(15px);
  color: var(--dark);
  position: absolute;
  left: 5%;
  top: 10%;
  padding: 5px 10px;
  border-radius: 15px;
}

.videoOverlay-hover svg {
  width: 40px;
  height: 40px;
  color: var(--gray-light);
}

.videoOverlay-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
}

.videoContainer:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.2);
  border-color: var(--primary-color);
}

.videoContainer:hover .videoThumbnail {
  transform: scale(1.1);
}

.videoContainer:hover .videoOverlay-hover {
  opacity: 1;
}
/* =========================================
   5. PAGE: CONTACT US
   ========================================= */
.contact-section {
  background: var(--light-gray);
  padding: 10px;
  text-align: center;
  border-top: 1px solid var(--border-color);
  grid-column: span 2;
}

.contact-section h2 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.contact-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.contact-option {
  background: var(--card-color);
  padding: 20px;
  border-radius: 8px;
  width: 200px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  border: 1px solid var(--border-color);
}

.contact-option:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.contact-option i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.contact-option h4 {
  margin-bottom: 10px;
  color: var(--text-color);
}

.contact-option p {
  color: #cccccc;
  font-size: 0.9rem;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 30px;
}

.contact-info,
.contact-form {
  border-radius: 8px;
  padding: 25px;
}

.contact-form {
  background: var(--light-gray);
  border: 1px solid var(--border-color);
}

.contact-info h2,
.contact-form h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.info-item i {
  background: var(--primary-color);
  color: var(--secondary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 15px;
  flex-shrink: 0;
}

.info-text h3 {
  color: var(--text-color);
  margin-bottom: 5px;
}

.info-text p {
  color: #cccccc;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 50%;
  text-decoration: none;
  transition:
    transform 0.3s,
    background 0.3s;
}

.social-link:hover {
  transform: translateY(-3px);
  background: var(--accent-color);
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-color);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  background: var(--card-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: border 0.3s;
  color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  background: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
  width: 100%;
  font-weight: bold;
}

.submit-btn:hover {
  background: var(--accent-color);
}

/* Map & Hours */
.map-section {
  padding: 0 30px 30px;
}

.map-section h2 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.map-placeholder {
  background: var(--light-gray);
  border-radius: 8px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cccccc;
  font-size: 1.1rem;
  border: 1px solid var(--border-color);
}

.office-hours {
  margin-top: 25px;
  background: var(--light-gray);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid var(--border-color);
}

.office-hours h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table tr {
  border-bottom: 1px solid var(--border-color);
}

.hours-table tr:last-child {
  border-bottom: none;
}

.hours-table td {
  padding: 10px 5px;
}

.hours-table td:first-child {
  font-weight: 500;
  color: var(--text-color);
}

.hours-table td:last-child {
  color: #cccccc;
}

/* =========================================
   6. PAGE: TERMS & CONDITIONS
   ========================================= */
.terms-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  padding: 30px;
}

.terms-nav {
  background: var(--card-color);
  border-radius: 8px;
  padding: 20px;
  position: sticky;
  height: max-content;
  top: 0;
  border: 1px solid var(--border-color);
}

.terms-nav h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
}

.terms-nav ul {
  list-style-type: none;
}

.terms-nav li {
  margin-bottom: 10px;
}

.TermsConditions-nav-link {
  color: var(--text-color);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  display: block;
  transition: all 0.3s;
  border-right: 3px solid transparent;
}

.TermsConditions-nav-link:hover {
  background: var(--light-gray);
  color: var(--primary-color);
  border-right-color: var(--primary-color);
}

.TermsConditions-nav-link.active {
  background: var(--primary-color);
  color: var(--secondary-color);
  border-right-color: var(--primary-color);
}

.terms-sections {
  background: var(--card-color);
  border-radius: 8px;
  padding: 10px;
  border: 1px solid var(--border-color);
}

.terms-section {
  margin-bottom: 40px;
  scroll-margin-top: 20px;
}

.terms-section:last-child {
  margin-bottom: 0;
}

.terms-section h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.6rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
}

.section-content h4 {
  color: var(--text-color);
  margin: 20px 0 10px 0;
  font-size: 1.2rem;
}

.section-content p {
  margin-bottom: 15px;
  color: var(--text-color);
  text-align: justify;
}

.section-content ul {
  list-style-type: none;
  margin: 15px 0;
}

.section-content li {
  margin-bottom: 8px;
  padding-right: 20px;
  position: relative;
  color: var(--text-color);
}

.section-content li:before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  right: 0;
}

.section-content strong {
  color: var(--primary-color);
}

.terms-section.active {
  background: var(--light-gray);
  padding: 25px;
  border-radius: 8px;
  border-right: 4px solid var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Acceptance Checkbox & Button */
.acceptance-box {
  background: var(--light-gray);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  margin-top: 30px;
  text-align: center;
}

.checkbox-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-color);
}

.checkbox-container input {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  margin-left: 10px;
  position: relative;
  transition: all 0.3s;
}

.checkbox-container input:checked + .checkmark {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.checkbox-container input:checked + .checkmark:after {
  content: "✓";
  color: var(--secondary-color);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
}

.accept-btn {
  background: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
  min-width: 150px;
  font-weight: bold;
}

.accept-btn:hover:not(:disabled) {
  background: var(--accent-color);
}

.accept-btn:disabled {
  background: var(--border-color);
  cursor: not-allowed;
  color: #888888;
}
/* =========================================
   7. showVideo section 
   ========================================= */

.showVideoContainer {
  max-width: 1500px; /* عرض کلی */
  margin: 20px 100px;
  padding: 20px;
  border-radius: 15px;
  font-family: "Arial", sans-serif; /* فونت */
  display: flex; /* استفاده از فلکس باکس برای چیدمان اصلی */
  flex-wrap: wrap; /* اجازه به ردیف شدن در صورت کمبود فضا */
  gap: 30px; /* فاصله بین بخش اصلی و ویدیوهای مرتبط */
  direction: rtl;
  background-color: var(--secondary-color);
}

.mainVideo-videoInformation {
  flex: 3; /* بخش اصلی بیشتر فضا را بگیرد */
  min-width: 700px; /* حداقل عرض برای جلوگیری از فشرده شدن زیاد */
}

.showVideoInformationSection {
  margin-top: 20px;
  padding: 15px;
  background-color: #f9f9f9; /* رنگ پس‌زمینه برای اطلاعات */
  border-radius: 8px;
}

.mainShowVideo {
  width: 100%;
  height: auto;
  display: block; /* حذف فضای اضافی زیر ویدیو */
  border-radius: 8px; /* گوشه‌های گرد برای ویدیو */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* سایه ملایم */
}

.videoMetaInformationShowSection h1 {
  font-size: 2em;
  margin-bottom: 10px;
  color: #333;
}

.videoCategoryShowSection {
  background-color: #e0e0e0;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
  color: #555;
  display: inline-block; /* برای اعمال margin */
  margin-bottom: 15px;
}

.videoDescriptionShowSection {
  font-size: 1.1em;
  line-height: 1.6;
  color: #444;
}

.relatedCategoryVideoContainer {
  flex: 1.2; /* بخش ویدیوهای مرتبط فضای کمتری بگیرد */
  min-width: 200px; /* حداقل عرض */
}

.relatedVideosList {
  display: flex;
  flex-direction: column; /* نمایش ویدیوهای مرتبط به صورت ستونی */
  gap: 15px; /* فاصله بین هر آیتم ویدیو مرتبط */

  a {
    text-decoration: none;
  }
}

.relatedItems {
  display: flex;
  align-items: center; /* تراز کردن عمودی تصویر و متن */
  background-color: #fff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease-in-out; /* افکت هاور */
  gap: 10px;
}

.relatedItems:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 10px rgba(255, 215, 0, 0.7);
}

.smallRelatedVideoThumbnail img {
  width: 100px;
  height: 70px;
  object-fit: cover; /* پوشش دادن فضا بدون تغییر نسبت */
  border-radius: 4px;
  margin-right: 15px;
}

.relatedVideoInformation {
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* گرفتن فضای باقی‌مانده */
}

.relatedVideoName {
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.relatedVideoCategory {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 5px;
}

.relatedVideoReleaseDate {
  font-size: 0.8em;
  color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
  .showVideoContainer {
    flex-direction: column; /* در صفحه نمایش‌های کوچک، همه چیز زیر هم قرار گیرد */
  }

  .mainVideo-videoInformation,
  .relatedCategoryVideoContainer {
    flex: none; /* حذف فلکس گراو */
    width: 100%; /* عرض کامل */
    min-width: unset; /* حذف حداقل عرض */
  }

  .mainShowVideo {
    max-width: 100%; /* ویدیو هم عرض کامل بگیرد */
  }

  .relatedItems {
    flex-direction: row; /* در حالت ستونی، آیتم های مرتبط را کنار هم نگه داریم */
    flex-wrap: wrap; /* اجازه ردیف شدن */
    justify-content: center;
  }

  .smallRelatedVideoThumbnail img {
    margin-right: 0;
    margin-bottom: 10px; /* اگر کنار هم ردیف نشدند، زیر هم فاصله داشته باشند */
    width: 150px; /* کمی بزرگتر در حالت موبایل */
    height: 100px;
  }
}

/* .showVideoContainer {
  width: 100%;
  height: 100%;
  padding: 20px 50px;
  display: flex;
  flex-direction: row-reverse;
  gap: 35px;
}

.mainShowVideoSection {
  width: 100%;
  height: 70%;
  display: block;

  .mainShowVideo {
    width: 100%;
    height: 100%;
    background-size: cover;
    object-fit: fill;
    border-radius: 25px;
  }
}

.showVideoInformationSection {
  width: 100%;
  height: 30%;
  position: relative;
}

.videoMetaInformationShowSection {
  position: relative;
  padding: 15px;

  h1 {
    position: absolute;
    right: 2%;
  }
  .videoCategoryShowSection {
    padding: 5px 15px;
    position: absolute;
    font-size: 1.2rem;
    background-color: var(--primary-color);
    border-radius: 25px;
    left: 2%;
  }
}

.videoDescriptionShowSection {
  width: fit-content;
  position: absolute;
  padding: 5px 13px;
  background-color: rgb(102, 102, 103, 25%);
  border-radius: 15px;
  right: 2%;
  top: 50%;
}

.relatedCategoryVideoContainer {
  width: 25%;
  height: 100%;
  background-color: rgb(219, 209, 5);
  display: block;
  border-radius: 25px;
}

.relatedVideosList {
  width: 100%;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;

  a {
    text-decoration: none;
  }

  .relatedItems {
    width: 100%;
    height: 100%;
    display: flex;
    padding: 10px;
    border: 3px solid var(--border-color);
    background-color: rgb(102, 102, 103, 25%);
    gap: 30px;
    border-radius: 15px;
    flex-direction: row-reverse;

    .smallRelatedVideoThumbnail img {
      width: 150px;
      height: 100px;
      object-fit: cover;
    }
  }
}

.relatedVideoInformation {
  display: flex;
  flex-direction: column;

  text-align: right;

  color: var(--background-color);
} */

/* =========================================
   8. MEDIA QUERIES (RESPONSIVE)
   ========================================= */
@media (max-width: 968px) {
  .terms-content {
    grid-template-columns: 1fr;
  }
  .terms-nav {
    order: 2;
  }
  .terms-sections {
    order: 1;
  }
}

@media (max-width: 768px) {
  /* .help-sections {
    grid-template-columns: 2fr;
  } */
  .help-header h1 {
    font-size: 1.8rem;
  }
  .contact-content {
    grid-template-columns: 1fr;
  }
  .contact-options {
    flex-direction: column;
    align-items: center;
  }
  .contact-option {
    width: 100%;
    max-width: 300px;
  }
}
