*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --ink: #1b1f4a;
  --violet: #4b2fbf;
  --violet2: #6b4fd8;
  --gold: #e8b840;
  --cream: #faf9f6;
  --off: #f0eeff;
  --white: #fff;
  --muted: #6b7090;
  --border: rgba(75, 47, 191, 0.12);
  --glow: rgba(75, 47, 191, 0.22);
  --ease: cubic-bezier(0.77, 0, 0.18, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Nunito Sans", sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--violet);
  border-radius: 3px;
}

#pgbar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--violet), var(--gold));
  z-index: 9999;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.06;
  animation: orbF 20s ease-in-out infinite;
}

.orb1 {
  width: 580px;
  height: 580px;
  background: var(--violet);
  top: -160px;
  left: -160px;
}

.orb2 {
  width: 400px;
  height: 400px;
  background: var(--gold);
  bottom: 80px;
  right: -80px;
  animation-delay: -8s;
}

.orb3 {
  width: 260px;
  height: 260px;
  background: var(--violet2);
  top: 55%;
  right: 20%;
  animation-delay: -14s;
}

@keyframes orbF {
  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(28px, -40px);
  }
}

.bc {
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 11px 0;
}

.bc-in {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.bc-in a {
  color: var(--violet);
  text-decoration: none;
}

.bc-in a:hover {
  color: var(--ink);
}

.bc-in i.sep {
  font-size: 0.6rem;
}

/* ── HERO ── */
.hero {
  position: relative;
  z-index: 1;
  background: linear-gradient(145deg, #0c0e28, #1b1f4a 50%, #2a1b6a);
  padding: 64px 0 100px;
  overflow: hidden;
  text-align: center;
}

/* .hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 72px;
  background: var(--cream);
  clip-path: polygon(0 72px, 100% 0, 100% 72px);
  z-index: 2;
} */

.hero-inner {
  max-width: 350px;
  margin: 0 auto;
  padding: 0 12px;
  position: relative;
  z-index: 3;
  display: grid;
  gap: 48px;
  align-items: center;
  background-color: #1b5a7a00;
}

.hero-bg-text {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Cinzel", serif;
  font-size: 9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.02);
  pointer-events: none;
  white-space: nowrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 24px;
  padding: 5px 14px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
  background: rgba(232, 184, 64, 0.12);
  color: var(--gold);
  border: 1px solid rgba(232, 184, 64, 0.25);
}

.hero-h1 {
  width: 100%;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.12;
  letter-spacing: -0.01em;
  background-color: #0e224000;
}

.hero-h1 em {
  color: var(--gold);
  font-style: italic;
}

.hero-rule {
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--violet2));
  border-radius: 2px;
  margin: 16px 0;
}

.hero-sub {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.75;
  max-width: 480px;
}

.hero-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.hero-cat {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s;
}

.hero-cat:hover,
.hero-cat.active {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}

/* Hero featured preview */
.hero-featured {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: transform 0.4s var(--ease);
}

.hero-featured:hover {
  transform: translateY(-6px);
}

.hf-img {
  height: 200px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1b1f4a, #4b2fbf);
}

.hf-img i {
  font-size: 5rem;
  opacity: 0.15;
  color: #fff;
}

.hf-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 31, 74, 0.8), transparent);
}

.hf-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 8px;
}

.hf-featured {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(75, 47, 191, 0.85);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.hf-body {
  padding: 20px;
}

.hf-date {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hf-date i {
  font-size: 0.65rem;
}

.hf-title {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 10px;
}

.hf-excerpt {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  margin-bottom: 14px;
}

.hf-read {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: gap 0.2s;
}

.hf-read:hover {
  gap: 11px;
}

/* ── CONTROLS ── */
.controls {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(27, 31, 74, 0.05);
}

.ctrl-in {
  max-width: 1300px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ctrl-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.ctrl-cat-btn {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-family: "Nunito Sans", sans-serif;
  font-size: 0.77rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.ctrl-cat-btn:hover {
  border-color: var(--violet);
  color: var(--violet);
}

.ctrl-cat-btn.active {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
  box-shadow: 0 4px 14px var(--glow);
}

.ctrl-search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--off);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 9px 16px;
  min-width: 200px;
  transition: border-color 0.2s;
}

.ctrl-search:focus-within {
  border-color: var(--violet);
}

.ctrl-search i {
  color: var(--muted);
  font-size: 0.82rem;
}

.ctrl-search input {
  border: none;
  background: transparent;
  font-family: "Nunito Sans", sans-serif;
  font-size: 0.82rem;
  color: var(--ink);
  outline: none;
  width: 100%;
}

/* ── MAIN LAYOUT ── */
.main {
  max-width: 1300px;
  margin: 0 auto;
  padding: 44px 32px 80px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  position: relative;
  z-index: 1;
}

/* ── FEATURED BLOG (event-style: image left, info right) ── */
.featured-post-row {
  background: var(--white);
  border-radius: 22px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 6px 32px rgba(27, 31, 74, 0.07);
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 32px;
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s;
  opacity: 0;
  transform: translateY(30px);
}

.featured-post-row.vis {
  opacity: 1;
  transform: translateY(0);
}

.featured-post-row:hover {
  transform: translateY(-8px) scale(1.003);
  box-shadow: 0 24px 60px rgba(75, 47, 191, 0.15);
}

.fp-img {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.fp-img i.bg-icon {
  font-size: 9rem;
  opacity: 0.15;
  color: #fff;
  pointer-events: none;
}

.fp-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(27, 31, 74, 0.6), transparent 60%);
}

.fp-img-overlay-2 {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 31, 74, 0.5), transparent 50%);
}

