/* Default Layout (Desktop / Large Screens) */
.container1 {
  display: flex;
  gap: 20px;
  padding: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Sidebar */
.sidebar {
  width: 28%;
}

.sidebar-card {
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.sidebar-card img {
  width: 100%;
  border-radius: 8px;
  margin: 0 auto 10px;
  display: block;
}

.sidebar-card h3 {
  margin-bottom: 10px;
  font-size: 16px;
  color: #b33a3a;
}

.sidebar-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-card ul li {
  font-size: 14px;
  margin-bottom: 8px;
  color: #333;
}

.sidebar-card ul li::before {
  content: "• ";
  color: #b33a3a;
}

/* Content */
.content {
  width: 50%;
  padding-left: 150px;
}

.content-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.content-card img {
  width: 80%;
  margin-bottom: 20px;
  padding-left: 50px;
}

.content-card h2 {
  font-size: 18px;
  color: #9C1137;
  margin-top: 20px;
}

/* Paragraphs */
p {
  font-size: 14px;
}

/* Related Posts */
.related-posts {
  margin-top: 40px;
}

.related-posts h2 {
  text-align: center;
  color: #b33c3c;
  padding-bottom: 4px;
}

.posts-grid {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  justify-content: center;
}

.post-card {
  background: white;
  width: 30%;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.post-card img {
  width: 100%;
  border-radius: 8px;
}

.post-card .post-meta {
  font-size: 12px;
  color: #999;
  margin: 8px 0;
}

.post-card h3 {
  font-size: 16px;
  color: #b33c3c;
}

.post-card p {
  font-size: 14px;
  color: #333;
}

.post-card a {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: #b33c3c;
  text-decoration: none;
}

/* ✅ Responsive Media Queries */

/* Tablets */
@media (max-width: 992px) {
  .container1 {
    flex-direction: column;
    padding: 20px;
  }
  .sidebar, .content {
    width: 100%;
    padding-left: 0;
  }
  .content-card img {
    width: 100%;
    padding-left: 0;
  }
  .posts-grid {
    flex-wrap: wrap;
  }
  .post-card {
    width: 45%;
  }
}

/* Mobile Phones */
@media (max-width: 600px) {
  .container1 {
    padding: 15px;
  }
  .post-card {
    width: 100%;
  }
  .sidebar-card, .content-card {
    padding: 12px;
  }
  .content-card h2, .post-card h3 {
    font-size: 15px;
  }
  p, .post-card p {
    font-size: 13px;
  }
}
