/* blogs.css — grid + card + animations */
:root {
  --gold: #ffd700;
  --glass-bg: rgba(255,255,255,0.04);
}

.blogs-hero {
  padding: 40px 0;
  text-align: center;
}
.blogs-hero .page-title { 
  margin-bottom: 8px;
  color: #fff;
}

.blogs-grid {
  width: 90%;
  max-width: 1200px;
  margin: 30px auto 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Card */
.blog-card {
  background: var(--glass-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  transition: transform .36s cubic-bezier(.2,.9,.2,1), box-shadow .36s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* Thumbnail */
.blog-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* Card content */
.blog-card-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-card h3 {
  margin: 0;
  font-size: 18px;
  color: #fff;
  line-height: 1.25;
}

.blog-card p.excerpt {
  margin: 0;
  font-size: 14px;
  color: #ddd;
  opacity: 0.95;
}

/* Read more button */
.blog-card .read-more {
  margin-top: auto;
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255,215,0,0.95), rgba(212,175,55,0.9));
  color: #111;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  text-decoration: none;
  transition: transform .2s ease;
}

.blog-card .read-more:hover { transform: translateY(-3px); }

/* Featured grid: add subtle entrance */
.blog-card { opacity: 0; transform: translateY(12px); animation: cardIn .45s forwards; }
.blog-card:nth-child(1) { animation-delay: .06s; }
.blog-card:nth-child(2) { animation-delay: .12s; }
.blog-card:nth-child(3) { animation-delay: .18s; }

@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 992px) {
  .blogs-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; width: 94%; }
}
@media (max-width: 600px) {
  .blogs-grid { grid-template-columns: 1fr; width: 94%; gap: 14px; }
  .blog-card h3 { font-size: 16px; }
}
.blogs-hero {
  padding-bottom: 40px; /* spacing below the hero */
}

.blogs-hero-wrapper {
  position: relative; /* container for absolute overlay text */
}

.blogs-hero-wrapper img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  filter: brightness(0.6); /* darken for better text contrast */
  border-radius: 12px;
  display: block;
}

.blogs-hero-text {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}

.blogs-hero-text .page-title {
  margin: 0 0 6px;
  font-size: 36px;
  color: #fff;
}

.blogs-hero-text p {
  margin: 0;
  font-size: 16px;
  color: #ddd;
  opacity: 0.9;
}

/* Fade-in animation */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .blogs-hero-text .page-title { font-size: 28px; }
  .blogs-hero-text p { font-size: 14px; }
}

/* Blogs Grid Card Hover Enhancement */
.blog-card:hover {
  transform: translateY(-10px) scale(1.02); /* slight zoom + lift */
  box-shadow: 0 12px 40px rgba(0,0,0,0.45); /* stronger shadow */
  border: 2px solid var(--gold); /* thin gold border on hover */
}

/* Smooth transition */
.blog-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}


/* --------------------------   Blog Details Featured Image -------------------------- */
.blog-featured-img {
  width: 100%;              /* full width of container */
  max-height: 400px;        /* fixed frame height */
  object-fit: cover;        /* crops if needed, maintains aspect ratio */
  border-radius: 12px;      /* curved corners */
  border: 2px solid var(--gold); /* thin gold border */
  box-shadow: 0 4px 15px rgba(0,0,0,0.3); /* subtle shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  margin-bottom: 18px;
}

/* Hover effect */
.blog-featured-img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .blog-featured-img {
    max-height: 250px;
    border-radius: 10px;
  }
}
