/* ================= BLOG PAGE SAFE CSS ================= */

.magazine{
  max-width:1200px;
  margin:40px auto;
  padding:0 16px 70px;
}

/* ================= FEATURE GRID ================= */

.feature-grid{
  display:grid;
  grid-template-columns:2fr 1fr;
  grid-auto-rows:180px;
  gap:20px;
  margin-bottom:60px;
}
/* BIG BLOG */
.feature-big{
  grid-row:1 / span 2;
  position:relative;
  border-radius:20px;
  overflow:hidden;
}

.feature-big img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* SMALL BLOG */
.feature-small{
  position:relative;
  border-radius:16px;
  overflow:hidden;
}

.feature-small img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* WIDE BLOG */
.feature-wide{
  grid-column:1 / span 2;
  position:relative;
  border-radius:20px;
  overflow:hidden;
}

.feature-wide img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* OVERLAY */
.feature-big .overlay,
.feature-small .overlay,
.feature-wide .overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.15));
  padding:22px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  color:#fff;
}

.feature-big h2{
  font-size:26px;
  margin-bottom:8px;
  line-height:1.25;
}

.feature-big p{
  font-size:14px;
  opacity:.9;
}

.feature-big .readmore{
  margin-top:8px;
  color:#7CFF9D;
  font-weight:600;
  text-decoration:none;
}

.feature-small h4,
.feature-wide h4{
  font-size:15px;
  line-height:1.4;
}

/* ================= MOBILE RESPONSIVE ================= */

/* ================= MOBILE FEATURE GRID ================= */

@media (max-width:768px){

  .feature-grid{
    grid-template-columns:1fr;
    grid-auto-rows:auto;
    gap:14px;
  }

  /* BIG BLOG */
  .feature-big{
    grid-row:auto;
    min-height:220px;
  }

  .feature-big img{
    height:220px;
  }

  /* SMALL BLOGS — 2 COLUMN GRID */
  .feature-small{
    min-height:140px;
  }

  .feature-small img{
    height:140px;
  }

  /* TWO SMALL BLOGS SIDE BY SIDE */
  .feature-grid > .feature-small:nth-child(2),
  .feature-grid > .feature-small:nth-child(3){
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
  }

}

/* ===== SMALL MOBILE (EXTRA COMPACT) ===== */

@media (max-width:480px){

  .feature-grid{
    gap:12px;
  }

  .feature-big{
    min-height:190px;
  }

  .feature-big img{
    height:190px;
  }

  .feature-small img{
    height:120px;
  }

}


/* ================= TRENDING ================= */

.section-title{
  text-align:center;
  font-size:18px;
  margin:40px 0 20px;
}

.trending-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  margin-bottom:60px;
}

.trend-card{
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
  transition:.3s;
  cursor:pointer;
}

.trend-card:hover{
  transform:translateY(-5px);
}

.trend-card img{
  width:100%;
  height:170px;
  object-fit:cover;
}

.trend-card h4{
  padding:10px 12px;
  font-size:14px;
}

/* ================= CONTENT + SIDEBAR ================= */

.content-wrap{
  display:grid;
  grid-template-columns:3fr 1.2fr;
  gap:30px;
}

/* ================= BLOG GRID ================= */

.blog-page-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:20px;
}

.blog-page-card{
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 4px 14px rgba(0,0,0,.08);
  transition:.3s;
}

.blog-page-card:hover{
  transform:translateY(-4px);
}

.blog-page-card img{
  width:100%;
  height:190px;
  object-fit:cover;
}

.blog-page-card .content{
  padding:14px 16px;
}

.blog-page-card h4{
  font-size:15px;
  margin-bottom:6px;
}

.blog-page-card p{
  font-size:13px;
  line-height:1.6;
  color:#555;
}

.blog-page-card a{
  font-size:13px;
  font-weight:600;
  color:#2e7d32;
  text-decoration:none;
}

/* ================= SIDEBAR ================= */

.sidebar{
  background:#f9faf9;
  padding:20px;
  border-radius:14px;
}

.sidebar h4{
  font-size:18px;
  margin-bottom:14px;
}

.social{
  padding:12px;
  border-radius:8px;
  margin-bottom:10px;
  color:#fff;
  font-weight:600;
  text-align:center;
}

