/* ─── ARTICLE PAGE ─── */
main.main {
  max-width: 900px;
  margin: 48px auto 80px auto;
  padding: 24px 32px 48px 32px;
  background: #fff;
  box-shadow: 0 6px 24px rgb(0 0 0 / 0.08);
  border-radius: 12px;
}

main.main h1.blog-title {
  color: #1275e0;
  font-size: 2.6em;
  margin-bottom: 8px;
  font-weight: 700;
  line-height: 1.1;
}

.blog-meta {
  font-size: 1em;
  color: #70788a;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.author-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.blog-category {
  background: #eaf6ff;
  color: #1888ff;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.96em;
  font-weight: 500;
}

article.blog-content {
  font-size: 1.15em;
  color: #27314d;
  margin-bottom: 40px;
}

article.blog-content p {
  margin-bottom: 18px;
}

article.blog-content h2 {
  color: #1275e0;
  font-size: 1.6em;
  margin: 30px 0 12px;
}

article.blog-content h3 {
  color: #1275e0;
  font-size: 1.3em;
  margin: 24px 0 10px;
}

article.blog-content ul,
article.blog-content ol {
  margin: 0 0 18px 24px;
}

article.blog-content li {
  margin-bottom: 6px;
}

article.blog-content blockquote {
  border-left: 4px solid #1275e0;
  background: #eaf6ff;
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
  color: #27314d;
  font-style: italic;
}

article.blog-content code {
  background: #eaf6ff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}

article.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 28px;
}

/* ─── TABLES ─── */
.table-container {
  overflow-x: auto;
  margin: 24px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}
th, td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}
th {
  background: #f8fafc;
  color: #1275e0;
  font-weight: 600;
}

/* ─── RELATED POSTS ─── */
.related-blogs {
  margin-top: 48px;
}

.related-blogs h2 {
  color: #1275e0;
  font-size: 2em;
  margin-bottom: 24px;
  font-weight: 700;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-item {
  background: #f0f6ff;
  border-radius: 12px;
  box-shadow: 0 3px 15px rgb(18 117 224 / 0.15);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.3s;
  text-decoration: none;
  display: block;
}

.related-item:hover {
  box-shadow: 0 8px 30px rgb(18 117 224 / 0.25);
  transform: translateY(-5px);
}

.related-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.related-content {
  padding: 14px 18px;
}

.related-title {
  font-size: 1.12em;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #1275e0;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .related-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  main.main {
    margin: 32px 16px 60px 16px;
    padding: 28px 16px 48px 16px;
    border-radius: 10px;
  }
  main.main h1.blog-title { font-size: 2em; }
  .related-list { grid-template-columns: 1fr; }
}

/* ─── DISPLAY ADS WRAPPER & CONTAINER ─── */
.ads-wrapper {
  max-width: 100%;
  margin: 0 0 28px 0;
  box-sizing: border-box;
}
.ads-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.ad-left, .ad-right {
  min-height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}
@media (max-width: 768px) {
  .ads-container {
    grid-template-columns: 1fr;
  }
  .ad-right {
    display: none !important;
  }
}
