/* Blogs Page Grid Styles */
.blogs-page {
  background-color: #000;
  color: #fff;
  min-height: 100vh;
  font-family: "Overused Grotesk", sans-serif;
}

/* Blogs page specific header styling - smaller header */
.blogs-page .imp {
  height: 40vh; /* Smaller height for blogs page only */
}

.blogs-page .imp h2 {
  top: 60px; /* Adjusted position for smaller header */
}

.blogs-page .image-container {
  height: calc(40vh - 120px); /* Smaller height for blogs page */
}

.blogs-page .img-1-wrapper,
.blogs-page .img-2-wrapper {
  min-height: calc(40vh - 120px); /* Smaller height for blogs page */
}

.blogs-page .img-1,
.blogs-page .img-2 {
  min-height: calc(40vh - 120px); /* Smaller height for blogs page */
  max-height: calc(40vh - 120px); /* Smaller height for blogs page */
}

.blogs-grid-section {
  padding: 40px 0 150px 0;
  background-color: #000;
}

.blogs-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Use exact same blog card styling as index.html */
.blog-card {
  height: 520px !important;
  width: 100% !important;
  background-color: #1a1a1a;
  border-radius: 10px !important;
  overflow: hidden;
  padding-top: 25px;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #333;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.1);
}

.blog-card-image {
  height: 250px;
  /* width: 90%; */
  padding: 0 20px;
  overflow: hidden;
  position: relative;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.1);
}

.blog-card-content {
  padding: 1.5rem;
  color: white;
  text-align: center;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: "Overused Grotesk", sans-serif;
}

.blog-card-content h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
  line-height: 1.4;
  font-family: "Overused Grotesk", sans-serif;
}

.blog-card-content p {
  font-size: 0.9rem;
  color: #ccc;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
  font-family: "Overused Grotesk", sans-serif;
}

.blog-card-content .post-date {
  font-size: 0.8rem;
  color: #888;
  font-weight: 500;
  margin-top: auto;
  font-family: "Overused Grotesk", sans-serif;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .blogs-grid-container {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .blogs-grid-section {
    padding: 30px 0 100px 0;
  }
  
  .blogs-grid-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .blog-card {
    height: 480px;
  }
  
  .blog-card-image {
    height: 220px;
  }
  
  .blog-card-content {
    height: 180px;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .blog-card {
    height: 450px;
  }
  
  .blog-card-content h4 {
    font-size: 1.1rem;
  }
  
  .blog-card-content p {
    font-size: 0.85rem;
  }
}
