/* Blogs Page Styles */

/* Blog Card Styles (Inspired by User Sample) */
.card {
  width: 320px;
  border-radius: 20px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  margin: 20px auto;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 200px;
  display: block;
}

.card-content {
  padding: 1rem;
}

.card-content h3 {
  font-size: 1.1rem;
  color: #000;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.read-more {
  background-color: #2e8b57;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.read-more:hover {
  background-color: #246d45;
}

/* Blogs Grid Layout */
.blogs-listing {
  padding: 4rem 0;
  background-color: #f8f9fa;
}

.blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.listing-header {
  text-align: center;
  margin-bottom: 3rem;
}

.listing-header h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1rem;
  margin-left: 45px;
}

/* Blog Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 15px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  color: #666;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: #000;
}

/* Blog Content Styles */
.blog-header {
  margin-bottom: 2rem;
  text-align: left;
}

.blog-header h1 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.blog-image {
  width: 100%;
  max-width: 800px;
  height: 480px;
  border-radius: 10px;
  margin: 0 auto 2rem;
  display: block;
}

.blog-body {
  line-height: 1.8;
  color: #333;
  font-size: 1.1rem;
}

.blog-body h2 {
  color: #2e8b57;
  margin: 2rem 0 1rem;
  font-size: 1.8rem;
  text-align: left;
}

.blog-body h3 {
  color: #333;
  margin: 1.5rem 0 0.8rem;
  font-size: 1.4rem;
}

.blog-body p {
  margin-bottom: 1.5rem;
}

.blog-body ul, .blog-body ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.blog-body li {
  margin-bottom: 0.5rem;
}

.blog-body blockquote {
  border-left: 4px solid #2e8b57;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
  .blogs-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .card {
    width: 100%;
    max-width: 320px;
  }
  
  .modal-content {
    width: 95%;
    margin: 10% auto;
    padding: 1.5rem;
  }
  
  .blog-header h1 {
    font-size: 2rem;
  }
  
  .listing-header h2 {
    font-size: 2rem;
  }
} 