/* Blogs Hero Section */
.blogs-hero {
  width: 100%;
  height: 60vh;
  background: url('https://invent.ilmkidunya.com/ckfinder/userfiles/images/Women-Empowerment-and-Its-Negative-Positive-Impact-On-Our-Society3.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
}

.blogs-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.blogs-hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  width: 100%;
  z-index: 2;
  color: white;
}

.blogs-hero-text h1 {
  font-size: 2.8rem;
  font-weight: 500;
  margin-top: 140px;
  margin-bottom: 20px;
  letter-spacing: 2px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.blogs-hero-text p {
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 30px;
  line-height: 1.6;
  letter-spacing: 0.5px;
}


/* Blogs Actual content Section */
.blog-section {
  padding: 3rem 1rem;
  /* background-color: #f9f9f9; */
  /* min-height: 100vh; */
  max-width: 1000px;
  width: 100%;
  /* border: 1px solid red; */
  margin: 10px auto;
  /* height: 100vh; */
  /* overflow-y: scroll; */
}

.blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 215, 0, 0.1); 
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: #FFD700;
}

.blog-card img {
  width: 100%; 
  height: 340px;
  object-fit: container;
  border-bottom: 1px solid #eee;
  object-position: center center;
}


.blog-content {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  flex-grow: 1;
}

.blog-content .category {
  font-size: 0.85rem;
  font-weight: 600;
  background-color: #FFD700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  color: #1e1e2f;
  width: fit-content;
  padding: 1px 9px;
  border-radius: 10px; 

}

.blog-content h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin: 0.5rem 0;
  line-height: 1.4;
}

.blog-content .subtitle-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 1rem;
}

.blog-content .subtitle {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* or 1 or 3 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.6;
  color: #555;
  font-size: 0.95rem;
  flex: 1;
  margin: 0;
}

.blog-content .read-more-inline {
  flex-shrink: 0;
  color: #FFD700;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  display: block;
  /* border: 1px solid black; */
}

.blog-content .read-more-inline:hover {
  text-decoration: underline;
  color: #e6b800;
} 

.blog-content .meta {
  font-size: 0.8rem;
  color: #999;
  margin-top: auto;
}


@media (max-width: 1024px) {
  .blogs-hero-text h1 {
      font-size: 3.5rem;
  }

}


@media (max-width: 768px) {

  .blogs-hero {
      height: 50vh;
      margin-top: 70px;
  }

  .blogs-hero-text h1 {
      margin-top: 40px;
      font-size: 2rem;
  }

  .blogs-hero-text p {
      font-size: 1.2rem;
  }

  .blog-section{
    height: auto;
  }
  .blog-card img{
    height: 250px;
  }
  .blog-content h2 {
    font-size: 1.1rem;
  }

  .blog-content .subtitle {
    font-size: 0.85rem;
  }

  .blog-content .meta {
    font-size: 0.75rem;
  }

  .blog-section {
    padding: 2rem 1rem;
  }
}







/* --------------------------- blog details page ---------------------- */

body {
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  color: #1e1e2f;
  line-height: 1.6;
}

.blog-wrapper {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: #FFD700;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.back-link:hover {
  text-decoration: underline;
  color: #FFC000;
}

.blog-header img.blog-main-image {
  width: auto;
  height: 400px; 
  display: block;
  margin: 0 auto 1rem auto;
  object-fit: contain;
  background-color: transparent;
  border-radius: 6px;
}


.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 0.75rem;
}

.blog-meta .category {
  font-weight: 600;
  /* color: #FFD700; */
  background-color: #FFD700;
  text-transform: uppercase;
  color: #1e1e2f;
  width: fit-content;
  padding: 1px 9px;
  border-radius: 10px; 
}


.blog-title {
  font-size: 2.5rem;
  color: #333333;
  margin: 0.5rem 0 0.5rem;
  line-height: 1.3;
}

.blog-subtitle {
  font-size: 1.15rem;
  color: #555;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

/* Main Content */
.blog-content {
  font-size: 1rem;
  color: #6c757d;
  line-height: 1.8;
}

.blog-content p {
  margin-bottom: 1.25rem;
}

.blog-content div {
  display: flex;
  justify-content: center;
  align-items: center;
}

.blog-content img {
  max-width: 100%;
  border-radius: 10px;
  margin: 2rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

@media screen and (max-width: 768px) {
  
  .blog-wrapper {
    margin: 1.5rem 1rem;
    padding: 1.5rem;
  }

  .blog-title {
    font-size: 1.8rem;
  }

  .blog-subtitle {
    font-size: 1rem;
  }

  .blog-header img.blog-main-image {
    /* width: 100%; */
    width: fit-content;
    height: 250px;
  }

  .blog-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}
