
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── UNIQUE PREFIX: agb__ (Ali Grandson Blog) ── */
:root {
  --agb-navy:    #080d1a;
  --agb-navy2:   #0d1425;
  --agb-blue:    #2563eb;
  --agb-blue2:   #1d4ed8;
  --agb-blue-t:  rgba(37,99,235,0.09);
  --agb-teal:    #0891b2;
  --agb-white:   #ffffff;
  --agb-text:    #0f172a;
  --agb-muted:   #64748b;
  --agb-light:   #f8fafc;
  --agb-border:  #e2e8f0;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--agb-white);
}

/* ════════════════════════════
   HERO — COMPACT (reduced size)
════════════════════════════ */
.agb__hero {
  background: var(--agb-navy);
  padding: 2.8rem 2rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.agb__hero-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 75%);
}

.agb__hero-glow {
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37,99,235,0.6), rgba(8,145,178,0.35), transparent);
}

.post-content a {
  color: #4840cf;
}

.agb__hero-orb {
  position: absolute; top: -160px; right: -120px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.agb__hero-inner {
  max-width: 1180px; margin: 0 auto;
  position: relative; z-index: 1; text-align: center;
}

.agb__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 700; color: #60a5fa;
  letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 0.9rem; padding: 4px 13px;
  background: rgba(37,99,235,0.12); border: 1px solid rgba(37,99,235,0.22);
  border-radius: 20px;
}

.agb__eyebrow-dot {
  width: 6px; height: 6px; background: #60a5fa;
  border-radius: 50%; animation: agb-pulse 2s infinite;
}

@keyframes agb-pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

.agb__hero-title {
  font-size: clamp(1.7rem, 3.8vw, 2.8rem);
  font-weight: 900; color: var(--agb-white);
  letter-spacing: -1px; line-height: 1.12; margin-bottom: 0.7rem;
}

.agb__hero-title em { font-style: normal; color: #60a5fa; }

.agb__hero-desc {
  font-size: 14px; color: rgba(255,255,255,0.42);
  max-width: 460px; margin: 0 auto 1.6rem; line-height: 1.72;
}

/* Search */
.agb__search-wrap { max-width: 460px; margin: 0 auto; position: relative; }

.agb__search {
  width: 100%; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 10px;
  padding: 11px 44px 11px 16px; font-size: 14px; font-weight: 500;
  color: var(--agb-white); outline: none;
  font-family: 'Inter', sans-serif; transition: border-color 0.2s, background 0.2s;
}

.agb__search::placeholder { color: rgba(255,255,255,0.3); }
.agb__search:focus { border-color: rgba(37,99,235,0.5); background: rgba(255,255,255,0.09); }

.agb__search-icon {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,0.3);
}
.agb__search-icon svg { width: 17px; height: 17px; }

/* Category tabs */
.agb__cats {
  display: flex; align-items: center; justify-content: center;
  gap: 7px; margin-top: 1.4rem; flex-wrap: wrap;
}

