/* Base */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  background: #f4f4f4;
  color: #222;
}

a {
  color: #d91b5c;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Shell – central column + sidebar */

.page-shell {
  max-width: 1120px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  box-shadow: 0 0 0 1px #e4e4e4;
}

.main-layout {
  display: flex;
  align-items: flex-start;
}

.content-column {
  flex: 0 0 70%;
  border-right: 1px solid #f0f0f0;
}

.content-column.full-width {
  flex: 0 0 100%;
  border-right: none;
}

.sidebar-ads {
  flex: 1;
  background: #fafafa;
  padding: 12px 18px;
}

.inner {
  padding: 0 35px 0 35px;
}

/* Header */

.site-header {
  position: relative;
  padding: 12px 35px 0;
  border-bottom: 1px solid #ececec;
}

.site-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
}

.site-title a {
  text-decoration: none;
  color: inherit;
}

.site-search {
  position: absolute;
  top: 16px;
  right: 35px;
  font-size: 16px;
  cursor: pointer;
  color: #666;
}

.site-search:hover {
  color: #000;
}

.category-nav {
  font-size: 11px;
  color: #777;
  margin-bottom: 8px;
}

.category-nav a {
  color: #777;
}

/* Breadcrumb */

.breadcrumb {
  border-top: 1px solid #f1f1f1;
  padding: 6px 0 10px;
  font-size: 11px;
  color: #777;
}

.breadcrumb a {
  color: #d91b5c;
  font-weight: 600;
}

.breadcrumb span.sep {
  margin: 0 5px;
  color: #999;
}

.breadcrumb span.current {
  color: #444;
}

/* Article header */

.article-header {
  padding-top: 4px;
  padding-bottom: 4px;
}

.article-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.4;
}

.article-meta {
  font-size: 11px;
  color: #909090;
}

.article-meta span {
  margin-right: 8px;
}

.article-meta span.dot::before {
  content: "•";
  margin-right: 6px;
}

/* Slideshow meta (counter, progress) */

.slideshow-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 8px;
  font-size: 11px;
  color: #777;
  border-top: 1px solid #f3f3f3;
  border-bottom: 1px solid #f3f3f3;
  padding: 6px 0;
}

.slide-counter span.current {
  font-weight: 700;
  color: #d91b5c;
}

.slide-progress {
  flex: 1;
  height: 4px;
  background: #f0f0f0;
  border-radius: 2px;
  overflow: hidden;
}

.slide-progress-bar {
  height: 100%;
  width: 0;
  background: #d91b5c;
  transition: width 0.25s ease;
}

/* Share strip */

.share-strip {
  margin: 12px 0 14px;
  display: flex;
  gap: 5px;
}

.share-button {
  flex: 1;
  border: none;
  padding: 4px 0;
  font-size: 12px;
  color: #fff;
  text-align: center;
  cursor: pointer;
}

