/* General Styling */
.blog-card {
  background: #fff;
  font-family: 'Nunito', sans-serif;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out, box-shadow 0.3s;
  width: 80%; /* Reduced width */
  max-width: 350px; /* Prevent it from being too wide */
}

.header .title {
  font-size: 8rem; 
  font-weight: 700;
  line-height: 1.2;
  color: white;
  position: relative; 
  display: inline-block; /* Ensures correct span positioning */
}


.title .our{
  font-family: 'Geomatic';
    font-weight: bold;
    font-style: normal;
  position: absolute;
  top: -13%;
  left: 2%;
  font-size: 3rem; 
  font-weight: 500; 
  color: white
}

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

/* Blog Card Image */
.blog-card-img {
  position: relative;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

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

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

/* Hover Effect */
.hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.blog-card:hover .hover-overlay {
  opacity: 1;
}

.hover-icon {
  font-size: 2rem;
  color: #fff;
}

.hover-text {
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
}

/* Blog Card Body */
.blog-card-body {
  padding: 15px;
}

.blog-card-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 5px;
}

.blog-card-title a {
  text-decoration: none;
  color: #333;
}

.blog-card-title a:hover {
  color: #FF007F;
}

.blog-card-text {
  font-size: 1rem;
  color: #555;
  margin-top: 10px;
}

/* Footer with Date & Views */
.blog-card-footer {
  display: flex;
  justify-content: space-between;
  padding: 10px 15px;
  font-size: 0.9rem;
  color: #777;
  border-top: 1px solid #ddd;
}
/* Responsive Design for Tablets */
@media (max-width: 992px) {
  .blog-card {
      width: 90%;
      max-width: 400px; /* Prevents it from being too stretched */
  }

  .header .title {
    font-size: 5rem; /* Slightly bigger for tablets */
    margin-bottom: 1rem;
  }

  .title .our {
    top: -18%;
    left: 15%;
    font-size: 2.5rem;
  }

  .blog-card-img img {
      height: 180px;
  }

  .blog-card-footer {
      font-size: 0.9rem;
  }
}

/* Fully Optimized for Mobile Phones */
@media (max-width: 576px) {
  section {
    margin-top: 7rem;
    padding: 20px;
  }

  .header .title {
    font-size: 3.5rem; /* Reduce size further */
    margin-bottom: 0.5rem;
  }
  .header h5{
    font-size: .8rem;
    width: 100% !important;
  }

  .title span{
    top: 5%;
    left: 50%;
    font-size: 1.8rem;
  }

  .blog-card {
      width: 100%; /* Ensures full width on small screens */
      max-width: 100%;
  }

  .blog-card-img img {
      height: 160px; /* Ensures it scales properly */
  }

  .blog-card-body {
      padding: 10px;
  }

  .blog-card-title {
      font-size: 1.1rem;
  }

  .blog-card-text {
      font-size: 0.9rem;
  }

  .blog-card-footer {
      font-size: 0.8rem;
      padding: 8px;
  }

  .title .our{
   
    top: -45%;
    left: 2%;
    
  }
}
