/* ------------------ ریست اولیه ------------------ */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 160px;
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Merriweather", sans-serif;
  line-height: 1.5;
  margin: 0;
  padding: 90px 0 0 0; /* فاصله مناسب برای هدر ثابت */
  background: #f0fff0;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}
body * {
  transition: background-color 0.4s ease, color 0.4s ease;
}
a {
  text-decoration: none;
  color: inherit;
}
main {
  flex: 1; /* content area expands */
}
.font-size-14px {
  font-size: 16px !important;
}
.space {
  margin-left: 20px;
}
.fc-green {
  color: green !important;
}
.text-a-c {
  text-align: center;
  font-size: 18px;
}
.light-shadow {
  box-shadow: 0 0 15px 5px rgba(0, 0, 0, 0.6);
}
.light-border {
  border: 2px solid #706a6a;
}
.hadith {
  font-family: "EB Garamond", serif;
  font-size: 21px;
  font-weight: 600;
  font-style: italic;
}

.first-site-title {
  font-size: 19px;
  font-weight: 900;
  color: #000000;
  text-align: center;
  margin-top: 10px;
  padding: 5px 0;
  border: 1px solid #4e4c4c;
  border-radius: 10px;
  background-color: #dddddd;
}

.highlight {
  background-color: #b4b7b4;
  border-radius: 5px;
  transition: background-color 0.5s ease;
}
.highlighted {
  background-color: yellow;
  font-weight: bold;
}
.big {
  font-size: 28px;
  font-weight: 600;
}
.italic {
  font-style: italic;
}
.disflex {
  display: flex;
}
.width170 {
  width: 170px;
}
.width220 {
  width: 220px;
}
.bold {
  font-weight: bold !important;
}
.underline {
  text-decoration: underline !important;
}
.red {
  color: red;
}
.kadr {
  border: 2px solid gray;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  padding: 10px;
  color: #252424;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-align: justify;
}
/* ------------------ هدر ثابت ------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #4a5f48;
  color: white;
  z-index: 1000;
  padding: 10px 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  user-select: none;
}
/* بخش بالای هدر: لوگو، عنوان، منوی همبرگری */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-title {
  display: flex;
  align-items: center;
}
.site-title {
  margin-top: 5px;
  font-size: 19px;
  font-weight: 800;
  margin-left: 5px;
}
.ayeh {
  text-align: right;
  color: #ffffff;
  background-color: #4a5f48;
  padding: 10px;
  border-radius: 5px;
  font-size: 21px;
  font-weight: 400;
}
.sabok {
  font-size: 16px;
  font-weight: 100;
}
header .site-title {
  color: #ffffff;
}
.hamburger {
  display: none;
}

.menu-toggle {
  display: none; /* پیش‌فرض مخفی در دسکتاپ */
  background: #1b5e20;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  z-index: 1102;
}

.search-form {
  display: flex;
  margin-top: 10px;
}
.search-form input {
  padding: 6px 10px;
  border-radius: 4px 0 0 4px;
  border: none;
  flex-grow: 1;
  font-size: 16px;
}
.search-form button {
  padding: 6px 12px;
  border-radius: 0 4px 4px 0;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 16px;
}
.search-form button:hover {
  background-color: #145a14;
}

nav.menu {
  display: flex;
  margin-top: 10px;
}
nav.menu ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}
nav.menu ul li {
  position: relative;
}

nav.menu ul li + li::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 25%;
  height: 50%;
  width: 1px;
  background-color: #ccc; /* رنگ خط */
}
.color-white {
  color: white;
}
.color-black {
  color: #000000;
}
.color-blue {
  color: blue;
}

.dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #5b7053;
  z-index: 1103;
  padding: 10px;
  min-width: 180px;
  border-radius: 4px;
}
.dropdown.open .dropdown-menu {
  display: block;
}
.dropdown:hover .dropdown-menu {
  display: block;
}
.dropdown-menu li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 0;
}
.dropdown-menu li:last-child {
  border-bottom: none;
}
.dropdown-menu li a {
  color: white;
  padding: 6px 10px;
  display: block;
  border-radius: 4px;
  font-size: 1vw;
}
.dropdown-menu li a:hover {
  background-color: #6e8863;
}

.cards {
  width: 100%;
  padding: 0 20px 40px 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.card p {
  font-size: 12px;
  padding: 0 5px 10px;
  line-height: 1.2;
}
.home-h1,
.home-h2 {
  margin: 40px auto 20px;
  color: #4a5f48;
  font-size: 28px;
  text-align: center;
}
.home-h1 {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  margin: 40px auto 30px;
  line-height: 1.4;
  max-width: 900px; /*Limiting the width to avoid stretching it too much on large monitors*/
  padding: 0 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* 4 per row */
  gap: 20px;
  padding: 20px;
}
.card {
  background: #e6e0e0;
  border-radius: 12px;
  text-align: center;
  padding: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  transition: transform 0.3s ease;
}
.card h3 {
  margin-top: 10px;
  font-weight: bold;
  color: #333;
}
/* Click effect */
.card:active {
  transform: scale(0.96);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}
/* Optional: hover effect */
.card:hover {
  box-shadow: 0 4px 20px rgba(0, 128, 0, 0.3);
}
footer {
  background-color: #4a5f48; /* match header or pick your preferred color */
  padding: 20px;
  color: white;
  text-align: center;
  clear: both;
  position: relative; /* or static */
  z-index: 1000;
}
footer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
  display: inline-flex;
  gap: 30px;
  justify-content: center;
}
footer ul li {
  display: inline-block;
  margin-right: 20px;
}
footer ul li:last-child {
  margin-right: 0; /* no margin after last item */
}
footer ul li a {
  color: white;
  font-weight: bold;
}
footer p {
  font-size: 14px;
  color: #ffffff;
  margin: 20px auto 0 auto;
  text-align: center;
}
footer p span {
  color: yellow;
  margin-right: 5px;
}
.speaker-videos {
  margin-top: 40px;
}
.speaker-videos h2 {
  color: #2e4a21;
  border-bottom: 2px solid #4a5f48;
  padding-bottom: 8px;
  margin-bottom: 20px;
}
.video-item {
  display: grid;
  justify-content: center;
  margin-bottom: 30px;
}

.speaker-vidinf-mobile {
  display: none;
}
.video-item .speaker-vidinf-desktop {
  display: flex;
  margin-top: 20px;
  align-items: center;
  height: 25px;
}
.video-item h3,
.video-item h4 {
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 10px;
  color: #333;
  width: 600px;
}
.video-item h3.highlight {
  background: #ccc;
  transition: background 0.3s ease;
}
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: 315px;
  background-color: #000;
  cursor: pointer;
  margin: 20px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.video-cover {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  transition: transform 0.3s ease;
}
.video-cover:hover {
  transform: scale(1.03);
}
.video-wrapper .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  /*color: #972d2d;*/
  color: #ffffff;
  pointer-events: none;
  text-shadow: 2px 2px 5px black;
}

.speakers-page {
  max-width: 90%;
  margin: 68px 10px 40px 240px;
  padding: 0 20px 0 0;
}
.speakers-page h2 {
  color: #333;
  margin-top: -25px;
}
.speakers-page p {
  color: #333;
  line-height: 1.5;
  text-align: justify;
}
.accordion-text .more-text {
  display: block;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease, opacity 0.5s ease;
  opacity: 0;
  text-align: justify;
}
.accordion-text.open .more-text {
  max-height: 500px;
  opacity: 1;
  text-align: justify;
}
.select-form {
  float: right;
  margin: 10px 30px;
}

.sort-select {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #dddddd;
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.3s;
}

.article-page-article-p {
  text-indent: 1rem;
  text-align: justify;
  font-weight: 500;
  font-size: 19px;
  color: #000000;
}
.article-page-article-p2 {
  text-align: justify;
  font-weight: 500;
  font-size: 19px;
  color: #000000;
}
.photo-text {
  text-align: justify;
  font-weight: 500;
  color: #000000;
  margin: 0;
}

