/* ================================================================
   Testimonial Blob Cards – testimonial-blob-cards.css
   Author: codify
   Prefix: tbc-
   ================================================================ */

/* ----------------------------------------------------------------
   1. CSS VARIABLES
   ---------------------------------------------------------------- */
:root {
  --tbc-orange:        #F5A623;
  --tbc-orange-light:  #FDE8BF;
  --tbc-purple:        #7B5EA7;
  --tbc-purple-light:  #E8DEFF;
  --tbc-teal:          #00B4B4;
  --tbc-teal-light:    #C8F4F4;
  --tbc-text-dark:     #1A1A2E;
  --tbc-text-muted:    #8A8A9A;
  --tbc-link-blue:     #3B7ED6;
  --tbc-white:         #FFFFFF;
  --tbc-shadow:        0 8px 40px rgba(0,0,0,.10);
  --tbc-shadow-hover:  0 16px 56px rgba(0,0,0,.15);
  --tbc-font-heading:  'Playfair Display', Georgia, serif;
  --tbc-font-body:     'DM Sans', sans-serif;
}

/* Google Fonts import – add to your theme's functions.php instead
   if you already have a font-loader. */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=DM+Sans:wght@400;500;600&display=swap');

/* ----------------------------------------------------------------
   2. GRID
   ---------------------------------------------------------------- */
.tbc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* overridden by Elementor control */
  gap: 32px;
  align-items: center;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

/* ----------------------------------------------------------------
   3. CARD WRAPPER
   ---------------------------------------------------------------- */
.tbc-card-wrapper {
  position: relative;
  padding-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ----------------------------------------------------------------
   4. ACCENT LAYER  (coloured blob peeking behind)
   ---------------------------------------------------------------- */
.tbc-card-accent {
  position: absolute;
  width: 88%;
  height: calc(100% - 60px);
  top: 60px;
  z-index: 0;
  transition: transform 0.35s ease;
}

.tbc-card-wrapper--orange .tbc-card-accent {
  background: var(--tbc-orange);
  left: -10px;
  border-radius: 50% 30% 40% 30% / 30% 40% 30% 50%;
}

.tbc-card-wrapper--purple .tbc-card-accent {
  background: var(--tbc-purple);
  right: -10px;
  top: 44px;
  border-radius: 30% 60% 30% 40% / 60% 30% 50% 30%;
}

.tbc-card-wrapper--teal .tbc-card-accent {
  background: var(--tbc-teal);
  right: -10px;
  border-radius: 30% 50% 30% 50% / 30% 30% 60% 40%;
}

/* ----------------------------------------------------------------
   5. CARD BLOB  (white foreground card)
   ---------------------------------------------------------------- */
.tbc-card-blob {
  position: relative;
  z-index: 1;
  background: var(--tbc-white);
  box-shadow: var(--tbc-shadow);
  padding: 72px 28px 32px;
  width: 100%;
  text-align: center;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tbc-card-wrapper--orange .tbc-card-blob {
  border-radius: 48% 52% 40% 60% / 46% 44% 56% 54%;
}
.tbc-card-wrapper--purple .tbc-card-blob {
  border-radius: 42% 58% 52% 48% / 54% 42% 58% 46%;
  padding-top: 80px;
  padding-bottom: 40px;
}
.tbc-card-wrapper--teal .tbc-card-blob {
  border-radius: 52% 48% 58% 42% / 44% 56% 44% 56%;
}

.tbc-card-wrapper:hover .tbc-card-blob {
  box-shadow: var(--tbc-shadow-hover);
  transform: translateY(-4px);
}
.tbc-card-wrapper:hover .tbc-card-accent {
  transform: translateY(4px) scale(1.02);
}

/* ----------------------------------------------------------------
   6. AVATAR
   ---------------------------------------------------------------- */
.tbc-card-avatar {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid var(--tbc-white);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.14);
  background: #ddd;
}

.tbc-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tbc-card-wrapper--orange .tbc-card-avatar { border-color: var(--tbc-orange-light); }
.tbc-card-wrapper--purple .tbc-card-avatar { border-color: var(--tbc-purple-light); }
.tbc-card-wrapper--teal   .tbc-card-avatar { border-color: var(--tbc-teal-light); }

/* ----------------------------------------------------------------
   7. CARD CONTENT TYPOGRAPHY
   ---------------------------------------------------------------- */
.tbc-card-name {
  font-family: var(--tbc-font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tbc-text-dark);
  margin-bottom: 6px;
}

.tbc-card-verified {
  display: inline-block;
  color: var(--tbc-link-blue) !important;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-bottom: 4px;
  cursor: pointer;
  font-family: var(--tbc-font-body);
}

.tbc-card-course {
  font-family: var(--tbc-font-body);
  font-size: 0.78rem;
  color: var(--tbc-text-muted);
  margin-bottom: 16px;
  line-height: 1.4;
}

.tbc-card-divider {
  width: 40px;
  height: 2px;
  margin: 0 auto 16px;
  border-radius: 2px;
}
.tbc-card-wrapper--orange .tbc-card-divider { background: var(--tbc-orange); }
.tbc-card-wrapper--purple .tbc-card-divider { background: var(--tbc-purple); }
.tbc-card-wrapper--teal   .tbc-card-divider { background: var(--tbc-teal); }

.tbc-card-quote {
  font-family: var(--tbc-font-body);
  font-size: 0.9rem;
  line-height: 1.72;
  color: #444;
  margin-bottom: 24px;
  flex: 1;
}

.tbc-card-quote::before {
  content: '\201C';
  font-family: var(--tbc-font-heading);
  font-size: 2.4rem;
  line-height: 0;
  vertical-align: -0.6em;
  margin-right: 3px;
  opacity: 0.18;
}

/* ----------------------------------------------------------------
   8. CTA BUTTON
   ---------------------------------------------------------------- */
.tbc-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  font-family: var(--tbc-font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--tbc-white);
  cursor: pointer;
  border: none;
  outline: none;
  transition: filter 0.2s ease, transform 0.2s ease;
  margin-top: auto;
}

.tbc-card-cta:hover {
  filter: brightness(1.1);
  transform: scale(1.04);
}

.tbc-card-wrapper--orange .tbc-card-cta { background: var(--tbc-orange); }
.tbc-card-wrapper--teal   .tbc-card-cta { background: var(--tbc-teal); }

/* ----------------------------------------------------------------
   9. RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 860px) {
  .tbc-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 40px 24px;
  }
  .tbc-card-wrapper:nth-child(2) {
    grid-column: 1 / -1;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .tbc-grid {
    grid-template-columns: 1fr !important;
    gap: 44px;
  }
  .tbc-card-wrapper:nth-child(2) {
    grid-column: auto;
    max-width: 100%;
  }
  .tbc-card-wrapper {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }
}
