/* --- Vertical Blog Stack Layout --- */

/* 1. Parent Container: Forces cards to stack vertically */
.secondary-header {
  display: flex;
  flex-direction: column; /* Stacks Blog 1, then Blog 2 below it */
  gap: 40px;              /* Consistent spacing between blog posts */
  width: 100%;
  max-width: 1000px;      /* Limits width for better readability on desktop */
  margin: 0 auto;
  padding: 20px 0;
}

/* 2. The Card: Stretches horizontally across the container */
.horizontal-blog-card {
  display: flex;
  flex-direction: row;    /* Keeps Image (left) and Text (right) side-by-side */
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Soft modern shadow */
  border: 1px solid #eaeaea;
  width: 100%;            /* Fills the parent container width */
  min-height: 280px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.horizontal-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* 3. Image Section: Occupies 40% of the horizontal card */
.card-image-wrapper {
  flex: 0 0 40%; 
  background-color: #f1f5f9; /* Placeholder color while loading */
  overflow: hidden;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image isn't stretched */
  display: block;
}

/* 4. Text Content: Occupies the remaining 60% */
.card-content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Vertically centers text next to image */
}

.card-badge {
  background: #2563eb; /* NotesPrep Blue */
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  width: fit-content;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.card-title {
  font-size: 26px;
  font-weight: 700;
  color: #111;
  margin: 0 0 15px 0;
  line-height: 1.3;
}

.card-excerpt {
  color: #555;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto; /* Pushes footer to the bottom of the content area */
}

.read-more-btn {
  text-decoration: none;
  color: #2563eb;
  font-weight: 700;
  font-size: 15px;
  transition: color 0.2s;
}

.read-more-btn:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.read-time {
  font-size: 13px;
  color: #999;
}

/* 5. Mobile Responsiveness: Stacks internal content vertically on phones */
@media (max-width: 768px) {
  .horizontal-blog-card {
    flex-direction: column; /* Image on top, text below */
  }
  
  .card-image-wrapper {
    flex: none;
    height: 220px; /* Fixed height for image on mobile */
  }
  
  .card-content {
    padding: 25px;
  }
  
  .card-title {
    font-size: 20px;
  }
  .hero-title{
	  font-size:40px !important;
  }
}