.first-span {
  font-size: 19px;
  font-weight: 700;
  color: red;
}
.first-span2 {
  font-size: 19px;
  font-weight: 800;
  color: #000000;
}
.title-italic {
  font-style: italic;
  font-size: 17px;
  font-weight: 600;
  color: #000000;
  text-align: center;
}
.text-italic {
  text-align: center;
  color: #3b3a3a;
  font-weight: 600;
  font-style: italic;
  margin-top: 10px;
}
.toggle-btn {
  background-color: #4a5f48;
  color: white;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
}
.toggle-btn:hover {
  background-color: #3a4f38;
}
.page-wrapper {
  display: flex;
}
.sidebar {
  position: fixed;
  top: 110px;
  left: 0;
  width: 220px;
  height: calc(100vh - 140px);
  background: #f1f1f1;
  padding: 15px;
  overflow-y: auto;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  z-index: 999;
}
.sidebar ul {
  list-style: none;
  padding: 0;
}
.sidebar li {
  margin-bottom: 10px;
}
.sidebar a {
  font-weight: bold;
  display: block;
  padding: 5px;
  border-radius: 4px;
  transition: background 0.3s;
}
.sidebar a:hover {
  background: #d0e0d0;
}
.breadcrumb {
  display: flex;
  margin-top: 25px;
  font-family: "Segoe UI", sans-serif;
  background-color: #dddddd;
  padding: 10px 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 100%;
  z-index: 2;
}
.breadcrumb-with-sidebar {
  display: block;
  position: absolute !important;
  top: 0;
  left: 0;
  right: 20px;
  z-index: 10;
}
.breadcrumb-for-speakers {
  display: block !important;
  position: absolute !important;
  top: 87px;
  left: 220px;
  z-index: 10;
}

