/* =========================
   home.css
   ========================= */

.hero-featured {
  border-radius: var(--radius);
  background: #fff;
}

.hero-image-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.hero-featured:hover .hero-image {
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 39, 67, 0.95),
    rgba(15, 39, 67, 0.5),
    transparent
  );
}

.hero-content {
  position: absolute;
  bottom: 0;
  padding: 2rem;
  color: #fff;
} 
.hero-badge {
  display: inline-block;
  background: var(--brand-green);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
}

.hero-excerpt {
  font-size: 0.95rem;
  opacity: .85;
  margin-bottom: 16px;
}

.hero-meta {
  font-size: 0.8rem;
  opacity: .75;
  display: flex;
  gap: 15px;
}

.hero-sidebar {
  background: #fff;
  border-radius: var(--radius);
}

.sidebar-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-item {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
  transition: background .2s ease;
  text-decoration: none;
  color: inherit;
}

.sidebar-item:hover {
  background: var(--secondary);
}

.sidebar-rank {
  width: 32px!important;
  height: 32px!important;
  background: var(--brand-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 5px!important;
}

.sidebar-post-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
}

.sidebar-meta {
  font-size: 0.75rem;
  color: #777;
  display: flex;
  gap: 10px;
}

.sidebar-button {
  margin-top: 1rem;
  margin-bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  text-decoration: none;
  color: var(--brand-blue);
  transition: all .2s ease;
}

.sidebar-button:hover {
  background: var(--brand-blue);
  color: #fff;
}
/* =========================
   HERO MOBILE FIX
========================= */

@media (max-width: 768px) {

  .hero-image-wrapper {
    aspect-ratio: 4/5; /* mais alto no mobile */
  }

  .hero-content {
    padding: 1.2rem;
  }

  .hero-title {
    font-size: 1.3rem;
    line-height: 1.2;
  }

  .hero-badge {
    font-size: 10px;
    margin-bottom: 8px;
  }

  .hero-meta {
    font-size: 0.7rem;
    gap: 8px;
    flex-wrap: wrap;
  }

}
@media (min-width: 992px) {
  .hero-sidebar {
    position: sticky;
    top: 100px;
  }
}

/* =========================
   CATEGORIES SCROLLER
========================= */

.section-title {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--brand-blue);
}

.section-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-green);
  text-decoration: none;
}

.section-link:hover {
  text-decoration: underline;
}

.categories-scroller {
  display: flex;
  gap: 16px;
  padding-bottom: 10px;
}

@media (min-width: 992px) {
  .categories-scroller {
    justify-content: center;
  }
}

@media (max-width: 991px) {
  .categories-scroller {
    overflow-x: auto;
    justify-content: flex-start;
  }
}

/* 🔹 SCROLLER CARDS */

.categories-card {
  min-width: 180px;
  flex-shrink: 0;
  background: #fff;
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: all .2s ease;
}

.categories-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.categories-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(15,39,67,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  transition: all .2s ease;
}

.categories-card:hover .categories-icon {
  background: var(--brand-green);
  color: #fff;
}

.categories-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.categories-meta {
  margin-top: 10px;
  font-size: 0.75rem;
  color: #777;
  display: flex;
  justify-content: center;
  gap: 12px;
}
/* =========================
   CATEGORY SECTION PREMIUM
========================= */

.category-section-featured {
  border-radius: var(--radius);
  background: #fff;
  height: 100%;
}

.category-section-featured-wrapper {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: var(--radius);
}

.category-section-featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}

.category-section-featured:hover .category-section-featured-image {
  transform: scale(1.06);
}

.category-section-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15,39,67,.92),
    rgba(15,39,67,.55),
    rgba(15,39,67,.15),
    transparent
  );
}

.category-section-featured-content {
  position: absolute;
  bottom: 0;
  padding: 1.8rem;
  color: #fff;
}

.category-section-badge {
  display: inline-block;
  background: var(--brand-green);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: .5px;
}

.category-section-featured-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.2;
  color: #fff;
}

.category-section-featured-excerpt {
  font-size: .9rem;
  opacity: .85;
  margin-bottom: 14px;
}

.category-section-featured-meta {
  font-size: .75rem;
  opacity: .75;
  display: flex;
  gap: 14px;
}

/* =========================
   SIDE CARDS
========================= */

.category-section-side-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: #fff;
  transition: all .25s ease;
  text-decoration: none;
  color: inherit;
}

.category-section-side-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
}

.category-section-side-thumb {
  width: 95px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.category-section-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.category-section-side-card:hover img {
  transform: scale(1.05);
}

.category-section-side-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.category-section-side-title {
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
  color: var(--brand-blue);
  transition: color .2s ease;
}

.category-section-side-card:hover .category-section-side-title {
  color: var(--brand-green);
}

.category-section-side-meta {
  font-size: .7rem;
  color: #777;
  display: flex;
  gap: 10px;
}

/* =========================
   BUTTON
========================= */

.category-section-more-btn {
  margin-top: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 10px;
  font-size: .75rem;
  font-weight: 600;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  color: var(--brand-blue);
  text-decoration: none;
  transition: all .2s ease;
}

.category-section-more-btn:hover {
  background: var(--brand-blue);
  color: #fff;
}
/* =========================
   CATEGORY SECTION MOBILE
========================= */

@media (max-width: 768px) {
  .category-section-featured-wrapper {
    aspect-ratio: 4/5; /* mais alto no mobile */
  }
  .category-section-featured-content {
    padding: 1.2rem;
  }

  .category-section-featured-title {
    font-size: 1.2rem;
  }

  .category-section-featured-excerpt {
    font-size: .85rem;
  }

  .category-section-featured-meta {
    gap: 8px;
    flex-wrap: wrap;
  }

  .category-section-side-thumb {
    width: 80px;
    height: 60px;
  }

}
