.entry-header h1 {
  color: red;
}

.section-header {
  font-size: clamp(32px, 5vw, 60px);
  text-align: center;
}

.section-header h2 {
  font-size: 60px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

.section-header p {
  font-size: 16px;
  line-height: 1.6;
  max-width: 850px;
  margin: 0 auto;
  color: #ddd;
  padding-bottom: 60px;
}

/* Shared Grid */
.blog-grid,
.other-blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  align-items: stretch; /* ensures equal height */
}

/* Cards */
.blog-card,
.other-blog-card {
  background: #fff;
  color: #000;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.blog-image img,
.blog-card-image img {
  width: 100%;
  height: clamp(220px, 30vw, 420px);
  object-fit: cover;
}

.blog-content,
.blog-card-content {
  padding: 35px 30px;
}

.blog-content h3,
.blog-card-content h3 {
  font-size: clamp(20px, 2.5vw, 42px);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Change to 3 if you want more lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 72px; /* KEY FIX */
}

.blog-content p,
.blog-card-content p {
  font-size: clamp(14px, 1.5vw, 24px);
  color: #666;
  line-height: 1.7;
  margin-bottom: 30px;
  min-height: 72px;
}
.read-more-btn {
  display: inline-flex;
  padding: 12px 24px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-top: auto;
}

.read-more-btn:hover {
  background: #fff;
  color: #000;
  border: 1px solid #000;
  transform: translateY(-3px); /* Button lifts slightly */
}

/* Optional: Add icon movement if you add an arrow later */
.read-more-btn:hover i {
  transform: translateX(5px);
}

/* Other Blogs */
.other-blogs-section {
  background: #f3f3f3;
  padding: 100px 0;
}

.other-blogs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 70px;
  flex-wrap: wrap;
  gap: 20px;
}

.other-blogs-header h2 {
  font-family: Roboto;
  font-size: 40px;
  font-style: normal;
  font-weight: 900;
  line-height: normal;
  color: #000;
}

.other-blogs-header h2 span {
  color: #666;
}

/* Search */
.blog-search-form {
  display: flex;
  align-items: center;
  width: 300px;
  padding: 15px 20px;
  border: 1px solid #000;
  gap: 10px; /* FIX: avoid huge spacing like 195px */
}

.blog-search-form input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;

  color: #000;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
}

.blog-search-form input::placeholder {
  color: #000;
}

.blog-search-form button {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive */
@media (max-width: 1200px) {
  .section-header h2 {
    color: #fff;
    text-align: center;

    /* H1 */
    font-family: Roboto;
    font-size: 60px;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
  }

  .other-blogs-header h2 {
    color: #000;
    text-align: center;

    /* H1 */
    font-family: Roboto;
    font-size: 34px;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
  }

  .blog-content h3,
  .blog-card-content h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Change to 3 if you want more lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .blog-content p,
  .blog-card-content p {
    color: #fff;
    text-align: center;

    font-family: "DM Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: 24px; /* 150% */

    .blog-content p,
    .blog-card-content p {
      text-align: center;
      max-width: 100%; /* prevent overflow */
      margin: 0 auto 20px auto;
    }
  }
  .blog-grid,
  .other-blogs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .blog-grid,
  .other-blogs-grid {
    grid-template-columns: 1fr;
  }

  .section-header h2,
  .other-blogs-header h2 {
    font-size: 40px;
  }

  .blog-image img,
  .blog-card-image img {
    height: 300px;
  }

  .blog-content h3,
  .blog-card-content h3 {
    font-size: 28px;
  }

  .blog-content p,
  .blog-card-content p {
    font-size: 18px;
  }

  .other-blogs-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-search-form {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .blog-grid,
  .other-blogs-grid {
    grid-template-columns: 1fr;
  }
  .other-blogs-section {
    padding: 60px 0;
  }

  .blog-content,
  .blog-card-content {
    padding: 20px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .blog-content h3,
  .blog-card-content h3,
  .blog-content p,
  .blog-card-content p {
    min-height: auto; /* 🔥 IMPORTANT */
  }
  .other-blogs-header {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-search-form {
    width: 100%;
  }
  .blog-content p,
  .blog-card-content p {
    text-align: center; /* centers the text */
    margin-left: auto;
    margin-right: auto;
  }
}

.blog-content h3,
.blog-card-content h3 {
  color: #000;
  align-self: stretch;
  font-family: Roboto;
  font-size: 30px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.blog-content p,
.blog-card-content p {
  color: #4c4c4c;
  align-self: stretch;
  font-family: Barlow;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px; /* 150% */
}