.social.fb{background:#3b5998;}
.social.tw{background:#1da1f2;}
.social.ig{background:#e1306c;}

.recent-item{
  display:flex;
  gap:10px;
  align-items:center;
  margin-bottom:14px;
  cursor:pointer;
}

.recent-item img{
  width:55px;
  height:55px;
  object-fit:cover;
  border-radius:8px;
}

.recent-item span{
  font-size:13px;
  font-weight:500;
}

/* ================= RESPONSIVE ================= */

@media(max-width:992px){

  .feature-grid{
    grid-template-columns:1fr 1fr;
  }

  .trending-grid{
    grid-template-columns:repeat(3,1fr);
  }

  .content-wrap{
    grid-template-columns:1fr;
  }

}

@media(max-width:600px){

  .magazine{
    padding:0 12px 50px;
  }

  .feature-grid{
    grid-template-columns:1fr;
  }

  .feature-big img{
    height:260px;
  }

  .trending-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .blog-page-grid{
    grid-template-columns:1fr;
  }

}

/* ================= RESET ================= */

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:#d7eee2;
  overflow-x:hidden;
  color:#222;
}

/* ================= MAIN BLOG WRAPPER ================= */

.magazine{
  max-width:1200px;
  margin:60px auto;
  padding:0 20px;
}



/* ================= TRENDING ================= */

.section-title{
  text-align:center;
  font-size:20px;
  letter-spacing:.2em;
  margin:70px 0 30px;
  font-weight:700;
  position:relative;
}

.section-title:after{
  content:"";
  width:90px;
  height:3px;
  background:#2e7d32;
  display:block;
  margin:12px auto 0;
}

.trending-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
  margin-bottom:70px;
}

.trend-card{
  background:#fff;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 8px 22px rgba(0,0,0,.08);
  cursor:pointer;
  transition:.35s;
}

.trend-card:hover{
  transform:translateY(-6px);
  box-shadow:0 18px 40px rgba(0,0,0,.12);
}

.trend-card img{
  width:100%;
  height:210px;
  object-fit:cover;
}

.trend-card h4{
  padding:14px 16px;
  font-size:15px;
  font-weight:700;
}

/* ================= CONTENT + SIDEBAR ================= */

.content-wrap{
  display:grid;
  grid-template-columns:3fr 1.2fr;
  gap:34px;
  align-items:start;
}

/* ================= BLOG GRID ================= */

.blog-page-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:26px;
}

.blog-page-card{
  background:#fff;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 10px 28px rgba(0,0,0,.08);
  transition:.35s;
}

.blog-page-card:hover{
  transform:translateY(-5px);
  box-shadow:0 20px 45px rgba(0,0,0,.14);
}

.blog-page-card img{
  width:100%;
  height:240px;
  object-fit:cover;
}

.blog-page-card .content{
  padding:18px 20px 22px;
}

.blog-page-card h4{
  font-size:16px;
  margin-bottom:6px;
  line-height:1.45;
}

.blog-page-card p{
  font-size:13px;
  color:#555;
  line-height:1.7;
  margin-bottom:10px;
}

.blog-page-card a{
  font-size:13px;
  font-weight:700;
  color:#2e7d32;
  text-decoration:none;
}

/* ================= SIDEBAR ================= */

.sidebar{
  background:#f9faf9;
  padding:26px 24px;
  border-radius:24px;
  box-shadow:0 12px 28px rgba(0,0,0,.08);
}

.sidebar h4{
  font-size:18px;
  margin-bottom:18px;
}

.social{
  padding:6px;
  margin-bottom:12px;
  color:#fff;
  font-weight:700;
  border-radius:10px;
  text-align:center;
}