.fp-cat-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 10px;
}

.fp-featured-tag {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(75, 47, 191, 0.85);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.fp-img-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  background: rgba(27, 31, 74, 0.3);
}

.featured-post-row:hover .fp-img-hover {
  opacity: 1;
}

.fp-hover-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(232, 184, 64, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fp-hover-btn i {
  color: var(--ink);
  font-size: 1rem;
}

/* grad per post */
.grad-a {
  background: linear-gradient(145deg, #0c0e28, #4b2fbf);
}

.grad-b {
  background: linear-gradient(145deg, #1b1f4a, #2d6a4f);
}

.grad-c {
  background: linear-gradient(145deg, #0e1f3d, #1b5a7a);
}

.grad-d {
  background: linear-gradient(145deg, #1a1558, #9a6200);
}

.grad-e {
  background: linear-gradient(145deg, #2a0e3a, #6b2fbf);
}

.grad-f {
  background: linear-gradient(145deg, #0e2240, #c0392b);
}

.grad-g {
  background: linear-gradient(145deg, #0a1a0a, #1a5c20);
}

.grad-h {
  background: linear-gradient(145deg, #1a1000, #5c3a00);
}

.fp-info {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.fp-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.fp-date {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

.fp-date i {
  color: var(--violet);
}

.fp-author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

.fp-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border);
}

.fp-cat-pill {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet);
  background: rgba(75, 47, 191, 0.08);
  border: 1px solid rgba(75, 47, 191, 0.18);
  padding: 3px 10px;
  border-radius: 8px;
}

.fp-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.fp-rule {
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--gold));
  border-radius: 1px;
}

.fp-excerpt {
  font-size: 0.88rem;
  line-height: 1.78;
  color: var(--muted);
  flex: 1;
}

.fp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.fp-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px 9px;
  transition: all 0.2s;
}

.fp-tag:hover {
  background: var(--violet);
  color: #fff;
  border-color: var(--violet);
}

.fp-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.read-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--violet), var(--violet2));
  color: #fff;
  font-family: "Nunito Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 24px;
  text-decoration: none;
  transition: all 0.25s;
  box-shadow: 0 5px 18px var(--glow);
}

.read-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--glow);
}

.read-time {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.read-time i {
  color: var(--violet);
}

.like-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 8px 14px;
  font-family: "Nunito Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.like-btn:hover {
  border-color: #e53e3e;
  color: #e53e3e;
}

.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.share-btn:hover {
  background: var(--violet);
  color: #fff;
  border-color: var(--violet);
}

/* ── SIDEBAR ── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sidebar-widget {
  background: var(--white);
  border-radius: 18px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(27, 31, 74, 0.05);
}

.sw-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-family: "Cinzel", serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sw-header i {
  color: var(--violet);
}

.sw-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Trending posts */
.trending-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s;
}

.trending-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.trending-item:hover {
  transform: translateX(4px);
}

.ti-num {
  font-family: "Cinzel", serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(75, 47, 191, 0.15);
  line-height: 1;
  min-width: 22px;
}

.ti-info {
}

.ti-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 4px;
}

.ti-meta {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 600;
}

/* Categories */
.cat-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px;
}

.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.cat-item:hover {
  background: var(--off);
  border-color: var(--border);
}

.cat-item-left {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}

.cat-item-left i {
  color: var(--violet);
  width: 16px;
  text-align: center;
}

.cat-count {
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(75, 47, 191, 0.08);
  color: var(--violet);
  border-radius: 10px;
  padding: 2px 8px;
}

/* Newsletter */
.newsletter-body {
  padding: 20px;
}

.newsletter-body p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.nl-input {
  width: 100%;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: "Nunito Sans", sans-serif;
  font-size: 0.82rem;
  color: var(--ink);
  outline: none;
  margin-bottom: 10px;
  transition: border-color 0.2s;
  background: var(--off);
}

.nl-input:focus {
  border-color: var(--violet);
}

.nl-btn {
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg, var(--violet), var(--violet2));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: "Nunito Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.nl-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px var(--glow);
}

/* Tags Cloud */
.tags-cloud {
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud-item {
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--off);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.tag-cloud-item:hover {
  background: var(--violet);
  color: #fff;
  border-color: var(--violet);
}

/* SECTION DIVIDER */
.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 24px;
}

.sd-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.sd-text {
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.reveal.vis {
  opacity: 1;
  transform: translateY(0);
}

.d1 {
  transition-delay: 0.1s;
}

.d2 {
  transition-delay: 0.2s;
}

.d3 {
  transition-delay: 0.3s;
}

@media (max-width: 1100px) {
  .main {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .featured-post-row {
    grid-template-columns: 1fr;
  }

  .fp-img {
    min-height: 220px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .bc-in,
  .hero-inner,
  .ctrl-in,
  .main {
    padding-left: 18px;
    padding-right: 18px;
  }

  .ctrl-cats {
    gap: 6px;
  }

  .ctrl-search {
    min-width: unset;
    width: 100%;
  }
}
