/* =========================================
   1. IMPORTAÇÃO DE FONTES
   ========================================= */
@font-face {
  font-family: "Satoshi";
  src: url("/fonts/Satoshi-Variable.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-Variable.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-display: swap;
}

/* =========================================
   2. ESTILOS GLOBAIS (DARK THEME)
   ========================================= */
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background-color: #020617; /* Fundo Azul Meia-Noite */
  color: #e2e8f0; /* Cor do texto padrão */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1;
  display: block;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #fff !important;
}
p {
  color: #e2e8f0;
}
a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
a:hover {
  color: #60a5fa;
}

code,
pre {
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-feature-settings: "calt" 1, "liga" 1;
  font-size: 0.9em;
}

/* =========================================
   3. NAVBAR PREMIUM
   ========================================= */
.navbar-premium {
  background: rgba(5, 16, 36, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0;
  transition: all 0.3s ease;
  position: relative;
  z-index: 9999; /* Garante que fique acima do carousel */
}

.navbar-brand {
  font-family: "Satoshi", sans-serif;
  letter-spacing: -0.5px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.7) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #fff !important;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: #3b82f6;
  transition: width 0.3s ease, left 0.3s ease;
  border-radius: 2px;
}
.nav-link:hover::after {
  width: 100%;
  left: 0;
}

.dropdown-menu-premium {
  background: rgba(15, 34, 74, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  margin-top: 15px;
  padding: 0.5rem;
}

.dropdown-item {
  color: #e0e6f0;
  border-radius: 8px;
  padding: 8px 16px;
  transition: background 0.2s;
}
.dropdown-item:hover {
  background: rgba(59, 130, 246, 0.2);
  color: #fff;
}

.search-container {
  position: relative;
}

.input-premium {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: #fff;
  padding: 8px 20px 8px 40px;
  font-size: 0.9rem;
  width: 200px;
  transition: all 0.3s ease;
}

.input-premium:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #3b82f6;
  width: 260px;
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.input-premium::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.navbar-toggler {
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}
.navbar-toggler:focus {
  box-shadow: none;
}

/* =========================================
   4. FOOTER PREMIUM
   ========================================= */
.footer-premium {
  background-color: #051024;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.9rem;
  margin-top: 4rem;
  width: 100%;
}

.footer-heading {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  letter-spacing: -0.5px;
}

.footer-link {
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 2px 0;
}
.footer-link:hover {
  color: #60a5fa;
  transform: translateX(5px);
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.4);
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.social-icon-btn:hover {
  background: #60a5fa;
  color: #051024;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(96, 165, 250, 0.3);
}

.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* =========================================
   5. HERO CAROUSEL
   ========================================= */
.hero-carousel {
  position: relative;
  background: radial-gradient(circle at 70% 50%, #1c4587 0%, #051024 100%);
  color: #fff;
  overflow: hidden;
  min-height: 550px;
  width: 100%;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
  z-index: 1;
}
.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.carousel-content {
  max-width: 500px;
  z-index: 10;
}
.carousel-content h2 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}
.carousel-content h3 {
  font-size: 1.5rem;
  font-weight: 400;
  color: #aecbfa;
  margin-bottom: 1.5rem;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.8s ease-out 0.1s, opacity 0.8s ease-out 0.1s;
}
.carousel-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e8eaed;
  margin-bottom: 2rem;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.8s ease-out 0.2s, opacity 0.8s ease-out 0.2s;
}
.carousel-btn {
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.8s ease-out 0.3s, opacity 0.8s ease-out 0.3s,
    background 0.3s !important;
  background: #fff;
  color: #051024;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}
.carousel-btn:hover {
  background: #e8f0fe;
  transform: translateY(28px) scale(1.05);
}
.carousel-slide.active .carousel-content h2,
.carousel-slide.active .carousel-content h3,
.carousel-slide.active .carousel-desc,
.carousel-slide.active .carousel-btn {
  transform: translateY(0);
  opacity: 1;
}
.carousel-image {
  flex: 1;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}
.carousel-image img {
  max-width: 450px;
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  animation: floatImage 6s ease-in-out infinite;
  transform: rotateY(-10deg) rotateX(5deg);
  transition: transform 0.5s;
}
@keyframes floatImage {
  0%,
  100% {
    transform: translateY(0) rotateY(-5deg);
  }
  50% {
    transform: translateY(-20px) rotateY(-5deg);
  }
}
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 100px;
  background: #fff;
  color: #000;
  border: none;
  cursor: pointer;
  z-index: 20;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: width 0.3s ease, background 0.3s;
}
.carousel-nav:hover {
  width: 75px;
  background: #f8f9fa;
}
.carousel-nav-prev {
  left: 0;
  border-radius: 0 100px 100px 0;
  padding-right: 10px;
}
.carousel-nav-next {
  right: 0;
  border-radius: 100px 0 0 100px;
  padding-left: 10px;
}
.carousel-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 20;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 20px;
  border-radius: 50px;
  backdrop-filter: blur(5px);
}
.carousel-playpause {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
}
.carousel-playpause svg {
  fill: #fff;
  width: 16px;
  height: 16px;
}
.progress-track {
  display: flex;
  gap: 8px;
}
.progress-bar-item {
  width: 40px;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #fff;
}
.progress-bar-item.active .progress-fill {
  animation: fillBar 5s linear forwards;
}
.progress-bar-item.visited .progress-fill {
  width: 100%;
}
.is-paused .progress-bar-item.active .progress-fill {
  animation-play-state: paused;
}
@keyframes fillBar {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

/* =========================================
   6. CARD PREMIUM
   ========================================= */
.card-premium {
  background: #0b162c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}
.card-premium:hover {
  transform: translateY(-10px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.4),
    0 0 15px rgba(59, 130, 246, 0.2);
}
.card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: radial-gradient(circle at center, #162c5c 0%, #0b162c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.6s ease;
  box-shadow: none;
}
.card-premium:hover .card-img-wrapper img {
  transform: scale(1.1);
}
.card-badge-glass {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(5, 16, 36, 0.7);
  backdrop-filter: blur(8px);
  color: #60a5fa;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 2;
}
.card-body-premium {
  padding: 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    180deg,
    rgba(11, 22, 44, 0) 0%,
    rgba(11, 22, 44, 1) 100%
  );
}
.card-body-premium h3 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s;
}
.card-premium:hover h3 {
  color: #60a5fa;
}
.card-body-premium p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-link-modern {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s;
  width: fit-content;
  gap: 8px;
}
.card-link-modern span {
  transition: transform 0.3s;
}
.card-link-modern:hover {
  color: #60a5fa;
}
.card-link-modern:hover span {
  transform: translateX(5px);
}

