/*
Theme Name: Astra Child
Template: astra
Version: 1.0
*/

/* =====================================================
   FULL WIDTH SINGLE POST FIX – SAFE & OPTIMIZED
===================================================== */

/* Sidebar hide (agar Customizer se No Sidebar nahi kiya) */
.single-post .sidebar-main {
  display: none !important;
}

/* Main content width & center */
.single-post .ast-article-inner,
.single-post .entry-content {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* Desktop spacing */
@media (min-width: 769px) {
  .single-post .ast-article-inner,
  .single-post .entry-content {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Mobile edge-to-edge + clean UX */
@media (max-width: 768px) {
  .single-post .ast-article-inner,
  .single-post .entry-content {
    padding-left: 8px !important;
    padding-right: 8px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Footer mobile fixes */
  .single-post .footer-inner {
    display: block !important;
    padding: 10px;
  }

  .single-post .cta {
    text-align: center;
    margin-top: 20px;
  }

  .single-post .cta a {
    display: inline-block;
    width: 100%;
    margin: 10px 0;
    word-wrap: break-word;
  }

  .single-post .footer-bottom {
    font-size: 12px;
    margin-top: 10px;
    padding: 15px;
    text-align: center;
  }

  /* Long links overflow fix */
  .single-post a {
    word-wrap: break-word;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* =====================================================
   STICKY APP BAR – ASTRA CHILD (FINAL VERSION)
===================================================== */

/* Body bottom space so bar content ko cover na kare */
.single-post body,
body.single-post {
  padding-bottom: 70px;
}

/* Sticky bar */
.sticky-app-bar{
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg,#198754,#28a745);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 9999;
  box-shadow: 0 -4px 14px rgba(0,0,0,0.2);
}

/* iPhone safe-area support */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .sticky-app-bar {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
}

/* Text */
.sticky-app-text{
  font-size: 14px;
  line-height: 1.4;
}

/* Button */
.sticky-app-btn{
  background: #fff;
  color: #198754;
  padding: 10px 18px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

/* Close icon */
.sticky-app-close{
  font-size: 18px;
  cursor: pointer;
  margin-left: 10px;
  opacity: 0.9;
}

/* Hover polish (desktop only) */
@media (hover:hover) {
  .sticky-app-btn:hover {
    transform: scale(1.04);
  }
}
/* =====================================================
   FIX: Sticky Bar always visible (Footer overlap issue)
===================================================== */

/* Force sticky bar above everything */
.sticky-app-bar{
  position: fixed !important;
  bottom: 0 !important;
  left: 0;
  right: 0;
  z-index: 999999 !important;
}

/* Astra footer ke margin / spacing ko ignore */
body.single-post{
  margin-bottom: 0 !important;
}

/* Footer ke niche ka extra space remove */
.site-footer,
.footer-inner,
.footer-bottom{
  margin-bottom: 0 !important;
}

/* Elementor + Astra container issue fix */
.ast-container,
.site-content{
  overflow: visible !important;
}
