/* Estilização da Seção */
.blog-section {
  width: 100%;
  padding: 50px 0;
  background-image: url(/images/page/backgroundBlog.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.blog-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.section-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid #ececec;
  color: #ffffff;
  font-size: 1.25rem;
  
}

.section-title {
  font-size: 2rem;
  color: #FFFFFF;
  text-align: left;
  margin: 0;
}

/* Container dos Cards */
.cards-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .cards-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Estilização do Card */
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: rgba(62, 62, 62, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.15), 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.post-card::before,
.post-card::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 2;
}

.post-card::before {
  top: 0;
  left: 0;
  border-top: 2px solid transparent;
  border-left: 2px solid transparent;
  transition: width 0.35s ease, height 0.35s ease 0.35s;
}

.post-card::after {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid transparent;
  border-right: 2px solid transparent;
  transition: width 0.35s ease, height 0.35s ease 0.35s;
}

.post-card:hover::before,
.post-card:hover::after {
  width: 100%;
  height: 100%;
  border-color: #63b3ed;
}

@media (min-width: 576px) {
  .post-card {
    flex-direction: row;
  }
}

.card-image {
  width: 100%;
}

@media (min-width: 576px) {
  .card-image {
    width: 40%; 
    min-width: 160px;
  }
}

.card-image img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover; 
  object-position: center;
  display: block;
}

.card-content {
  padding: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 576px) {
  .card-content {
    width: 60%;
  }
}

.post-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #90cdf4;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.post-title {
  font-size: 1.10rem;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 10px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 0;
}
  
.post-date {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: #90cdf4;
  margin: 0;
  margin-right: auto;
}

.post-date i {
  color: #90cdf4;
  margin-right: 5px;
}

.btn-access {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 10px 20px;
  background-color: #7d1e19;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.75rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.btn-access i {
  margin-right: 3px;
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.btn-access:hover i {
  transform: translateX(3px);
}

.btn-access:hover {
    background-color: #1D1E46;
    color: #ffffff;

}

/* ===== Ajustes para telas pequenas (mobile) ===== */
@media (max-width: 575px) {
  .blog-section {
    padding: 30px 0;
  }

  .blog-section-inner {
    padding: 0 15px;
  }

  .section-header {
    gap: 12px;
    margin-bottom: 20px;
  }

  .section-icon-circle {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .card-content {
    padding: 16px;
  }

  .card-image img {
    min-height: 160px;
    max-height: 200px;
  }

  .card-footer {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0 0;
  }

  .btn-access {
    padding: 8px 16px;
  }
}