.blog-details-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  gap: 30px;
}

.main {
  flex: 3;
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  min-width: 0;
}

.sidebar {
  flex: 1;
  position: sticky;
  top: 20px;
  background: #f9f9f9;
  padding: 15px;
  height: fit-content;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  min-width: 0;
}

.main img.banner {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.meta {
  font-size: 14px;
  color: #666;
  margin: 10px 0;
}

.college {
  margin: 30px 0;
}

.college h2 {
  color:  #e73229;
  font-size: 28px;
  margin-bottom: 10px;
}

.college h3 {
  font-size: 22px;
}

.college h3 {
  margin: 10px 0 5px;
  color: #333;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* Space between the items */
  font-size: 14px;
  color: #666;
  margin: 10px 0;
  align-items: center;
}

.meta i {
  margin-right: 5px; /* Space between icon and text */
}

.meta span {
  display: flex;
  align-items: center; /* Align icon and text together */
}


.author {
  text-align: center;
  background: linear-gradient(90deg, #e73229, #f28c13);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border: 1px solid #e73229;
  color: #fff;
}

.article-footer-social {
  background: linear-gradient(90deg, #de0e0e, #fc8823);
  color: black;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin: auto;
}

.author img {
  width: 100%;
  margin-bottom: 30px;
}

.author h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.products {
  background: white;
  padding: 20px;
  border-radius: 10px;
}

.products .product {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.products .product img {
  width: 60px;
  margin-right: 10px;
  border-radius: 5px;
}

.products .product p {
  margin: 0;
}

.products .product a {
  font-size: 13px;
  color: #2196f3;
}

.comment-main-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
}

.comment-container {
  background: #fff;
  padding: 40px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 700px;
  width: 100%;
}

.comment-container h2 {
  margin-bottom: 30px;
  font-size: 24px;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.form-row .form-group {
  flex: 1 1 48%; /* Side-by-side on desktop */
  min-width: 200px;
}

.form-group textarea {
  width: 100%;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: none;
  box-sizing: border-box;
}

textarea {
  height: 150px;
}

.submit-btn {
  background: linear-gradient(90deg, #e73229, #f28c13);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 40px;
  font-size: 16px;
  cursor: pointer;
}

/* Mobile: Stack inputs */
@media (max-width: 768px) {
  .form-row .form-group {
    flex: 1 1 100%;
  }
}


.submit-btn:hover {
  background-color: #e74c3c;
}

.comment-main-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;  /* Horizontally center items */
  align-items: center;      /* Vertically center items */
  margin: 0 auto;           /* Center the container */
  width: 100%;              /* Make the container take full available width */
  max-width: 1200px;        /* Ensure the container doesn't exceed 1200px */
  margin-bottom: 50px;
  padding: 0 20px;          /* Add some padding for smaller screens */
  box-sizing: border-box;   /* Include padding in total width calculation */
}

.comment-main-container > * {
  margin: 10px;             /* Optional: add space between items */
  flex: 1 1 auto;           /* Allow children to grow and shrink equally */
}



.comments-section {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  background-color: #fff;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  height: 86vh;
  overflow-y: auto;
}

.comments-count {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
}

.comment {
  border-bottom: 1px solid #eee;
  padding: 15px 0;
}

.comment:last-child {
  border-bottom: none;
}

.comment-name {
  font-weight: bold;
  font-size: 16px;
}

.comment-email {
  font-size: 14px;
  color: #888;
}

.comment-text {
  margin: 10px 0;
  font-size: 15px;
}

.comment-footer {
  font-size: 13px;
  color: #666;
}

.comment-footer span {
  margin-right: 10px;
  cursor: pointer;
  color: #007BFF;
}

/* 🔁 Responsive Enhancements */
@media (max-width: 991px) {
  .blog-details-container {
    flex-direction: column;
    padding: 15px;
  }

  .sidebar {
    position: relative;
    top: 0;
    order: 2;
  }

  .main {
    order: 1;
  }

  .form-row {
    flex-direction: column;
    gap: 10px;
  }

  .form-group {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .comment-container {
    padding: 20px;
  }

  .comment-container h2 {
    font-size: 20px;
  }

  .author h3 {
    font-size: 16px;
  }

  .submit-btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  .products .product {
    flex-direction: column;
    align-items: flex-start;
  }

  .products .product img {
    margin-bottom: 10px;
  }
}