/* =========================================
   7. DESTAQUES (WIDE CARDS)
   ========================================= */
.highlight-card {
  background: #0b162c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  height: 100%;
  min-height: 280px;
  position: relative;
  transition: all 0.3s ease;
}
.highlight-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
}
.highlight-body {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  background: #0b162c;
}
.highlight-img-box {
  width: 45%;
  position: relative;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}
.highlight-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.6s ease;
}
.highlight-card:hover .highlight-img-box img {
  transform: scale(1.02);
}
.highlight-category {
  color: #60a5fa;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.highlight-category::before {
  content: "";
  width: 20px;
  height: 2px;
  background: #60a5fa;
  display: block;
}
.highlight-title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}
.highlight-card:hover .highlight-title {
  color: #aecbfa;
}
.highlight-date {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1rem;
  font-family: "JetBrains Mono", monospace;
}
.highlight-desc {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================
   8. UTILITÁRIOS (BOTÕES & INPUTS)
   ========================================= */
#maisPosts {
  background-color: #3b82f6 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}
#maisPosts:hover {
  background-color: #2563eb !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}
#maisPosts:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}
#maisPosts:focus {
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3);
}
#maisPosts.disabled {
  background-color: #1e3a8a !important;
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-social {
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  margin: 5px;
  font-size: 0.95rem;
}
.btn-social i {
  font-size: 1.2rem;
}
.btn-facebook {
  background: rgba(24, 119, 242, 0.15);
  color: #1877f2;
  border: 1px solid rgba(24, 119, 242, 0.3);
}
.btn-facebook:hover {
  background: #1877f2;
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(24, 119, 242, 0.3);
}
.btn-instagram {
  background: rgba(225, 48, 108, 0.15);
  color: #e1306c;
  border: 1px solid rgba(225, 48, 108, 0.3);
}
.btn-instagram:hover {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(225, 48, 108, 0.3);
  border-color: transparent;
}
.btn-whatsapp {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
  background: #25d366;
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

/* =========================================
   9. PÁGINAS ESPECÍFICAS (AUTOR, BLOG SINGLE)
   ========================================= */
/* Autor / Loja */
.profile-card {
  background: #0b162c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin: 5rem auto;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
  max-width: 600px;
  text-align: center;
}
.profile-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: radial-gradient(
    circle at center,
    rgba(28, 69, 135, 0.4) 0%,
    rgba(11, 22, 44, 0) 70%
  );
  z-index: 0;
}
.profile-img-box {
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
  display: inline-block;
}
.profile-img-box img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #0b162c;
  box-shadow: 0 0 0 2px #60a5fa, 0 10px 20px rgba(0, 0, 0, 0.3);
}
.profile-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
  letter-spacing: -0.5px;
}
.profile-address {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Blog Single / Categoria */
#category-header {
  position: relative;
  background: radial-gradient(circle at 50% 50%, #1e3a8a 0%, #020617 100%);
  padding: 5rem 0;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.category-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(to right, #fff, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.article-category {
  color: #60a5fa;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.article-category::before {
  content: "";
  width: 30px;
  height: 2px;
  background: #60a5fa;
  display: block;
}
.blog-post-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 1rem;
}
.blog-post-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.blog-post-meta a {
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.blog-post-meta a:hover {
  color: #60a5fa;
  border-color: #60a5fa;
}
.article-featured-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  margin-bottom: 3rem;
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #ffffff !important;
}
.blog-post-content p {
  margin-bottom: 1.5rem;
  color: #ffffff !important;
}
.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
  color: #fff !important;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.blog-post-content h2 {
  font-size: 1.8rem;
  border-left: 4px solid #60a5fa;
  padding-left: 15px;
}
.blog-post-content blockquote {
  border-left: 4px solid #60a5fa;
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  font-style: italic;
  border-radius: 0 10px 10px 0;
  margin: 2rem 0;
  color: #fff !important;
}
.blog-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 2rem 0;
}

