.main-layout {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
  gap: 20px;
}

.main-wrapper {
  width: 100%;
  background-color: #f9f9f9;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.sidebar-wrapper {
  background-color: var(--background-color);
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.main-header {
  margin: 10px 0;
}

.main-title {
  font-size: 17px;
  font-weight: bold;
  text-align: center;
  text-shadow: 2px 9px 8px rgba(0, 0, 0, 0.2);
}

.main-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px !important;
  font-size: 14px;
  color: #666;
  margin-top: 10px;
}

.right-meta,
.left-meta {
  display: flex;
  align-items: center;
  gap: 5px;
}
.right-meta img,
.left-meta img {
  width: 20px;
}

.main-media {
  width: 100%;
}

.main-media img {
  width: 100%;
  max-height: 420px;
  border-radius: 10px;
  object-fit: cover;
}
.intro-pics {
  width: 100%;
  max-height: 420px;
  border-radius: 10px;
  object-fit: contain;
}
.intro-video {
  width: 100%;
  max-height: 520px;
  border-radius: 10px;
  object-fit: contain;
  display: block;
  margin: 1rem 0;
}
.video-caption {
  font-size: 13px;
  color: #717171;
  text-align: center;
  margin-top: 0.5rem;
  line-height: 1.6;
  margin: 10px 0px 50px 0px;
}

.main-description {
  font-family: "Vazirmatn", sans-serif;
  font-size: 13px;
  line-height: 2;
  color: #333;
  padding: 0 20px;
  max-width: 1300px;
  margin: 40px auto;
}
.main-description > section > h2:first-child {
  font-size: 18px;
  color: #227669;
  border-top: solid 1px #aaaaaa;
  padding-top: 12px;
  margin: 40px 0px 10px 0px;
}

.description-text {
  margin-bottom: 20px;
  text-align: justify;
  font-weight: 400;
}
.caption {
  font-size: 0.75rem;
  font-style: italic;
  color: #666;
  text-align: center;
  margin-top: 3px;
  margin-bottom: 18px;
}

ul li {
  margin-top: 15px;
}

.benchmark-block {
  margin: 30px 0;
}

.benchmark-subtitle {
  font-weight: bold;
  margin: 10px 0;
  font-size: 15px;
}

