
/* ✅ FINAL blog.css — Duplicates removed, all features retained, justified title, centered read more button */

/* ——— Blog Grid ——— */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
  padding: 20px;
}

/* ——— Blog Card ——— */
.blog-card {
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  background: #f9f9f9;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: 0 0 12px rgba(0,0,0,0.2);
}
.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.blog-card .content {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.blog-card h3 {
  font-size: 20px;
  color: #000;
  margin-top: 0;
  margin-bottom: 10px;
  text-align: justify; /* ✅ Justified title */
}
.blog-card p {
  font-size: 14px;
  color: #444;
  flex-grow: 1;
  text-align: justify;
}
.read-btn {
  display: inline-block;
  align-self: center;  /* ✅ Center the button */
  text-align: center;
  padding: 10px 18px;
  background: #007bff;
  color: white !important;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  margin-top: 15px;
}
.read-btn:hover {
  background: #0056b3;
}

/* ——— Pagination ——— */
.pagination {
  margin-top: 30px;
  text-align: center;
}
.pagination .page-link {
  color: #007bff;
  border-radius: 4px;
  margin: 0 3px;
  padding: 8px 12px;
}
.pagination .active .page-link {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}
.pagination .disabled .page-link {
  color: #aaa;
  pointer-events: none;
}

/* ——— Blog Header ——— */
.blog-header {
  text-align: center;
  margin: 20px 0;
  font-size: 26px;
  font-weight: bold;
}

/* ——— Blog Meta and Tags ——— */
.blog-meta {
  font-size: 12px;
  color: #777;
  margin-top: 10px;
}
.blog-tags {
  margin-top: 10px;
}
.blog-tags span {
  display: inline-block;
  background: #e0e0e0;
  color: #000;
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 5px;
  margin-right: 5px;
}

/* ——— Full Blog View ——— */
.full-blog {
  max-width: 900px;
  margin: 30px auto;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #ccc;
}
.full-blog h1 {
  font-size: 28px;
  margin-bottom: 10px;
}
.full-blog .blog-meta {
  margin-bottom: 20px;
}
.full-blog .blog-body {
  font-size: 16px;
  line-height: 1.6;
}

/* ——— Share Buttons ——— */
.share-buttons {
  margin-top: 20px;
}
.share-buttons button {
  margin-right: 10px;
  padding: 8px 12px;
  font-size: 14px;
  border: none;
  background: #0b66c3;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
}
.share-buttons button.print {
  background: #2c2c2c;
}

/* ——— Admin Controls ——— */
.admin-controls {
  display: flex;
  gap: 10px;
  margin: 20px;
}
.admin-controls button {
  background: #333;
  color: #fff;
  padding: 10px 16px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}
.admin-controls button:hover {
  background: #555;
}

/* ——— Notification Toggle ——— */
.push-toggle {
  margin: 20px 0;
}
.push-toggle label {
  font-weight: bold;
}
.push-toggle input[type=checkbox] {
  transform: scale(1.3);
  margin-left: 10px;
}

/* ——— Admin Card Hover ——— */
.card-admin {
  border: none;
  border-radius: .5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card-admin:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* ——— Global Layout ——— */
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", sans-serif;
  background: #fff;
  color: #333;
}

/* ——— Responsive ——— */
@media (max-width: 768px) {
  .blog-card img {
    height: 150px;
  }
  .full-blog {
    margin: 15px;
    padding: 15px;
  }
}
