/* styles-v17.css — V17 WOW HERO + Masonry + Centered Article */

:root{
  --bg:#f7f8fc;
  --ink:#0b1220;
  --muted:#5b6778;

  --card:#ffffff;
  --line:#e7eaf3;
  --shadow: 0 14px 34px rgba(16,24,40,.10);

  --radius: 18px;
  --max: 1400px;

  --brand:#4f46e5;
  --brand2:#22c55e;
  --soft: rgba(79,70,229,.12);

  --black:#0a0b10;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
html.lock{ overflow:hidden; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color: var(--ink);

  background:
    radial-gradient(900px 520px at 10% -10%, rgba(79,70,229,.18), transparent 60%),
    radial-gradient(900px 520px at 90% 0%, rgba(34,197,94,.14), transparent 60%),
    linear-gradient(180deg, var(--bg), #ffffff);

  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;

  overflow-x:hidden;
}

a{ color: inherit; text-decoration:none; }
img{ display:block; max-width:100%; }

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 14px 44px;
}

.muted{ color: var(--muted); }
.dot{ color: var(--muted); padding: 0 4px; }
.meta{ font-size: 12px; color: var(--muted); }

/* =========================
   TOPBAR
========================= */
.topbar{
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 1000;
  letter-spacing: .2px;
}

.brand img{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  background:#fff;
}

.burger{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:#fff;
  box-shadow: 0 10px 22px rgba(16,24,40,.06);
  cursor:pointer;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  padding: 0 12px;
}
.burger span{
  height:2px;
  width:100%;
  background:#111827;
  border-radius: 99px;
}

/* =========================
   DRAWER
========================= */
.overlay{
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.45);
  opacity:0;
  pointer-events:none;
  transition: .18s ease;
  z-index: 90;
}
.overlay.open{
  opacity:1;
  pointer-events:auto;
}

