/* General Styles */
body.blog-bodyy {
  margin: 0;
  padding: 0;
  font-family: "Arial", sans-serif;
  background-color: #f8f8f8;
  color: #333;
}

/* Header Styles */
header.blog-header {
  text-align: center;
  padding: 30px 20px;
  background-color: #ff3399;
  color: white;
}

header.blog-header h1 {
  font-size: 2.5rem;
  margin-bottom: 5px;
}

header.blog-header p {
  font-size: 1.2rem;
  margin: 0 0 20px;
}

header.blog-header #search-bar {
  width: 80%;
  max-width: 400px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
}

/* Blog Section */
.blog-section {
  padding: 1px 25px;
  text-align: center;
}

.blog-section h1 {
  font-size: 2.2rem;
  color: #ff3399;
  margin-bottom: 50px;
}

.blog-section-container {
  display: flex;
  justify-content: center;
  gap: 20px; /* Space between items */
  align-items: stretch;
  flex-wrap: wrap; /* Enable wrapping for responsiveness */
}

/* Individual blog post styles */
.blog-section-post {
  width: 30%; /* Default width for larger screens */
  height: 430px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: pointer;
}

.blog-section-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.blog-section-post img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-bottom: 1px solid #ddd;
  margin-top: 0px;
  max-width: 100%;
}

.blog-section-post-content small {
  font-size: 0.7rem;
}

/* .blog-section-container .custom-link img {
  width: 100%;
  max-width: 100%;
  margin: 0px 0px 0px 0px;
  padding: 0px 0px 0px 0px;
} */

.blog-section-post-content {
  padding: 5px;
  text-align: left;
  margin-bottom: 1px;
}

.blog-section-post-content .tag {
  display: inline-block;
  background-color: #ff3399;
  color: white;
  font-size: 0.9rem;
  padding: 5px 10px;
  border-radius: 5px;
  margin-bottom: 0px;
  text-transform: uppercase;
}

.blog-section-post-content h4 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 5px;
  margin-top: 3px;
}

.blog-section-post-content p {
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 10px;
  line-height: 1.5;
}

.blog-section-post-content .custom-link {
  font-size: 1rem;
  color: #ff3399;
  text-decoration: none;
  font-weight: bold;
}

.blog-section-post-content .custom-link:hover {
  text-decoration: underline;
}

/* Modal Styles */
.blog-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
  width: 90%;
  max-width: 600px;
  position: relative;
}

.modal-content h2 {
  margin: 0 0 15px;
  font-size: 1.8rem;
  color: #333;
}

.modal-content img {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
  border-radius: 8px;
}

.modal-content p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.modal-content .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
  color: #ff3399;
  cursor: pointer;
}

.modal-content .close-btn:hover {
  color: #e60073;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .blog-section-post {
    width: calc(50% - 20px); /* Two posts per row */
  }

  .blog-section-post img {
    height: 180px; /* Larger image for readability */
  }

  header.blog-header h1 {
    font-size: 2rem;
  }

  header.blog-header p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .blog-section-container {
    justify-content: center;
  }

  .blog-section-post {
    width: 100%; /* Single column for smaller screens */
  }

  .blog-section-post .custom-link img {
    height: 200px;
    width: 100%;
  }

  header.blog-header h1 {
    font-size: 1.8rem;
  }

  header.blog-header p {
    font-size: 0.9rem;
  }
}
