/* ========== LAYOUT FOR POST VIEW ========== */

/* Page background */
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
}

/* Wrap whole page content (excluding global WP header if any) */
.pv-page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 8px 40px;
}

/* Category/Post title with brush background */
.pv-category-banner {
    text-align: center;
    margin: 18px 0 22px;
}

.pv-category-banner span {
    display: inline-block;
    font-size: 22px;
    font-weight: 600;
    color: #222;

    /* RESET BAD EFFECTS */
    letter-spacing: normal;
    transform: none;
    filter: none;
    opacity: 1;
    background: none;
    text-shadow: none;
}


/* Optional intro text below title */
.pv-intro {
  max-width: 800px;
  margin: 0 auto 18px;
  font-size: 14px;
  line-height: 1.7;
  color: #333;
}

/* ---------- Ad / interlinking slots ---------- */

.pv-slot-top,
.pv-slot-mid,
.pv-slot-below {
  max-width: 900px;
  margin: 10px auto;
  min-height: 60px; /* placeholder */
}

/* Add light background so you remember where slots are; remove in production */
.pv-slot-top,
.pv-slot-below {
  background: rgba(255,255,255,0.3);
}
.pv-slot-mid {
  background: rgba(255,255,255,0.15);
}

/* ---------- Grid layout for cards ---------- */

.pv-grid {
  display: grid;
  grid-template-columns: 1fr;   /* mobile: 1 column */
  gap: 18px;
}

/* tablet: 2 columns */
@media (min-width: 700px) {
  .pv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* desktop: 4 columns (4×2 = 8 cards) */
@media (min-width: 1024px) {
  .pv-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Outer card – shadow & border; inner structure (shayari-box, tags, actions)
   already defined in shayari_box.css */


/* ensure inner .shayari-box in this layout has no outer margin */
.pv-card .shayari-box {
  margin: 0;
}

/* ---------- Pagination ---------- */

.pv-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 24px 0 10px;
  flex-wrap: wrap;
}

.pv-pagination button,
.pv-pagination a {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 4px;
  border: none;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  font-size: 13px;
  font-weight: 600;
  color: #444;
  cursor: pointer;
  text-decoration: none;
}

.pv-pagination .is-current {
  background: #34A853;
  color: #fff;
  cursor: default;
}

.pv-pagination .is-disabled {
  opacity: 0.4;
  cursor: default;
}

/* ---------- Extra content area above footer ---------- */

.pv-extra-container {
  max-width: 900px;
  margin: 25px auto 10px;
  background: rgba(255,255,255,0.6);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 13px;
}

/* Small footer info line (inside this page, not global footer) */
.pv-mini-footer {
  max-width: 900px;
  margin: 10px auto 0;
  font-size: 11px;
  color: #555;
  text-align: right;
}
.pv-card {
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 10px 18px rgba(0,0,0,0.25);
    overflow: hidden;

    display: flex;
    flex-direction: column;
    height: 100%; /* full height card */
}



/* Tags section normal */
.tags-section {
  background: #f8f8f8;
  border-bottom: 1px solid #dddddd;
  text-align: center;
  padding: 8px 10px 10px;
}

.tag-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #555555;
  margin-bottom: 3px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.tag-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  border: 1px solid #cccccc;
  background: #ffffff;
  color: #444;
  text-decoration: none;
}

.tag-chip:hover {
  background: #ffe7e7;
  border-color: #ff6f61;
}

.tag-chip.is-empty {
  opacity: 0.6;
  cursor: default;
}



/* Buttons ALWAYS bottom */
.actions {
    margin-top: auto;     /* sabko push karke bottom par chipka dega */
    padding: 12px;
    display: flex;
    gap: 8px;
    justify-content: center;
}
.pv-grid{
  column-count: 4;
  column-gap: 18px;
}

@media (max-width:1024px){
  .pv-grid{ column-count:2; }
}
@media (max-width:600px){
  .pv-grid{ column-count:1; }
}

.pv-card{
  break-inside: avoid;
  margin-bottom:18px;
}
.pv-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap:18px;

  grid-auto-flow: dense;   /* 👈 IMPORTANT */
}
.image-box {
  padding: 0;
  background: #fff;
}

.image-box img {
  width: 100%;
  display: block;
  border-radius: 16px;
}

/* ===== ADS FIX ===== */
.ad-box {
  grid-column: 1 / -1;
  margin: 14px 0;
  border-radius: 8px;
  text-align: center;
}

/* optional: ad ko shayari se visually alag rakhne ke liye */
.ad-box + .pv-card {
  margin-top: 6px;
}
.interlink-section {
    margin: 30px 0;
    padding: 16px;
    background: #fafafa;
    border-radius: 8px;
}

.interlink-section h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.interlink-section ul {
    list-style: none;
    padding: 0;
}

.interlink-section li {
    margin-bottom: 6px;
}

.interlink-section a {
    color: #2271b1;
    text-decoration: none;
}

.interlink-section a:hover {
    text-decoration: underline;
}


.interlink-wrap {
    margin: 28px 0;
    padding: 18px;
    background: #fafafa;
    border-radius: 8px;
}

.interlink-section + .interlink-section {
    margin-top: 18px;
}

.interlink-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.interlink-list {
    list-style: none;
    padding: 0;
}

.interlink-list li {
    margin-bottom: 6px;
}

.interlink-list a {
    color: #2271b1;
    text-decoration: none;
}

.interlink-list a:hover {
    text-decoration: underline;
}