.breadcrumb ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}
.breadcrumb li {
  display: flex;
  align-items: center;
  font-size: 15px;
  color: #555;
}
.breadcrumb ul li a {
  color: #000000;
}
.breadcrumb li + li::before {
  content: "›";
  color: #000;
  margin: 0 8px;
}
.breadcrumb a {
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb .current {
  color: #999;
  font-weight: 600;
}
.articles-container {
  margin-left: 220px;
  min-height: 100vh;
  padding-top: 60px;
  padding-bottom: 80px;
  position: relative;
}

.article-item {
  max-width: 1000px;
  margin: 20px 10px;
  border: 1px solid gray;
  padding: 15px;
  border-radius: 6px;
  background: #f9f9f9;
}
.article-item p {
  color: #333333;
}
.article-summary {
  overflow: hidden;
  max-height: 122px;
  transition: max-height 0.4s ease;
}
.article-summary.expanded {
  max-height: 10000px;
}
.article-sp {
  display: flex;
  font-size: 14px;
}
.article-sp p:nth-child(1) {
  min-width: 120px;
}
.article-sp p:nth-child(2) {
  min-width: 200px;
}
.article-sp p:nth-child(3) {
  min-width: 200px;
}
.article-sp img {
  width: 20px;
  height: 20px;
  margin-left: auto;
}
.more-btn {
  display: inline-block;
  margin-top: 10px;
  color: #7c4319;
  cursor: pointer;
  font-weight: bold;
  user-select: none;
  width: 100%;
}
.article-summary p {
  margin-top: 0;
  /*line-height: 1.5;*/
}
#articles li a span {
  color: #7c4319;
}
#articles li a p {
  margin-top: 1px;
}
.title-p {
  font-weight: 600;
  margin-top: 2px;
  margin-left: 25px;
}
.title-p span {
  color: #333;
  margin-left: 10px;
}
.title-comment,
.article-topic {
  margin-left: 0;
  font-weight: 600;
  margin-top: 2px;
}
.title-comment span {
  color: #121212;
  margin-left: 10px;
  word-wrap: break-word;
}
.article-topic span {
  color: #121212;
  margin-left: 10px;
  font-size: 16px;
  font-weight: 600;
}
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none;
  background-color: #2c7a7b;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1100;
  transition: background-color 0.3s;
}
#backToTop:hover {
  background-color: #225e5e;
}
.down-arrow {
  margin-left: 5px;
  vertical-align: middle;
}
.header-resp {
  display: none;
}
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 998;
}
.about-container {
  max-width: 900px;
  margin: 15px auto;
  padding: 30px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
  line-height: 1.8;
}
.about-container h1 {
  text-align: center;
  color: #000000;
  margin-bottom: 20px;
}
.about-container p {
  text-align: justify;
  font-size: 1.05rem;
  margin-bottom: 20px;
}
a.contact-link {
  color: #2e7d32;
  text-decoration: underline;
}
a.contact-link:hover {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.contactUs-form {
  max-width: 720px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
  margin: 15px auto 30px auto;
  background: white;
  padding: 20px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
}
.contactUs-form h4 {
  margin: 0 0 1rem 0;
  color: #706a6a;
  text-align: center;
}
.contactUs-zone1 {
  width: 100%;
}
.contactus_input,
.contactUs-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  font-family: inherit;
}
.contactUs-form textarea {
  resize: none;
  min-height: 100px;
}
.contactUs-form .submit-btn {
  width: 100%;
  margin-top: 15px;
  padding: 12px;
  background-color: #2e7d32;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}
.contactUs-form .submit-btn:hover {
  background-color: #1b5e20;
}
.contactUs-form .error-message {
  text-align: center;
  color: #ff0000;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: -10px;
  margin-bottom: 10px;
}

.contactUs-form .success-message {
  background-color: #d4edda;
  color: #155724;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: none;
}
.contactUs-form .input-row {
  display: flex;
  gap: 20px;
}
.half-width {
  width: 50%;
}
.contactUs-form .g-recaptcha {
  margin: 20px 0;
  transform: scale(0.95);
  transform-origin: 0 0;
}
.report-form {
  max-width: 500px;
  margin: 3% auto 30px auto;
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}
.report-form h1 {
  margin: 0;
}
.report-form h2 {
  text-align: center;
  color: #2e7d32;
}
.report-form label {
  display: block;
  margin: 10px 0 5px;
}
.report-form select,
.report-form input[type="email"],
.report-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  font-family: inherit;
}
.report-form textarea {
  resize: none;
  min-height: 150px;
}
.report-form .checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}
.report-form .checkbox input {
  margin-right: 10px;
}
.report-form .submit-btn {
  width: 100%;
  padding: 12px;
  margin-top: 15px;
  background-color: #2e7d32;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}
.report-form .submit-btn:hover {
  background-color: #1b5e20;
}
.report-form .message {
  text-align: center;
  margin-top: 15px;
  font-weight: bold;
}
.report-form .success {
  color: green;
}
.survey-form {
  max-width: 600px;
  margin: 80px auto 30px auto;
  background: #fff;
  padding: 25px 25px 10px 25px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}
.survey-form h2 {
  text-align: center;
  color: #2e7d32;
}
.survey-form .question {
  margin-bottom: 20px;
}
.survey-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}
.survey-form input[type="radio"],
.survey-form input[type="checkbox"] {
  margin-right: 8px;
}
.survey-form textarea {
  width: 100%;
  min-height: 100px;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #000000;
  resize: vertical;
  font-family: inherit;
}
.survey-form .submit-btn {
  width: 100%;
  padding: 12px;
  background-color: #2e7d32;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
}
.survey-form .submit-btn:hover {
  background-color: #1b5e20;
}
.survey-form .message {
  text-align: center;
  margin-top: 20px;
  font-size: 16px;
  font-weight: bold;
}
.tc-container {
  max-width: 900px;
  margin: 15px auto;
  background: #ffffff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}
.tc-container h1,
.tc-container h2 {
  color: #000000;
}
.tc-container h2 {
  margin-top: 30px;
}
.tc-container p {
  line-height: 1.8;
}
.tc-container a.contact-link {
  color: #2e7d32;
  text-decoration: underline;
}
.tc-container a.contact-link:hover {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}
.article-page-container {
  width: 78%;
  margin: 22px 250px 20px;
  padding: 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
  color: #3b3a3a;
  font-weight: 600;
  font-size: 16px;
}
.tooltip,
.tooltip-left200,
.tooltip-left500,
.tooltip-up,
.tooltip-wide {
  position: relative;
  cursor: help;
  color: blue;
}

.tooltip::after,
.tooltip-left200::after,
.tooltip-left500::after,
.tooltip-up::after,
.tooltip-wide::after {
  content: attr(data-tooltip);
  text-indent: 0 !important;
  position: absolute;
  transform: translateX(-50%);
  background: #dddddd;
  color: #000;
  padding: 6px;
  border: 3px solid #4a5f48;
  border-radius: 6px;
  white-space: normal;
  word-spacing: normal;
  letter-spacing: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: left;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.tooltip::after {
  left: 50%;
  bottom: 120%;
  min-width: 120px;
  max-width: 250px;
}
.tooltip-left200::after {
  left: -200%;
  bottom: 120%;
  min-width: 120px;
  max-width: 250px;
}
.tooltip-left500::after {
  left: -500%;
  bottom: 120%;
  min-width: 120px;
  max-width: 250px;
}
.tooltip-up::after {
  left: 180px;
  bottom: -200px;
  min-width: 120px;
  max-width: 250px;
}
.tooltip-wide::after {
  left: 50%;
  bottom: 120%;
  width: 400px;
}
.tooltip:hover::after,
.tooltip-left200:hover::after,
.tooltip-left500:hover::after,
.tooltip-up:hover::after,
.tooltip-wide:hover::after {
  opacity: 1;
}
.ms-menu,
.mf-menu {
  display: none !important;
}
.ms-menu {
  margin-right: 0;
  margin-left: auto;
}

.user_settings {
  position: fixed;
  width: 220px;
  margin: 7vw 10px;
  border: 1px solid #000000;
  border-radius: 15px;
  background: #4a5f48;
  color: #ffffff;
}
.user_settings_2 {
  position: fixed;
  width: 210px;
  margin-top: 30px;
  margin-left: 1050px;
  border: 1px solid #000000;
  border-radius: 15px;
  background: #4a5f48;
  padding: 5px;
  color: #ffffff;
  float: right;
}
.user_settings_2 h1 {
  margin-bottom: 10px;
  font-size: 21px;
  color: #ffffff;
  text-align: center;
}
.user_settings p {
  font-size: 1.3rem;
  text-align: center;
  margin: 5px 0;
  width: 100%;
}
.user_settings hr,
.user_settings_2 hr {
  color: #ffffff;
  width: 85%;
}
.user_settings div div {
  width: 85%;
  padding: 5px;
  margin: 5px auto;
  background-color: #dddddd;
  border-radius: 20px;
  color: #4a5f48;
}
.user_settings_2 form div {
  width: 95%;
  padding: 5px;
  margin: 5px auto;
  background-color: #dddddd;
  border-radius: 20px;
  color: #4a5f48;
}
.user_settings div div:hover,
.user_settings_2 div div:hover {
  background-color: #ccc;
}
.user_settings_2 form label {
  font-size: 15px;
  font-weight: 600;
  margin-top: 8px;
  margin-left: 5px;
  color: #4a5f48;
}
.sort-options label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  cursor: pointer;
}
.sort-options input {
  margin-right: 6px;
}

.user_settings div input[type="radio"] {
  accent-color: #000000;
  float: right;
  margin-right: 15px;
  transform: scale(1.2);
}
.user_settings_2 div input[type="radio"] {
  accent-color: #000000;
  float: right;
  margin-top: -21px;
  margin-right: 15px;
  transform: scale(1.2);
}
.comment-form {
  background: white;
  padding: 15px 20px;
  border-radius: 8px;
  border: 1px solid #373636;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}
.comment-form textarea {
  width: 98%;
  height: 150px;
  margin-top: -10px;
  padding: 10px;
  font-size: 1em;
  border-radius: 6px;
  border: 1px solid #252424;
  resize: none;
}
.comment-form button {
  margin-top: 10px;
  background: #2e7d32;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
}
.comment-form button:hover {
  background: #27632a;
}
.article-page-container #message {
  margin-top: 15px;
  color: green;
  font-weight: bold;
}
.comment {
  background: white;
  padding: 15px 20px;
  border-radius: 8px;
  border: 1px solid rgba(0, 128, 0, 0.2);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
  position: relative;
}
.comment-text {
  white-space: pre-wrap;
  margin-top: 25px;
}
.likes-dislikes {
  position: absolute;
  top: 15px;
  right: 20px;
  display: flex;
  gap: 15px;
}
.like-btn,
.dislike-btn {
  cursor: pointer;
  user-select: none;
  font-size: 0.9em;
  color: #555;
  display: flex;
  align-items: center;
  gap: 6px;
}
.like-btn.liked,
.dislike-btn.disliked {
  font-weight: bold;
  color: #2e7d32;
}
.like-btn:hover,
.dislike-btn:hover {
  color: #2e7d32;
}
.count {
  font-size: 0.9em;
}
.login-container,
.signup-container {
  background: white;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
  width: 100%;
  max-width: 400px;
  margin: 15px auto 30px auto;
}
.fp-container {
  background: white;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
  width: 100%;
  max-width: 400px;
  margin: 15px auto 100px auto;
}
/*.signup-container {
  display: none;
}*/
.login-container h2,
.signup-container h2,
.fp-container h2 {
  text-align: center;
  color: #000000;
  margin-bottom: 20px;
}
.ls-data-div,
.fp-data-div {
  width: 100%;
  margin-bottom: 15px;
}
.login-container .ls-data-div img {
  max-width: 30px;
  float: right;
  cursor: pointer;
}
.signup-container .ls-data-div img {
  max-width: 30px;
  float: right;
  cursor: pointer;
}
.ls-data-div label,
.fp-data-div label {
  margin-top: 10px;
  margin-bottom: 10px;
}
.logOrSign-p {
  text-align: center;
  margin: 3px 0;
}
.logOrSign-p a {
  font-weight: 700;
}
.logOrSign-p a:hover {
  color: brown;
}
.ls-data-btn,
.fp-data-btn {
  background: #2e7d32;
  color: white;
  padding: 10px;
  border: none;
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  margin-top: 20px;
}
.ls-data-btn:hover,
.fp-data-btn:hover {
  background: #27632a;
}
form label {
  display: block;
  margin-bottom: 5px;
  color: #333;
}
.ls-data-div input,
.fp-data-div input {
  width: 100%;
  padding: 10px;
  padding-right: 40px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
}
.error {
  color: red;
  font-size: 0.8rem;
  margin-top: 5px;
  display: none;
}
.error2 {
  color: red;
  font-size: 0.8rem;
  margin-top: 5px;
}
.error3 {
  color: red;
  font-size: 0.8rem;
  margin-top: 10px;
  margin-left: 30px;
}
.prof-error {
  color: red;
  font-size: 0.8rem;
  margin-top: -5px;
  display: none;
}
.prof-error2 {
  color: red;
  font-size: 0.8rem;
  margin-top: -5px;
  visibility: hidden;
}
.invalid-error {
  /*position: absolute;*/
  top: 395px;
  color: red;
  font-size: 0.8rem;
}
.de_error {
  color: red;
  font-size: 0.8rem;
  margin-top: 5px;
}
.passRules {
  margin-top: 10px;
  font-size: 15px;
}
.signup-container img {
  top: 40.5vw;
}
.ti-rules-div {
  display: flex;
}
.ti-rules-div input {
  margin-bottom: 25px;
}
.ti-rules-div label {
  font-size: 14px;
  margin-top: 2px;
}
.dark-screen {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  display: flex;
}
.success-box {
  width: 90%;
  max-width: 380px;
  background-color: #fff;
  padding: 10px 10px 20px 10px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  font-family: "Arial", sans-serif;
  color: #000000;
}
.success-box p {
  padding: 10px;
  border: 1px solid #000000;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin: 15px 0;
}
.success-alert-btn {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}
.success-alert-btn:hover {
  background-color: #45a049;
}
.userName {
  width: 400px;
  overflow-x: hidden;
  margin-left: 125px;
}
.userName p {
  margin: 0;
}
.prof-section {
  display: flex;
  gap: 20px;
  width: 95%;
  height: 100%;
  margin: 1% auto;
  padding: 30px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
  line-height: 1.8;
  box-sizing: border-box;
}
.prof-cards,
.prof-card-form {
  width: 33%;
  height: 100%;
  border: 1px solid #454243;
  border-radius: 5px;
  padding: 10px;
  margin: 5px;
}
.prof-scroll-div {
  max-height: 90%;
  overflow-y: auto;
}
.prof-cards div,
.prof-card-form div {
  max-width: 100%;
}
.prof-card-form label {
  margin-right: 10px;
  display: inline;
}

/*#prof-scroll-div input*/
#prof-fn,
#prof-ln,
#prof-email {
  width: 240px;
  padding: 5px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid #00000d;
  box-sizing: border-box;
  font-family: inherit;
}
.prof-title {
  padding: 5px;
  background: #7a7575;
  color: #ffffff;
  text-align: center;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0 0 10px 5px;
}
.prof-title span {
  color: #f4fb02;
}
.prof-article-favorite {
  border: 1px solid #989494;
  border-top: 8px solid #989494;
  border-radius: 5px;
  padding: 10px;
  margin-top: 5px;
  cursor: pointer;
}
.prof-article-favorite p,
.prof-speaker-favorite p,
.prof-speaker-favorite a {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 5px;
}
.prof-article-favorite p span,
.prof-speaker-favorite p span,
.prof-speaker-favorite a span {
  color: gray;
  font-size: 0.9rem;
  margin-left: 10px;
}
.prof-article-favorite a p {
  font-size: 1rem;
  line-height: 1.2rem;
  color: #333;
  font-weight: normal;
}
#prof-btn {
  background: #2e7d32;
  color: white;
  padding: 10px;
  border: none;
  width: 80px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
}
.prof-card-form div form button:hover {
  background: #27632a;
}
.prof-artsum {
  color: #333333;
  text-indent: 10px;
  font-size: 0.9rem;
  text-align: justify;
  cursor: pointer;
}
.prof-speaker-favorite {
  display: flex;
}
.prof-speaker-favorite img {
  /*width: 100px;
  height: 56px;
  border-radius: 5px;*/
  margin-left: auto;
}
.dark {
  background: #dee3de;
}
#prof-email {
  margin-left: 33px;
}
.prof-passRules {
  margin-top: 0;
  font-size: 14px;
}
.prof-passRules span {
  font-weight: bold;
}
.prof-passRules img {
  max-width: 30px;
  float: right;
  cursor: pointer;
  /*margin-right: 180px;*/
  margin-top: 30px;
}