.social.fb{ background:#1877f2; }
.social.tw{ background:#1da1f2; }
.social.ig{ background:#e1306c; }

.recent-item{
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:14px;
  cursor:pointer;
}

.recent-item img{
  width:58px;
  height:58px;
  object-fit:cover;
  border-radius:10px;
}

.recent-item span{
  font-size:13px;
  font-weight:600;
}








/* ================= SINGLE BLOG PAGE ================= */

.blog-read{
  padding:70px 0;
}

.blog-container{
  max-width:920px;
  margin:auto;
  background:#fff;
  padding:70px;
  border-radius:32px;
  box-shadow:0 18px 50px rgba(0,0,0,.1);
}

.blog-container h1{
  font-size:38px;
  line-height:1.3;
  margin-bottom:14px;
}

.blog-meta{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  font-size:13px;
  color:#777;
  margin-bottom:26px;
}

.blog-feature{
  width:100%;
  max-height:520px;
  object-fit:cover;
  border-radius:26px;
  margin:30px 0;
}

.blog-content{
  font-size:17px;
  line-height:1.95;
  color:#333;
}

/* ================= SHARE ================= */

.blog-share{
  margin-top:50px;
  padding:18px 22px;
  background:#f3f6f4;
  border-radius:20px;
  display:flex;
  gap:14px;
  align-items:center;
  font-size:14px;
}

.blog-share a{
  padding:8px 16px;
  border-radius:22px;
  text-decoration:none;
  font-weight:700;
  color:#fff;
}

.blog-share a:first-child{ background:#25d366; }
.blog-share a:last-child{ background:#1877f2; }

/* ================= COMMENTS ================= */

.blog-comments{
  margin-top:80px;
  padding-top:50px;
  border-top:1px solid #e6e6e6;
}

.blog-comments h3{
  font-size:26px;
  font-weight:800;
  margin-bottom:28px;
}

/* FORM */
.comment-form{
  background:#f9faf9;
  padding:28px;
  border-radius:22px;
  box-shadow:0 14px 35px rgba(0,0,0,.08);
  margin-bottom:40px;
  display:grid;
  gap:14px;
}

.comment-form input,
.comment-form textarea{
  padding:14px 16px;
  border-radius:14px;
  border:1px solid #ddd;
  font-size:14px;
}

.comment-form textarea{
  min-height:130px;
}

.comment-form button{
  background:linear-gradient(135deg,#2e7d32,#1b5e20);
  color:#fff;
  border:none;
  padding:12px 34px;
  border-radius:30px;
  font-size:14px;
  font-weight:700;
  letter-spacing:.06em;
  cursor:pointer;
  width:fit-content;
  box-shadow:0 8px 18px rgba(46,125,50,.35);
}

/* COMMENT CARD */

.comment-card{
  background:#fff;
  padding:20px 22px;
  border-radius:20px;
  margin-bottom:18px;
  box-shadow:0 10px 28px rgba(0,0,0,.08);
}

.comment-card strong{
  font-size:15px;
  font-weight:700;
  color:#222;
}

.comment-card span{
  font-size:12px;
  color:#777;
  display:block;
  margin-bottom:6px;
}

.comment-card p{
  font-size:14px;
  line-height:1.7;
  color:#333;
}

/* ================= RESPONSIVE ================= */
@media (max-width:768px){

  .feature-grid{
    display:grid;
    grid-template-columns:1.4fr 1fr;
    grid-template-rows:160px 160px 120px;
    gap:10px;
  }

  /* BIG FEATURE */
  .feature-big{
    grid-column:1 / 2;
    grid-row:1 / span 2;
    min-height:0;
  }

  .feature-big img{
    height:100%;
  }

  /* SMALL FEATURES */
  .feature-small:nth-child(2){
    grid-column:2 / 3;
    grid-row:1 / 2;
  }

  .feature-small:nth-child(3){
    grid-column:2 / 3;
    grid-row:2 / 3;
  }

  /* WIDE FEATURE (4th BLOG) */
  .feature-wide{
    grid-column:1 / span 2;
    grid-row:3 / 4;
    height:120px;
  }

  .feature-wide img{
    height:120px;
  }

  /* OVERLAY TEXT SCALE */
  .feature-big h2{
    font-size:18px;
  }

  .feature-big p{
    font-size:12px;
  }

  .feature-small h4,
  .feature-wide h4{
    font-size:13px;
  }

}
@media(max-width:600px){

  .magazine{
    margin:30px auto;
    padding:0 12px;
  }

  .feature-big h2{
    font-size:22px;
  }

  .feature-big p{
    font-size:13px;
  }

  .trending-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .blog-page-grid{
    grid-template-columns:1fr;
  }

  .blog-container{
    padding:26px 20px;
  }

  .blog-container h1{
    font-size:24px;
  }

  .blog-feature{
    max-height:260px;
  }

  .blog-content{
    font-size:14px;
  }

  .blog-comments h3{
    font-size:20px;
  }

}
/* ================= RELATED BLOGS — PREMIUM ================= */

.related-blogs{
  margin-top:80px;
}

.related-blogs h3{
  text-align:center;
  font-size:22px;
  font-weight:700;
  margin-bottom:26px;
  position:relative;
}

.related-blogs h3:after{
  content:"";
  width:90px;
  height:3px;
  background:#2e7d32;
  display:block;
  margin:12px auto 0;
  border-radius:2px;
}

/* GRID */
.related-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
}

/* CARD */
.related-card{
  background:#fff;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 10px 28px rgba(0,0,0,.08);
  transition:.35s;
  text-decoration:none;
  color:#111;
}

.related-card:hover{
  transform:translateY(-6px);
  box-shadow:0 20px 40px rgba(0,0,0,.14);
}

/* IMAGE */
.rel-img{
  height:190px;
  overflow:hidden;
}

.rel-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:.5s ease;
}

.related-card:hover img{
  transform:scale(1.08);
}

/* CONTENT */
.rel-content{
  padding:14px 16px 18px;
}

.rel-content h4{
  font-size:14px;
  line-height:1.4;
  margin-bottom:6px;
}

.rel-content span{
  font-size:11px;
  color:#777;
}

/* ================= MOBILE ================= */

@media(max-width:768px){

  .related-grid{
    grid-template-columns:repeat(3,1fr);
    gap:14px;
  }

  .rel-img{
    height:120px;
  }

  .rel-content{
    padding:10px 12px 14px;
  }

  .rel-content h4{
    font-size:12px;
  }

}
