/* PinayPromise mobile redesign v2
   Shared responsive shell for every static public and template route. */
@media (max-width: 767.98px) {
  :root {
    --pp-mobile-gutter: 18px;
    --pp-mobile-radius: 18px;
    --pp-mobile-ink: #13213d;
    --pp-mobile-muted: #667085;
    --pp-mobile-surface: #ffffff;
    --pp-mobile-soft: #f6f8fb;
  }

  html,
  body,
  .body_wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: clip !important;
  }

  body {
    color: var(--pp-mobile-ink);
    font-size: 16px;
    line-height: 1.65;
    -webkit-text-size-adjust: 100%;
  }

  .container,
  .container-fluid {
    width: 100%;
    max-width: 100%;
    padding-left: var(--pp-mobile-gutter) !important;
    padding-right: var(--pp-mobile-gutter) !important;
  }

  .row {
    --bs-gutter-x: 22px;
  }

  h1,
  .h1 {
    font-size: clamp(31px, 8.4vw, 39px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.035em;
    text-wrap: balance;
  }

  h2,
  .h2 {
    font-size: clamp(25px, 6.7vw, 31px) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }

  h3,
  .h3 {
    font-size: 22px !important;
    line-height: 1.28 !important;
  }

  p,
  li {
    overflow-wrap: anywhere;
  }

  .sec-padding,
  .section-padding,
  .pt-120,
  .pb-120 {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }

  .mb-30 { margin-bottom: 22px !important; }
  .mb-40 { margin-bottom: 28px !important; }
  .mb-50 { margin-bottom: 34px !important; }

  /* Header: compact, aligned and large enough to tap without swallowing the screen. */
  .navbar,
  .pp-public-nav,
  .menu_one {
    min-height: 66px;
    padding: 8px 0 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 2px solid #ffcf33 !important;
  }

  .navbar > .container,
  .pp-public-nav > .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }

  .navbar-brand,
  .pp-public-nav .navbar-brand,
  .header_logo {
    display: flex !important;
    align-items: center;
    flex: 0 1 calc(100% - 58px) !important;
    min-width: 0;
    margin: 0 !important;
  }

  .navbar-brand img,
  .header_logo img,
  .pp-public-nav .navbar-brand img {
    display: block;
    width: auto !important;
    max-width: min(190px, 100%) !important;
    height: auto !important;
    max-height: 48px !important;
    object-fit: contain !important;
    object-position: left center !important;
  }

  .navbar-toggler,
  .pp-public-nav .navbar-toggler {
    position: static !important;
    flex: 0 0 44px !important;
    width: 44px;
    height: 44px;
    margin: 0 0 0 auto !important;
    padding: 8px !important;
    transform: none !important;
  }

  .navbar-collapse,
  .pp-public-nav .navbar-collapse {
    flex-basis: 100% !important;
    width: 100% !important;
    max-height: calc(100dvh - 66px);
    overflow-y: auto;
  }

  .navbar-nav,
  .pp-public-nav .menu {
    width: 100%;
    gap: 0 !important;
    padding: 12px 0 8px;
  }

  .navbar-nav .nav-link,
  .pp-public-nav .menu > .nav-item > .nav-link {
    display: block;
    width: 100%;
    padding: 12px 4px !important;
    border-bottom: 1px solid #edf0f5;
    font-size: 16px;
  }

  .pp-public-nav .right-nav,
  .right-nav {
    width: 100%;
    padding: 10px 0 14px !important;
  }

  .pp-nav-cta,
  .right-nav .theme-btn {
    width: 100%;
    min-height: 48px;
  }

  /* Breadcrumbs become a clean mobile masthead; the stretched art is removed. */
  .breadcrumb-area,
  .breadcrumb-area.safety-breadcrumb {
    position: relative;
    margin-top: 66px !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 52px 0 46px !important;
    background: linear-gradient(145deg, #fff8f5 0%, #ffffff 48%, #eef4ff 100%) !important;
    overflow: hidden !important;
  }

  .breadcrumb-area .bg-shape,
  .breadcrumb-area > .bg-shape,
  .breadcrumb-area .bg {
    display: none !important;
  }

  .breadcrumb-area h1 {
    margin: 0 auto 12px !important;
    max-width: 340px;
  }

  .breadcrumb-area p {
    max-width: 335px;
    margin: 0 auto !important;
    color: var(--pp-mobile-muted) !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  /* Images: crop deliberately and never distort the source ratio. */
  img {
    max-width: 100%;
  }

  .hero-area-two .hero-img,
  .hero-area-two .hero-img > div {
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-area-two .hero-img > img,
  .hero-area-two .hero-img picture > img,
  .hero-area-two .hero-img .main-img {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 5;
    object-fit: cover !important;
    object-position: center 30% !important;
    border-radius: 22px !important;
  }

  .feature-box > img,
  .pp-card > img,
  .blog-widget > img,
  .blog-widget > a > img,
  .pp-blog-card-image,
  .post-details-widget > img,
  .pp-blog-hero,
  .client-img img,
  .story-img img {
    display: block;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .feature-box > img,
  .pp-card > img,
  .blog-widget > img,
  .blog-widget > a > img,
  .pp-blog-card-image {
    aspect-ratio: 4 / 3 !important;
  }

  .post-details-widget > img,
  .pp-blog-hero {
    aspect-ratio: 16 / 10 !important;
    max-height: none !important;
    border-radius: 18px !important;
  }

  .comment-user img,
  .comment-author img,
  .comment-list img[src*="comment-user"],
  img[src*="comment-user-"] {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .message-profile img,
  .chat-user img,
  img[src$="single-member2.jpg"] {
    height: auto !important;
    aspect-ratio: 1 / 1;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center 24% !important;
  }

  /* Cards and content: consistent rhythm, readable measure and clean stacking. */
  .blog-widget,
  .pp-card,
  .feature-box,
  .post-details-widget,
  .contact-form-widget,
  .contact-info-widget,
  .faq-widget,
  .privacy-policy-content,
  .terms-condition-content {
    border-radius: var(--pp-mobile-radius) !important;
  }

  .blog-widget,
  .pp-card,
  .feature-box {
    margin-bottom: 4px;
    box-shadow: 0 12px 30px rgba(16, 38, 92, 0.09) !important;
  }

  .blog-content,
  .pp-card-body,
  .feature-content {
    padding: 22px !important;
  }

  .blog-content h5,
  .pp-card h2 {
    font-size: 21px !important;
    line-height: 1.3 !important;
  }

  .blog-sub-text {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 8px;
    font-size: 13px;
  }

  .pp-blog-excerpt {
    font-size: 15px;
    line-height: 1.65;
  }

  .post-details-widget,
  .pp-article {
    width: 100%;
    padding: 20px !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 34px rgba(16, 38, 92, 0.08) !important;
  }

  .post-details-widget h1 {
    font-size: 30px !important;
    margin-bottom: 22px !important;
  }

  .post-details-widget h2 {
    margin-top: 32px !important;
    margin-bottom: 12px !important;
  }

  .post-details-widget p,
  .post-details-widget li,
  .pp-article p,
  .pp-article li {
    font-size: 16px !important;
    line-height: 1.75 !important;
  }

  .post-details-widget blockquote,
  blockquote {
    margin: 26px 0 !important;
    padding: 22px 20px !important;
    border-radius: 14px;
  }

  .tag-widget {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
  }

  .tag-widget h6 {
    flex-basis: 100%;
  }

  .tag-widget a {
    margin: 0 !important;
  }

  /* Forms and utility sections. */
  input,
  select,
  textarea,
  .form-control,
  .nice-select {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 48px;
  }

  textarea,
  textarea.form-control {
    min-height: 150px;
  }

  .theme-btn,
  .btn,
  .pp-primary,
  .pp-secondary {
    min-height: 48px;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Remove desktop-only decoration that competes with content on phones. */
  .hero-chat-bubble,
  .home-romance-overlay,
  .testimonial-area-two,
  .floating-widget .shape,
  .footer-widget-three .bg-shape,
  .footer-widget-two .bg-shape,
  .footer-widget-three .tree,
  .footer-widget-three .cycle,
  .footer-widget-two .tree,
  .footer-widget-two .cycle,
  footer .hearts,
  footer .flying {
    display: none !important;
  }

  /* Footer: one centered, unobstructed mobile column on every page. */
  .footer-widget-three,
  .footer-widget-two,
  footer.footer-widget-three,
  footer.footer-widget-two {
    position: relative;
    min-height: 0 !important;
    height: auto !important;
    padding: 52px 0 30px !important;
    overflow: hidden !important;
    background: linear-gradient(155deg, #fff7f8 0%, #ffffff 54%, #eef4ff 100%) !important;
    text-align: center !important;
  }

  .footer-widget-three .container,
  .footer-widget-two .container {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .footer-widget-three .container > a:first-child,
  .footer-widget-two .theme-logo,
  .footer-widget-two .footer-logo {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    margin: 0 auto 24px !important;
  }

  .footer-widget-three .container > a:first-child img,
  .footer-widget-two .theme-logo,
  .footer-widget-two .theme-logo img,
  .footer-widget-two .footer-logo img {
    display: block !important;
    width: auto !important;
    max-width: 205px !important;
    height: auto !important;
    max-height: 62px !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    object-position: center !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .footer-widget-three .link-list,
  .footer-widget-two .link-list,
  footer .link-list {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 18px;
    width: 100%;
    margin: 0 auto 24px !important;
    padding: 0 !important;
  }

  .footer-widget-three .link-list a,
  .footer-widget-two .link-list a,
  footer .link-list a {
    display: inline-flex;
    margin: 0 !important;
    color: #26334d !important;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
  }

  .footer-widget-three .copyright,
  .footer-widget-two .copyright,
  footer .copyright {
    width: 100%;
    margin: 0 !important;
    color: #667085 !important;
    font-size: 13px;
    line-height: 1.5;
    text-align: center !important;
  }

  .footer-widget-two .row > [class*="col-"] {
    width: 100%;
    text-align: center !important;
    margin-bottom: 24px;
  }

  .footer-widget-two ul {
    padding-left: 0;
    list-style: none;
  }

  .footer-widget-two a,
  .footer-widget-two p,
  .footer-widget-two li {
    text-align: center !important;
  }

  #back-to-top {
    right: 14px !important;
    bottom: 14px !important;
  }

  .wow {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    visibility: visible !important;
  }
}

/* Slightly wider Samsung Ultra tuning. */
@media (min-width: 400px) and (max-width: 767.98px) {
  :root { --pp-mobile-gutter: 22px; }
  .navbar-brand img,
  .header_logo img,
  .pp-public-nav .navbar-brand img { max-width: 205px !important; }
  .post-details-widget,
  .pp-article { padding: 24px !important; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