.prof-password-div,
.prof-confirm-password-div {
  display: flex;
  max-height: 35px;
}
.prof-password-div input,
.prof-confirm-password-div input {
  width: 215px;
  height: 15%;
  padding: 5px;
  border-radius: 8px;
  border: 1px solid #00000d;
  box-sizing: border-box;
  font-family: Consolas;
  font-size: 17px;
}
.prof-confirm-password-div input {
  margin-top: 5px;
}
.prof-password-div p,
.prof-confirm-password-div p {
  width: 40%;
  margin-left: 18px;
  line-height: 1.2;
  margin-top: 0;
}
.prof_div_capbtn {
  display: flex;
  margin-top: 15px;
}
.prof-cards-hr {
  display: none;
}
.thik_hr {
  width: 95%;
  height: 5px;
  background: grey;
  border-radius: 5px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}
.prof-article-favorite img {
  width: 15px;
  height: 15px;
  float: right;
  cursor: pointer;
}
#toggle-speaker-filled-heart,
#toggle-speaker-empty-heart {
  width: 15px;
  height: 15px;
  cursor: pointer;
}
.articles-more-div button {
  padding: 7px;
  background: #4a5f48;
  border-color: #4a5f48;
  border-radius: 5px;
  margin-top: 10px;
  font-size: 16px;
  color: #ffffff;
  cursor: pointer;
}
table tr td {
  text-align: center;
}
#login-pass-error {
  color: red;
  font-size: 0.8rem;
  margin-top: 5px;
}
.comments-container {
  margin-top: 10px;
  padding: 10px;
  font-size: 1em;
  border-radius: 6px;
  border: 1px solid #252424;
}
.cc_information {
  width: 100%;
  display: flex;
  font-size: 15px;
}
.cc_information p {
  font-weight: 600;
  margin-top: 2px;
}
.cc_information p:nth-child(2) {
  margin-left: 30px;
}
.cc_information p span {
  color: gray;
  margin-left: 10px;
  font-weight: bold;
}
.cc_text {
  width: 100%;
  text-align: justify;
  color: #3b3a3a;
}
.like-button,
.dislike-button,
.like-button-filled,
.dislike-button-filled {
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.hidden {
  display: none !important;
}
.show-none {
  display: none !important;
}
.show-block {
  display: block;
}

.show-flex {
  display: flex !important;
}
.vote-section {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: flex-end; /* چسباندن به سمت راست (اگر لازم بود) */
  width: 100%;
  margin-top: -25px;
}
.vote-section span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.like-box {
  margin-left: auto;
}
.like-box,
.dislike-box {
  display: flex;
  max-width: 65px;
  margin-right: 30px;
  cursor: pointer;
  align-items: center;
}
.like-box div,
.dislike-box div {
  display: flex;
  align-items: center;
}
.like-form {
  display: flex;
  margin-left: auto;
  margin-right: 30px;
}

.article-unfavorite,
.speaker-unfavorite {
  display: flex;
  gap: 5px;
  font-weight: 600;
  padding: 0 5px;
  border-radius: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.article-favorite,
.article-unfavorite,
.speaker-unfavorite,
.speaker-favorite {
  float: right;
  cursor: pointer;
}
.article-favorite img,
.article-unfavorite img,
.speaker-unfavorite img,
.speaker-favorite img {
  width: 20px;
  height: 20px;
  margin-top: 15px;
  object-fit: contain;
}

.article-favorite,
.speaker-favorite {
  display: none;
}
.speaker-favorite {
  margin-left: 207px;
}
#youtube-player-wrapper {
  display: none;
  position: absolute;
  top: 12vw;
  left: 30vw;
  width: 40vw;
  height: 30vw;
  justify-content: center;
  align-items: center;
  background: #000000;
  border-radius: 15px;
}
#close-youtube {
  position: absolute;
  top: 0px;
  right: 0px;
  background-color: #ff4444;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 20px;
  cursor: pointer;
  z-index: 1000;
}
#youtube-player {
  width: 100%;
  height: 100%;
  border-radius: 15px;
}
.div_captcha {
  width: fit-content;
  display: flex;
  padding: 0 10px 0 10px;
  background: #f5fbf6;
  margin: 0 auto;
  border: 2px solid #4e4c4c;
  border-radius: 12px;
}

