/* ==========================================================================
   Public blogs & articles — Akuaba theme
   ========================================================================== */

/* --------------------------------------------------------------------------
   Listing hero (index pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: clamp(5.5rem, 9vw, 7.5rem) 0 clamp(2.8rem, 5vw, 3.8rem);
  background:
    linear-gradient(135deg, rgba(43, 18, 64, .94), rgba(83, 39, 118, .88)),
    radial-gradient(circle at top right, rgba(79, 193, 233, .22), transparent 40%);
  color: #fff;
  overflow: hidden;
}

.page-hero .eyebrow {
  color: rgba(255, 255, 255, .9);
}

.page-hero .section__title {
  color: #fff;
  margin-bottom: .8rem;
}

.page-hero .section__title em {
  color: var(--cyan);
}

.page-hero .section__intro {
  color: rgba(255, 255, 255, .82);
  max-width: 42rem;
  margin-bottom: 0;
}

.post-search {
  margin: 0 0 2rem;
  width: 100%;
}

.post-search__label {
  display: block;
  margin: 0 0 .65rem;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.post-search__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: .85rem;
  width: 100%;
}

.post-search__row input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--paper);
  color: var(--ink);
  padding: .75rem 1rem;
  font: inherit;
}

.post-search__row input::placeholder {
  color: var(--muted);
}

.post-search__row input:focus {
  outline: 3px solid rgba(79, 193, 233, .45);
  outline-offset: 2px;
  border-color: var(--purple-mid);
}

.post-search__btn {
  flex: 0 0 auto;
  min-height: 52px;
  min-width: 8.5rem;
  padding: .75rem 1.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}

.post-search__btn:hover,
.post-search__btn:focus-visible {
  background: var(--purple-deep);
  color: #fff;
}

.post-search__clear {
  display: inline-block;
  margin-top: .75rem;
  color: var(--purple);
  font-weight: 500;
  border-bottom: 2px solid var(--cyan);
  padding-bottom: 2px;
}

.post-search__clear:hover {
  color: var(--teal);
}

.post-search__result {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: .98rem;
  max-width: none;
}

@media (max-width: 575.98px) {
  .post-search__row {
    flex-wrap: wrap;
  }

  .post-search__btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Detail hero
   -------------------------------------------------------------------------- */
.post-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(125deg, var(--purple-ink) 0%, var(--purple) 58%, var(--teal-deep) 120%);
  padding: clamp(4.8rem, 8vw, 6.5rem) 0 clamp(2.6rem, 4vw, 3.4rem);
}

.post-hero__glow {
  position: absolute;
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  right: -8%;
  top: -30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 193, 233, .28), transparent 68%);
  pointer-events: none;
}

.post-hero__inner {
  position: relative;
  z-index: 1;
}

.post-hero__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .55rem;
  margin-bottom: 1.35rem;
  font-size: .92rem;
  color: rgba(255, 255, 255, .62);
}

.post-hero__crumbs a {
  color: rgba(255, 255, 255, .82);
}

.post-hero__crumbs a:hover {
  color: var(--cyan);
}

.post-hero__crumb-current {
  color: rgba(255, 255, 255, .95);
}

.post-hero .eyebrow {
  margin-bottom: .85rem;
}

.post-hero__title {
  font-family: var(--display);
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0 0 1.35rem;
}

.post-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem;
}

.post-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .9);
  font-size: .92rem;
}

.post-hero__chip i {
  color: var(--cyan);
}

.post-hero__back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-left: .15rem;
  color: #fff;
  font-weight: 500;
  border-bottom: 2px solid rgba(79, 193, 233, .7);
  padding-bottom: 2px;
}

.post-hero__back:hover {
  color: var(--cyan);
}

/* --------------------------------------------------------------------------
   Cards grid (index + related)
   -------------------------------------------------------------------------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  color: inherit;
}

.post-card:hover,
.post-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(110, 59, 158, .28);
  box-shadow: 0 18px 40px -24px rgba(43, 18, 64, .45);
  color: inherit;
}

.post-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--purple-soft);
  overflow: hidden;
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}

.post-card:hover .post-card__media img {
  transform: scale(1.05);
}

.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.3rem 1.4rem;
}

.post-card__date {
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: .55rem;
}

.post-card__title {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin: 0 0 .55rem;
}

.post-card__excerpt {
  color: var(--body);
  font-size: .98rem;
  margin: 0 0 1rem;
  flex: 1;
}

.post-card__more {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 500;
  color: var(--purple);
}

/* --------------------------------------------------------------------------
   Detail body
   -------------------------------------------------------------------------- */
.post-detail {
  position: relative;
  overflow: clip;
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  background: var(--paper);
}

.post-detail__deco {
  top: 4rem;
  right: -4rem;
  opacity: .45;
}

.post-detail__cover {
  position: relative;
  margin: 0 0 2rem;
}

.post-detail__cover-plate {
  position: absolute;
  inset: 1.1rem -1rem -1.1rem 1.1rem;
  background: var(--teal);
  border-radius: var(--r-xl);
  z-index: 0;
}

.post-detail__cover img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
}

.post-detail__lead {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
  max-width: none;
  margin: 0 0 1.8rem;
  padding: 1.15rem 1.25rem;
  background: var(--purple-soft);
  border-left: 4px solid var(--cyan);
  border-radius: 0 var(--r-l) var(--r-l) 0;
}

.post-detail__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */
.post-aside {
  display: grid;
  gap: 1.15rem;
  position: sticky;
  top: 108px;
}

