.many-section {
  padding: 20px 0;
  width: 100%;
}

.msc-row {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.main-top-news {
  width: 75%;
  padding: 10px 20px;
  padding-right: 0 !important;
}

.msc-left {
  width: 25%;
  padding-top: 31px;
}

.msc-left > img {
  margin-bottom: 10px;
}

.mscr-first-row,
.mscr-second-row {
  margin-bottom: 10px;
}

.mscr-first-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 5px;
  margin-bottom: 40px;
}
.mscr-second-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 10px;
}

.box {
  width: 100%;
  height: 300px;
}

.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 0px;
}

.tab {
  cursor: pointer;
  border: none;
  background: none;
  font-size: 16px;
  font-weight: normal;
  transition: 0.3s;
  box-shadow: inset 0 0 5px gray;
  padding: 5px 10px;
  flex-grow: 1;
  cursor: pointer;
  font-family: "NassimN";
}

.tab:not(.active):hover {
  background-color: rgba(128, 128, 128, 0.356);
}

.tab.active {
  box-shadow: none;
  cursor: context-menu;
  color: #960d0d;
}

.tab-content {
  display: none;
  height: 244px;
}

.tab-content.active {
  display: block;
}

.scrollable-tab-content {
  display: block;
  max-height: 100%;
  display: block;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  border: solid #dfdfdf;
  border-width: 0 0 0.1rem 0.1rem;
}

/* در سایز بزرگ‌تر این تب پنهان باشد */
#mobile-box {
  display: none;
}

/* بخش جدول نمایش اطلاعات ارزی */
.tc-table tr > th {
  font-size: 14px;
  font-weight: normal;
  color: #666;
  text-align: start;
  padding-right: 8px;
}
.tc-table tr > td {
  text-align: start;
  font-weight: normal;
  padding: 8px 16px;
  padding-left: 0;
  font-size: 15px;
}
.chart-icon-col i {
  border: 1px solid #d4d4d4;
  padding: 3px;
  color: #b71818;
  background-color: #fff; 
}
.chart-icon-col i:hover {
  color: #fff;
  background-color: #b71818;
}

.tc-table thead{
  position: sticky;top: 0;z-index: 2;
}
.tc-table thead tr {
  background-color: #f2f2f2;
  position: relative;
}
.tc-table thead tr th {
  padding: 8px 16px;
}
.tc-table tbody tr {
  cursor: pointer;
  border-bottom: 1px solid #ddd;
  font-size: 12px;
}
.tc-table tbody tr:hover {
  background-color: #ff4d4d3a;
}

.tc-table tbody {
  background-color: #fff;
}

.chart-icon-col {
  position: relative;
}
.chart-icon-col i:hover ~ .chart-explain {
  display: block;
}
.chart-explain {
  display: none;
  position: absolute;
  font-size: 12px;
  font-weight: bold;
  background-color: #444;
  color: #fff;
  padding: 5px;
  border-radius: 2px;
  top: -60%;
  right: 15%;
  transition: opacity 0.3s ease-in-out;
  z-index: 7;
}

/* بخش فرم برای مبدل قیمت ارز ها */
.many-section-col {
  display: flex;
  flex-direction: column; /* چینش عمودی */
  height: 100%; /* ارتفاع پدر پر شود */
  text-align: center;
  font-weight: bold;
  width: 100%;
}

.many-section-col > .mscr-content {
  flex: 1; /* تمامی المنت‌ها فضای موجود را به طور مساوی تقسیم می‌کنند */
  width: 100%; /* عرض کامل */
  border: none; /* حذف بوردر پیش‌فرض */
  outline: none;
}

.many-section-col input {
  font-size: 19px;
  font-family: "Yekan";
  flex: 1;
  padding: 10px 16px;
  border: none;
  outline: none;
  text-align: center;
}
.many-section-col select {
  appearance: none;
  flex: 1;
  padding: 17px;
  font-size: 16px;
  border: none; /* حذف بوردر پیش‌فرض */
  outline: none;
  text-align: center;
  font-family: "Nassim";
}
.many-section-col select {
  box-shadow: inset 0 0 5px #555;
  background-color: #f3f1f1;
  width: 100%;
  height: 100%;
}
.many-section-col .select-first-unit {
  flex: 1;
  position: relative;
}
.many-section-col .select-first-unit::after {
  content: "\f078";
  font-family: FontAwesome;
  position: absolute;
  left: 15px;
  top: 15px;
  color: #999;
  font-size: 15px;
}
.many-section-col select option {
  font-size: 14px;
  padding: 8px;
  width: 300px;
}
/* .many-section-col input:focus,
.many-section-col select:focus {
  box-shadow: 0 0 5px 1px #b71818;
  scale: 1.01;
} */
.many-section-col.form .result-text {
  background-color: #333;
  color: #fff;
  margin-bottom: 0;
  padding: 13px 0;
  font-family: "Yekan";
  font-size: 18px;
}
.many-section-col.form .border-top {
  background-color: #960d0d;
  height: 4px;
}
.many-section-col.coins .border-top {
  background-color: #960d0d;
  height: 4px;
}
.many-section-col.form > .result-btn {
  background-color: #b71818;
  color: #fff;
  cursor: pointer;
  padding: 16px 0;
  font-family: "Nassim";
  font-size: 18px;
}
.many-section-col.form > .result-btn > i {
  margin-right: 10px;
  position: relative;
  bottom: -2px;
}
.many-section-col .mscr-content {
  text-align: center;
  font-size: 18px;
  padding: 10px;
  background-color: #fff;
  border: solid #dfdfdf;
  border-width: 0 0 1px 1px;
}
/* بخش عکس های ردیف دوم */
.mscr-content {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 10px;
  cursor: pointer;
}

