/* ==========================================================================
   Testimonial Block Styles
   Add via WPCode > CSS Snippet (site-wide)
   ========================================================================== */

/* --- Custom properties ---------------------------------------------------- */
.lp-testimonial {
  --lp-primary: #ED1A3B !important;
  --lp-foreground: #000000 !important;
  --lp-muted-light: #F0F0F0 !important;
  --lp-bg-right: #F5F5F5 !important;
  --lp-white: #ffffff !important;
  --lp-font-body: Arial, -apple-system, BlinkMacSystemFont, sans-serif !important;
  --lp-font-display: Arial, -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* --- Wrapper -------------------------------------------------------------- */
.lp-testimonial-wrapper {
  margin: 20px auto !important;
  max-width: 1200px !important;
  border: 3px solid var(--lp-primary, #ED1A3B) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* --- Section base --------------------------------------------------------- */
.lp-testimonial {
  font-family: var(--lp-font-body) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.lp-testimonial-inner {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* --- Grid (two-column flex) ----------------------------------------------- */
.lp-testimonial .lp-testimonial-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  gap: 0 !important;
  margin: 0 !important;
  margin-bottom: 0 !important;
}

/* Reset only margin on the column shell — padding goes on left/right rules */
.lp-testimonial .lp-testimonial-grid > .wp-block-column {
  margin: 0 !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
}

/* --- LEFT (red panel) ----------------------------------------------------- */
.lp-testimonial .lp-testimonial-grid > .wp-block-column.lp-testimonial-left {
  background-color: var(--lp-primary) !important;
  color: var(--lp-white) !important;
  padding: 60px 50px !important;
  box-sizing: border-box !important;
  flex-basis: 50% !important;
  max-width: 50% !important;
}

.lp-testimonial .lp-testimonial-quote-text {
  font-size: 20px !important;
  line-height: 1.6 !important;
  color: var(--lp-white) !important;
  font-family: var(--lp-font-body) !important;
  margin: 0 !important;
}

/* Profile row */
.lp-testimonial .lp-testimonial-profile {
  display: flex !important;
  align-items: center !important;
  margin-top: 30px !important;
}

.lp-testimonial .lp-testimonial-avatar {
  width: 60px !important;
  height: 60px !important;
  max-width: 60px !important;
  max-height: 60px !important;
  border-radius: 50% !important;
  margin-right: 15px !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
}

.lp-testimonial .lp-testimonial-profile-meta {
  display: block !important;
}

.lp-testimonial h4.lp-testimonial-name {
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: bold !important;
  color: var(--lp-white) !important;
  font-family: var(--lp-font-display) !important;
  line-height: 1.3 !important;
}

.lp-testimonial .lp-testimonial-role {
  display: block !important;
  font-size: 14px !important;
  color: var(--lp-muted-light) !important;
  margin-top: 2px !important;
}

/* Story link */
.lp-testimonial .lp-testimonial-story-link {
  display: inline-block !important;
  margin-top: 8px !important;
  font-size: 14px !important;
  color: var(--lp-white) !important;
  text-decoration: underline !important;
  font-weight: 500 !important;
  transition: opacity 0.2s ease !important;
}

.lp-testimonial .lp-testimonial-story-link:hover {
  opacity: 0.8 !important;
  color: var(--lp-white) !important;
}

/* --- RIGHT (gray panel) --------------------------------------------------- */
.lp-testimonial .lp-testimonial-grid > .wp-block-column.lp-testimonial-right {
  background-color: var(--lp-bg-right) !important;
  color: var(--lp-foreground) !important;
  padding: 60px 50px !important;
  box-sizing: border-box !important;
  border: 2px solid var(--lp-primary) !important;
  flex-basis: 50% !important;
  max-width: 50% !important;
}

/* Title (Sydney Pro overrides) */
.lp-testimonial h3.lp-testimonial-title,
.lp-testimonial .wp-block-heading.lp-testimonial-title {
  font-size: 22px !important;
  font-weight: normal !important;
  color: var(--lp-foreground) !important;
  font-family: var(--lp-font-display) !important;
  margin: 0 0 20px 0 !important;
  padding: 0 0 10px 0 !important;
  border-bottom: 1px solid var(--lp-primary) !important;
  line-height: 1.3 !important;
}

/* Big opening quote glyph */
.lp-testimonial .lp-testimonial-quote-mark {
  font-size: 60px !important;
  color: var(--lp-foreground) !important;
  line-height: 1 !important;
  margin: 0 0 -20px 0 !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

/* Highlight text */
.lp-testimonial .lp-testimonial-highlight {
  font-size: 40px !important;
  font-weight: bold !important;
  color: var(--lp-foreground) !important;
  line-height: 1.2 !important;
  font-family: var(--lp-font-display) !important;
}

/* --- WP Classic Editor defensive overrides -------------------------------- */
/* Sydney/theme heading color reset */
.lp-testimonial h1,
.lp-testimonial h2,
.lp-testimonial h3,
.lp-testimonial h4,
.lp-testimonial .wp-block-heading {
  font-family: var(--lp-font-display) !important;
}

/* Force visibility of meta elements */
.lp-testimonial-name,
.lp-testimonial-role,
.lp-testimonial-story-link,
.lp-testimonial-title,
.lp-testimonial-highlight,
.lp-testimonial-quote-mark {
  visibility: visible !important;
  opacity: 1 !important;
}

/* Prevent stray <p> wrappers from wpautop breaking layout in profile-meta */
.lp-testimonial .lp-testimonial-profile-meta p {
  margin: 0 !important;
  padding: 0 !important;
}

/* Hide stray <br> inserted by wpautop inside the profile block (but keep
   intentional <br> inside highlight text) */
.lp-testimonial .lp-testimonial-profile-meta br {
  display: none !important;
}
.lp-testimonial-name {
		padding: 0 !important
}

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 766px) {
  .lp-testimonial-wrapper {
    margin: 12px !important;
  }
	.lp-testimonial-inner  {
		padding: 0 !important;
	}

  .lp-testimonial .lp-testimonial-grid {
    flex-direction: column-reverse !important;
    flex-wrap: wrap !important;
  }

  .lp-testimonial .lp-testimonial-grid > .wp-block-column.lp-testimonial-left,
  .lp-testimonial .lp-testimonial-grid > .wp-block-column.lp-testimonial-right {
    flex-basis: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 40px 24px !important;
  }

  .lp-testimonial .lp-testimonial-quote-text {
    font-size: 17px !important;
  }

  .lp-testimonial h3.lp-testimonial-title,
  .lp-testimonial .wp-block-heading.lp-testimonial-title {
    font-size: 20px !important;
  }

  .lp-testimonial .lp-testimonial-highlight {
    font-size: 30px !important;
  }

  .lp-testimonial .lp-testimonial-quote-mark {
    font-size: 50px !important;
    margin-bottom: -16px !important;
  }
}