/**
 * Petsure About Us Widget Styles
 */

/* ── Layout ── */
.petsure-about-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 40px;
}

/* ── Left column — Image full-height + Text Path lateral ── */
.petsure-about-left {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 400px;
  width: calc(45% - 20px);
}

.petsure-about-image-wrap {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
}

.petsure-about-main-img {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  border-radius: 16px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

/* Text Path — overlay on image (Petona-style) */
.petsure-about-image-wrap>.petsure-text-path-wrapper {
  position: absolute;
  left: 20px;
  top: 20px;
  z-index: 5;
}

@media (max-width: 575px) {
  .petsure-about-image-wrap>.petsure-text-path-wrapper {
    left: 12px;
    top: 12px;
  }
}

/* ── Right column ── */
.petsure-about-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: calc(55% - 20px);
}

/* ── Fun Facts (Petona-style) ── */
.petsure-about-funfacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Phone Box (like Petona's icon box) ── */
.petsure-about-phone-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--petsure-background);
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.petsure-about-phone-box:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.petsure-about-phone-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  color: var(--petsure-accent);
}

.petsure-about-phone-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.petsure-about-phone-icon i {
  font-size: 28px;
}

.petsure-about-phone-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.petsure-about-phone-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--petsure-text);
  line-height: 1.2;
}

.petsure-about-phone-number {
  font-size: 15px;
  font-weight: 700;
  color: var(--petsure-primary);
  line-height: 1.3;
}

@media (max-width: 575px) {
  .petsure-about-phone-box {
    padding: 10px 14px;
  }

  .petsure-about-phone-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
  }

  .petsure-about-phone-icon i {
    font-size: 24px;
  }

  .petsure-about-phone-number {
    font-size: 13px;
  }
}

/* ── Overlays container (positions absolutely within image-wrap) ── */
.petsure-about-overlays {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: 0;
  right: 0;
  gap: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.petsure-about-happy-customer-wrap {
  position: relative;
  margin-left: 15px;
}

.petsure-about-happy-customer {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  padding: 14px 20px;
  background: var(--petsure-white);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.petsure-about-happy-avatars {
  display: flex;
  align-items: center;
}

.petsure-about-happy-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--petsure-white);
  margin-right: -10px;
  flex-shrink: 0;
  background: var(--petsure-white);
}

.petsure-about-happy-avatar:last-child {
  margin-right: 0;
}

.petsure-about-happy-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.petsure-about-happy-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--petsure-primary);
  line-height: 1.3;
}

@media (max-width: 767px) {
  .petsure-about-happy-customer {
    padding: 10px 14px;
  }

  .petsure-about-happy-avatar {
    width: 28px;
    height: 28px;
    margin-right: -8px;
  }

  .petsure-about-happy-text {
    font-size: 11px;
  }
}

/* ── Experience Box (overlay on image) ── */
.petsure-about-experience-wrap {
  position: relative;
  padding: 20px 0 0 20px;
  background: var(--petsure-white);
  border-right: 0;
  border-bottom: 0;
  border-radius: 30px 0 21px 0;
  min-width: 150px;
  max-width: 220px;
  z-index: 3;
}

.petsure-about-experience-wrap:before,
.petsure-about-experience-wrap:after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  mask: url(../../images/corner.svg);
  background-color: var(--petsure-white);
  mask-repeat: no-repeat;
  mask-size: cover;
  transform: rotate(180deg);
  border-radius: 0;
  z-index: 1;
}

.petsure-about-experience-wrap:before {
  top: -20px;
  right: 0;
  left: auto;
}

.petsure-about-experience-wrap:after {
  left: -20px;
  bottom: 0;
}

.petsure-about-experience-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 130px;
  background: var(--petsure-secondary);
  padding: 20px;
  text-align: center;
  border-radius: var(--petsure-border-radius-lg);
}

.petsure-about-experience-number {
  font-size: 50px;
  font-weight: 800;
  color: var(--petsure-white);
  line-height: 1;
}

.petsure-about-experience-suffix {
  font-weight: 700;
}

.petsure-about-experience-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--petsure-white);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Icon Boxes (content area, Petona-style) ── */
.petsure-about-icon-boxes {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.petsure-about-icon-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--petsure-background);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.petsure-about-icon-box-icon-wrap {
  width: 56px;
  height: 56px;
  min-width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--petsure-accent-rgb), 0.1);
  border-radius: 50%;
  flex-shrink: 0;
}

.petsure-about-icon-box-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: var(--petsure-accent);
}

.petsure-about-icon-box-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.petsure-about-icon-box-icon i {
  font-size: 26px;
}

.petsure-about-icon-box-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.petsure-about-icon-box-title {
  font-size: 16px !important;
  font-weight: 700;
  color: var(--petsure-primary) !important;
  margin: 0 !important;
  line-height: 1.3;
}

/* Link with animated underline ::before (like testimonial CTA) */
a.petsure-about-icon-box-link {
  position: relative;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a.petsure-about-icon-box-link::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--petsure-primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    background 0.3s ease;
  pointer-events: none;
}

a.petsure-about-icon-box-link:hover {
  color: var(--petsure-accent);
}

a.petsure-about-icon-box-link:hover::before {
  transform: scaleX(1);
  background: var(--petsure-accent);
}

.petsure-about-icon-box-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--petsure-text);
  margin: 0;
}

@media (max-width: 575px) {
  .petsure-about-icon-box {
    padding: 16px;
  }
}

/* ── Content Row: Icon Boxes + Text Path ── */
.petsure-about-content-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px;
  align-items: start;
}

.petsure-about-content-col {
  min-width: 0;
}

.petsure-about-content-col--path {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .petsure-about-content-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Column 2 Text Path — inherits all from text-path.css, no overrides needed */

/* ── Fun Facts with Badges style ── */
.petsure-about-funfacts--badges,
.petsure-about-bottom-cta {
  margin-top: 40px;
}

.petsure-about-funfacts-grid {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.petsure-about-funfacts-grid .petsure-badge-item {
  margin: 0;
}

.petsure-about-funfacts-grid .petsure-badge-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

/* ── CTA Button ── */
.petsure-about-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ── Bottom Section CTA (same style as testimonial CTA) ── */
.petsure-about-bottom-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  flex-wrap: wrap;
}

.petsure-about-bottom-cta-icon {
  flex-shrink: 0;
  line-height: 1;
  background: var(--petsure-accent);
  color: var(--petsure-white);
  padding: 10px;
  border-radius: 50%;
}

.petsure-about-bottom-cta-icon svg {
  width: 28px;
  height: 28px;
  display: block;
  fill: currentColor;
  color: currentColor;
}

.petsure-about-bottom-cta-icon i {
  font-size: 24px;
}

.petsure-about-bottom-cta-text {
  font-size: 15px;
  color: var(--petsure-text);
  line-height: 1.6;
  margin: 0 !important;
}

/* CTA link with animated underline ::before */
.petsure-about-bottom-cta-link {
  position: relative;
  color: var(--petsure-primary);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.petsure-about-bottom-cta-link::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--petsure-primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    background 0.3s ease;
  pointer-events: none;
}

.petsure-about-bottom-cta-link:hover {
  color: var(--petsure-accent);
}

.petsure-about-bottom-cta-link:hover::before {
  transform: scaleX(1);
  background: var(--petsure-accent);
}