.prof_div_captcha {
  width: fit-content;
  display: flex;
  height: 40px;
  margin: 0 10px 0 0;
  padding: 0 10px 0 10px;
  background: #f5fbf6;
  border: 2px solid #4e4c4c;
  border-radius: 12px;
}
.div_captcha img,
.prof_div_captcha img {
  width: 33px;
  height: 33px;
  margin-top: 3px;
  margin-right: 10px;
  transition: transform 0.5s ease-in-out;
  transform-origin: center;
}
.lable_captcha {
  margin-top: 10px;
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
}
.prof-lable_captcha {
  margin-top: 0px;
  margin-left: 10px;
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  color: #121212 !important;
}
.input_captcha {
  width: 100px;
  height: 28px;
  padding: 5px;
  margin-top: 5px;
  margin-left: 15px;
  border-radius: 12px;
  text-align: center;
  font-size: 1.2rem;
}
.prof-input_captcha {
  width: 100px;
  height: 28px;
  padding: 5px;
  margin-top: 5px;
  margin-left: 5px;
  border-radius: 12px;
  text-align: center;
  font-size: 1.2rem;
}
.search_results {
  position: absolute;
  top: 4.6vw;
  z-index: 9999;
  background: #fff;
  width: 17.1%;
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 250px;
  overflow-x: auto;
  overflow-y: auto;
  border: 1px solid #252424;
}

.search_results p,
.search_results_mobile p {
  color: #00000d;
  padding: 5px;
  margin: 0;
  border-bottom: 1px solid #8b8a8a;
  cursor: pointer;
}
.search_results p:hover {
  background-color: #f0f0f0;
}
.search_results p:last-child,
.search_results p:last-child {
  border-bottom: none;
}
.search_results_mobile {
  position: absolute;
  top: 13vw;
  z-index: 9999;
  background: #fff;
  width: 84%;
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 250px;
  overflow-x: auto;
  overflow-y: auto;
  /*border: 1px solid #252424;*/
}
.username_mobile {
  margin: 0;
}
.username_mobile span {
  color: yellow;
}
.transition-theme {
  transition: background-color 0.4s ease, color 0.4s ease;
}

.image-text-container,
.image300-text-container,
.image400-text-container {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin: 0;
}

.image-text-container img,
.image300-text-container img,
.image400-text-container img {
  height: auto;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.image-text-container img.zoomable,
.image300-text-container img.zoomable,
.image400-text-container img.zoomable {
  cursor: pointer;
  transition: transform 0.3s ease;
}
.article-img-2 {
  width: 60%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
/* وقتی روی تصویر کلیک شد، مودال نمایش داده بشه */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}
.modal span {
  z-index: 1100;
  color: red;
}
/* عکس داخل مودال */
.modal-content {
  margin: auto;
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  transform-origin: center center;
  border-radius: 10px;
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}
.modal.show .modal-content {
  transform: scale(1.2);
  opacity: 1;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white !important;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.image-text-container img {
  width: 200px;
}
.image300-text-container img {
  width: 300px;
}
.image400-text-container img {
  width: 400px;
}
.image-text-container p,
.image300-text-container p,
.image400-text-container p {
  text-align: justify;
  font-weight: 500;
  line-height: 1.5;
  color: #000000;
  margin: 0;
  flex: 1; /* Text covers the rest of the page width.*/
}
.article-page-article-p a {
  color: blue;
}

.dark-mode {
  background-color: #111;
  color: #fff;
}

body.dark-mode,
body.dark-mode-mobile {
  background-color: #121212;
  color: #dddddd;
}

body.dark-mode .prof-img-closed-eye {
  filter: invert(1); /* This command turns black completely white.*/
}

body.dark-mode .card > p,
body.dark-mode .cards > h3,
body.dark-mode aside a,
body.dark-mode .speakers-page p,
body.dark-mode .speakers-page h2,
body.dark-mode .speakers-page h3,
body.dark-mode .speakers-page h4,
body.dark-mode .Description,
body.dark-mode #articles a p,
body.dark-mode .title-p,
body.dark-mode .article-summary p,
body.dark-mode .contactUs-form h4,
body.dark-mode .kadr {
  color: #dddddd;
}
body.dark-mode .hadith {
  color: #4caf50;
}
body.dark-mode aside {
  background: #7e7979;
  box-shadow: 2px 0 5px rgba(200, 200, 200, 0.5);
}
body.dark-mode .article-item {
  background: #373535;
}
body.dark-mode .contactUs-form,
body.dark-mode .about-container,
body.dark-mode .login-container,
body.dark-mode .signup-container,
body.dark-mode .fp-container,
body.dark-mode .report-form,
body.dark-mode .tc-container,
body.dark-mode .prof-section {
  background: #373535;
  box-shadow: 2px 0 5px rgba(255, 255, 255, 0.8);
}
body.dark-mode .prof-cards,
body.dark-mode .prof-card-form {
  border: 1px solid #ffffff;
}
body.dark-mode .contactus_input,
body.dark-mode .contactUs-form textarea,
body.dark-mode .div_captcha,
body.dark-mode .ls-data-div input,
body.dark-mode .fp-container input,
body.dark-mode .report-form select,
body.dark-mode .report-form textarea,
body.dark-mode .report-form input[type="email"],
body.dark-mode .comment-form textarea,
body.dark-mode #prof-scroll-div div input {
  background: #e6e0e0;
}

body.dark-mode .comment-form {
  background: #f3ecec;
}
body.dark-mode aside a span,
body.dark-mode .first-span,
body.dark-mode #articles a span,
body.dark-mode .about-container p span,
body.dark-mode #show-signup:hover,
body.dark-mode .logOrSign-p a:hover,
body.dark-mode .first-span,
body.dark-mode .tooltip,
body.dark-mode .tooltip-up,
body.dark-mode .tooltip-wide,
body.dark-mode .tooltip-left200,
body.dark-mode .tooltip-left500,
body.dark-mode .footnote-ref,
body.dark-mode .return-icon,
body.dark-mode .more-btn,
body.dark-mode .color-blue,
body.dark-mode .article-page-article-p a {
  color: #fe9001;
}

body.dark-mode .tooltip::after,
body.dark-mode .tooltip-left200::after,
body.dark-mode .tooltip-left500::after,
body.dark-mode .tooltip-up::after,
body.dark-mode .tooltip-wide::after {
  border: 2px solid #fe9001;
}

body.dark-mode .first-site-title {
  background-color: #bbb;
}
body.dark-mode .title-p span,
body.dark-mode .first-span2,
body.dark-mode .prof-article-favorite p,
body.dark-mode .prof-article-favorite p span,
body.dark-mode .prof-speaker-favorite p span,
body.dark-mode .prof-speaker-favorite a span {
  color: #e6e0e0;
}
body.dark-mode .about-container h1,
body.dark-mode .login-container h2,
body.dark-mode .signup-container h2,
body.dark-mode .ls-data-div label,
body.dark-mode .fp-container h2,
body.dark-mode .fp-container label,
body.dark-mode .ti-rules-div label,
body.dark-mode .report-form label,
body.dark-mode .tc-container h1,
body.dark-mode .tc-container h2,
body.dark-mode #prof-scroll-div div label {
  color: #dddddd;
}

body.dark-mode .article-page-container {
  background: #373535;
  box-shadow: 2px 0 5px rgba(255, 255, 255, 0.8);
  border: 1px solid #ffffff;
  color: #dddddd;
}
body.dark-mode .article-page-container .site-title {
  color: #fe9001;
}
body.dark-mode .article-page-article-p,
body.dark-mode .article-page-article-p2,
body.dark-mode .title-comment span,
body.dark-mode .article-topic span,
body.dark-mode .image-text-container p,
body.dark-mode .image300-text-container p,
body.dark-mode .image400-text-container p {
  color: #dddddd;
}
body.dark-mode .article-unfavorite {
  background: #524f4f;
}
/*body.dark-mode .prof-lable_captcha{
  color: #000000 !important;
}*/
body.dark-mode .sidebar a:hover {
  background: #4a5f48;
}
/*------------Article-page Font size Setting--------------------*/
.article-page-container.font-small .article-page-article-p,
.article-page-container.font-small .article-page-article-p2,
.article-page-container.font-small .first-span,
.article-page-container.font-small .first-span2,
.article-page-container.font-small .image-text-container p,
.article-page-container.font-small .image300-text-container p,
.article-page-container.font-small .image400-text-container p,
.article-page-container.font-small .footnote,
.article-page-container.font-small .text-a-c {
  font-size: 14px;
}

