/* Blog card styles */
.blog-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}
.blog-card:hover img {
  transform: scale(1.05);
}
.blog-card a.landing-link:hover {
  color: var(--bs-primary) !important;
}

/* Hero styles for the first post on index */
.hero-card {
  border-radius: 12px;
  overflow: hidden;
}
.hero-img {
  position: relative;
  width: 100%;
  height: 420px;
  background: #f8f9fa;
}
.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}
.hero-card:hover img {
  transform: scale(1.03);
}
.hero-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1.5rem;
  color: #fff;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.55) 60%,
    rgba(0, 0, 0, 0.85) 100%
  );
}
.hero-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
}
.hero-excerpt {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  line-height: 1.6;
}
.hero-date {
  opacity: 0.85;
}

@media (max-width: 576px) {
  .hero-img {
    height: 260px;
  }
  .hero-title {
    font-size: 1.25rem;
  }
  .hero-excerpt {
    font-size: 0.95rem;
  }
}

/* Post cover image aspect ratio */
.cover-16x9 {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #f8f9fa;
}
.cover-16x9 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Modern newsletter section */
.newsletter-card-modern {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border-radius: 12px;
  padding: 2rem 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(232, 15, 136, 0.1);
  position: relative;
  overflow: hidden;
  text-align: center;
  transition: all 0.3s ease;
}

.newsletter-card-modern:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.newsletter-icon {
  color: #e80f88;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(232, 15, 136, 0.1);
  border-radius: 50%;
  margin: 0 auto;
}

.newsletter-heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.3;
}

.newsletter-heading-compact {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.3;
}

.newsletter-heading-compact {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.3;
}

.newsletter-text {
  font-size: 1.05rem;
  color: #5a6c7d;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-text-compact {
  font-size: 0.95rem;
  color: #5a6c7d;
  line-height: 1.5;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-text-compact {
  font-size: 0.95rem;
  color: #5a6c7d;
  line-height: 1.5;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-input-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 550px;
  margin: 0 auto;
}

.newsletter-input {
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  background: #f3f3f3;
  border: none;
  box-shadow: none;
  text-align: center;
  max-width: 520px;
  min-width: 320px;
  transition: all 0.2s ease;
}

.newsletter-input:focus {
  background: #f3f3f3;
  border: none;
  box-shadow: none;
  outline: 2px solid #e80f88;
  outline-offset: 2px;
}

.newsletter-btn {
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  min-width: 12rem;
  width: 100%;
  max-width: 320px;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.newsletter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232, 15, 136, 0.3);
}

.newsletter-btn:disabled {
  opacity: 0.8;
}

.newsletter-privacy {
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 768px) {
  .newsletter-card-modern {
    padding: 1.5rem 1rem;
  }

  .newsletter-heading {
    font-size: 1.4rem;
  }

  .newsletter-heading-compact {
    font-size: 1.25rem;
  }

  .newsletter-text {
    font-size: 0.95rem;
  }

  .newsletter-text-compact {
    font-size: 0.875rem;
  }

  .newsletter-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
}
