:root{
  --bg:#050505;
  --bg-soft:#0d0d0f;
  --card:#111216;
  --card-2:#16181d;
  --line:rgba(255,201,71,0.18);
  --line-strong:rgba(255,201,71,0.35);
  --gold:#f3c547;
  --gold-soft:#caa12f;
  --text:#f5f2e8;
  --muted:#b8b1a1;
  --shadow:0 20px 60px rgba(0,0,0,0.45);
  --radius:24px;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(243,197,71,0.10), transparent 28%),
    radial-gradient(circle at top right, rgba(243,197,71,0.06), transparent 22%),
    linear-gradient(180deg, #080808 0%, #030303 100%);
  color:var(--text);
  line-height:1.5;
}

a{
  color:inherit;
  text-decoration:none;
}

img{
  max-width:100%;
  display:block;
}

.blog-page{
  min-height:100vh;
}

.blog-shell{
  width:min(1280px, calc(100% - 48px));
  margin:0 auto;
  padding:20px 0 56px;
}

/* TOP BAR */
.blog-topbar{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
  padding:12px 22px;
  margin-bottom:18px;
  border:1px solid rgba(255,255,255,0.04);
  border-radius:18px;
  background:rgba(255,201,71,0.04);
  box-shadow:0 10px 30px rgba(0,0,0,0.18);
}

.blog-topbar a{
  font-size:12px;
  font-weight:700;
  color:var(--gold);
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,201,71,0.15);
  background:rgba(255,201,71,0.05);
  transition:all .25s ease;
}

.blog-topbar a:hover{
  background:rgba(255,201,71,0.12);
  border-color:rgba(255,201,71,0.28);
  transform:translateY(-1px);
}

/* HERO */
.blog-hero{
  background:
    linear-gradient(135deg, rgba(255,201,71,0.09), rgba(255,201,71,0.02)),
    rgba(9,9,10,0.92);
  border:1px solid var(--line);
  border-radius:32px;
  box-shadow:var(--shadow);
  overflow:hidden;
  margin-bottom:20px;
}

.blog-brand-row{
  display:flex;
  align-items:center;
  gap:14px;
  padding:22px 24px 14px;
  border-bottom:1px solid rgba(255,255,255,0.04);
}

.blog-logo{
  width:52px;
  height:52px;
  object-fit:contain;
  flex-shrink:0;
}

.blog-brand-title{
  font-size:28px;
  line-height:1.1;
  color:var(--gold);
  font-weight:800;
  letter-spacing:.2px;
  margin:0;
}

.blog-brand-subtitle{
  margin:4px 0 0;
  font-size:11px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.12em;
}

.blog-section-pill{
  display:inline-flex;
  align-items:center;
  margin:18px 24px 10px;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  color:var(--gold);
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
  background:rgba(255,201,71,0.05);
}

.blog-hero-title{
  margin:0 24px;
  max-width:780px;
  font-size:64px;
  line-height:.98;
  letter-spacing:-0.03em;
  font-weight:800;
}

.blog-hero-text{
  margin:16px 24px 0;
  max-width:760px;
  color:var(--muted);
  font-size:17px;
  line-height:1.8;
}

.blog-hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin:24px 24px 38px;
}

.blog-btn-primary,
.blog-btn-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:12px 18px;
  border-radius:14px;
  font-weight:700;
  transition:all .25s ease;
}