.agb__cat-btn {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.55); font-size: 12.5px; font-weight: 600;
  padding: 6px 16px; border-radius: 30px; cursor: pointer;
  transition: all 0.18s; font-family: 'Inter', sans-serif;
}
.agb__cat-btn:hover { border-color: rgba(255,255,255,0.25); color: #fff; }
.agb__cat-btn.agb__cat-active { background: var(--agb-blue); border-color: var(--agb-blue); color: #fff; }

/* ════════════════════════════
   FEATURED POST
════════════════════════════ */
.agb__featured-wrap {
  background: var(--agb-light); padding: 3rem 2rem 0;
  border-top: 1px solid var(--agb-border);
}

.agb__featured-inner { max-width: 1180px; margin: 0 auto; }

.agb__featured-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10px; font-weight: 700; color: var(--agb-blue);
  letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 1.25rem;
}
.agb__featured-label::before {
  content: ''; width: 20px; height: 2px;
  background: var(--agb-blue); border-radius: 2px;
}

.agb__featured-card {
  background: var(--agb-white); border: 1px solid var(--agb-border);
  border-radius: 20px; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 1fr;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.agb__featured-card:hover {
  box-shadow: 0 24px 60px rgba(0,0,0,0.1);
  border-color: rgba(37,99,235,0.18);
}

.agb__feat-img-wrap { position: relative; overflow: hidden; aspect-ratio: 16/10; }

/* Featured image placeholder — NO category badge */
.agb__feat-img-ph {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #0f1e3c 0%, #1a3a6e 50%, #0891b2 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.agb__feat-img-ph::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}
.agb__feat-img-ph svg {
  width: 60px; height: 60px; stroke: rgba(255,255,255,0.15);
  fill: none; stroke-width: 1.2; position: relative; z-index: 1;
}

/* Only "Featured" star badge — no category text on image */
.agb__feat-star-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--agb-blue); color: #fff;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.8px;
  text-transform: uppercase; padding: 4px 11px;
  border-radius: 6px; z-index: 2;
}

.agb__feat-content {
  padding: 2.25rem; display: flex; flex-direction: column; justify-content: center; gap: 0;
}

.agb__feat-meta {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 0.85rem; flex-wrap: wrap;
}

.agb__feat-cat {
  font-size: 10px; font-weight: 700; color: var(--agb-blue);
  letter-spacing: 1.5px; text-transform: uppercase;
  background: var(--agb-blue-t); padding: 3px 9px; border-radius: 5px;
}

.agb__feat-date { font-size: 11.5px; color: var(--agb-muted); font-weight: 500; }
.agb__feat-read { font-size: 11.5px; color: var(--agb-muted); display: flex; align-items: center; gap: 4px; }
.agb__feat-read svg { width: 11px; height: 11px; }

.agb__feat-title {
  font-size: 1.4rem; font-weight: 900; color: var(--agb-text);
  letter-spacing: -0.4px; line-height: 1.22; margin-bottom: 0.8rem; transition: color 0.18s;
}
.agb__featured-card:hover .agb__feat-title { color: var(--agb-blue); }

.agb__feat-excerpt {
  font-size: 13.5px; color: var(--agb-muted); line-height: 1.75; margin-bottom: 1.4rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.agb__feat-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 1.15rem; border-top: 1px solid var(--agb-border);
}

.agb__feat-author { display: flex; align-items: center; gap: 9px; }

.agb__author-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--agb-navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.agb__author-name { font-size: 12.5px; font-weight: 700; color: var(--agb-text); }
.agb__author-role { font-size: 10.5px; color: var(--agb-muted); margin-top: 1px; }

.agb__read-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--agb-blue); color: #fff; text-decoration: none;
  font-size: 12.5px; font-weight: 700; padding: 9px 18px; border-radius: 8px;
  transition: background 0.18s, transform 0.14s, box-shadow 0.2s;
  white-space: nowrap; flex-shrink: 0;
}
.agb__read-btn:hover { background: var(--agb-blue2); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(37,99,235,0.3); }
.agb__read-btn svg { width: 12px; height: 12px; transition: transform 0.18s; }
.agb__read-btn:hover svg { transform: translateX(3px); }

/* ════════════════════════════
   BLOG GRID
════════════════════════════ */
.agb__grid-section { background: var(--agb-light); padding: 2.5rem 2rem 5rem; }
.agb__grid-inner { max-width: 1180px; margin: 0 auto; }

.agb__grid-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.75rem; gap: 1rem; flex-wrap: wrap;
}
.agb__grid-title { font-size: 1.05rem; font-weight: 800; color: var(--agb-text); letter-spacing: -0.3px; }
.agb__grid-count {
  font-size: 12.5px; color: var(--agb-muted); font-weight: 500;
  background: var(--agb-white); border: 1px solid var(--agb-border);
  padding: 4px 13px; border-radius: 20px;
}

.agb__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }

/* ── CARD ── */
.agb__card {
  background: var(--agb-white); border: 1px solid var(--agb-border);
  border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
  cursor: pointer;
  animation: agb-fadein 0.4s ease both;
}
.agb__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 46px rgba(0,0,0,0.09);
  border-color: rgba(37,99,235,0.18);
}

