/* Mazhavillu Modern CSS - Premium children e‑magazine look */

/* Basic reset and typography */
body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
  color: #333;
  margin: 0;
  padding: 0;
}

/* Hub container */
.mazhavillu-hub-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header styling */
.mazhavillu-hub-title {
  font-size: 2.5rem;
  text-align: center;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.mazhavillu-hub-subtitle {
  font-size: 1.2rem;
  text-align: center;
  color: #7f8c8d;
  margin-bottom: 1.5rem;
}

/* CTA button */
.mzv-cta-button {
  background: #ff6f61;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.mzv-cta-button:hover {
  background: #e65a4f;
}

/* Filter buttons */
.mzv-filter-btn {
  background: #fff;
  color: #2c3e50;
  border: 1px solid #bdc3c7;
  border-radius: 4px;
  padding: 6px 12px;
  margin-right: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.mzv-filter-btn.active, .mzv-filter-btn:hover {
  background: #2c3e50;
  color: #fff;
}

/* Grid layout */
.mazhavillu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Card base */
.mazhavillu-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  position: relative;
  transition: transform 0.2s;
}
.mazhavillu-card:hover {
  transform: translateY(-4px);
}

/* Image wrap for art cards */
.mzv-card-image-wrap {
  background-size: cover;
  background-position: center;
  height: 200px;
  position: relative;
}
.mzv-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
}

/* Author photo */
.mzv-author-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 8px;
  vertical-align: middle;
}

/* Card content for editorial */
.mzv-card-body {
  padding: 16px;
}
.mzv-card-title {
  font-size: 1.25rem;
  margin: 0 0 8px;
  color: #2c3e50;
}
.mzv-card-author,
.mzv-card-author-line {
  font-size: 0.9rem;
  color: #7f8c8d;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}
.mzv-card-excerpt {
  font-size: 0.95rem;
  color: #34495e;
  line-height: 1.4;
}

/* Modal styling */
.mzv-modal {
  background: rgba(0,0,0,0.6);
}
.mzv-modal-container {
  background: #fff;
  border-radius: 12px;
  max-width: 800px;
  margin: 40px auto;
  overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .mazhavillu-hub-title { font-size: 2rem; }
  .mazhavillu-grid { grid-template-columns: 1fr; }
}
