/*
Theme Name: Blocksy Child
Template: blocksy
Version: 1.0
*/

/* =========================
   GLOBAL BASE
========================= */
body {
  font-family: Arial, sans-serif;
}

a {
  cursor: pointer;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Container */
.container {
  max-width: 1200px;
}
.site-main { background: #fff; }
/* =========================
   FEATURED SECTION
========================= */
.featured-image {
  position: relative;
  display: block;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  filter: brightness(0.9);
  transition: 0.4s;
}

.featured-image:hover img {
  transform: scale(1.05);
}

.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.featured-overlay h2 {
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
  max-width: 80%;
}

/* Badge */
.badge {
  background: #cf412b;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  position: absolute;
  top: 15px;
  left: 15px;
}

/* =========================
   SMALL POSTS (RIGHT GRID)
========================= */
.small-post {
  display: block;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  transition: 0.3s;
  height: 100%;
}

.small-post img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  transition: 0.3s;
}

.small-post:hover {
  transform: translateY(-4px);
}

.small-post:hover img {
  transform: scale(1.05);
}

.small-post p {
  padding: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.small-post:hover p {
  color: #cf412b;
}

/* =========================
   MAIN GRID POSTS
========================= */
.post-box {
  display: block;
  background: #fff;
  overflow: hidden;
  transition: 0.3s;
  height: 100%;
}

.post-box img {
  height: 150px;
    object-fit: cover;
    width: 100%;
  transition: 0.4s;
  border-radius: 0;
}

.post-box:hover {
  transform: translateY(-6px);
}

.post-box:hover img {
  transform: scale(1.05);
}

.post-box h5 {
  padding: 10px 0;
  font-size: 15px;
  line-height: 1.4;
}

/* =========================
   GRID FIXES
========================= */
.col-6 {
  display: flex;
}

.row.g-3 {
  row-gap: 15px;
}

/* =========================
   SIDEBAR
========================= */
.col-lg-4 {
  padding-left: 20px;
}

/* =========================
   TRENDING + MOST VIEWED
========================= */
.trending-box {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
}

.trending-box h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
}

.trending-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trending-item a {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.trend-number {
  font-size: 14px;
  font-weight: 700;
  color: #cf412b;
  width: 20px;
}

/* Thumbnail */
.trend-thumb img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
}

/* Text */
.trend-content p {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: #222;
}

.trending-item:hover p {
  color: #cf412b;
}
/* =========================
   ARTICLE PAGE (UPGRADED)
========================= */

.article-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}

.article-meta {
  font-size: 13px;
  margin-bottom: 15px;
}

/* Featured Image */
.article-image {
  margin: 10px 0 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

/* Content width for readability */
.article-content {
   max-width: 780px;
}

/* Paragraph */
.article-content p {
  font-size: 18px;
    line-height: 30px;
    margin-bottom: 30px;
    font-family: 'Mukta Malar';
}

/* Headings inside article */
.article-content h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 25px 0 10px;
}

/* Images */
.article-content img {
  width: 100%;
  margin: 20px 0;
  border-radius: 0;
}

/* Share buttons */
.share-box {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.share-box a {
  background: #f1f1f1;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  transition: 0.3s;
}

.share-box a:hover {
  background: #cf412b;
  color: #fff;
}
.article-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0;
}
/* Tags */
.tag {
  background: #f1f1f1;
  padding: 6px 12px;
  border-radius: 20px;
  margin-right: 5px;
  font-size: 12px;
  display: inline-block;
  margin-bottom: 8px;
}

/* =========================
   SIDEBAR UPGRADE
========================= */
/* Sidebar wrapper */
.sidebar {
  position: relative;
}

/* Sticky sidebar (desktop only) */
@media (min-width: 992px) {
  body.single .sidebar {
    position: sticky;
    top: 20px;
  }
}

/* Widget box */
.sidebar .widget {
  background: #fff;
  padding: 15px;
  margin-bottom: 20px;
}

/* Title */
.widget-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
}