.share-button--fb { background: #4867aa; }
.share-button--wa { background: #25c46f; }
.share-button--gp { background: #dd4b39; }
.share-button--tw { background: #1da1f2; }

.share-button span.icon {
  margin-right: 4px;
}

/* Sponsored line */

.sponsored-line {
  text-align: center;
  font-size: 10px;
  color: #999;
  margin: 16px 0;
}

/* Slides */

.slides {
  margin-top: 6px;
}

.slide--active {
  display: block;
}

.slide-content h2 {
  font-size: 14px;
  margin: 18px 0 4px;
}

.slide-content p {
  margin: 0 0 10px;
  line-height: 1.7;
  color: #333;
}

.slide-content ul {
  margin: 4px 0 12px 18px;
  padding: 0;
}

.slide-content li {
  margin-bottom: 3px;
}

/* Also read bar */

.also-read-bar {
  margin: 14px 0;
  background: #f7f7f7;
  border-left: 4px solid #d91b5c;
  padding: 6px 10px;
  font-size: 12px;
}

.also-read-bar span.label {
  font-weight: 700;
  margin-right: 4px;
}

/* Inline Ad inside slide */

.inline-ad {
  margin: 18px 0;
  padding: 8px 0;
  background: #f5f5f5;
  border: 1px solid #ececec;
  font-size: 12px;
  color: #666;
}

.inline-ad-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  color: #999;
}

/* NEXT button – sticky near bottom inside content */

.next-btn-wrapper {
  margin-top: 22px;
  position: sticky;
  bottom: 0;
  padding: 12px 0 14px;
  background: linear-gradient(to top, rgba(255,255,255,1) 75%, rgba(255,255,255,0));
  text-align: right;
  margin-bottom: 20px;
}

.next-slide-btn {
  display: inline-block;
  border: none;
  background: #d91b5c;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 26px;
  cursor: pointer;
  border-radius: 2px;
  box-shadow: 0 0 0 3px #f8d9e7;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}

.next-slide-btn:hover {
  background: #b9154d;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,.18);
  text-decoration: none;
}

.next-slide-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,.2);
}

.next-slide-btn.disabled {
  background: #bbbbbb;
  cursor: default;
  box-shadow: 0 0 0 3px #e5e5e5;
  pointer-events: none;
}

/* Sidebar ads */

.ad-box {
  background: #eaeaea;
  border: 1px solid #d3d3d3;
  height: 250px;
  margin-bottom: 16px;
  position: relative;
}

.ad-label {
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666;
  background: rgba(255,255,255,.8);
  padding: 1px 4px;
}

.ad-box-tall {
  height: 600px;
}

/* Related posts */

.related-block {
  margin-top: 8px;
  padding: 14px 35px 24px;
  border-top: 1px solid #eeeeee;
}

.related-title {
  text-align: center;
  font-size: 12px;
  margin-bottom: 14px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related-card {
  border: 1px solid #f0f0f0;
  background: #fff;
  padding: 0;
  font-size: 11px;
}

.related-thumb {
  height: 90px;
  background: #f4f4f4;
  border-bottom: 1px solid #f0f0f0;
  background-size: cover;
  background-position: center;
}

.related-body {
  padding: 8px 10px 10px;
}

.related-meta-cat {
  text-transform: uppercase;
  font-size: 9px;
  color: #bbbbbb;
  margin-bottom: 4px;
}

.related-title-link {
  font-size: 12px;
  color: #333;
  font-weight: 600;
  text-decoration: none;
}

.related-title-link:hover {
  text-decoration: underline;
}

.related-meta-date {
  font-size: 10px;
  color: #999;
  margin-top: 6px;
}

/* Footer */

.footer-nav {
  padding: 8px 35px 6px;
  border-top: 1px solid #f0f0f0;
  font-size: 11px;
  text-align: center;
  color: #777;
}

.footer-nav a {
  color: #777;
  margin: 0 4px;
}

.footer-bottom {
  background: #303745;
  color: #fff;
  text-align: center;
  font-size: 11px;
  padding: 10px 0;
}

/* Back to top */

.back-to-top {
  position: fixed;
  right: 10px;
  bottom: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #cccccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: #ffffff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 50;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* Responsive */

@media (max-width: 900px) {
  .main-layout {
    flex-direction: column;
  }

  .content-column {
    flex: 0 0 100%;
    border-right: none;
  }

  .sidebar-ads {
    width: 100%;
    border-top: 1px solid #e0e0e0;
    padding: 20px 0;
    text-align: center;
  }
  
  /* Hide tall sidebar ads on mobile if too intrusive, or resize */
  .ad-box-tall {
     height: 250px;
     max-width: 300px;
     margin: 0 auto 16px;
  }
}

@media (max-width: 700px) {
  .inner {
    padding: 0 15px;
  }

  .site-header {
    padding: 12px 15px 0;
  }

  .site-search {
    right: 15px;
  }

  .related-block {
    padding: 14px 15px 24px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* Post Grid (Homepage) */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns for main feed for bigger impact */
  gap: 20px;
  margin-top: 20px;
}

.post-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.post-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.post-thumb {
  height: 180px; /* Taller than related */
  background: #f4f4f4;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid #f0f0f0;
}

.post-body {
  padding: 12px 15px 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-cat {
  text-transform: uppercase;
  font-size: 10px;
  color: #d91b5c;
  font-weight: 700;
  margin-bottom: 6px;
}

.post-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin: 0 0 8px;
  line-height: 1.4;
}

.post-title a {
  color: #333;
  text-decoration: none;
}

.post-title a:hover {
  text-decoration: underline;
}

.post-excerpt {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 12px;
  flex: 1;
}

.post-meta {
  font-size: 11px;
  color: #999;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f9f9f9;
}

@media (max-width: 600px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
  
  .next-btn-wrapper {
      text-align: left;
  }
}

.ad-box {
  min-height: 250px; 
  height: auto !important;
  overflow: visible;
  background: #eaeaea;
  border: 1px solid #d3d3d3;
  margin-bottom: 16px;
  position: relative;
}

@media (max-width: 900px) {
  .sidebar-ads .ad-box, 
  .sidebar-ads .ad-box-tall {
      height: auto !important;
      min-height: 250px; /* Minimum reserve */
      max-width: 100%;
      display: flex;
      justify-content: center;
      padding: 10px 0;
  }
  
  .sidebar-ads {
      height: auto;
      overflow: visible;
  }
}