.blog-btn-primary{
  background:linear-gradient(135deg,#f3c547,#caa12f);
  color:#000;
  box-shadow:0 10px 28px rgba(243,197,71,0.18);
}

.blog-btn-primary:hover{
  transform:translateY(-2px);
}

.blog-btn-secondary{
  border:1px solid var(--line);
  color:var(--gold);
  background:rgba(255,201,71,0.04);
}

.blog-btn-secondary:hover{
  border-color:var(--line-strong);
  background:rgba(255,201,71,0.08);
}

/* SHARED CARD SECTIONS */
.blog-topics-card,
.blog-listing-card{
  background:rgba(10,10,12,0.82);
  border:1px solid rgba(255,255,255,0.04);
  border-radius:28px;
  padding:18px;
  margin-top:18px;
  box-shadow:0 18px 50px rgba(0,0,0,0.24);
}

.blog-topics-inner,
.blog-listing-inner{
  border-radius:22px;
  padding:26px;
  background:linear-gradient(180deg, rgba(14,14,16,0.94), rgba(8,8,10,0.94));
  border:1px solid rgba(255,201,71,0.06);
}

.blog-section-title{
  margin:0;
  font-size:44px;
  line-height:1.05;
  font-weight:800;
  letter-spacing:-0.03em;
}

.blog-section-subtitle{
  margin:14px 0 0;
  color:var(--muted);
  max-width:760px;
  font-size:16px;
  line-height:1.75;
}

/* TOPICS */
.blog-topics-header{
  display:grid;
  grid-template-columns:minmax(0, 1.2fr) minmax(280px, .8fr);
  gap:26px;
  align-items:start;
  margin-bottom:22px;
}

.blog-topics-copy{
  min-width:0;
}

.blog-topics-side{
  color:var(--muted);
  font-size:15px;
  line-height:1.75;
  padding-top:8px;
}

.blog-topic-badge{
  display:inline-flex;
  align-items:center;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  color:var(--gold);
  background:rgba(255,201,71,0.04);
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:14px;
}

.blog-topic-grid{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.blog-category-btn{
  appearance:none;
  border:none;
  padding:0;
  background:none;
  color:inherit;
  cursor:pointer;
}

.blog-category-btn{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  min-height:48px;
  padding:14px 18px;
  border-radius:999px;
  border:1px solid rgba(255,201,71,0.18);
  background:#f4f0e8;
  color:#121212;
  font-size:14px;
  font-weight:700;
  line-height:1.25;
  white-space:nowrap;
  transition:all .22s ease;
}

.blog-category-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(0,0,0,0.22);
}

.blog-category-btn.is-active,
.blog-category-btn.active{
  background:linear-gradient(135deg,#f3c547,#d2a52f);
  color:#000;
  border-color:rgba(255,201,71,0.45);
}

.blog-category-btn span{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:3px;
}

.blog-category-btn strong{
  font-size:14px;
  line-height:1.2;
}

.blog-category-btn small,
.blog-category-btn span small{
  font-size:12px;
  font-weight:500;
  opacity:.78;
  white-space:normal;
  line-height:1.35;
}

/* SEARCH */
.blog-search-section{
  margin-top:18px;
}

.blog-search-wrap{
  margin-top:0;
}

.blog-search-label{
  display:block;
  margin:0 0 10px;
  font-size:15px;
  font-weight:700;
  color:var(--text);
}

.blog-search-input{
  width:100%;
  min-height:56px;
  padding:0 18px;
  border-radius:16px;
  background:#111216;
  color:var(--text);
  border:1px solid var(--line);
  outline:none;
  font-size:15px;
  transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.blog-search-input::placeholder{
  color:#8e8778;
}

.blog-search-input:focus{
  border-color:var(--line-strong);
  box-shadow:0 0 0 4px rgba(243,197,71,0.08);
  background:#14161a;
}

/* LISTING HEADER */
.blog-listing-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:22px;
  flex-wrap:wrap;
}

.blog-listing-meta{
  color:var(--muted);
  font-size:14px;
  font-weight:600;
}

/* POSTS GRID */
.blog-post-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:22px;
}

.blog-card{
  min-width:0;
  display:flex;
  flex-direction:column;
  background:linear-gradient(180deg, #12141a 0%, #0f1015 100%);
  border:1px solid rgba(255,255,255,0.05);
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 14px 34px rgba(0,0,0,0.28);
  transition:transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.blog-card:hover{
  transform:translateY(-4px);
  border-color:rgba(255,201,71,0.18);
  box-shadow:0 18px 44px rgba(0,0,0,0.34);
}

.blog-card-media{
  position:relative;
  aspect-ratio:16 / 10;
  min-height:220px;
  background:#1a1c22;
  overflow:hidden;
}

.blog-card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.blog-card-body{
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:18px 18px 20px;
  flex:1;
}

.blog-card-topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

.blog-card-tag{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(243,197,71,0.08);
  border:1px solid rgba(243,197,71,0.16);
  color:var(--gold);
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.blog-card-meta{
  color:#9e9789;
  font-size:12px;
  font-weight:600;
}

.blog-card-title{
  margin:0;
  font-size:31px;
  line-height:1.08;
  letter-spacing:-0.03em;
  font-weight:800;
}

.blog-card-title a:hover{
  color:var(--gold);
}

.blog-card-excerpt{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.7;
}

.blog-card-link{
  margin-top:auto;
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--gold);
  font-weight:700;
  font-size:14px;
}

.blog-card-link:hover{
  text-decoration:underline;
  text-underline-offset:3px;
}

/* EMPTY STATES */
.blog-empty-state,
.post-empty-state{
  margin-top:18px;
  padding:28px 22px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,0.05);
  background:linear-gradient(180deg, rgba(14,14,16,0.92), rgba(8,8,10,0.92));
}

.blog-empty-state h3,
.post-empty-state h1{
  margin:0 0 10px;
  font-size:28px;
  line-height:1.1;
}

.blog-empty-state p,
.post-empty-state p{
  margin:0;
  color:var(--muted);
  font-size:15px;
  line-height:1.7;
}

.post-empty-state a{
  display:inline-flex;
  margin-top:16px;
  color:var(--gold);
  font-weight:700;
}

/* POST PAGE */
.blog-post-header-top{
  margin-bottom:18px;
}

.blog-back-link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,201,71,0.05);
  color:var(--gold);
  font-weight:700;
}

