.blog-header {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(to right, #00c6ff, #0072ff);
  color: white;
}

.blog-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.blog-header p {
  font-size: 1.2rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}

.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
}

.card-content h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #0072ff;
}

.card-content p {
  color: #555;
  font-size: 1rem;
  margin-bottom: 15px;
}

.read-more {
  text-decoration: none;
  color: #0072ff;
  font-weight: bold;
  transition: color 0.3s;
}

.read-more:hover {
  color: #00c6ff;
}

/* blog page specific styles — protects global style.css but improves visuals for post pages */

/* reduce the logo size on subpages without changing root file */
.top-menu .logo img {
  height: 90px;              /* smaller than 140px for tight header */
  max-height: 90px;
  object-fit: contain;
  transition: height 0.25s ease;
}

/* make the header hero */
.post-header {
  position: relative;
  height: 320px;
  display: block;
  overflow: hidden;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.post-header .post-hero {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.95) contrast(.95) brightness(.75);
  transform: scale(1.02);
  transition: transform 8s linear;
  animation: slowZoom 12s infinite alternate;
}

@keyframes slowZoom {
  from { transform: scale(1.02); }
  to   { transform: scale(1.06); }
}

/* overlay text */
.post-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 0 18px;
}

.post-hero-overlay h1 {
  margin: 0 0 8px;
  font-size: 2rem;
  text-shadow: 0 6px 20px rgba(0,0,0,0.45);
  letter-spacing: 0.2px;
}

/* meta line */
.post-meta {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* main content card */
.post-content {
  max-width: 980px;
  margin: 28px auto;
  padding: 0 16px;
}

.article-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(16,24,40,0.06);
  padding: 28px;
  line-height: 1.7;
  color: #222;
  animation: contentIn .45s ease both;
}

@keyframes contentIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.article-card h2 {
  margin-top: 18px;
  color: #222;
  font-size: 1.25rem;
}

/* nicer list */
.trend-list {
  list-style: none;
  padding-left: 0;
}
.trend-list li {
  margin: 10px 0;
  font-size: 1rem;
}

/* article footer */
.article-footer {
  margin-top: 20px;
  border-top: 1px dashed #eee;
  padding-top: 14px;
  color: #444;
}

/* responsive */
@media screen and (max-width: 768px) {
  .post-header { height: 220px; }
  .post-hero-overlay h1 { font-size: 1.35rem; }
  .top-menu .logo img { height: 64px; }
  .article-card { padding: 18px; }
}

/* small helper: ensure data-lang hidden items are hidden by default so JS controls visibility */
[data-lang] { display: none; }

/* give inline elements default inline display when JS shows them */
[data-lang].inline { display: inline; }

/* ensure footer looks nice on blog page */
.site-footer {
  margin-top: 32px;
}