.mscr-image {
  object-fit: cover;
}

.mscr-text {
  font-size: 16px;
  color: #333;
  text-align: start;
}

.many-section-header {
  display: flex;
  padding: 0 !important;
  justify-content: space-between;
  height: 20px !important;
  align-items: center;
  margin-bottom: 5px;
}

.many-section-header:hover .many-section-table {
  margin-right: 10px;
}

.many-section-header .more-title-button {
  text-decoration: none;
  background-color: #e8e8e8;
  border-radius: 0 0 2px 2px;
  color: #666;
  font-size: 11px;
  font-weight: normal;
  padding: 0 10px 2.5px;
  color: gray;
  font-family: "YekanN";
  margin-bottom: 4px;
}

.many-section-header .more-title-button:hover {
  background-color: rgb(143, 140, 140);
  color: rgb(221, 218, 218);
  cursor: pointer;
}

.many-section-header .many-section-table {
  display: flex;
  align-items: center;
  transition: margin-right 0.5s ease-in-out;
  cursor: pointer;
}

.many-section-header .many-section-table > i {
  position: relative;
  bottom: 2px;
}

.many-section-header .many-section-table > p {
  margin-bottom: 0;
  font-family: "Nassim";
  font-size: 15px;
  margin-right: 5px;
}

.many-section-header .many-section-table > i {
  margin-left: 5px;
}

.mscr-content.zero {
  border-top: 2px solid #444;
}

.mscr-content.zero:hover > p {
  color: #444;
}

.mscr-content.first {
  border-top: 2px solid #6a5acd;
}

.mscr-content.first:hover > p {
  color: #6a5acd;
}

.mscr-content.second {
  border-top: 2px solid #00bfff;
}

.mscr-content.second:hover > p {
  color: #00bfff;
}

.mscr-content.third {
  border-top: 2px solid #dc143c;
}

.mscr-content.third:hover .third-text > p,
.mscr-content.third:hover .third-text > h6 {
  color: #dc143c;
}

.mscr-content.fourth {
  border-top: 2px solid #ba55d3;
}

.mscr-content.fourth:hover > p {
  color: #ba55d3;
}

.mscr-content.fifth {
  border-top: 2px solid #228b22;
}

.mscr-content.fifth:hover > p {
  color: #228b22;
}
.mscr-content.third .third-text {
  max-width: 200px;
}
.mscr-content.third .third-text > h6 {
  max-width: 100%;
  white-space: nowrap;
  font-size: 15px;
  font-family: "NassimN";
  overflow: hidden;
  text-overflow: ellipsis;
  color: #444;
  font-weight: 100;
  display: block;
}

.mscr-content.third .third-text > p,
.mscr-content > p {
  font-size: 16px;
  font-weight: bold;
  font-family: "Nassim";
  align-self: start;
  transition: color 0.2s ease-in-out;
  line-height: 1.34;
  margin-bottom: 0;
}

.mscr-content h6,
.mscr-content p {
  display: flex;
  flex-direction: column; /* متن‌ها زیر هم قرار می‌گیرند */
}


.tc-table thead tr > th,
.tc-table tbody tr > td {
  font-family: "NassimN";
  white-space: nowrap;
  width: 24%;
}

.container {
  display: flex;
  justify-content: center;
  gap: 5px;
}

/* حالت موبایل */
@media screen and (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  .box {
    width: 100%;
  }
  .box.hidden {
    display: none;
  }
  #mobile-box {
    display: block;
  }
  .msc-row {
    flex-direction: column;
  }
  .main-top-news,
  .msc-left {
    width: 100%;
  }
  .msc-left > img {
    width: 100%;
  }
  .mscr-first-row {
    grid-template-columns: 1fr;
  }
  .chart-icon-col {
    display: none;
  }
  .tc-table thead tr th:last-child {
    display: none;
  }
  .tc-table thead,
  .tc-table tbody {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
  }
  .tc-table thead tr,
  .tc-table tbody tr {
    display: flex;
    justify-content: space-around;
    border-bottom: 1px solid gray;
  }

  .tab-content {
    padding: 0;
  }
}
@media screen and (max-width: 425px) {
  .mscr-second-row {
    grid-template-columns: 1fr;
    grid-template-rows: 6fr;
  }
  .tc-table {
    max-height: 300px;
  }
  .tc-table tr > th {
    padding: 10px 20px;
  }
  .tc-table tr > td {
    padding: 5px 10px;
  }
}