.blog-back-link:hover{
  background:rgba(255,201,71,0.10);
}

.blog-post-container{
  background:linear-gradient(180deg, rgba(12,12,14,0.96), rgba(8,8,10,0.96));
  border:1px solid rgba(255,255,255,0.04);
  border-radius:28px;
  padding:34px;
  box-shadow:var(--shadow);
}

.post-header{
  max-width:920px;
  margin:0 auto 26px;
}

.post-badge{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(243,197,71,0.08);
  border:1px solid rgba(243,197,71,0.16);
  color:var(--gold);
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.post-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin:16px 0 0;
  color:#a39b8d;
  font-size:13px;
  font-weight:600;
}

.post-title{
  margin:18px 0 0;
  font-size:60px;
  line-height:.98;
  letter-spacing:-0.04em;
  font-weight:800;
}

.post-excerpt{
  margin:18px 0 0;
  color:var(--muted);
  font-size:18px;
  line-height:1.85;
  max-width:840px;
}

.post-cover-wrap{
  margin:0 auto 30px;
  max-width:1000px;
  border-radius:24px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.05);
  background:#111216;
  box-shadow:0 18px 44px rgba(0,0,0,0.28);
}

.post-cover-image{
  width:100%;
  height:auto;
  display:block;
}

.post-rich-content{
  max-width:920px;
  margin:0 auto;
}

.post-rich-content h1{
  margin:0 0 14px;
  font-size:54px;
  line-height:1.02;
  letter-spacing:-0.03em;
}

.post-rich-content h2{
  margin:34px 0 14px;
  font-size:30px;
  line-height:1.15;
}

.post-rich-content h3{
  margin:24px 0 12px;
  font-size:22px;
  line-height:1.2;
}

.post-rich-content p,
.post-rich-content li{
  color:var(--muted);
  font-size:17px;
  line-height:1.9;
}

.post-rich-content ul,
.post-rich-content ol{
  padding-left:22px;
}

.post-rich-content img{
  width:100%;
  border-radius:20px;
  margin:22px 0;
  border:1px solid rgba(255,255,255,0.05);
}

.post-rich-content blockquote{
  margin:24px 0;
  padding:18px 20px;
  border-left:3px solid var(--gold);
  background:rgba(255,201,71,0.05);
  color:var(--text);
  border-radius:14px;
}

.post-rich-content a{
  color:var(--gold);
  text-decoration:underline;
  text-underline-offset:3px;
}