.drawer{
  position: fixed;
  top:0;
  right:0;
  height:100vh;
  width: min(380px, 92vw);
  padding: 14px;
  background:#fff;
  border-left: 1px solid var(--line);
  box-shadow: -50px 0 100px rgba(0,0,0,.18);
  transform: translateX(105%);
  transition: .2s ease;
  z-index: 100;
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.drawer.open{ transform: translateX(0); }

.drawer__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.drawer__title{
  font-weight: 1000;
  font-size: 16px;
}
.drawer__close{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:#fff;
  cursor:pointer;
  font-size: 22px;
}

.drawer__search{
  display:flex;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:#fafbff;
}

.drawer__links{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.drawer__links a{
    padding: 12px 12px;
    background: #fff;
    font-weight: 900;
    border-bottom: 1px solid var(--line);
}
.drawer__links a:hover{

    font-size: large;
}


/* =========================
   UI
========================= */
.input{
  width:100%;
  border:none;
  outline:none;
  background: transparent;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 14px;
}

.input--hero{
  border: 1px solid var(--line);
  background:#fff;
  box-shadow: 0 10px 22px rgba(16,24,40,.08);
  padding: 14px 14px;
  border-radius: 999px;
  font-size: 15px;
}

.btn{
  border: 1px solid var(--line);
  background:#fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 10px 14px;
  font-weight: 1000;
  cursor:pointer;
}
.btn:hover{ border-color:#d4dbea; }

.btn--primary{
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border-color: transparent;
  color:#fff;
}

.btn--soft{
  background: rgba(79,70,229,.12);
  border-color: rgba(79,70,229,.22);
  color: #1f2937;
  font-weight: 1000;
}

.btn--hero{
  border-radius: 999px;
  padding: 14px 16px;
}

/* =========================
   WOW HERO
========================= */
.wowHero{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  align-items: stretch;
}

.wowHero__left{
  background:
    radial-gradient(900px 520px at 10% 0%, rgba(79,70,229,.22), transparent 55%),
    radial-gradient(900px 520px at 90% 20%, rgba(34,197,94,.16), transparent 60%),
    #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.kicker{
  display:inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(79,70,229,.22);
  background: rgba(79,70,229,.08);
  font-weight: 1000;
  font-size: 12px;
  letter-spacing: .2px;
  color: #1f2937;
}

.wowHero__title{
  margin: 12px 0 0;
  font-size: 44px;
  font-weight: 1000;
  line-height: 1.08;
}

.wowHero__desc{
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
  max-width: 68ch;
}

.heroSearch{
  margin-top: 16px;
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.heroBadges{
  margin-top: 16px;
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}

.badge{
  flex: 1;
  min-width: 160px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:#fff;
  padding: 12px;
  box-shadow: 0 10px 22px rgba(16,24,40,.06);
}

.badge__num{
  font-size: 18px;
  font-weight: 1000;
}
.badge__txt{
  margin-top: 4px;
  color: var(--muted);
  font-weight: 900;
  font-size: 13px;
}

.wowHero__right{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.rightBox__head h3{
  margin: 0;
  font-size: 18px;
  font-weight: 1000;
}
.rightBox__head p{
  margin: 6px 0 0;
}

.catGrid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 1100px){
  .catGrid{
    grid-template-columns: 1fr;
  }
}

.catCard{
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fafbff;
  padding: 12px;
  transition: transform .12s ease;
}
.catCard:hover{ transform: translateY(-2px); }

.catCard__name{
  font-weight: 1000;
  font-size: 14px;
}
.catCard__sub{
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1000px){
  .wowHero{ grid-template-columns: 1fr; }
}

/* =========================
   CATEGORY SECTIONS
========================= */
.catSection{
  margin-top: 22px;
  background: rgba(255,255,255,.45);
  border: 1px solid rgba(231,234,243,.8);
  border-radius: 26px;
  padding: 16px;
}

.catSection__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  padding: 6px 6px 14px;
}

.catSection__head h2{
  margin:0;
  font-size: 22px;
  font-weight: 1000;
}

.readMore{
  font-weight: 1000;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(79,70,229,.22);
  background: rgba(79,70,229,.08);
}
.readMore:hover{ border-color: rgba(79,70,229,.35); }

/* =========================
   MASONRY
========================= */
.masonry{
  column-gap: 14px;
  column-count: 4;
}

@media (max-width: 1400px){ .masonry{ column-count: 3; } }
@media (max-width: 900px){ .masonry{ column-count: 2; } }
@media (max-width: 520px){ .masonry{ column-count: 1; } }

.tile{
  break-inside: avoid;
  margin: 0 0 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow:hidden;
  transition: transform .12s ease;
}
.tile:hover{ transform: translateY(-2px); }

.tile__img img{
  width:100%;
  height: 220px;
  object-fit: cover;
}

.tile__body{
  padding: 12px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.tile__top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.pill{
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.22);
  color: #14532d;
  font-weight: 1000;
  font-size: 12px;
}

.tile__title{
  font-weight: 1000;
  line-height: 1.2;
  font-size: 15px;
}

.tile__desc{
  margin:0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* =========================
   CATEGORY PAGE
========================= */
.crumbs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.catHeader{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 14px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.catHeader h1{
  margin:0;
  font-size: 30px;
  font-weight: 1000;
}

.chips{
  margin-top: 12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}

.chip{
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background:#fff;
  font-weight: 900;
  font-size: 13px;
}

/* =========================
   PAGINATION
========================= */
.pg{
  display:flex;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top: 16px;
}

.pg__link{
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:#fff;
  font-weight: 1000;
}
.pg__link--active{
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border-color: transparent;
  color:#fff;
}

/* =========================
   ARTICLE PAGE
========================= */
.readerCenter{
  max-width: 920px;
  margin: 14px auto 0;
  background:#fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.postTop{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.postTitle{
  margin: 10px 0 0;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 1000;
}

.postMeta{
  margin-top: 10px;
  color: var(--muted);
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  font-size: 13px;
}

.linkBtn{
  border: 1px solid var(--line);
  background:#fff;
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 1000;
  cursor:pointer;
}

.postHero{
  margin-top: 14px;
  border-radius: 22px;
  overflow:hidden;
  border: 1px solid var(--line);
}

.postHero img{
  width:100%;
  height: 420px;
  object-fit: cover;
}

.prose{
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.95;
  color:#111827;
}

/* =========================
   SEARCH PAGE
========================= */
.searchCard{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 16px;
  max-width: 860px;
  margin: 0 auto;
  text-align:center;
}

.searchBar{
  margin-top: 14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
}

.hintRow{
  margin-top: 12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}

.hint{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background:#fafbff;
  font-weight: 1000;
  cursor:pointer;
}

/* =========================
   STATIC PAGE
========================= */
.staticCard{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 16px;
}

/* =========================
   FOOTER
========================= */
.siteFooter{
  background: var(--black);
  color: rgba(255,255,255,.85);
  margin-top: 30px;
  padding: 40px 14px;
}

.siteFooter__inner{
  max-width: var(--max);
  margin: 0 auto;
  display:flex;
  flex-direction:column;
  gap: 18px;
  align-items:center;
  text-align:center;
}

.footBrand{
  display:flex;
  align-items:center;
  gap: 12px;
  justify-content:center;
}

.footBrand img{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background:#fff;
}

.footBrand__name{
  font-weight: 1000;
  font-size: 16px;
  color:#fff;
}
.footBrand__sub{
  font-size: 13px;
  color: rgba(255,255,255,.65);
}

.footLinks{
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
  justify-content:center;
}

.footLinks a{
  padding: 10px 14px;
  border-radius: 999px;
  /* border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04); */
  font-weight: 900;
  color:#fff;
}
.footLinks a:hover{
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.07);
}

.footCopy{
  font-size: 13px;
  color: rgba(255,255,255,.65);
}

/* =========================
   ✅ AUTOCOMPLETE UI (NEW)
========================= */
.acBox{
  position: absolute;
  z-index: 9999;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 46px rgba(16,24,40,.18);
  padding: 8px;
  overflow: hidden;
}

.acItem{
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  cursor: pointer;
  border-radius: 14px;
  display:flex;
  flex-direction:column;
  gap: 4px;
}

.acItem:hover{
  background: rgba(79,70,229,.08);
}

.acItem__title{
  font-weight: 1000;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.25;
}

.acItem__cat{
  font-size: 12px;
  color: var(--muted);
  font-weight: 900;
}
.catTitle{
  margin: 10px 0 18px;  /* ✅ margin bottom breathing */
  text-align: left;
}

.catTitle__h1{
  margin: 0;
  font-size: 42px;
  font-weight: 1000;
  letter-spacing: -0.4px;
}

.catTitle__p{
  margin: 10px 0 0;
  font-size: 15px;
}

/* ✅ Chips spacing */
.chips{
  margin-top: 10px;
  margin-bottom: 18px; /* ✅ more space before masonry */
}

/* ✅ Active category chip */
.chip--active{
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(16,24,40,.12);
}
.toTop{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;

  width: 54px;
  height: 54px;
  border-radius: 999px;

  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 34px rgba(16,24,40,.14);

  display:flex;
  align-items:center;
  justify-content:center;

  cursor:pointer;
  opacity: 0;
  transform: translateY(10px) scale(.98);
  pointer-events: none;
  transition: .18s ease;
}

.toTop.show{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.toTop:hover{
  border-color: rgba(79,70,229,.35);
  box-shadow: 0 18px 40px rgba(16,24,40,.18);
}

.toTop svg{
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #111827;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
