/* ============================================================
   PROPERTYDEAL — Homepage Post Property Banner
   File: homepage_post_property_banner.css
   Usage: Pair with homepage_post_property_banner.html
   Tested: Desktop (1200px) + Mobile (375px)
   ============================================================ */

/* ── Reset scoped to this component ── */
.pp-banner-section *,
.pp-banner-section *::before,
.pp-banner-section *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Outer section wrapper ── */
.pp-banner-section {
  width: 100%;
  padding: 0 16px;
  margin: 32px 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Inner container: max-width + blue bg card ── */
.pp-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #EFF6FF;
  border-radius: 14px;
  padding: 28px 32px 28px 36px;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 130px;
  overflow: hidden;
  position: relative;
}

/* subtle doodle wave overlay (SVG data-uri) */
.pp-banner-inner::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 30' preserveAspectRatio='none'%3E%3Cpath d='M0 20 Q50 10 100 20 Q150 30 200 20 Q250 10 300 20 Q350 30 400 20 Q450 10 500 20 Q550 30 600 20 L600 30 L0 30Z' fill='%23DBEAFE' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  pointer-events: none;
}

/* ── Left: text + CTAs ── */
.pp-banner-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.pp-banner-title {
  font-size: 20px;
  font-weight: 700;
  color: #1E3A8A;
  line-height: 1.4;
  margin-bottom: 6px;
}

.pp-banner-sub {
  font-size: 13px;
  color: #2563EB;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}

.pp-banner-btn-primary {
  display: inline-block;
  background: #1E3A8A;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  margin-bottom: 12px;
  white-space: nowrap;
}

.pp-banner-btn-primary:hover {
  background: #1E40AF;
}

.pp-banner-btn-primary:active {
  transform: scale(0.98);
}

.pp-banner-btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #2563EB;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.pp-banner-btn-wa:hover {
  color: #1E3A8A;
  text-decoration: underline;
}

.pp-wa-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── Right: person illustration ── */
.pp-banner-right {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100px;
}

.pp-person-svg {
  width: 90px;
  height: auto;
  display: block;
}

/* ── Responsive: tablet ── */
@media (max-width: 768px) {
  .pp-banner-inner {
    padding: 22px 20px;
    gap: 12px;
  }

  .pp-banner-title {
    font-size: 16px;
  }

  .pp-banner-sub {
    font-size: 12px;
  }

  .pp-banner-btn-primary {
    font-size: 13px;
    padding: 10px 18px;
  }

  .pp-banner-right {
    width: 70px;
  }

  .pp-person-svg {
    width: 70px;
  }
}

/* ── Responsive: mobile ── */
@media (max-width: 480px) {
  .pp-banner-section {
    padding: 0 12px;
    margin: 20px 0;
  }

  .pp-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 16px 10px;
  }

  .pp-banner-title {
    font-size: 15px;
  }

  .pp-banner-right {
    display: none; /* hide person on very small screens */
  }
}
