/* ── Layout ── */
.blog-hero-section {
  padding: 40px 20px 0;
}

.blog-posts-section {
  padding: 60px 20px 80px;
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'Inter', system-ui, sans-serif;
}

/* ── Hero ── */
.blog-hero-section .habla-blog-hero {
  position: relative;
  width: 100%;
  min-height: 650px;
  background-color: #0b1c2d;
  margin-bottom: 50px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-radius: 20px;
  overflow: hidden;
  padding: 0 5%;
  box-sizing: border-box;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-hero-section .hero-bg-robot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
  filter: brightness(1.02) contrast(1.02);
}

.blog-hero-section .hero-content {
  position: relative;
  z-index: 2;
  max-width: 45%;
  text-align: right;
  color: #fff;
  padding: 30px;
}

.blog-hero-section .hero-title {
  font-size: 38px;
  font-weight: 800;
  margin: 0 0 15px 0;
  line-height: 1.2;
  color: #fff;
}

.blog-hero-section .hero-text {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 25px;
}

.hero-action-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
}

.hero-action-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
}

.hero-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: #0b1c2d;
  color: white;
  border-radius: 50%;
  text-decoration: none;
  font-size: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hero-action-btn:hover {
  transform: scale(1.08) translateX(5px);
  box-shadow: 0 8px 20px rgba(43, 124, 255, 0.3);
  background-color: #2b7cff;
}

@media (max-width: 900px) {
  .blog-hero-section .habla-blog-hero {
    min-height: 520px;
    padding: 20px;
    align-items: flex-end;
    justify-content: center;
  }
  .blog-hero-section .hero-bg-robot {
    object-position: center top;
  }
  .blog-hero-section .hero-content {
    max-width: 100%;
    width: 100%;
    text-align: center;
    background: rgba(11, 28, 45, 0.75);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 25px 20px;
    box-sizing: border-box;
  }
  .blog-hero-section .hero-title { font-size: 24px; margin-bottom: 12px; }
  .blog-hero-section .hero-text { font-size: 15px; margin-bottom: 25px; }
  .hero-action-container { justify-content: center; }
}

/* ── Blog grid ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

/* ── Blog card ── */
.blog-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #e8edf5;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: #2b7cff;
  box-shadow: 0 15px 35px rgba(43, 124, 255, 0.15);
}

/* Thumbnail */
.blog-card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f4f7ff;
  text-decoration: none;
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-thumb img {
  transform: scale(1.04);
}

/* Placeholder for posts without image */
.blog-card-thumb--noimag {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef2ff 0%, #dbeafe 100%);
  cursor: pointer;
}

.blog-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-placeholder i {
  font-size: 52px;
  color: #2b7cff;
  opacity: 0.35;
  transition: opacity 0.3s ease;
}

.blog-card:hover .blog-card-placeholder i {
  opacity: 0.55;
}

/* Card body */
.blog-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-date {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #0b1c2d;
  margin: 0 0 16px;
  line-height: 1.45;
  flex: 1;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card-title a:hover {
  color: #2b7cff;
}

.blog-card-readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #2b7cff;
  text-decoration: none;
  transition: gap 0.2s ease;
  align-self: flex-start;
}

.blog-card-readmore:hover {
  gap: 12px;
}

@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
}
