/* #---------------blog HERO SECTION-----------------# */
.blog-hero {
  display: flex;
  align-items: center;
  height: 45vh;
  min-height: 380px;
  background:
    linear-gradient(
      to right,
      rgba(15, 23, 42, 0.9) 0%,
      rgba(15, 23, 42, 0.65) 50%,
      rgba(15, 23, 42, 0.3) 100%
    ),
    url("../images/contact/contact_hero_bg.png") no-repeat center center / cover;
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding-top: 140px;
  box-sizing: border-box;
}

.blog-hero-content {
  position: relative;
  z-index: 5;
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blog-hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

/* Breadcrumb Navigation */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.breadcrumb-item {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item:hover {
  color: var(--white);
}

.breadcrumb-item.active {
  color: var(--white);
  pointer-events: none;
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
}

@media (max-width: 991px) {
  .blog-hero {
    height: auto;
    min-height: auto;
    padding-top: 150px;
    padding-bottom: 60px;
    background:
      linear-gradient(
        to bottom,
        rgba(15, 23, 42, 0.9) 0%,
        rgba(15, 23, 42, 0.7) 100%
      ),
      url("../images/blog/waves_hero_bg.png") no-repeat center center / cover;
  }
  .blog-hero-title {
    font-size: 2.25rem;
    margin-bottom: 10px;
  }
}

@media (max-width: 576px) {
  .blog-hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .blog-hero-actions .btn {
    width: 100%;
  }
}

/* =====================================================================
   2. BLOG GRID & CARDS
   ===================================================================== */
.blog-section {
  background-color: var(--white);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 20px;
}

.blog-card {
  background-color: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 8px; /* Slightly tighter, modern corners */
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: #cbd5e1;
}

/* Image Wrapper and Zoom Effect */
.blog-card-img-wrapper {
  position: relative;
  height: 220px;
  width: 100%;
  overflow: hidden;
  background-color: var(--background);
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img {
  transform: scale(1.06);
}

/* Category Badge overlay */
/* Removed old category overlay */

/* Premium Placeholder styling (used when image is empty) */
.blog-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-light) 0%, #ccebff 100%);
  color: var(--primary);
  gap: 12px;
  padding: 20px;
  text-align: center;
  transition: background 0.3s ease;
}

.blog-card-img-placeholder i {
  font-size: 3rem;
  opacity: 0.85;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-img-placeholder i {
  transform: scale(1.12) rotate(-5deg);
}

.placeholder-text {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.75;
}

/* Blog Content */
.blog-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  
  /* Prevent long string overflow and limit to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
  word-break: break-word;
}

.blog-card-title a {
  color: var(--slate-dark);
  text-decoration: none;
  transition: color 0.25s ease;
}

.blog-card-title a:hover {
  color: var(--primary);
}

.blog-card-excerpt {
  font-size: 0.88rem;
  color: var(--slate-body);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;

  /* Prevent long string overflow and limit to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
  word-break: break-word;
}

.blog-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  align-self: flex-start;
}

.blog-card-link:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}

/* Footer Meta Area */
.blog-card-footer {
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}

.meta-item {
  font-size: 0.75rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.meta-item i {
  font-size: 0.8rem;
}

/* =====================================================================
   3. RESPONSIVE MEDIA BREAKPOINTS
   ===================================================================== */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .blog-section {
    padding-top: 50px;
    padding-bottom: 50px;
  }
}
