/* File: custom-elements/cgm-bio-card/cgm-bio-card.css */

.cgm-bio-section {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  background-color: var(--cgm-bg-color, #e5eee8);
}

/* --- THE MAIN CARD CONTAINER --- */
.cgm-bio-card {
  position: relative;
  z-index: 2;
  max-width: 1770px;
  margin: 0 auto;
  width: 90%;
  background: var(--cgm-card-tint, rgba(255, 255, 255, 0.6));
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease;
  transform: translateY(0);
}
.cgm-bio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
}

.cgm-bio-content-wrap {
  display: flex;
  gap: 80px;
  padding: 60px;
  align-items: center;
}

/* --- LAYOUT REVERSAL (RIGHT IMAGE) --- */
.cgm-bio-card.cgm-layout-right .cgm-bio-content-wrap {
  flex-direction: row-reverse;
}

/* --- IMAGE FRAME --- */
.cgm-bio-col {
  flex: 1;
}

.cgm-profile-frame {
  width: 100%;
  max-width: 450px;
  height: 450px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
}

.cgm-profile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- TEXT CONTENT --- */
.cgm-bio-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cgm-bio-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: #ffad4d;
  font-weight: 600;
}
.cgm-bio-headline {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 10px; /* Reduced from 20px to allow space for the subtitle */
  color: #2e2e2e;
}

/* NEW: Styles for our Subtitle */
.cgm-bio-subtitle {
  font-family: "Open Sans", sans-serif;
  font-size: 1.25rem;
  color: #ffad4d; /* Matches the eyebrow color by default */
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: 500;
}

.cgm-bio-body {
  font-family: "Open Sans", sans-serif;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 30px;
  color: #2e2e2e;
  opacity: 0.9;
}

/* --- BUTTON --- */
.cgm-bio-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 30px;
  background: #2e2e2e;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  width: fit-content; /* Don't stretch */
}
.cgm-bio-btn:hover {
  background: var(--btn-hover-bg, #ffad4d) !important;
  color: var(--btn-hover-text, #2e2e2e) !important;
  transform: translateY(-3px);
}

/* --- BLOBS --- */
.cgm-bio-blobs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  border-radius: 40px;
}
.cgm-b-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
  will-change: transform;
  animation: cgm-breathe-slow 18s infinite alternate ease-in-out;
}
.cgm-b-blob-1 {
  width: 50%;
  height: 50%;
  top: -10%;
  left: -10%;
  background-color: var(--cgm-blob-1, #e68492);
}
.cgm-b-blob-2 {
  width: 40%;
  height: 40%;
  bottom: -5%;
  right: -5%;
  background-color: var(--cgm-blob-2, #ffad4d);
  animation-delay: 2s;
}
.cgm-b-blob-3 {
  width: 30%;
  height: 30%;
  top: 40%;
  left: 40%;
  background-color: var(--cgm-blob-3, #ffffff);
  opacity: 0.4;
  animation-delay: 4s;
}

@keyframes cgm-breathe-slow {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.1) translate(10px, -10px);
  }
}

/* --- MOBILE --- */
@media (max-width: 900px) {
  .cgm-bio-section {
    padding: 60px 0;
  }
  .cgm-bio-content-wrap {
    flex-direction: column !important; /* Force column on mobile */
    gap: 30px;
    padding: 40px 25px;
  }

  .cgm-profile-frame {
    max-width: 250px;
    height: 250px;
    margin-bottom: 20px;
  }
  .cgm-bio-text {
    text-align: center;
  }
  .cgm-bio-headline {
    font-size: 2rem;
  }
  .cgm-bio-btn {
    margin: 0 auto;
  }
}