/* assets/css/blog.css */

.blogs-page {
  padding: 4rem 2rem;
  background-color: #fdfdfd;
}

.blogs-page h1 {
  text-align: center;
  margin-bottom: 3rem;
  color: #333;
}

.blogs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.blog-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
}

.blog-card-content {
  padding: 1.25rem;
}

.blog-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: #005fa3;
}

.blog-card .subtitle {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 1rem;
}

.blog-card p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1rem;
}

.blog-card .read-more {
  text-decoration: none;
  color: #ff9900;
  font-weight: 500;
}

@media (max-width: 1200px) {
  .blogs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .blogs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .blogs-grid {
    grid-template-columns: 1fr;
  }
}


.page-banner {
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 5rem 0;
  position: relative;
  color: #fff;
  text-align: center;
}

.page-banner__overlay {
  background-color: rgba(0, 0, 0, 0.8); /* dark overlay */
  padding: 0;
}

.page-banner h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #fff;
}

.page-banner h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #eee;
  text-shadow: rgba(12, 10, 10, 0);
  background-color: #0f023c;
  border-top: solid #fff 1px;
  border-bottom: solid #fff 1px;
}

.page-banner p {
  font-size: 1.125rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  color:goldenrod;
}

.pagination {
  margin-top: 2rem;
  text-align: center;
}

.pagination a {
  display: inline-block;
  margin: 0 0.3rem;
  padding: 0.5rem 1rem;
  color: #333;
  background-color: #f3f3f3;
  border: 1px solid #ccc;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.pagination a.active {
  background-color: #df0d0d;
  color: #fff;
  font-weight: bold;
  border-color: #df0d0d;
}

.pagination a:hover {
  background-color: #ffebcd;
}

.blog-detail {
  margin: 40px auto;
  max-width: 800px;
  padding: 0 20px;
}

.blog-detail h1 {
  font-size: 2em;
  margin-bottom: 10px;
}

.blog-subtitle {
  font-style: italic;
  margin-bottom: 20px;
  color: #777;
}

.detail-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  margin: 20px 0;
}

.blog-full-content {
  line-height: 1.8;
  margin-bottom: 40px;
}

.blog-content p {
  margin: 1em 0;
  line-height: 1.6;
  font-size: 1rem; /* adjust as you like */
  color: #333; /* your text color */
}


.btn-back {
  display: inline-block;
  background-color: #555;
  color: #fff;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 4px;
}

.blog-banner img {
  width: 100%;    /* make image fill container width */
  max-width: 800px; /* or any max width you want */
  height: auto;
  display: block;
  margin: 0 auto 2rem auto;
  border-radius: 8px; /* optional styling */
}