.post-rich-content strong{
  color:var(--text);
}

.post-rich-content table{
  width:100%;
  border-collapse:collapse;
  margin:24px 0;
  border:1px solid rgba(255,255,255,0.06);
  overflow:hidden;
  border-radius:16px;
}

.post-rich-content th,
.post-rich-content td{
  border:1px solid rgba(255,255,255,0.06);
  padding:12px 14px;
  text-align:left;
  color:var(--muted);
  font-size:15px;
}

.post-rich-content th{
  color:var(--text);
  background:rgba(255,255,255,0.03);
}

/* RELATED */
.blog-related-section{
  margin-top:18px;
}

.blog-related-grid{
  margin-top:0;
}

/* FOOTER */
.blog-footer{
  margin-top:18px;
  text-align:left;
  color:var(--muted);
  font-size:14px;
  padding:18px 22px;
  border-radius:18px;
  background:rgba(255,255,255,0.02);
  border:1px solid rgba(255,255,255,0.04);
}

/* RESPONSIVE */
@media (max-width: 1200px){
  .blog-hero-title{
    font-size:56px;
  }

  .blog-section-title{
    font-size:38px;
  }

  .blog-card-title{
    font-size:27px;
  }

  .post-title{
    font-size:50px;
  }
}

@media (max-width: 980px){
  .blog-shell{
    width:min(100% - 32px, 1280px);
    padding:16px 0 42px;
  }

  .blog-topics-header{
    grid-template-columns:1fr;
    gap:14px;
  }

  .blog-post-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .blog-hero-title{
    font-size:46px;
  }

  .blog-post-container{
    padding:26px;
  }

  .post-title{
    font-size:42px;
  }

  .post-excerpt{
    font-size:17px;
  }

  .post-rich-content h1{
    font-size:42px;
  }
}

@media (max-width: 700px){
  .blog-shell{
    width:min(100% - 20px, 1280px);
  }

  .blog-brand-row{
    padding:18px 18px 12px;
  }

  .blog-logo{
    width:44px;
    height:44px;
  }

  .blog-brand-title{
    font-size:21px;
  }

  .blog-section-pill{
    margin:16px 18px 10px;
  }

  .blog-hero-title{
    margin:0 18px;
    font-size:34px;
  }

  .blog-hero-text{
    margin:14px 18px 0;
    font-size:15px;
    line-height:1.75;
  }

  .blog-hero-actions{
    margin:20px 18px 26px;
  }

  .blog-topics-card,
  .blog-listing-card{
    padding:12px;
    border-radius:22px;
  }

  .blog-topics-inner,
  .blog-listing-inner{
    padding:18px;
    border-radius:18px;
  }

  .blog-section-title{
    font-size:30px;
  }

  .blog-section-subtitle,
  .blog-topics-side{
    font-size:14px;
    line-height:1.7;
  }

  .blog-topic-grid{
    gap:10px;
  }

  .blog-category-btn{
    width:100%;
    justify-content:flex-start;
    white-space:normal;
    border-radius:18px;
    padding:14px 16px;
  }

  .blog-search-input{
    min-height:52px;
    font-size:14px;
  }

  .blog-post-grid{
    grid-template-columns:1fr;
    gap:18px;
  }

  .blog-card-media{
    min-height:200px;
  }

  .blog-card-title{
    font-size:24px;
  }

  .blog-post-container{
    padding:20px 16px;
    border-radius:22px;
  }

  .post-header{
    margin-bottom:20px;
  }

  .post-title{
    font-size:34px;
  }

  .post-excerpt{
    font-size:15px;
    line-height:1.75;
  }

  .post-meta{
    gap:8px;
    font-size:12px;
  }

  .post-rich-content h1{
    font-size:34px;
  }

  .post-rich-content h2{
    font-size:24px;
  }

  .post-rich-content h3{
    font-size:20px;
  }

  .post-rich-content p,
  .post-rich-content li{
    font-size:15px;
  }

  .blog-footer{
    padding:16px;
    font-size:13px;
  }

  .blog-empty-state,
  .post-empty-state{
    padding:22px 16px;
  }
}