/* ===================== BASE ===================== */

body {
  font-family: 'Montserrat', sans-serif;
  background: #f4f6f8;
  margin: 0;
  background-color: #F3F4F6;
  overflow-y: scroll;
  height: 100vh;
}

html {
  scroll-behavior: smooth;
}

/* ===================== CONTAINER ===================== */

.blog-container {
  max-width: 1100px;
  margin: 100px auto 60px auto;
  padding: 0 20px;
}

/* ===================== TITLE ===================== */

.blog-title {
  font-size: 2.4rem;
  color: #00427a;
  font-weight: 700;
  margin-bottom: 30px;
}

/* ===================== ALERT ===================== */

.alert-danger {
  background: #ffe5e5;
  color: #b30000;
  padding: 15px 20px;
  border-left: 5px solid #b30000;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* ===================== GRID ===================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

/* responsivo */
@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================== CARD ===================== */

.blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: 0.25s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
}

/* imagem */

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* conteúdo */

.blog-card-body {
  padding: 20px;
}

.blog-card-title {
  font-size: 1.2rem;
  color: #00427a;
  margin-bottom: 10px;
  font-weight: 700;
}

.blog-meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 10px;
}

.blog-text {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}

/* botão */

.blog-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 14px;
  background: #00427a;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.2s;
  width: fit-content;
}

.blog-btn:hover {
  background: #0060b3;
}

/* ===================== BLOG ===================== */
 
@media (max-width: 900px) {
  .blog-container {
    margin: 80px auto 40px auto;
    padding: 0 16px;
  }
 
  .blog-title {
    font-size: 1.8rem;
  }
}
 
@media (max-width: 600px) {
  .blog-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
 
  .blog-card img {
    height: 170px;
  }
 
  .blog-card-title {
    font-size: 1.05rem;
  }
 
  .blog-btn {
    width: 100%;
    text-align: center;
  }
}
 