/* blog-assets/blog.css */
:root {
  --bg: #0b1020; 
  --panel: #111a2e; 
  --panel2: #16223b; 
  --border: #22304d;
  --blue: #2f6bff; 
  --blue2: #4cc9f0; 
  --text: #e8ecf5; 
  --sub: #8b96b3;
  --news: #3b82f6; 
  --guides: #14b8a6; 
  --deals: #a855f7;
  --updates: #f59e0b;
}

body { background-color: var(--bg); color: var(--text); }
.blog-main { max-width: 1400px; margin: 0 auto; padding: 24px 28px; }

/* ---- Hero Section ---- */
.blog-hero {
  position: relative;
  overflow: hidden;
  /* Add your banner texture URL in the first url('') below */
  background: url('') center/cover no-repeat, linear-gradient(120deg, #0e1a3a, #1a2a5c 60%, #12204a);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 40px;
  margin-bottom: 22px;
}
.blog-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  padding: 6px 12px; border-radius: 20px;
  margin-bottom: 14px;
}
.blog-hero h1 { font-size: 34px; max-width: 640px; margin: 0; text-transform: uppercase; letter-spacing: -0.5px; }
.blog-hero h1 .grad {
  background: linear-gradient(90deg, var(--blue2), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.blog-hero p { color: var(--sub); max-width: 520px; margin-top: 12px; font-size: 14.5px; line-height: 1.5; }
.blog-hero-art {
  position: absolute; right: 40px; top: 50%; transform: translateY(-50%);
  display: flex; gap: 14px; opacity: .9;
}
.blog-hero-art div {
  width: 64px; height: 64px; border-radius: 12px;
  background: linear-gradient(160deg, #22336b, #16224a); border: 1px solid #35478a;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.blog-hero-art div img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Toolbar & Search ---- */
.blog-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 24px; justify-content: flex-start; }
.blog-tab {
  background: var(--panel); border: 1px solid var(--border); color: var(--sub);
  padding: 8px 18px; border-radius: 24px; font-size: 13.5px;
  cursor: pointer; display: flex; gap: 8px; align-items: center; transition: all 0.2s ease;
}
.blog-tab:hover { background: var(--panel2); color: var(--text); }
.blog-tab.active { background: var(--blue); color: #fff; border-color: var(--blue); }

.blog-search {
  margin-left: auto; display: flex; align-items: stretch;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 24px; overflow: hidden; transition: border-color 0.2s;
}
.blog-search:focus-within { border-color: var(--blue); }
.blog-search input {
  background: transparent; border: none; color: var(--text);
  padding: 10px 16px; font-size: 13.5px; width: 220px; outline: none;
}
.blog-search button {
  background: var(--blue); border: none; color: #fff;
  padding: 0 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* ---- Layout & Grid ---- */
.blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }

/* ---- Article Card ---- */
.blog-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.blog-card:hover { transform: translateY(-3px); border-color: #3b82f6; }
.blog-card .thumb {
  position: relative; height: 160px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1e2a4a, #0f1830); overflow: hidden;
}
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.blog-card:hover .thumb img { transform: scale(1.05); }

.cat-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 8px;
  color: #fff; display: flex; align-items: center; gap: 6px;
  backdrop-filter: blur(4px); background: rgba(0,0,0,0.5); /* Base fallback */
  border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.blog-card-body { padding: 16px; flex-grow: 1; display: flex; flex-direction: column; }
.blog-card-body h3 { font-size: 15.5px; margin: 0 0 8px; line-height: 1.4; }
.blog-card-body h3 a { color: #fff; text-decoration: none; }
.blog-card-body p { font-size: 12.5px; color: var(--sub); margin-bottom: 16px; flex-grow: 1; line-height: 1.5; }
.blog-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--sub); }
.blog-meta .info { display: flex; gap: 14px; }
.blog-meta .info > span { display: flex; align-items: center; gap: 5px; }

.go-btn {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--panel2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--sub); transition: all 0.2s ease;
}
.blog-card:hover .go-btn { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---- Sidebar ---- */
.blog-aside { display: flex; flex-direction: column; gap: 18px; }
.blog-box { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.blog-box h4 { font-size: 14.5px; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; color: #fff; }
.cat-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px; border-radius: 8px; font-size: 13.5px; color: var(--sub);
  cursor: pointer; transition: background 0.2s; margin-bottom: 4px;
}
.cat-row span:first-child { display: flex; gap: 10px; align-items: center; }
.cat-row:hover { background: var(--panel2); }
.cat-row.active { background: var(--blue); color: #fff; }

.feat-thumb { height: 140px; border-radius: 10px; position: relative; margin-bottom: 12px; background: #1c2848; overflow: hidden; }
.feat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fmeta { display: flex; justify-content: space-between; font-size: 11px; color: var(--sub); margin-top: 10px; }
.fmeta span { display: flex; align-items: center; gap: 5px; }

/* ---- Newsletter Box ---- */
.news-box {
  /* Add your newsletter texture URL in the first url('') below */
  background: url('') center/cover no-repeat, linear-gradient(135deg, #18284f, #0d162b);
  border: 1px solid var(--blue); position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.news-box-content { display: flex; align-items: center; gap: 12px; }
.mail-icon-wrap {
  width: 42px; height: 42px; border-radius: 50%; background: var(--blue);
  display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0;
}
.news-box h4 { margin: 0 0 4px; font-size: 14px; }
.news-box p { font-size: 11.5px; color: var(--sub); margin: 0; line-height: 1.4; }

/* ---- Single Article Additions ---- */
.blog-single article { max-width: 760px; margin: 0 auto; padding: 40px 20px 0; }
.blog-single h1 { font-size: 32px; line-height: 1.25; margin: 0 0 12px; color: #fff; }
.blog-cover { width: 100%; border-radius: 14px; margin: 20px 0; display: block; }
.blog-content { font-size: 16px; line-height: 1.8; color: #e5e5e5; }
.blog-content h2, .blog-content h3 { color: #fff; margin-top: 1.6em; }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-search { margin-left: 0; width: 100%; }
  .blog-search input { width: 100%; }
}
@media (max-width: 600px) {
  .blog-main { padding: 16px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-hero { padding: 24px; }
  .blog-hero h1 { font-size: 26px; }
  .blog-hero-art { display: none; }
  .blog-toolbar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; }
  .blog-tab { white-space: nowrap; }
}

/* ---- Interactions & Comments ---- */
.blog-interactions {
  max-width: 760px;
  margin: 40px auto 60px;
  padding: 30px 20px 0;
  border-top: 1px solid var(--border);
}
.interactions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.interactions-header h3 { margin: 0; color: #fff; font-size: 18px; }
.like-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}
.like-btn:hover, .like-btn.liked {
  background: rgba(255, 59, 92, 0.1);
  border-color: #ff3b5c;
  color: #ff3b5c;
}
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  background: var(--panel);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.comment-form input, .comment-form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  font-family: inherit;
}
.comment-form button {
  align-self: flex-end;
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
.comment-item {
  background: var(--panel2);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}
.comment-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--sub);
  margin-bottom: 8px;
}
.comment-meta strong { color: var(--blue2); font-size: 14px; }
.comment-body { font-size: 14.5px; line-height: 1.5; color: #e8ecf5; }