.benchmark-note {
  font-size: 13px;
  color: #666;
  margin-top: 8px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.bar-row span {
  width: 130px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.bar {
  position: relative;
  background: #e5e7eb;
  height: 20px;
  width: 100%;
  max-width: 500px;
  border-radius: 8px;
  overflow: hidden;
  direction: ltr;
}
.bar-fill {
  background: #3b82f6;
  height: 100%;
  width: 0;
  border-radius: 8px 0 0 8px;
}

.bar-fill1 {
  background: #3b82f6;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}

.bar-fill2 {
  background: #9333ea;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0.3;
}

.bar em {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #000;
  font-style: normal;
  font-weight: bold; /* عدد داخل میله ضخیم شود */
}
.benchmark-legend {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  font-size: 13px;
  color: #444;
  font-weight: 500;
  direction: rtl;
}

.legend-box {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 6px;
  border-radius: 3px;
}

.legend-box.single-core {
  background-color: #3b82f6;
}

.legend-box.multi-core {
  background-color: #9333ea;
  opacity: 0.3;
}
.img-caption {
  font-size: 12px;
  color: #555;
  margin-top: 6px;
  line-height: 1.7;
  text-align: center;
  font-style: italic;
  margin-bottom: 20px;
}
.bar-fill.blue {
  background-color: #3b82f6;
}

.bar-fill.green {
  background-color: #10b981;
}

.bar-fill.yellow {
  background-color: #facc15;
}

.bar-fill.orange {
  background-color: #f97316;
}

.bar-fill.purple {
  background-color: #8b5cf6;
}
table caption {
  font-style: italic;
  border-right: solid 3px var(--primary-color);
}
.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.battery-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  font-family: sans-serif;
  direction: rtl;
  font-size: 12px;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

.battery-table caption {
  text-align: right;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #222;
  font-size: 15px;
  padding: 0.5rem 1rem;
  background-color: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.battery-table th {
  background-color: #f0f4f8;
  color: #1a1a1a;
  font-weight: 600;
  text-align: center;
  padding: 0.75rem 0.25rem;
  border-bottom: 1px solid #ddd;
}

.battery-table td {
  padding: 0.75rem;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.battery-table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

.battery-table tbody tr:hover {
  background-color: #e6f0ff;
}

.battery-table tbody tr:first-child td {
  background-color: #e9f7ef;
  font-weight: bold;
  color: #227669;
}

.compare-summary {
  padding: 20px;
  background: #f9f9f9;
  border-radius: 16px;
  margin-top: 40px;
}

.comparison-box {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-column {
  background: white;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.card-column h3 {
  font-size: 17px;
  color: #222;
  margin-bottom: 12px;
}

.card-column ul {
  list-style: none;
  padding: 0;
}
.card-column ul li {
  padding: 6px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
}
.title-with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
}
.title-with-icon img {
  width: 17px;
  max-width: 100%;
}
.gallery-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px;
  margin-bottom: 20px;
}

.gallery-container img {
  width: 150px;
  max-width: 100%;
  height: 150px;
  height: auto;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: 2px 4px 7px -1px #000000;
}

.gallery-container img:hover {
  transform: scale(1.05);
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
}

.lightbox-controls {
  margin-top: 10px;
  display: flex;
  gap: 20px;
}

.lightbox button {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  background: white;
  border: none;
  border-radius: 4px;
}

.re9-blockquote {
  background: #1f1f1f;
  color: #f0f0f0;
  border-right: 4px solid #00ff99;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1em;
  border-radius: 0.5rem;
  line-height: 1.8;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 255, 153, 0.15);
}

.re9-blockquote::before {
  content: "“";
  color: #00ff99;
  position: absolute;
  top: -10px;
  right: 15px;
  font-family: serif;
  line-height: 1;
}

.note {
  font-size: 14px;
  background: #fff7ed;
  padding: 10px 15px;
  border-left: 4px solid #f59e0b;
  border-radius: 6px;
  overflow-x: scroll;
}

@media screen and (min-width: 767px) {
  .main-description {
    font-size: 15px;
  }

  .main-title {
    text-align: start;
  }

  .main-meta {
    justify-content: start;
  }
  .main-description > section > h2:first-child {
    font-size: 22px;
  }
}

@media screen and (min-width: 1023px) {
  .main-layout {
    align-items: start;
  }
  .main-description {
    font-size: 15px;
    padding: 0 16px;
  }

  .description-text {
    line-height: 1.8;
  }

  .main-header {
    width: 90%;
  }

  .main-title {
    font-size: 22px;
  }

  .main-layout {
    flex-direction: row;
  }
  .main-wrapper {
    width: 70%;
  }

  .sidebar-section {
    width: 100%;
    min-width: 400px;
  }
  .main-description > section > h2:first-child {
    font-size: 24px;
  }
  .battery-table {
    font-size: 15px;
  }

  .battery-table caption {
    font-size: 17px;
  }

  .battery-table th,
  .battery-table td {
    padding: 1rem;
  }
  .comparison-box {
    flex-direction: row;
    justify-content: space-between;
  }

  .card-column {
    width: 48%;
  }
}

.trending-tags-description {
  display: flex;
  gap: 10px;
}

.trending-tags-description > p {
  font-weight: bold;
}

.trending-tags-description {
  display: flex;
  flex-wrap: wrap;
}

.trending-tags-description span {
  font-size: 12px;
  color: var(--primary-color);
  background-color: var(--gray-light);
  padding: 8px 12px;
  border-radius: 15px;
}

pre {
  background-color: #f5f5f5;
  padding: 12px 16px;
  border-radius: 6px;
  overflow-x: auto;
  white-space: pre;
  direction: ltr;
}

code {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.9rem;
  white-space: pre;
  color: #2d2d2d;
}

.person-icon,
.time-icon {
  width: 16px;
  height: 16px;
}
