/* blogs-main.css - Premium Redesign */

/* Animations */
@keyframes fadeUpStagger {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Page Spacing and Hero */
.page-blogs main {
  padding-top: 100px;
}

.blog-hero {
  text-align: center;
  padding: 8rem 2rem 5rem;
  background: linear-gradient(180deg, rgba(250,249,247,1) 0%, rgba(250,249,247,0) 100%);
  position: relative;
  overflow: hidden;
}

.blog-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(3rem, 6vw, 4.5rem);
  color: var(--primary-dark);
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  animation: fadeUpStagger 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.blog-hero p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeUpStagger 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.page-blogs .section-padding {
  padding: 0 var(--container-padding) 6rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Premium Blog Grid */
.page-blogs .blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 3.5rem 2.5rem;
}

/* Glassmorphic Blog Card */
.blog-card {
  display: flex;
  flex-direction: column;
  position: relative;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  text-decoration: none;
  opacity: 0; /* for stagger animation */
  animation: fadeUpStagger 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Stagger indices for first several cards */
.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }
.blog-card:nth-child(6) { animation-delay: 0.6s; }

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(197, 160, 101, 0.15);
  background: rgba(255, 255, 255, 0.9);
}

.page-blogs .blog-img {
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: #eee;
  position: relative;
  mask-image: -webkit-radial-gradient(white, black); /* fix webkit border-radius overflow bug */
}

.page-blogs .blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

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

.blog-category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  color: var(--primary-dark);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.page-blogs .blog-meta {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
  font-weight: 600;
  padding: 0 0.5rem;
}

.page-blogs .blog-title {
  font-family: var(--font-head);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  line-height: 1.25;
  color: var(--primary-dark);
  font-weight: 400;
  padding: 0 0.5rem;
  transition: color 0.3s ease;
}

.blog-card:hover .blog-title {
  color: var(--accent-gold);
}

.page-blogs .blog-excerpt {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.7;
  padding: 0 0.5rem;
  flex-grow: 1; /* Pushes button to bottom */
}

.read-more-btn {
  align-self: flex-start;
  margin: auto 0.5rem 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--primary-dark);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.read-more-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.blog-card:hover .read-more-btn {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
}

.blog-card:hover .read-more-btn svg {
  transform: translateX(4px);
  fill: var(--accent-gold);
}

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

@media (max-width: 768px) {
  .page-blogs .blog-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .blog-hero { padding: 6rem 1.5rem 3rem; }
  .blog-hero h1 { font-size: 2.5rem; }
}