/* Blogs Page Styles */

.blogs-page-wrapper {
  background: white;
  min-height: 100vh;
  padding-bottom: 4rem;
}

/* Banner */
.blogs-banner {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
  margin-top: -160px; /* Increased to ensure full overlap behind nav */
  max-height: 400px; /* Limit height to show only top 75% */
  overflow: hidden; /* Cut off bottom portion */
}

.blogs-banner-img {
  width: 100%;
  height: auto;
  display: block;
  transform: translateY(-10%); /* Shift image up slightly to show top portion */
}

/* Container */
.blogs-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.blogs-page-title {
  font-family: 'Roboto Slab', serif;
  font-size: 24px;
  font-weight: 600;
  color: #2C3E50;
  margin: 0 0 1.25rem 0;
}

/* Grid */
.blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Blog Card */
.blog-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden; /* Main clipping for the rectangle card */
  height: 320px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* Soft shadow */
  transition: transform 0.2s;
  background: #fff;
}

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

/* Image Wrapper filling the rectangle */
.blog-card-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay Container */
.blog-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 55%; /* Covers bottom part */
  z-index: 2;
  pointer-events: none; /* Let clicks pass initially unless on interactive elements */
}

/* Cloud Vector Background */
.blog-cloud-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/cloudvector.png');
  background-size: 100% 100%; /* Stretch to fill the overlay area */
  background-repeat: no-repeat;
  background-position: bottom;
  z-index: 1;
}

/* Overlay Content on top of cloud */
.blog-card-content {
  position: absolute;
  top: 35%; /* Push down a bit so it's inside the cloud body */
  left: 0;
  width: 100%;
  padding: 0 1.5rem;
  z-index: 2;
  pointer-events: auto; /* Re-enable clicks */
  text-align: center;
}

.blog-title {
  font-family: 'Roboto Slab', serif;
  font-size: 18px;
  font-weight: 700;
  color: #2C3E50;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.blog-learn-more {
  font-family: 'Roboto Slab', serif;
  font-size: 14px;
  font-weight: 700;
  color: #E67E22; /* Orange as in design? Or maybe standard link color */
  text-decoration: none;
  display: inline-block;
}

.blog-learn-more:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
  .blogs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blogs-grid {
    grid-template-columns: 1fr; /* Stack on mobile */
  }
}

/* Force header transparency */
body.path-blogs .site-header--internal {
  background-color: transparent !important;
}