.sidebar-sticky {
  position: relative;
}
.sidebar-card {
  background: #0b162c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}
.sidebar-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.author-box {
  text-align: center;
}
.author-box img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #020617;
  box-shadow: 0 0 0 2px #60a5fa;
  margin-bottom: 1rem;
}
.author-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.author-bio {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.5;
}
.category-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.2s;
}
.category-list-item:last-child {
  border-bottom: none;
}
.category-list-item a {
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
}
.category-list-item:hover a {
  color: #60a5fa;
  padding-left: 5px;
}
.category-count {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-family: "JetBrains Mono", monospace;
}

/* =========================================
   10. LEGADOS (ESTILOS ANTIGOS)
   ========================================= */
.bd-placeholder-img {
  font-size: 1.125rem;
  text-anchor: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
@media (min-width: 768px) {
  .bd-placeholder-img-lg {
    font-size: 3.5rem;
  }
}
.img-destaque-post {
  object-fit: contain;
}
.object-fit-cover {
  object-fit: cover;
}
.form-signin {
  width: 100%;
  max-width: 330px;
  padding: 15px;
  margin: auto;
}
.form-signin .checkbox {
  font-weight: 400;
}
.form-signin .form-floating:focus-within {
  z-index: 2;
}
.form-signin input[type="email"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}
.form-signin input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.blog-post img,
.blog-post-content img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}
.blog-post video,
.blog-post-content video {
  max-width: 100% !important;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.blog-post iframe,
.blog-post-content iframe {
  max-width: 100% !important;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-height: 315px;
}
.blog-post,
.blog-post-content {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  overflow: visible;
}
.blog-post-content p,
.blog-post-content div,
.blog-post-content span,
.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4,
.blog-post-content h5,
.blog-post-content h6 {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}
.blog-post table,
.blog-post-content table {
  display: block;
  width: 100% !important;
  overflow-x: auto;
  color: #fff;
}

/* =========================================
   11. RESPONSIVIDADE FINAL
   ========================================= */
@media (max-width: 991px) {
  #areaPosts {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding-bottom: 40px;
    padding-left: 20px;
    padding-right: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  #areaPosts::-webkit-scrollbar {
    display: none;
  }
  #areaPosts .col {
    flex: 0 0 85%;
    max-width: 350px;
    scroll-snap-align: center;
    margin-top: 0 !important;
  }
  .card-img-wrapper {
    aspect-ratio: 16/9;
  }
}

