:root {
  --afro-orange: #ff7a00;
  --afro-orange-2: #ff8a1f;
  --afro-yellow: #ffaa00;
  --afro-teal: #0f5f6d;
  --afro-teal-2: #0b4b57;
  --afro-cream: #f3f0e4;
  --afro-cream-2: #efe7d7;
  --afro-dark: #1c1c1e;
}

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora/Sora-VariableFont_wght.ttf")
    format("truetype-variations");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

.afro-blog-page {
  padding: 0;
  font-family: "Sora", "Montserrat", sans-serif;
}

.afro-blog {
  background-color: #f3f0e4;
  background-image: url("../images/afronegocio-bg-claro.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding: 0px 0 70px;
}

.afro-blog-inner {
  max-width: 980px;
  margin: 0 auto;
}

.afro-blog-header {
  position: relative;
  background: rgba(223, 221, 207, 0.67);
  padding: 5rem 2rem;
  margin-bottom: 5rem;
}

.afro-blog-header-inner {
}

.afro-blog-header .detalhe1 {
  background: url("../images/afronegocio-detalhe1.png") top right;
  background-size: contain;
  display: block;
  width: 165px;
  height: 227px;
  position: absolute;
  top: 0;
  right: 0;
  transform: scale(1);
  transform-origin: top right;
}

.afro-blog-header .detalhe4 {
  background: url("../images/afronegocio-detalhe4.png") top right;
  background-size: contain;
  display: block;
  width: 148px;
  height: 189px;
  position: absolute;
  top: 0;
  left: 0;
  transform: scale(1);
  transform-origin: top left;
}

@media (max-width: 576px) {
  .afro-blog-header .detalhe1,
  .afro-blog-header .detalhe4 {
    display: none;
  }
}

.afro-blog-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.afro-blog-tab {
  background: #5018a0;
  color: #ffffff;
  display: flex;
  align-items: center;
  min-height: 4em;
  padding: 0 1.5em;
  text-align: center;
  border-radius: 2em;
  font-weight: 500;
  border: solid 2px #ffffff;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.afro-blog-tab.is-afronegocio {
  background: #4c1d95;
}

.afro-blog-tab.is-feira-preta {
  background: #ff7a00;
}

.afro-blog-tab[aria-current="page"] {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

.afro-blog-filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto 16px;
}

.afro-blog-field label {
  display: block;
  font-weight: 800;
  font-size: 12px;
  line-height: 16px;
  color: var(--primary-blue);
  background: #0f5f6d;
  color: #ffffff;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 6px 6px 0 0;
}

.afro-blog-field select,
.afro-blog-field input[type="search"] {
  width: 100%;
  height: 42px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 0 12px;
  background: #ffffff;
}

.afro-blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 18px;
}

.afro-blog-card {
  display: block;
  color: inherit;
}

.afro-blog-card-media {
  overflow: hidden;
  position: relative;
  background: rgba(0, 0, 0, 0.04);
}

.afro-blog-card-media::before {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: #095262;
  margin-bottom: 0.5rem;
}

.afro-blog-card-media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.afro-blog-card-tag {
  background: #4c1d95;
  color: #ffffff;
  font-size: 16px;
  line-height: 14px;
  padding: 6px 10px;
  display: inline-block;
}

.afro-blog-card-tag.is-feira-preta {
  background: #ff7a00;
}

.afro-blog-card-body {
  padding: 10px 4px 0;
}

.afro-blog-card-title {
  font-size: 1.3rem;
  line-height: 1.25;
  font-weight: 900;
  color: var(--primary-blue);
  margin: 0;
}

.afro-blog-card-excerpt {
  margin: 6px 0 0;
  font-size: 16px;
  line-height: 1.2;
  color: rgba(9, 82, 98, 0.85);
}

@media (max-width: 992px) {
  .afro-blog-inner {
    max-width: 860px;
  }

  .afro-blog-card-media img {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .afro-blog-grid {
    grid-template-columns: 1fr;
  }

  .afro-blog-card-media img {
    height: 220px;
  }
}