.article-page-container.font-small .image-text-container img {
  width: 100px;
}
.article-page-container.font-small .image300-text-container img {
  width: 150px;
}
.article-page-container.font-small .image400-text-container img {
  width: 200px;
}
.article-page-container.font-large .image-text-container img {
  width: 250px;
}
.article-page-container.font-large .image300-text-container img {
  width: 400px;
}
.article-page-container.font-large .image400-text-container img {
  width: 500px;
}
.article-page-container.font-small .article-img-2 {
  width: 40%;
}
.article-page-container.font-large .article-img-2 {
  width: 70%;
}
.article-page-container.font-small .site-title,
.article-page-container.font-small .first-site-title {
  font-size: 16px;
}
.article-page-container.font-small .hadith {
  font-size: 18px;
}

.article-page-container.font-medium .article-page-article-p,
.article-page-container.font-medium .article-page-article-p2,
.article-page-container.font-medium .first-span,
.article-page-container.font-medium .first-span2,
.article-page-container.font-medium .image-text-container p,
.article-page-container.font-medium .image300-text-container p,
.article-page-container.font-medium .image400-text-container p,
.article-page-container.font-medium .footnote,
.article-page-container.font-medium .text-a-c {
  font-size: 18px;
}
.article-page-container.font-medium .hadith {
  font-size: 21px;
}
.article-page-container.font-medium .first-site-title {
  font-size: 19px;
}

.article-page-container.font-large .article-page-article-p,
.article-page-container.font-large .article-page-article-p2,
.article-page-container.font-large .first-span,
.article-page-container.font-large .first-span2,
.article-page-container.font-large .image-text-container p,
.article-page-container.font-large .image300-text-container p,
.article-page-container.font-large .image400-text-container p,
.article-page-container.font-large .footnote,
.article-page-container.font-large .text-a-c {
  font-size: 21px;
}
.article-page-container.font-large .hadith {
  font-size: 24px;
}
.article-page-container.font-large .site-title,
.article-page-container.font-large .first-site-title {
  font-size: 21px;
}
.footnote-ref,
.return-icon {
  color: blue;
}
.footnote {
  font-weight: 500;
  font-size: 19px;
}
.Description {
  width: 100%;
  color: black;
  padding: 10px;
  text-align: justify;
  border: 1px solid #4e4c4c;
  border-radius: 6px;
  font-size: 16px;
}
/*This code prevents menu text from breaking into two lines.*/
.header li a,
.navbar a,
nav a {
  white-space: nowrap !important;
}