.post-aside__card,
.post-aside__care {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 1.35rem 1.4rem 1.45rem;
  box-shadow: 0 16px 36px -28px rgba(43, 18, 64, .45);
}

.post-aside__card .eyebrow {
  margin-bottom: 1rem;
}

.post-aside__author {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.post-aside__avatar {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 1.35rem;
  flex-shrink: 0;
}

.post-aside__author strong {
  display: block;
  font-family: var(--display);
  font-size: 1.08rem;
  color: var(--ink);
  line-height: 1.25;
}

.post-aside__author span {
  display: block;
  font-size: .9rem;
  color: var(--muted);
  margin-top: .15rem;
}

.post-aside__date {
  margin: 1rem 0 0;
  padding-top: .95rem;
  border-top: 1px solid var(--line);
  font-size: .92rem;
  color: var(--muted);
  max-width: none;
}

.post-aside__care {
  background:
    linear-gradient(160deg, var(--purple-ink), var(--purple) 70%, #3d2460);
  border-color: transparent;
  color: #fff;
}

.post-aside__care-label {
  margin: 0 0 .35rem;
  font-size: .88rem;
  color: var(--cyan);
  font-weight: 500;
  max-width: none;
}

.post-aside__care-title {
  color: #fff;
  font-size: 1.45rem;
  margin-bottom: .55rem;
}

.post-aside__care-text {
  color: rgba(255, 255, 255, .78);
  font-size: .98rem;
  margin-bottom: 1.15rem;
  max-width: none;
}

.post-aside__care-actions {
  display: grid;
  gap: .7rem;
}

.post-aside__care .btn-teal {
  justify-content: center;
}

.post-aside__care .btn-whatsapp {
  justify-content: center;
}

.post-aside__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: rgba(255, 255, 255, .92);
  font-weight: 500;
  padding: .35rem 0;
}

.post-aside__phone:hover {
  color: var(--cyan);
}

/* --------------------------------------------------------------------------
   Article content
   -------------------------------------------------------------------------- */
.post-content {
  color: var(--body);
  font-size: 1.08rem;
  line-height: 1.85;
  max-width: none;
  width: 100%;
}

.post-content > *:first-child {
  margin-top: 0;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  color: var(--ink);
  margin-top: 2rem;
  margin-bottom: .75rem;
}

.post-content h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.75rem);
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--line);
}

.post-content h3 {
  font-size: clamp(1.2rem, 2vw, 1.35rem);
}

.post-content h1 {
  font-size: clamp(1.7rem, 3vw, 2.1rem);
}

.post-content p,
.post-content ul,
.post-content ol,
.post-content blockquote {
  margin-bottom: 1.25rem;
  max-width: none;
}

.post-content a {
  color: var(--purple-mid);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-content a:hover {
  color: var(--teal);
}

.post-content img {
  border-radius: var(--r-l);
  margin: 1.4rem 0;
  border: 1px solid var(--line);
}

.post-content blockquote {
  border-left: 4px solid var(--cyan);
  padding: .85rem 1.1rem;
  color: var(--ink);
  background: var(--tint);
  border-radius: 0 var(--r) var(--r) 0;
  font-family: var(--display);
  font-size: 1.08rem;
}

.post-content ul,
.post-content ol {
  padding-left: 1.35rem;
}

.post-content li + li {
  margin-top: .4rem;
}

.post-content li::marker {
  color: var(--purple-mid);
}

.post-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0 1.8rem;
  font-size: 1rem;
  display: block;
  overflow-x: auto;
  border-radius: var(--r);
  border: 1px solid var(--line);
}

.post-content thead {
  background: var(--purple-soft);
}

.post-content th,
.post-content td {
  border-bottom: 1px solid var(--line);
  padding: .75rem .9rem;
  text-align: left;
  vertical-align: top;
}

.post-content th {
  color: var(--ink);
  font-weight: 600;
}

.post-content tr:last-child td {
  border-bottom: 0;
}

.post-content pre,
.post-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.post-content code {
  background: var(--purple-soft);
  color: var(--purple-ink);
  padding: .12rem .4rem;
  border-radius: .35rem;
  font-size: .92em;
}

.post-content pre {
  background: var(--purple-ink);
  color: #f5f4f8;
  padding: 1.05rem 1.2rem;
  border-radius: var(--r-l);
  overflow-x: auto;
  margin: 1.4rem 0;
  line-height: 1.6;
}

.post-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: .92rem;
}

.post-content figure {
  margin: 1.4rem 0;
}

.post-content figcaption {
  margin-top: .55rem;
  font-size: .92rem;
  color: var(--muted);
}

.post-content iframe,
.post-content video {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: var(--r-l);
  margin: 1.4rem 0;
}

.post-content .ql-align-center { text-align: center; }
.post-content .ql-align-right { text-align: right; }
.post-content .ql-align-justify { text-align: justify; }
.post-content .ql-indent-1 { padding-left: 1.5rem; }
.post-content .ql-indent-2 { padding-left: 3rem; }
.post-content .ql-indent-3 { padding-left: 4.5rem; }

.related-posts .sechead {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

@media (max-width: 991.98px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-aside {
    position: static;
    margin-top: .5rem;
  }

  .post-detail__cover-plate {
    inset: .85rem -.7rem -.85rem .85rem;
  }
}

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

  .post-detail__foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-detail__cover-plate {
    display: none;
  }
}
