/* Main Container */
.cgm-duo-main-container {
  width: 100%;
  margin: 0 auto;
}

/* --- INTRO SECTION --- */
.cgm-duo-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

/* NEW: Eyebrow Style */
.cgm-duo-eyebrow {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  /* Color is set via inline PHP */
}

.cgm-duo-intro h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--cgm-text-color);
}

.cgm-duo-intro p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
}

/* --- OUTRO SECTION --- */
.cgm-duo-outro {
  text-align: center;
  max-width: 800px;
  margin: 50px auto 0 auto;
}

.cgm-duo-outro p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
}

/* --- THE CARDS --- */
.cgm-duo-wrapper {
  display: flex;
  width: 100%;
  overflow: hidden;
  font-size: 16px;
  border-radius: 20px;
  position: relative;
  color: var(--cgm-text-color);
  height: var(--cgm-height);
}

.cgm-duo-panel {
  flex: 1;
  position: relative;
  transition: flex 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  background-color: var(--panel-bg);
  text-align: center;
}

.cgm-duo-wrapper:hover .cgm-duo-panel {
  flex: 0.8;
  opacity: 0.8;
}

.cgm-duo-wrapper .cgm-duo-panel:hover {
  flex: 1.5;
  opacity: 1;
  cursor: pointer;
}

/* --- IMAGE STYLES --- */
.cgm-duo-bg-image {
  position: relative !important;
  display: block !important;
  width: 180px !important;
  height: 180px !important;
  max-width: 180px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.5);
  margin-bottom: 25px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease;
}

.cgm-duo-panel:hover .cgm-duo-bg-image {
  transform: scale(1.05);
}

/* Text Content */
.cgm-duo-content {
  position: relative;
  z-index: 2;
  max-width: 480px;
  width: 100%;
}

.cgm-duo-role {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.7;
  margin-bottom: 10px;
  display: block;
  font-weight: 600;
}

.cgm-duo-name {
  font-size: 2.5rem;
  margin: 0 0 10px;
  line-height: 1.1;
}

/* Bio Logic */
.cgm-duo-bio {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.6s ease;
  line-height: 1.6;
  font-size: 1rem;
  padding-top: 0;
}

.cgm-duo-panel:hover .cgm-duo-bio {
  max-height: 400px;
  opacity: 1;
  padding-top: 15px;
}

/* --- BUTTON STYLES --- */
.cgm-duo-wrapper .cgm-duo-panel .cgm-duo-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background-color: var(--btn-bg) !important;
  color: var(--btn-color) !important;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  border: none !important;
}

.cgm-duo-wrapper .cgm-duo-panel .cgm-duo-btn:hover {
  background-color: var(--btn-bg-hover) !important;
  color: var(--btn-color-hover) !important;
  opacity: 1 !important;
}

.cgm-duo-panel:hover .cgm-duo-btn {
  opacity: 1;
  transform: translateY(0);
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 900px) {
  .cgm-duo-intro h2 {
    font-size: 2rem;
  }
  .cgm-duo-wrapper {
    flex-direction: column;
    height: auto !important;
  }
  .cgm-duo-panel {
    flex: none;
    width: 100%;
    padding: 60px 20px;
  }
  .cgm-duo-wrapper:hover .cgm-duo-panel {
    flex: none;
    opacity: 1;
  }

  .cgm-duo-bio,
  .cgm-duo-btn {
    max-height: none;
    opacity: 1;
    transform: none;
    padding-top: 15px;
  }
}