@media (max-width: 768px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    background: #f0fff0;
    transition: background-color 0.4s ease, color 0.4s ease;
  }
  body * {
    transition: background-color 0.4s ease, color 0.4s ease;
  }
  .Description {
    width: 85%;
    margin-left: 8%;
  }
  .site-header {
    max-width: 100%;
    padding: 0 2%;
  }

  .sabok {
    font-weight: 300;
  }
  .header-top {
    display: none;
  }
  .header-top.open {
    display: block;
  }
  .header-resp {
    display: block;
    width: 98%;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 5px;
  }
  .header-resp .search-form {
    width: 100%;
    display: flex;
    margin-top: 10px;
  }
  .header-resp .search-form input[type="text"] {
    flex: 1;
    padding: 8px 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px 0 0 6px;
  }
  .header-resp .search-form button {
    font-size: 16px;
    border: 1px solid #ccc;
    border-left: none;
    color: white;
    border-radius: 0 6px 6px 0;
  }
  .header-resp .header-bottom {
    display: flex;
    padding: 15px 3px 0 3px;
    justify-content: space-between;
  }
  .header-bottom img {
    width: 40px;
    height: 40px;
    margin-top: -3px;
  }
  .header-resp .hamburger {
    display: block;
    cursor: pointer;
    margin-top: 0;
  }
  .header-resp .hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 4px 0;
    transition: 0.3s;
  }
  .site-title-resp {
    margin: 0 auto;
    font-size: 24px;
    color: #ffffff;
  }
  nav.menu {
    position: fixed;
    top: -8px;
    left: -250px;
    width: 220px;
    height: 100%;
    background-color: #222121;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
    transition: left 0.3s ease;
    flex-direction: column;
    z-index: 1500;
  }
  .select-form {
    float: none;
    margin-top: 0;
  }
  .sort-select {
    width: 100%;
  }
  nav.menu.open {
    left: 0;
  }
  nav.menu ul {
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  nav.menu li {
    padding: 10px;
    border-bottom: 1px solid #ccc;
  }
  nav.menu li a {
    color: #fff;
    text-decoration: none;
    display: block;
  }
  .dropdown-menu {
    position: static;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    padding-left: 10px;
  }
  .dropdown.open > .dropdown-menu {
    max-height: 500px;
    opacity: 1;
  }
  .dropdown-menu {
    display: none;
  }
  .dropdown.open .dropdown-menu {
    display: block;
  }
  .dropdown-menu li a {
    font-size: 16px;
  }
  .dropdown .dropdown-menu {
    padding: 0;
  }
  .cards {
    max-width: 100%;
    padding: 0 10px 30px 10px;
    box-sizing: border-box;
  }
  .cards h2 {
    margin-top: 50px;
  }
  .home-h1 {
    font-size: 1rem;
    margin: 25px auto;
  }
  .home-h2 {
    margin-top: 0;
  }
  .card-container {
    display: flex !important; /* به جای grid از فلکس استفاده کن */
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 15px;
  }
  .card {
    width: 90%;
    max-width: 350px;
  }
  footer {
    width: 100%;
  }
  footer p {
    font-size: 12px;
    padding: 10px;
  }
  footer ul {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    display: flex; /* بهتر از inline-flex برای کنترل تمام‌عرض */
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
  }
  footer ul li {
    margin: 0; /* Remove extra space*/
  }
  .sidebar {
    display: none;
  }
  .breadcrumb {
    margin-top: 10px;
  }
  .breadcrumb {
    display: flex;
    left: 0;
    right: 0;
    top: 12px;
    width: 100%;
  }
  .breadcrumb-with-sidebar {
    display: flex;
    margin-top: 0;
  }

  .breadcrumb-for-speakers {
    top: 95px;
    left: 0px;
    width: 100%;
  }
  .sp-resp-breadcrumb {
    width: 114% !important;
    margin-left: -25px !important;
  }
  .speakers-page {
    width: 90%;
    margin: 68px 26px 10px;
  }
  .speaker-videos {
    width: 100%;
  }
  .speaker-favorite,
  .speaker-unfavorite {
    width: 25px;
    height: 25px;
    margin: 20px 0 40px 0;
    box-shadow: none;
  }
  .speaker-vidinf-desktop {
    display: none !important;
  }
  .speaker-vidinf-mobile {
    display: flex;
    align-items: center;
    height: 30px;
    width: 85%;
    margin-top: 0;
  }
  .video-item h3 {
    width: 80%;
    margin-left: 40px;
    overflow-wrap: break-word;
  }
  .video-item h4 {
    width: 340px;
    margin-left: 40px;
    word-wrap: break-word;
  }
  .speaker-favorite img,
  .speaker-unfavorite img {
    margin-top: 5px;
  }

  .video-wrapper {
    width: 85%;
    height: auto;
  }
  .video-wrapper .play-button {
    top: 49%;
  }
  .overlay.active {
    display: block;
  }
  /*.accordion-text{
    width: 80%;
    margin: 0 0 10px 25px;
  }*/

  .articles-container {
    width: 100%;
    margin: 0 auto;
    padding-top: 0;
  }

  .article-item {
    width: 90%;
    margin: 0 auto; /*I set the upper margin to zero so I can control it ourselves*/
    margin-top: 70px; /*This code will make all items 70 pixels apart.*/
  }
  /*This means that any `.article-item` that comes immediately after another `.article-item` will be only 20 pixels apart.*/
  .article-item + .article-item {
    margin-top: 20px;
  }
  .article-summary {
    max-height: 110px;
  }
  .article-sp {
    position: relative;
    display: block;
  }
  .article-sp img {
    position: absolute;
    top: 0;
    left: 76vw;
  }

  .article-summary div p {
    margin-top: 0;
    line-height: 1;
    text-indent: 0;
  }
  .articles-more-div {
    display: flex;
  }
  .articles-more-div button {
    width: 60vw;
    margin-top: -3px;
  }
  .tooltip::after,
  .tooltip-left200::after {
    /*left: 50% !important;*/
    /*transform: translateX(-50%) !important;*/

    width: 150px;
    text-align: center;
  }
  .site-title {
    font-size: 18px;
  }
  .about-container,
  .contactUs-form,
  .report-form {
    line-height: normal;
  }
  .contactUs-form h4 {
    font-size: 90%;
  }
  .about-container,
  .contactUs-form,
  .report-form,
  .survey-form,
  .tc-container,
  .login-container,
  .signup-container,
  .fp-container {
    width: 85%;
  }
  .tc-container h1 {
    font-size: 6vw;
  }
  .tc-container h2 {
    font-size: 5vw;
  }
  .tc-container p {
    line-height: normal;
  }
  .tc-container h2 {
    margin-top: 20px;
  }
  .article-page-container {
    margin: 15px auto;
    width: 90%;
  }
  .article-page-article-p,
  .article-page-article-p2 {
    font-size: 16px !important;
    font-weight: 400;
  }
  .article-page-article-p .first-span,
  .article-page-article-p2 .first-span {
    font-size: 16px;
    font-weight: 700;
  }
  .title-comment {
    margin-bottom: 0;
  }
  .article-topic span {
    font-size: 18px;
    font-weight: 600;
  }
  .article-unfavorite {
    float: unset;
    width: 270px;
    margin: 0 auto 10px;
  }
  .cc_information {
    display: block;
  }
  .cc_information p:nth-child(2) {
    margin-left: 0;
  }
  .comments-container {
    font-size: 16px;
  }
  .like-box,
  .dislike-box {
    display: inline-flex;
    margin-right: 5px;
    margin-bottom: 10px;
  }
  .like-box {
    margin-left: 65%;
  }
  .cc_information p {
    margin-bottom: 0;
  }
  .vote-section {
    margin-top: 10px;
  }
  .userName {
    display: none;
  }
  .resp-userName {
    width: 400px;
    overflow-x: hidden;
    margin: 0 auto;
    padding: 0;
  }
  .resp-userName p {
    margin: 0;
  }
  .prof-section {
    width: 100%;
    height: auto;
    display: block;
    padding-top: 20px;
  }

  .prof-scroll-div {
    max-height: 450px;
    overflow-y: auto;
  }
  .prof-cards {
    margin-top: 5px;
    height: auto;
  }
  .prof-cards,
  .prof-card-form {
    width: 110%;
    margin-left: -5vw;
  }
  .prof-card-form {
    height: auto;
  }
  .prof-title {
    padding: 0;
  }
  .prof-card-form label {
    font-size: 14px;
  }
  #prof-fn,
  #prof-ln,
  #prof-email {
    width: 200px;
  }
  .prof-password-div,
  .prof-confirm-password-div {
    height: 38px;
  }
  #prof-password,
  #prof-confirm-password {
    height: 28px;
  }
  .prof_div_captcha {
    height: 100%;
  }
  .prof-lable_captcha {
    margin-top: 5px;
    padding: 0;
  }
  #prof-btn {
    width: 20%;
    font-size: 1.1rem;
  }
  .prof-passRules img {
    margin-top: 0px;
    margin-right: 20px;
  }
  .prof-cards-hr {
    display: block;
    height: 15px;
    background: #cfcece;
    border-radius: 10px;
    /*box-shadow: 3px 2px 3px rgba(0, 0, 0, 0.9);*/
  }
  .comment-form {
    padding: 10px 5px 5px 5px;
    margin-bottom: 30px;
  }
  .comment-form textarea {
    width: 98%;
    height: 150px;
    margin-top: -20px;
  }
  .comment-form textarea::placeholder {
    font-size: 14px;
  }

  .image-text-container,
  .image300-text-container,
  .image400-text-container {
    display: block !important;
    text-align: center;
  }

  .image-text-container img,
  .image300-text-container img,
  .image400-text-container img {
    width: 400px;
    height: auto;
    display: block;
    max-width: 95%;
    margin: 10px auto;
  }
  .image-text-container p,
  .image300-text-container p,
  .image400-text-container p {
    font-size: 16px;
    font-weight: 400;
  }
  .article-page-container.font-small .article-page-article-p,
  .article-page-container.font-small .article-page-article-p2,
  .article-page-container.font-small .first-span,
  .article-page-container.font-small .first-span2,
  .article-page-container.font-small .title-comment,
  .article-page-container.font-small .article-topic,
  .article-page-container.font-small .article-topic span,
  .article-page-container.font-small .article-unfavorite p,
  .article-page-container.font-small .image-text-container p,
  .article-page-container.font-small .image300-text-container p,
  .article-page-container.font-small .image400-text-container p {
    font-size: 14px !important;
  }
  .article-page-container.medium .article-page-article-p,
  .article-page-container.medium .article-page-article-p2,
  .article-page-container.medium .first-span,
  .article-page-container.medium .first-span2,
  .article-page-container.font-medium .title-comment,
  .article-page-container.font-medium .article-topic,
  .article-page-container.font-medium.article-topic span,
  .article-page-container.font-medium .article-unfavorite p,
  .article-page-container.font-medium .image-text-container p,
  .article-page-container.font-medium .image300-text-container p,
  .article-page-container.font-medium .image400-text-container p {
    font-size: 16px !important;
  }
  .article-page-container.font-large .article-page-article-p,
  .article-page-container.font-large .article-page-article-p2,
  .article-page-container.font-large .first-span,
  .article-page-container.font-large .first-span2,
  .article-page-container.font-large .title-comment,
  .article-page-container.font-large .article-topic,
  .article-page-container.font-large .article-topic span,
  .article-page-container.font-large .article-unfavorite p,
  .article-page-container.font-large .image-text-container p,
  .article-page-container.font-large .image300-text-container p,
  .article-page-container.font-large .image400-text-container p {
    font-size: 18px !important;
  }
  .article-page-container.font-small .image-text-container img,
  .article-page-container.font-small .image300-text-container img,
  .article-page-container.font-small .image400-text-container img,
  .article-page-container.font-medium .image-text-container img,
  .article-page-container.font-medium .image300-text-container img,
  .article-page-container.font-medium .image400-text-container img,
  .article-page-container.font-large .image-text-container img,
  .article-page-container.font-large .image300-text-container img,
  .article-page-container.font-large .image400-text-container img {
    width: 400px;
  }

  .image-text-container {
    display: block;
  }
  .ms-menu,
  .mf-menu {
    display: block !important;
    margin-right: 0;
    margin-left: auto;
  }
  /*.ms-menu img,
  .mf-menu img {
    width: 20px;
  }*/
  .user_settings,
  .user_settings_2 {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    margin-top: 20px;
    margin-left: 360px;
    top: 129px;
    right: -300px;
    transition: right 0.3s ease;
    z-index: 1000;
    background: #4a5f48;
  }

  .user_settings div div {
    width: 95%;
    padding: 5px;
    margin-left: 5px;
    background-color: #4a5f48;
    border-radius: 0;
  }
  .user_settings_2 form div {
    width: 100%;
    padding: 5px;
    margin-left: -5px;
    background-color: #4a5f48;
    border-radius: 0;
  }
  .user_settings div div label,
  .user_settings_2 form div label {
    color: #ffffff;
  }
  .user_settings hr,
  .user_settings_2 hr {
    width: 95%;
  }
  .user_settings_2 h4 {
    margin: 0;
  }
  .footnote {
    font-size: 14px !important;
    font-weight: 400;
  }
  .footnote span {
    font-size: 16px !important;
  }
  .return-icon {
    font-size: 28px;
    font-weight: 700;
  }
  .modal-content {
    max-width: 75vw;
    margin-top: 10%;
  }
}