/* Card image wrap — NO category badge on image */
.agb__card-img-wrap { position: relative; overflow: hidden; aspect-ratio: 16/9; flex-shrink: 0; }

.agb__card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.45s ease; }
.agb__card:hover .agb__card-img { transform: scale(1.06); }

/* Placeholder gradients */
.agb__card-img-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.agb__card-img-ph::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 16px 16px;
}
.agb__card-img-ph svg {
  width: 38px; height: 38px; fill: none; stroke-width: 1.2;
  position: relative; z-index: 1; opacity: 0.28;
}

/* Unique gradient per category */
.agb__ph-seo     { background: linear-gradient(135deg, #0f1e3c, #1e3a8a); }
.agb__ph-seo svg { stroke: #60a5fa; }
.agb__ph-social  { background: linear-gradient(135deg, #1e1b4b, #4c1d95); }
.agb__ph-social svg { stroke: #a78bfa; }
.agb__ph-ads     { background: linear-gradient(135deg, #1c0a00, #7c2d12); }
.agb__ph-ads svg { stroke: #fb923c; }
.agb__ph-web     { background: linear-gradient(135deg, #042f2e, #134e4a); }
.agb__ph-web svg { stroke: #34d399; }
.agb__ph-brand   { background: linear-gradient(135deg, #2d1b69, #6b21a8); }
.agb__ph-brand svg { stroke: #c084fc; }
.agb__ph-email   { background: linear-gradient(135deg, #1c1400, #78350f); }
.agb__ph-email svg { stroke: #fbbf24; }
.agb__ph-content { background: linear-gradient(135deg, #0a2e1c, #14532d); }
.agb__ph-content svg { stroke: #4ade80; }
.agb__ph-yt      { background: linear-gradient(135deg, #1c0000, #7f1d1d); }
.agb__ph-yt svg  { stroke: #f87171; }
.agb__ph-tips    { background: linear-gradient(135deg, #0c1a2e, #1e3a5f); }
.agb__ph-tips svg { stroke: #38bdf8; }

/* Card body */
.agb__card-body { padding: 1.35rem; display: flex; flex-direction: column; flex: 1; }

.agb__card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 0.6rem; flex-wrap: wrap; }

/* Category shown as text label (not badge/pill on image) */
.agb__card-cat-label {
  font-size: 9.5px; font-weight: 700; color: var(--agb-blue);
  letter-spacing: 1.2px; text-transform: uppercase;
  background: var(--agb-blue-t); padding: 2px 8px; border-radius: 4px;
}

.agb__card-date { font-size: 11px; color: var(--agb-muted); font-weight: 500; }
.agb__card-read { font-size: 11px; color: var(--agb-muted); display: flex; align-items: center; gap: 3px; }
.agb__card-read svg { width: 10px; height: 10px; }
.agb__meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--agb-border); }

.agb__card-title {
  font-size: 0.97rem; font-weight: 800; color: var(--agb-text);
  letter-spacing: -0.25px; line-height: 1.35; margin-bottom: 0.65rem;
  transition: color 0.18s;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.agb__card:hover .agb__card-title { color: var(--agb-blue); }

.agb__card-excerpt {
  font-size: 12.5px; color: var(--agb-muted); line-height: 1.7;
  margin-bottom: 1.1rem; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.agb__card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.9rem; border-top: 1px solid var(--agb-border); gap: 0.7rem;
}

.agb__card-author { display: flex; align-items: center; gap: 7px; min-width: 0; }

.agb__card-avatar {
  width: 26px; height: 26px; border-radius: 50%; background: var(--agb-navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 9.5px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.agb__card-author-name { font-size: 11.5px; font-weight: 700; color: var(--agb-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.agb__card-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; color: var(--agb-blue);
  text-decoration: none; white-space: nowrap; flex-shrink: 0; transition: gap 0.18s;
}
.agb__card-link:hover { gap: 8px; }
.agb__card-link svg { width: 12px; height: 12px; }

/* ════════════════════════════
   INFINITY SCROLL
════════════════════════════ */
.agb__sentinel { height: 60px; }

/* Loading dots */
.agb__loader {
  display: none; text-align: center; padding: 1.5rem 0;
}
.agb__loader.agb__active { display: block; }

.agb__loader-dots { display: inline-flex; gap: 8px; align-items: center; }
.agb__loader-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--agb-blue);
  opacity: 0.2; animation: agb-dot 1.2s infinite ease-in-out both;
}
.agb__loader-dot:nth-child(1) { animation-delay: 0s; }
.agb__loader-dot:nth-child(2) { animation-delay: 0.2s; }
.agb__loader-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes agb-dot { 0%,80%,100%{opacity:0.2;transform:scale(0.85)} 40%{opacity:1;transform:scale(1.25)} }

.agb__loader-text { font-size: 12px; color: var(--agb-muted); margin-top: 8px; font-weight: 500; }

/* All loaded */
.agb__end-msg {
  display: none; text-align: center; padding: 2.5rem 0 0;
}
.agb__end-msg.agb__active { display: block; }
.agb__end-icon {
  width: 44px; height: 44px; background: rgba(5,150,105,0.1); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px;
}
.agb__end-icon svg { width: 20px; height: 20px; stroke: #059669; fill: none; stroke-width: 2.5; }
.agb__end-text { font-size: 13px; font-weight: 600; color: var(--agb-muted); }

/* ════════════════════════════
   NEWSLETTER
════════════════════════════ */
.agb__newsletter {
  background: var(--agb-navy); padding: 3.5rem 2rem; position: relative; overflow: hidden;
}
.agb__newsletter::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 26px 26px; pointer-events: none;
}

.agb__nl-inner { max-width: 560px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }

.agb__nl-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; color: #60a5fa; letter-spacing: 2.5px; text-transform: uppercase;
  padding: 4px 13px; background: rgba(37,99,235,0.12); border: 1px solid rgba(37,99,235,0.22);
  border-radius: 20px; margin-bottom: 1.1rem;
}
.agb__nl-title {
  font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 900; color: var(--agb-white);
  letter-spacing: -0.6px; line-height: 1.2; margin-bottom: 0.65rem;
}
.agb__nl-title em { font-style: normal; color: #60a5fa; }
.agb__nl-desc { font-size: 14px; color: rgba(255,255,255,0.4); line-height: 1.7; margin-bottom: 1.75rem; }

.agb__nl-form { display: flex; gap: 9px; max-width: 420px; margin: 0 auto; }

.agb__nl-input {
  flex: 1; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 9px; padding: 11px 15px; font-size: 13.5px; color: var(--agb-white);
  outline: none; font-family: 'Inter', sans-serif; transition: border-color 0.2s;
}
.agb__nl-input::placeholder { color: rgba(255,255,255,0.28); }
.agb__nl-input:focus { border-color: rgba(37,99,235,0.5); }

.agb__nl-btn {
  background: var(--agb-blue); color: #fff; border: none;
  font-size: 13px; font-weight: 700; padding: 11px 20px; border-radius: 9px;
  cursor: pointer; font-family: 'Inter', sans-serif; white-space: nowrap;
  transition: background 0.18s, transform 0.14s;
}
.agb__nl-btn:hover { background: var(--agb-blue2); transform: translateY(-1px); }

/* ════════════════════════════
   RESPONSIVE
════════════════════════════ */
@media (max-width: 960px) {
  .agb__featured-card { grid-template-columns: 1fr; }
  .agb__feat-img-wrap { aspect-ratio: 16/7; }
  .agb__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .agb__hero { padding: 2rem 1.25rem 2rem; }
  .agb__featured-wrap, .agb__grid-section, .agb__newsletter { padding-left: 1.25rem; padding-right: 1.25rem; }
  .agb__grid { grid-template-columns: 1fr; }
  .agb__nl-form { flex-direction: column; }
  .agb__feat-content { padding: 1.4rem; }
  .agb__feat-title { font-size: 1.1rem; }
  .agb__cats { gap: 5px; }
  .agb__cat-btn { font-size: 11.5px; padding: 5px 12px; }
}

@keyframes agb-fadein { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
