.blog-top-bar {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 30px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 30px;
}

.blog-card {
  background: #0e0e14;
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  transition: 0.3s;
}

.blog-card:hover {
  transform: translateY(-6px);
}

.blog-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
}

.admin-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.blog-detail {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
}

.blog-detail img {
  width: 100%;
  border-radius: 16px;
  margin: 20px 0;
}

.rich-editor {
  min-height: 160px;
  background: #000;
  padding: 12px;
  border-radius: 10px;
}

.editor-toolbar button {
  margin-right: 6px;
}
/* ================= BLOG TOP BAR ================= */

.blog-top-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 30px auto 10px;
}

.blog-top-bar button {
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  background: linear-gradient(135deg, #f5c76b, #e0a84d);
  color: #141414;
  box-shadow: 0 8px 20px rgba(245, 199, 107, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-top-bar button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(245, 199, 107, 0.55);
}

/* ================= MODAL OVERLAY ================= */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.hidden {
  display: none;
}

/* ================= MODAL BOX ================= */

.modal-box {
  width: 92%;
  max-width: 420px;
  background: radial-gradient(circle at top, #1e1e28, #050507);
  border-radius: 18px;
  padding: 26px 24px 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: fadeUp 0.35s ease;
}

.modal-box.large {
  max-width: 760px;
}

/* ================= HEADINGS ================= */

.modal-box h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  background: linear-gradient(to right, #fff, #f5c76b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ================= INPUTS ================= */

.modal-box input,
.modal-box textarea {
  width: 100%;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 16, 0.9);
  color: #f3f3f3;
  font-size: 14px;
  outline: none;
  transition: border 0.25s ease, box-shadow 0.25s ease;
}

.modal-box textarea {
  min-height: 90px;
  resize: vertical;
}

.modal-box input::placeholder,
.modal-box textarea::placeholder {
  color: #9a9a9a;
}

.modal-box input:focus,
.modal-box textarea:focus {
  border-color: #f5c76b;
  box-shadow: 0 0 0 1px rgba(245, 199, 107, 0.4);
}

/* ================= EDITOR ================= */

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 10px;
}

.editor-toolbar button {
  padding: 6px 10px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.editor-toolbar button:hover {
  background: rgba(245, 199, 107, 0.2);
  transform: translateY(-1px);
}

.rich-editor {
  min-height: 200px;
  border-radius: 14px;
  padding: 14px;
  background: rgba(5, 5, 8, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #eaeaea;
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 16px;
  overflow-y: auto;
}

/* ================= MODAL BUTTONS ================= */

.modal-box button {
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.modal-box button:not(.secondary) {
  background: linear-gradient(135deg, #f5c76b, #e0a84d);
  color: #161616;
  box-shadow: 0 8px 20px rgba(245, 199, 107, 0.4);
}

.modal-box button:not(.secondary):hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(245, 199, 107, 0.6);
}

.modal-box .secondary {
  background: transparent;
  color: #ddd;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-box .secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ================= ANIMATION ================= */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: #0b0b0f;
  color: #eee;
}

/* BLOG LISTING */
.blog-wrapper {
  padding: 60px 8%;
}

.blog-heading {
  font-size: 40px;
  text-align: center;
  color: #f4c56b;
}

.blog-sub {
  text-align: center;
  opacity: 0.8;
  margin-bottom: 50px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.blog-card {
  background: #14141c;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(244, 197, 107, 0.15);
}

.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-card h3 {
  padding: 15px;
  color: #f4c56b;
}

.blog-card p {
  padding: 0 15px 20px;
  font-size: 14px;
  opacity: 0.85;
}

/* BLOG DETAIL */
.blog-detail {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.blog-cover {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 30px;
}

.blog-detail h1 {
  color: #f4c56b;
  margin-bottom: 20px;
}

.blog-text p {
  line-height: 1.8;
  margin-bottom: 16px;
  opacity: 0.9;
}

/* MOBILE */
@media (max-width: 600px) {
  .blog-cover {
    height: 260px;
  }
}
.blog-wrapper {
  padding: 60px 16px;
  display: flex;
  justify-content: center;
}

.blog-grid {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}

.blog-card {
  background: linear-gradient(180deg, #0f1015, #050507);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 55px rgba(245, 199, 107, 0.35);
}

.blog-img {
  width: 100%;
  height: 210px;
  overflow: hidden;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-img img {
  transform: scale(1.08);
}

.blog-info {
  padding: 16px 18px 20px;
}

.blog-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: #f5c76b;
  margin-bottom: 8px;
}

.blog-info p {
  font-size: 14px;
  color: #d8d8d8;
  line-height: 1.5;
}