/*-------------------------- Tablet Version----------------------*/
@media (min-width: 769px) and (max-width: 1200px) {
  #menu-desktop {
    display: none !important;
  }
  .site-header {
    padding: 0 2%;
  }
  .header-top {
    display: none;
  }
  .header-top.open {
    display: block;
  }
  .header-resp {
    display: block;
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }
  .header-resp .search-form {
    width: 100%;
    display: flex;
    margin-top: 10px;
  }
  .header-resp .search-form input[type="text"] {
    flex: 1;
    padding: 8px 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px 0 0 6px;
  }
  .header-resp .search-form button {
    padding: 8px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-left: none;
    color: white;
    border-radius: 0 6px 6px 0;
  }
  .header-resp .header-bottom {
    display: flex;
    padding: 15px 3px 15px 3px;
    justify-content: space-between;
  }
  .header-bottom img {
    width: 40px;
    height: 40px;
  }
  .header-resp .hamburger {
    display: block;
    cursor: pointer;
    margin-top: 0;
  }
  .header-resp .hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 4px 0;
    transition: 0.3s;
  }
  .search_results_mobile {
    top: 34%;
  }
  .site-title-resp {
    margin: 0 auto;
    font-size: 2px;
    color: #ffffff;
  }
  .site-title {
    font-size: 21px;
  }
  .home-h1 {
    margin-bottom: 0;
  }
  .article-page-container {
    margin-top: 54px;
  }

  .breadcrumb.breadcrumb-with-sidebar {
    position: relative !important ;
    display: flex;
    width: 100%;
  }

  .breadcrumb-for-speakers {
    /*top: 110px;*/
    left: 0px;
    width: 100%;
  }
  .sp-resp-breadcrumb {
    width: 114% !important;
    margin-left: -25px !important;
  }

  .speakers-page {
    max-width: 83%;
    margin: 86px 0 10px 25px;
  }

  nav.menu {
    position: fixed;
    top: -9px;
    left: -250px;
    min-width: 200px;
    height: 100%;
    flex-direction: column;
    background-color: #222121;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
    transition: left 0.3s ease;
    z-index: 1000;
  }
  .menu.open {
    left: 0;
  }
  nav.menu ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  nav.menu li {
    padding: 10px;
    border-bottom: 1px solid #ccc;
  }
  nav.menu li a {
    text-decoration: none;
    color: #ffffff;
    display: block;
    font-size: 16px;
  }
  .dropdown-menu {
    position: static;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    padding-left: 10px;
  }
  .dropdown.open > .dropdown-menu {
    max-height: 500px;
    opacity: 1;
  }
  .dropdown-menu {
    display: none;
  }
  .dropdown.open .dropdown-menu {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .articles-container {
    width: 90%;
    margin: 0 auto;
    padding-top: 5px;
  }

  .article-item {
    width: 100%;
    margin-top: 20px;
    margin-left: 0;
  }
  .article-summary {
    max-height: 90px;
  }
  .article-summary div {
    display: block;
  }
  .article-summary div p {
    margin-top: 0;
    line-height: 0.8;
    text-indent: 0;
  }
  .articles-more-div {
    display: flex;
  }
  .title-p {
    margin-left: 0;
  }
  .video-item {
    display: block;
  }

  .video-item h3 {
    margin: 0 0 0 30px !important;
  }

  .down-arrow {
    margin-left: 14%;
  }
  .about-container,
  .tc-container {
    width: 90%;
  }
  .article-page-container {
    width: 95%;
    margin: 20px auto;
  }

  .comment-form {
    padding: 10px 5px;
    margin-bottom: 30px;
  }
  .user_settings,
  .user_settings_2 {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    margin-top: 20px;
    margin-left: 360px;
    top: 129px;
    right: -300px;
    transition: right 0.3s ease;
    z-index: 1000;
    background: #4a5f48;
  }

  .user_settings div div {
    width: 95%;
    padding: 5px;
    margin-left: 5px;
    background-color: #4a5f48;
    border-radius: 0;
  }
  .user_settings_2 form div {
    width: 100%;
    padding: 5px;
    margin-left: -5px;
    background-color: #4a5f48;
    border-radius: 0;
  }
  .user_settings div div label,
  .user_settings_2 form div label {
    color: #ffffff;
  }
  .user_settings hr,
  .user_settings_2 hr {
    width: 95%;
  }
  .ms-menu,
  .mf-menu {
    display: block !important;
    margin-right: 0;
    margin-left: auto;
  }
  /*.ms-menu img,
  .mf-menu img {
    width: 20px;
  }*/
  .modal-content {
    max-width: 68vw;
    margin-top: 10%;
  }
  .image-text-container,
  .image300-text-container,
  .image400-text-container {
    display: block !important;
    text-align: center;
  }

  .image-text-container img,
  .image300-text-container img,
  .image400-text-container img {
    width: 400px;
    height: auto;
    display: block;
    max-width: 95%;
    margin: 10px auto;
  }
  .image-text-container p,
  .image300-text-container p,
  .image400-text-container p {
    font-size: 16px;
    font-weight: 400;
  }
  .speaker-favorite {
    margin-left: auto;
  }

  .speaker-unfavorite {
    width: 310px;
    margin-left: auto;
    align-items: center;
    justify-content: space-between;
  }
  .speaker-unfavorite img {
    margin-top: 0;
  }
  .video-item .speaker-vidinf-desktop {
    margin-bottom: 30px;
  }
  .dark-screen {
    align-items: flex-start !important;
  }
  .success-box {
    margin-top: 250px;
  }
  .prof-section {
    width: 100%;
    height: auto;
    display: block;
    padding-top: 20px;
  }
  .prof-scroll-div {
    max-height: 450px;
    overflow-y: auto;
  }
  .prof-cards {
    margin-top: 5px;
    height: auto;
  }
  .prof-cards,
  .prof-card-form {
    width: 100%;
  }
  .prof-card-form {
    height: auto;
  }
  .prof-title {
    padding: 0;
  }
  .prof-card-form label {
    font-size: 14px;
  }
  #prof-fn,
  #prof-ln,
  #prof-email {
    width: 200px;
  }
  .prof-password-div,
  .prof-confirm-password-div {
    height: 38px;
  }
  #prof-password,
  #prof-confirm-password {
    height: 28px;
  }
  .prof_div_captcha {
    height: 100%;
  }
  .prof-lable_captcha {
    margin-top: 5px;
    padding: 0;
  }
  #prof-btn {
    width: 20%;
    font-size: 1.1rem;
  }
  .prof-passRules img {
    margin-top: 0px;
    margin-right: 20px;
  }
  .prof-cards-hr {
    display: block;
    height: 15px;
    background: #cfcece;
    border-radius: 10px;
    /*box-shadow: 3px 2px 3px rgba(0, 0, 0, 0.9);*/
  }
  .articles-content {
    margin-top: 19px;
  }
}
