body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  background: #f4f4f4;
  color: #333;
}

.main{
  display: flex;
  gap: 20px;
  background-color: #e9e7e8;
}

.post-container {
  max-width: 800px;
  margin-top: 20px;
  margin-bottom: 20px;
  background: #fff;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  height: fit-content;
}

.post-title {
  font-size: 32px;
  margin-bottom: 10px;
}

.post-meta {
  font-size: 14px;
  color: #777;
  margin-bottom: 20px;
}

.post-meta span {
  margin-right: 15px;
}

.post-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 25px;
}
.post-image iframe {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 6px;
  margin-bottom: 25px;
  display: block;
}
.post-content p {
  text-align: justify;
  text-justify: inter-word;
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 15px;
}
.post-actions {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.action-btn {
  background: #f0f0f0;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.action-btn:hover {
  background: #e0e0e0;
}

.action-btn .count {
  margin-left: 6px;
  color: #555;
  font-weight: bold;
}
.comment-section {
  margin: 5px;
  padding: 10px;
  background: #fefefe;
  border: 1px solid #ddd;
  border-radius: 10px;
  animation: fadeIn 0.4s ease-in-out;
}
.comment-section form {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.comment-section input,
.comment-section textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.comment-section button {
  padding: 10px;
  background-color: #007BFF;
  color: white;
  border: none;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}

.comment-section button:hover {
  background-color: #0056b3;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.single-comment {
  background: #f7f7f7;
  border: 1px solid #ddd;
  padding: 12px;
  margin: 10px 0;
  border-radius: 6px;
}

.single-comment p {
  margin: 6px 0 0;
  line-height: 1.5;
}

.comment-section h4 {
  margin-top: 20px;
}

/* For Left Container */
.left-post {
    display: grid;
    grid-template-columns: repeat(1,1fr);
    gap: 15px;
    background: #fff;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: left;
    height: fit-content;
}

/* Optional: Heading and paragraph styling */
.left-post h2 {
    color: black;
    font-size: 20px;
    margin-bottom: 10px;
}
.left-post h2 hr {
    flex-grow: 1;
    border: none;
    height: 2px;
    background-color: blue;
}

.left-post p {
    font-size: 16px;
    color: black;
    margin-bottom: 8px;
}

.add-news{
  width: 100%;
  max-width: 290px;
  height: fit-content;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin: 5px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.add-news:hover{
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.add-news a {
  text-decoration: none;
  color: #111;
}

.add-news img{
   width: 100%;
  height: 200px;
  object-fit: cover; /* Image fit garna */
  display: block;
}

.add-news iframe{
  width: 100%;
  height: 200px;
  display: block;
  border-radius: 6px;
}
.add-news h4{
    padding: 10px;
  font-size: 16px;
  color: #111;
  line-height: 1.4;
}
.add-news h4:hover{
   color: #2980b9;
}
.add-news p{
    font-size: 16px;
    color: black;
}

/* For right cintainer */
.right-post {
    display: grid;
    grid-template-columns: repeat(1,1fr);
    gap: 15px;
    background: #fff;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-right: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: left;
    height: fit-content;
}

/* Optional: Heading and paragraph styling */
.right-post h2 {
    color: black;
    font-size: 20px;
    margin-bottom: 10px;
}

.right-post h2 hr {
    flex-grow: 1;
    border: none;
    height: 2px;
    background-color: blue;
}

.right-post p {
    font-size: 16px;
    color: black;
    margin-bottom: 8px;
}

.recent-container{
  width: 100%;
  max-width: 290px;
  height: fit-content;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin: 5px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;

}
.recent-container:hover{
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.recent-container a {
  text-decoration: none;
  color: #111;
}

.recent-container img{
   width: 100%;
  height: 200px;
  object-fit: cover; /* Image fit garna */
  display: block;
}
.recent-container iframe{
  width: 100%;
  height: 200px;
  display: block;
  border-radius: 6px;
}
.recent-container h4{
    padding: 10px;
  font-size: 16px;
  color: #111;
  line-height: 1.4;
}
.recent-container h4:hover{
   color: #2980b9;
}
.recent-container p{
    font-size: 16px;
    color: black;
}

.post-action {
  display: flex;
}

.action-btn {
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Responsive for mobile */
@media (max-width: 768px) {
  .left-post,
  .right-post {
    display: none;
  }

  .post-container {
    flex: 1 1 100%;
    width: 100%;
  }

  .main {
    flex-direction: column; /* Optional: vertical layout on mobile */
  }
  .post-action {
    flex-direction: row;
  }

  .action-btn {
    flex: 1; /* सबै बटन बराबर चौडाइमा */
    font-size: 16px;
    padding: 10px;
  }
}
