/* assets/css/blog_post.css */

/* Container */
.blog-post-container {
  width: 90%;
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
}

/* Main article */
.blog-article {
  text-align: center;
}

.blog-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.blog-article h1 {
  font-size: 2.4rem;
  color: #003366;
  margin-bottom: 0.5rem;
}

.post-date {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.blog-content {
  text-align: left;
  color: #333;
  line-height: 1.8;
  font-size: 1.1rem;
}

/* Divider */
.section-divider {
  margin: 3rem 0;
  border: none;
  height: 1px;
  background: #eee;
}

/* Other Blogs */
.other-blogs-section {
  text-align: center;
}

.other-blogs-section h2 {
  font-size: 2rem;
  color: #003366;
  margin-bottom: 2rem;
}

.other-blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.other-blog-card {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.other-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.other-blog-image img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.other-blog-card h3 {
  margin: 0.5rem 0;
  font-size: 1.2rem;
  color: #003366;
}

.other-blog-card p {
  font-size: 0.9rem;
  color: #666;
}

.read-more-small {
  display: inline-block;
  margin-top: 0.8rem;
  font-weight: bold;
  color: #ffd400;
  text-decoration: none;
}

.read-more-small:hover {
  color: #003366;
}

/* Back Link */
.back-to-blog {
  text-align: center;
  margin-top: 3rem;
}

.back-to-blog a {
  text-decoration: none;
  font-weight: bold;
  color: #003366;
  transition: 0.3s;
}

.back-to-blog a:hover {
  color: #ffd400;
}

/* Mobile */
@media (max-width: 768px) {
  .blog-article h1 {
    font-size: 2rem;
  }
  .other-blogs-grid {
    grid-template-columns: 1fr;
  }
}
