/* back to top css  */
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:var(--color-red-shade-300);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
  z-index: 8;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--color-red-shade-200);
}

.scroll-top img {
  display: block;
}

/* ============================================================
   PROFILE / NEWS PAGE — RESPONSIVE STYLES
   ============================================================ */

/* ---- Large Desktop / Default refinements ---- */
@media (max-width: 1280px) {
  .single_news_sec {
    gap: 40px;
  }
  .post_lists {
    gap: 20px;
    margin-top: 20px;
  }
  .single_post_sec{
    gap:20px
  }
}

/* ---- Tablet Landscape (≤1024px) ---- */
@media (max-width: 1024px) {

  /* Stack the two-column grid into one column */
  .single_news_sec {
    grid-template-columns: 1fr;
    gap: 50px;
    margin-top: 40px;
  }

  .post_content {
    margin-top: 50px;
  }

  .post_content h2 {
    font-size: 42px;
  }

  /* Sidebar becomes full width below content */
  .widget_ponca_recent_posts {
    padding: 28px;
  }
}

/* ---- Tablet Portrait (≤768px) ---- */
@media (max-width: 768px) {
  .single_news_sec {
    gap: 40px;
    margin-top: 30px;
  }

  .post_content {
    margin-top: 40px;
  }

  .post_content h2 {
    font-size: 36px;
    line-height: 1.15;
  }

  .content_detail {
    margin-top: 24px;
  }

  .sidebar_heading {
    font-size: 24px;
    line-height: 32px;
  }

  .widget_ponca_recent_posts {
    padding: 24px;
    border-radius: 12px;
  }

  .post_lists {
    gap: 24px;
    margin-top: 24px;
  }

  .postlist_content p {
    font-size: 18px;
    line-height: 25px;
  }

  /* Author block: keep readable spacing */
  .post_author {
    gap: 20px;
    margin-top: 32px;
  }
 
}

/* ---- Mobile (≤640px) ---- */
@media (max-width: 640px) {
  .single_news_sec {
    gap: 32px;
    margin-top: 24px;
  }

  .post_content {
    margin-top: 32px;
  }

  .post_content h2 {
    font-size: 30px;
  }

  .content_detail {
    margin-top: 20px;
  }

  /* Sidebar */
  .widget_ponca_recent_posts {
    padding: 20px;
  }

  .sidebar_heading {
    font-size: 22px;
    line-height: 30px;
    padding-bottom: 16px;
  }

  /* Recent-post item: keep image + text side by side but tighter */
  .single_post_sec {
    gap: 16px;
  }

  .single_post_sec img {
    max-width: 80px;
    max-height: 60px;
  }

  .postlist_content {
    gap: 4px;
  }

  .postlist_content p {
    font-size: 16px;
    line-height: 23px;
  }

  .postlist_content span {
    font-size: 13px;
  }

  /* Author block stacks naturally; tighten spacing */
  .post_author {
    gap: 14px;
    margin-top: 28px;
    padding: 16px 0;
  }

  .author_info {
    flex-direction: column;
    gap: 2px;
  }

  .back_link {
    font-size: 12px;
  }
}

/* ---- Small Mobile (≤420px) ---- */
@media (max-width: 420px) {

  .post_content h2 {
    font-size: 26px;
  }

  .widget_ponca_recent_posts {
    padding: 16px;
    border-radius: 10px;
  }

  /* Recent post: stack image above text on very small screens */
  .single_post_sec {
    flex-direction: column;
    gap: 10px;
  }

  .single_post_sec img {
    max-width: 100%;
    max-height: 140px;
    width: 100%;
  }

  .postlist_content p {
    font-size: 16px;
  }
}