@import url("../astra/style.css");

/* ========== CONTAINER PRINCIPAL ========== */
.ast-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  box-sizing: border-box;
  width: 100% !important;
}

/* ========== BREADCRUMBS ========== */
#breadcrumbs {
  margin-top: 10px;
}

/* ========== ESTRUTURA COM SIDEBAR (GERAL) ========== */
#primary {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 0 auto !important;
}

.content-area.content-with-sidebar {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  background-color: #fff;
  padding: 20px;
}

.site-content {
  background-color: #fff;
}

.content-wrapper {
  display: flex;
  gap: 30px;
  margin: 10px;
  padding: 20px;
}

.main-content {
  flex: 3;
  align-items: center;
  justify-content: center;
}

.sidebar-content {
  flex: 1;
  background: #f5f5f5;
  padding: 40px;
  border-radius: 8px;
  box-sizing: border-box;
}

.widget-title-sidebar {
  padding-top: 20px;
  text-transform: uppercase;
}

/* Ocultar sidebar no mobile */
@media (max-width: 768px) {
  .content-area.content-with-sidebar {
    flex-direction: column;
    padding: 10px;
  }

  .sidebar-content {
    display: none;
  }
}

/* ========== FOOTER ========== */
.footer-conteiner {
  background-color: #3b3e4a;
  padding: 40px 20px;
  font-size: 18px;
  color: #fff;
}

.footer-principal {
  display: flex !important;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 30px;
}

.footer-links,
.footer-social {
  flex: 1 1 25%;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 220px;
  text-align: left;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  text-decoration: none;
  color: #fff;
}

.footer-links ul li a:hover {
  text-decoration: underline;
}

.footer-social p {
  margin-bottom: 10px;
  font-weight: bold;
  color: #fff;
}

.footer-social .box-midia {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.footer-social .box-midia a {
  color: #FFF !important;
  margin: 15px;
  padding: 15px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.4s;
  text-decoration: none;
}

.footer-social .box-midia a.face {
  background-color: #4267b3;
}

.footer-social .box-midia a.tx {
  background-color: #040405;
}

.footer-social .box-midia a.instagran {
  background: linear-gradient(45deg, #7f37c9, #ff2992, #ff9807);
}

.footer-social .box-midia a svg {
  fill: currentColor;
  width: 24px;
  height: 24px;
}

.empresa {
  text-align: center;
  border-top: 1px solid #666;
  padding-top: 20px;
  font-size: 14px;
  color: #fff;
}

@media (max-width: 768px) {
  .footer-principal {
    flex-direction: column;
    align-items: center;
  }

  .footer-links,
  .footer-social {
    text-align: center;
    align-items: center;
  }

  .footer-links ul {
    max-width: 100%;
    text-align: center;
  }
}

/* ========== FEATURED POSTS (SLIDER) ========== */
#banner-featured {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin-top: 20px;
}

.featured-posts {
  margin: 0 auto;
  width: 100%;
  border: none;
}

.featured-posts .swiper {
  margin: 0 auto;
  padding: 0;
  height: auto;
  width: 100%;
  overflow: hidden;
}

.featured-posts .swiper-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  flex-wrap: nowrap;
}

.featured-posts .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  width: 100%;
  flex-direction: row;
}

.featured-posts .swiper-slide .content-wrapper {
  background-color: #f5f5f5;
  border-radius: 8px;
  display: flex;
  gap: 20px;
  padding: 20px;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
}

.featured-posts .swiper-slide .image img {
  max-width: 350px;
  height: auto;
  border-radius: 8px;
}

.featured-posts .swiper-slide .content {
  flex-grow: 1;
  padding-left: 20px;
}

.featured-posts .swiper-slide .content h3 {
  color: #501aae;
  font-size: 1.8rem;
  margin: 0 0 10px;
  padding-bottom: 20px;
}

.featured-posts .swiper-slide .content p {
  color: #666;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.featured-posts .swiper-slide .content .btn {
  background-color: #f19f0f;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
}

.featured-posts .swiper-slide .content .btn:hover {
  background-color: #e6890f;
}

@media (max-width: 768px) {
  .featured-posts .swiper-slide {
    flex-direction: column !important;
    margin-bottom: 20px;
  }

  .featured-posts .swiper-slide .content-wrapper {
    display: flex;
    flex-direction: column !important;
    gap: 10px;
    padding: 15px;
    align-items: center;
  }

  .featured-posts .swiper-slide .image {
    width: 100% !important;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px !important;
  }

  .featured-posts .swiper-slide .image img {
    max-width: 90%;
    height: auto;
    margin: 0 auto;
  }

  .featured-posts .swiper-slide .content {
    width: 100% !important;
    padding-left: 0 !important;
    text-align: center !important;
  }

  .featured-posts .swiper-slide .content h3 {
    font-size: 1.6rem !important;
  }

  .featured-posts .swiper-slide .content p {
    font-size: 1.1rem !important;
  }

  .featured-posts .swiper-slide .content .btn {
    width: 100% !important;
    padding: 12px 0 !important;
  }
}



/* ========== LATEST POSTS (CARDS) ========== */
.latest-posts h2 {
  margin-left: 20px;
  text-transform: uppercase;
}

.cards,
.latest-posts .cards,
#cards-blog-categoria {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: stretch;
  margin-top: 40px;
}

.card-categoria {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
}

.img-card-categoria-wrapper {
  position: relative;
  height: 230px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.img-card-categoria {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-card-categoria-wrapper .tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #f19f0f;
  border-radius: 8px;
  padding: 5px 15px;
  color: #fff;
  font-size: 1.4rem;
  font-weight: bold;
  text-transform: uppercase;
}

.card-categoria .content-wrapper {
  padding: 20px;
  background-color: #fff;
}

.card-categoria .text h3 {
  font-size: 1.6rem;
  color: #501aae;
  margin: 10px 0;
  padding: 10px;
}

.card-categoria .text .confira {  
  padding: 10px;
}

.card-categoria .content-wrapper p {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 20px;
}



.card-categoria .content-wrapper .btn:hover {
  background-color: #e6890f;
}

@media (max-width: 768px) {
  .card-categoria {
    flex: 1 1 100%;
  }
}


.swiper-pagination {
padding-bottom: 20px!important;
}

/* ========== SINGLE POST ========== */


.post-thumbnail img {
    width: 100%;
    height: auto; /* Mantém a proporção da imagem */
    max-width: 800px; /* Limita a largura máxima */
    margin: 0 auto; /* Centraliza a imagem */
    display: block;
}


@media (max-width: 768px) {
    .post-thumbnail img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}