/*
 Theme Name:   Twenty Twenty Child
 Theme URI:    http://yourwebsite.com/
 Description:  Child theme for Twenty Twenty
 Author:       Your Name
 Author URI:   http://yourwebsite.com/
 Template:     twentytwenty
 Version:      1.0.0
*/

/* ===========================================
✨ Modern Blog Card Grid — Tech Zenith Labs
=========================================== */

.custom-blog-wrapper{
  margin-top:30px;
  margin-bottom: 20px;
}
.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
  padding: 40px 0;
  animation: fadeInUp 0.8s ease-in-out;
}

/* 🪶 Each post card */
.post-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* 🖼️ Thumbnail section */
.post-thumb {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-thumb img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

/* ✍️ Post content */
.post-card h3 {
  font-size: 20px;
  margin: 18px 20px 10px;
  color: #0a3d62;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.post-card:hover h3 {
  color: #0056ff;
}

.post-card p {
  font-size: 15px;
  color: #555;
  margin: 0 20px 20px;
  line-height: 1.6;
}

/* 🔗 Links */
.post-card a {
  text-decoration: none;
  display: block;
  color: #FFF;
}

/* 💫 Fade-in animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 🏷️ Optional heading style */
.section-heading,
.page-title,
h2.section-heading {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 40px;
  color: #0a3d62;
  text-align: center;
  position: relative;
}

.section-heading::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 3px;
  background: #0056ff;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 3px;
}



/* ===========================================
✨ Animated "Read More" Button
=========================================== */

.read-more-btn {
  display: inline-block;
  margin: 0 20px 25px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #0056ff, #0a3d62);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.read-more-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
}

.read-more-btn:hover::after {
  left: 0;
}

.read-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 86, 255, 0.3);
}




.custom-blog-wrapper {
  padding: 50px 20px;
}

.page-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 15px;
}

.section-heading {
  font-size: 28px;
  margin: 40px 0 20px;
  font-weight: 600;
  border-left: 4px solid var(--color-primary, #007bff);
  padding-left: 10px;
}

.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.post-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: all .32s ease;
  box-shadow: 0 4px 18px rgba(0,0,0,0.07);
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.post-thumb img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.post-info {
  padding: 16px 18px 22px;
}

.post-category {
  font-size: 13px;
  background: var(--color-primary, #007bff);
  color: #fff;
  border-radius: 50px;
  padding: 4px 10px;
  margin-bottom: 10px;
  display: inline-block;
}

.post-title {
  font-size: 20px;
  font-weight: 600;
  margin: 10px 0 8px;
  line-height: 1.3;
}

.post-excerpt {
  font-size: 15px;
  color: #555;
  margin-bottom: 14px;
}

.meta-data {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.read-more-btn {
  font-weight: 600;
  transition: .3s;
}

.post-card:hover .read-more-btn {
  margin-left: 6px;
}


/* ==== HERO AREA ==== */
.blog-hero-section {
  background: linear-gradient(120deg, #0058ff, #00c8ff);
  color: #fff;
  padding: 80px 20px;
  margin-bottom: 40px;
  text-align: center;
}
.hero-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
}
.hero-subtitle {
  font-size: 18px;
  opacity: 0.95;
}

/* ==== BLOG POST LIST ==== */
.section-heading {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 25px;
  text-align: left;
}

.blog-posts-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
}

.post-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  transition: .32s;
  box-shadow: 0px 4px 14px rgba(0,0,0,0.08);
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.post-thumb img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.post-info {
  padding: 18px 20px 22px;
}

.post-category {
  font-size: 13px;
  background: #0058ff;
  color: #fff;
  padding: 4px 12px;
  border-radius: 30px;
  display: inline-block;
  margin-bottom: 10px;
}

.post-title {
  font-size: 19px;
  line-height: 1.35;
  font-weight: 600;
  margin-bottom: 10px;
}

.post-excerpt {
  font-size: 15px;
  color: #444;
  margin-bottom: 14px;
}

.meta-data {
  font-size: 14px;
  color: #666;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #eee;
  padding-top: 10px;
}

.post-card:hover .read-more-btn {
  transform: translateX(4px);
}

/* ==== Responsive === */
@media(max-width:768px){
  .hero-title { font-size: 32px; }
}



/* -------- SINGLE POST HERO SECTION -------- */
.single-hero {
  position: relative;
  padding: 90px 20px 60px;
  background: linear-gradient(120deg, #0ea5e9, #7c3aed);
  color: #fff;
  text-align: center;
  margin-bottom: 40px;
}
.single-hero-overlay {
  position:absolute; inset:0;
  background: rgba(0,0,0,.25);
  mix-blend-mode: multiply;
}
.single-hero-inner { position:relative; z-index:2; }

.single-cat {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
}

.single-title {
  font-size: 40px;
  max-width: 900px;
  margin: 10px auto 18px;
  font-weight: 800;
}

.single-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  opacity: .95;
}

.single-meta .author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border:3px solid #fff;
}

/* -------- FEATURED IMAGE -------- */
.single-featured-image img {
  width:100%;
  border-radius:14px;
  box-shadow:0 12px 30px rgba(0,0,0,.12);
  margin: 0 auto 40px;
}

/* -------- POST CONTENT TYPOGRAPHY -------- */
.single-body {
  max-width: 820px;
  margin:0 auto 40px;
  font-size: 18px;
  line-height: 1.7;
  color:#222;
}
.single-body h2, 
.single-body h3 {
  margin-top:32px;
  font-weight:700;
}
.single-body p {
  margin: 16px 0;
}
.single-body img {
  border-radius:12px;
  margin:20px 0;
}

/* -------- SHARE SECTION -------- */
.share-section {
  margin: 20px auto 40px;
  text-align:center;
}
.share-icons a {
  display:inline-block;
  font-size:26px;
  margin: 0 10px;
  transition:.2s;
}
.share-icons a:hover { transform: scale(1.2); }

/* -------- POST NAVIGATION -------- */
.post-navigation {
  max-width:900px;
  margin:40px auto;
  display:flex;
  justify-content:space-between;
  font-size:16px;
}
.post-navigation a {
  color:#0ea5e9;
  font-weight:600;
  transition:.2s;
}
.post-navigation a:hover {
  color:#7c3aed;
}

/* -------- BACK BUTTON -------- */
.back-home-btn {
  display:inline-block;
  padding: 14px 22px;
  background:#0ea5e9;
  color:#fff;
  border-radius:10px;
  font-weight:600;
  transition:.3s;
}
.back-home-btn:hover {
  background:#7c3aed;
  transform:translateY(-3px);
}

/* MOBILE */
@media(max-width:768px){
  .single-title { font-size:30px; }
  .single-meta { flex-direction:column; gap:4px; }
}