@media (max-width: 768px) {
  .hero-carousel {
    min-height: auto;
    padding: 40px 0;
  }
  .carousel-slide {
    flex-direction: column-reverse;
    text-align: center;
    padding: 0 20px;
    position: relative;
    opacity: 1;
    visibility: visible;
    display: none;
  }
  .carousel-slide.active {
    display: flex;
  }
  .carousel-content h2 {
    font-size: 2rem;
  }
  .carousel-image img {
    max-width: 200px;
    margin-bottom: 20px;
  }
  .carousel-nav {
    width: 40px;
    height: 60px;
    font-size: 18px;
  }
  .carousel-controls {
    bottom: 10px;
    padding: 8px 15px;
  }
  .highlight-card {
    min-height: auto;
    display: block;
  }
  .highlight-img-box {
    display: none !important;
  }
  .highlight-body {
    background: #0b162c;
    padding: 1.5rem;
    width: 100%;
  }
  .highlight-title {
    font-size: 1.3rem;
  }
  .blog-post-title {
    font-size: 2rem;
  }
  .sidebar-sticky {
    position: relative;
    top: 0;
  }

  .profile-card {
    width: 90%;
    margin-top: 3rem;
    margin-bottom: 3rem;
    padding: 2rem 1rem;
    border-radius: 6px;
  }
}
/* =========================================
   RESPONSIVIDADE MOBILE (ATUALIZADO)
   ========================================= */
@media (max-width: 768px) {
    .hero-carousel {
        min-height: auto;
        /* Aumentei o último valor (bottom) de 40px para 80px para dar respiro */
        padding: 40px 0 80px 0; 
    }

    /* --- FORÇANDO O OCULTAMENTO DAS SETAS E BOTÃO --- */
    .carousel-nav, 
    .carousel-nav-prev, 
    .carousel-nav-next,
    button.carousel-nav { 
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    #maisPosts {
        display: none !important;
    }
    /* ----------------------------------------------- */

    .carousel-slide {
        flex-direction: column-reverse;
        text-align: center;
        padding: 0 20px;
        position: relative;
        opacity: 1;
        visibility: visible;
        display: none;
    }

    .carousel-slide.active {
        display: flex;
    }

    .carousel-content h2 {
        font-size: 2rem;
    }
    
    /* AJUSTE NO BOTÃO DO CAROUSEL MOBILE */
    .carousel-btn {
        margin-bottom: 2rem; /* Empurra o botão para cima, longe da borda */
    }

    .carousel-image img {
        max-width: 200px;
        margin-bottom: 20px;
    }

    .carousel-controls {
        bottom: 20px; /* Subi um pouco os controles para não colar na borda */
        padding: 8px 15px;
    }

    /* Destaques e Cards */
    .highlight-card {
        min-height: auto;
        display: block;
    }

    .highlight-img-box {
        display: none !important;
    }

    .highlight-body {
        background: #0b162c;
        padding: 1.5rem;
        width: 100%;
    }

    .highlight-title {
        font-size: 1.3rem;
    }

    .blog-post-title {
        font-size: 2rem;
    }

    .sidebar-sticky {
        position: relative;
        top: 0;
    }

    .profile-card {
        width: 90%;
        margin-top: 3rem;
        margin-bottom: 3rem;
        padding: 2rem 1rem;
        border-radius: 6px;
    }
}