/* Post list */
.sidebar-post {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.sidebar-post:last-child {
  border-bottom: none;
}

/* Image */
.sidebar-post img {
  min-width: 110px;
    height: 75px;
    object-fit: fill;
    border-radius: 0;
}

/* Title */
.sidebar-post p {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #222;
}

/* Hover */
.sidebar-post:hover p {
  color: #cf412b;
}

.sidebar-post:hover {
  transform: translateX(3px);
  transition: 0.3s;
}

/* Category list */
.sidebar ul {
  padding-left: 0;
  list-style: none;
}

.sidebar ul li {
  margin-bottom: 8px;
  font-size: 14px;
}
.sidebar { display: none; }
.single-post-style .sidebar { display: block; }
.single-post-style.container { max-width: 1200px; }
.single-post-style .row .col-lg-8 { padding: 30px; background: #fff; }
.single-post-style .row .col-lg-8 .article-content .post-category { display:none; }

/* =========================
   ADS
========================= */

.ad-box {
  background: #f1f1f1;
  padding: 20px;
  font-size: 14px;
  text-align: center;
}
.ad-box-main { height:100%; background: #cf412b; display: flex; justify-content: center; align-items: center; color: #fff; } 

/* WhatsApp Sticky Button */
#wa-share-btn {
  position: fixed;
  bottom: 80px !important;
  right: 26px !important;
  background: #25D366;
  color: transparent;
  font-size: 0px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 9999;
  transition: 0.3s;
  background: url(whatsapp.png) no-repeat center;
}

#wa-share-btn:hover {
  transform: scale(1.1);
}

/* My own code */
a:hover { color: #cf412b; }
/* Common CSS */
a { color: #000; }
a:hover { color: #333 }
.taxonomy-category a {
	color: #cf412b;
}
.taxonomy-category a:hover {
	color: #666;
}
.home-hero .taxonomy-category a { background: #cf412b; color: #fff; padding: 0 8px; border: 1px solid transparent; }
.home-hero .taxonomy-category a:hover { color: #cf412b; background: #fff; padding: 0 8px; border: 1px solid #cf412b;}

/* Overlay for big post */
.overlay-card {
    position: relative;
}

/* Image */
.overlay-card img {
    width: 100%;
    display: block;
}

/* Category */
.overlay-card .wp-block-post-terms {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.overlay-card .wp-block-post-terms a {
    background: #cf412b;
    color: #fff;
    padding: 0 8px;
    font-size: 12px;
    text-transform: uppercase;
}

/* Title */
.overlay-card .wp-block-post-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: #fff;
    z-index: 2;
}
.overlay-card .wp-block-post-title a { color: #fff; }

/* Date */
.overlay-card .wp-block-post-date {
    position: absolute;
    bottom: 16px;
    left: 20px;
    color: #ddd;
    font-size: 12px;
    z-index: 2;
}

/* Dark gradient overlay */
.overlay-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.info-pages #main.site-main {
    background: #fff;
    padding: 30px;
    font-family: poppins;
    font-weight: normal;
    text-transform: none;
    color: #000;
    line-height: 30px;
}
.error404 .site-main {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Poppins';
}

.yarpp-thumbnails-horizontal { display: flex; column-gap: 20px; }
.yarpp-thumbnails-horizontal .yarpp-thumbnail {
    width: auto;
    height: auto;
    margin: 0;
    padding: 5px;
    margin-left: 0px;
    flex-grow: 1;
}
.yarpp-thumbnail > img, .yarpp-thumbnail-default {
    width: 100% !important;
    height: 120px !important;
    margin: 0 !important;
    object-fit: cover;
}
.yarpp-thumbnails-horizontal .yarpp-thumbnail-title {
margin: 0 !important;
    margin-top: 5px !important;
    width: auto !important;
    overflow: visible !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #222;
}
/* Hide sidebar only for this page */
.postid-1137 .ad-box, .postid-1137 hr {
    display: none !important;
}

/* =========================
   MOBILE OPTIMIZATION
========================= */
@media (max-width: 768px) {

  .featured-image img {
    height: 250px;
  }

  .post-box img {
    height: 150px;
  }

  .small-post img {
    height: 120px;
  }

  .featured-overlay h2 {
    font-size: 18px;
  }
  .article-title {
    font-size: 22px;
  }

  .article-content {
    max-width: 100%;
  }
  #wa-share-btn {
    width: 55px;
    height: 55px;
    font-size: 24px;
  }
  .wp-block-post-title :where(a) { font-size: 18px !important; }
  .article-content p {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 18px;
    font-weight: normal;
}
}
