/**
 * Our Team - expandable member cards (about.html)
 * ---------------------------------------------------------------------------
 * Added for the "Our Team" section. Everything here is scoped under
 * .cg-team-section / .cg-team-accordion so it cannot affect any other part of
 * the site. The open/close behaviour reuses the theme's own accordion handler
 * in assets/js/script.js - no extra JavaScript is loaded.
 */

.cg-team-section {
  position: relative;
  padding-bottom: 120px;
  background: #FAF7FF;
  padding-top: 110px;
  overflow: hidden;
}

/* Soft brand glow behind the section, purely decorative. */
.cg-team-section:before {
  position: absolute;
  content: '';
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102, 0, 255, 0.10) 0%, rgba(102, 0, 255, 0) 70%);
  left: -240px;
  top: -200px;
  pointer-events: none;
}

.cg-team-section:after {
  position: absolute;
  content: '';
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 190, 255, 0.10) 0%, rgba(0, 190, 255, 0) 70%);
  right: -220px;
  bottom: -180px;
  pointer-events: none;
}

.cg-team-section .auto-container {
  position: relative;
  z-index: 1;
}

/** left column **/

.cg-team-intro {
  position: relative;
  display: block;
  padding-right: 40px;
}

.cg-team-intro .sub-title {
  position: relative;
  display: inline-block;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--theme-color);
  background: #EFE6FF;
  border-radius: 40px;
  padding: 8px 18px;
  margin-bottom: 20px;
}

.cg-team-intro h2 {
  display: block;
  font-size: 40px;
  line-height: 50px;
  font-weight: 600;
  margin-bottom: 20px;
}

.cg-team-intro h2 span {
  color: var(--theme-color);
}

.cg-team-intro p {
  margin-bottom: 30px;
}

.cg-team-intro .cg-team-points {
  position: relative;
  display: block;
}

.cg-team-intro .cg-team-points li {
  position: relative;
  display: block;
  font-size: 16px;
  line-height: 26px;
  color: var(--title-color);
  padding-left: 34px;
  margin-bottom: 14px;
}

.cg-team-intro .cg-team-points li:last-child {
  margin-bottom: 0;
}

.cg-team-intro .cg-team-points li:before {
  position: absolute;
  content: '';
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--theme-color);
  /* Tick drawn with a mask so it needs no icon font and no extra request. */
  -webkit-mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px 13px no-repeat,
          linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
          mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px 13px no-repeat,
               linear-gradient(#000, #000);
          mask-composite: exclude;
}

/** right column - the member cards **/

.cg-team-accordion {
  position: relative;
  display: block;
}

.cg-team-accordion .accordion {
  background: #fff;
  border: 1px solid #ECE4FB;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 10px 40px rgba(37, 0, 92, 0.05);
  transition: box-shadow 400ms ease, border-color 400ms ease;
  overflow: hidden;
}

.cg-team-accordion .accordion:last-child {
  margin-bottom: 0;
}

.cg-team-accordion .accordion:hover,
.cg-team-accordion .accordion.active-block {
  border-color: #D9C6FF;
  box-shadow: 0 18px 50px rgba(37, 0, 92, 0.10);
}

/* Header row: avatar + name/role, with room on the right for the +/- button. */
.cg-team-accordion .accordion .acc-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 76px 22px 22px;
  cursor: pointer;
}

.cg-team-accordion .accordion .acc-btn .cg-avatar {
  position: relative;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--theme-color);
}

.cg-team-accordion .accordion .acc-btn .cg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cg-team-accordion .accordion .acc-btn .cg-name {
  position: relative;
  min-width: 0;
}

.cg-team-accordion .accordion .acc-btn h4 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--title-color);
  transition: color 300ms ease;
}

.cg-team-accordion .accordion .acc-btn.active h4,
.cg-team-accordion .accordion .acc-btn:hover h4 {
  color: var(--theme-color);
}

.cg-team-accordion .accordion .acc-btn .cg-role {
  display: block;
  font-size: 15px;
  line-height: 22px;
  color: #6E6B7B;
}

/* The +/- toggle. Defined in full here rather than inheriting from faq.css,
   because about.html does not load that stylesheet - relying on it would leave
   an unpositioned, un-glyphed square sitting next to the member's name.
   The glyphs come from the theme's icomoon font (loaded via flaticon.css):
   \e904 is the plus, \e905 the minus. */
.cg-team-accordion .accordion .acc-btn .icon-box {
  position: absolute;
  display: inline-block;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  line-height: 32px;
  text-align: center;
  font-size: 13px;
  border: 1px solid #D9C6FF;
  border-radius: 50%;
  background: #fff;
  color: var(--theme-color);
  transition: all 300ms ease;
}

.cg-team-accordion .accordion .acc-btn .icon-box:before {
  position: absolute;
  content: '\e904';
  font-family: 'icomoon';
  font-weight: 400;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  line-height: 32px;
}

.cg-team-accordion .accordion .acc-btn.active .icon-box:before {
  content: '\e905';
}

/* The theme sets `color:#fff` on the open state but no background, which would
   leave a white glyph on a white circle. Give it the brand fill. */
.cg-team-accordion .accordion .acc-btn.active .icon-box {
  background: var(--theme-color);
  border-color: var(--theme-color);
  color: #fff;
}

/* Closed by default. Once a card is clicked, jQuery's slideUp/slideDown writes
   an inline display value that takes over from here - which is what we want. */
.cg-team-accordion .accordion .acc-content {
  display: none;
  padding: 0 24px 26px 24px;
}

.cg-team-accordion .accordion.active-block .acc-content {
  display: block;
}

.cg-team-accordion .accordion .acc-content .cg-divider {
  height: 1px;
  background: #F0EAFB;
  margin-bottom: 22px;
}

.cg-team-accordion .cg-detail-list {
  position: relative;
  display: block;
}

.cg-team-accordion .cg-detail-list li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.cg-team-accordion .cg-detail-list li:last-child {
  margin-bottom: 0;
}

.cg-team-accordion .cg-detail-list li .cg-ico {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #F3EDFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cg-team-accordion .cg-detail-list li .cg-ico svg {
  width: 18px;
  height: 18px;
  stroke: var(--theme-color);
}

.cg-team-accordion .cg-detail-list li .cg-text {
  min-width: 0;
}

.cg-team-accordion .cg-detail-list li .cg-label {
  display: block;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #8A8699;
  margin-bottom: 2px;
}

.cg-team-accordion .cg-detail-list li .cg-value {
  display: block;
  font-size: 16px;
  line-height: 25px;
  font-weight: 500;
  color: var(--title-color);
}

.cg-team-section .cg-tag {
  display: inline-block;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--theme-color);
  background: #F3EDFF;
  border-radius: 40px;
  padding: 6px 15px;
  margin-top: 20px;
}

/** rtl-css **/

.rtl .cg-team-intro {
  padding-right: 0;
  padding-left: 40px;
}

.rtl .cg-team-intro .cg-team-points li {
  padding-left: 0;
  padding-right: 34px;
}

.rtl .cg-team-intro .cg-team-points li:before {
  left: auto;
  right: 0;
}

.rtl .cg-team-accordion .accordion .acc-btn {
  padding: 22px 22px 22px 76px;
}

.rtl .cg-team-accordion .accordion .acc-btn .icon-box {
  right: auto;
  left: 24px;
}

/** responsive-css **/

@media only screen and (max-width: 1200px) {
  .cg-team-intro h2 {
    font-size: 34px;
    line-height: 44px;
  }
}

@media only screen and (max-width: 991px) {
  .cg-team-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .cg-team-intro {
    padding-right: 0;
    margin-bottom: 45px;
  }

  .rtl .cg-team-intro {
    padding-left: 0;
  }
}

@media only screen and (max-width: 767px) {
  .cg-team-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .cg-team-intro h2 {
    font-size: 30px;
    line-height: 40px;
  }
}

@media only screen and (max-width: 599px) {
  .cg-team-accordion .accordion .acc-btn {
    gap: 14px;
    padding: 18px 62px 18px 16px;
  }

  .cg-team-accordion .accordion .acc-btn .cg-avatar {
    width: 52px;
    height: 52px;
    border-radius: 13px;
  }

  .cg-team-accordion .accordion .acc-btn h4 {
    font-size: 18px;
    line-height: 25px;
  }

  .cg-team-accordion .accordion .acc-btn .icon-box {
    right: 16px;
  }

  .cg-team-accordion .accordion .acc-content {
    padding: 0 16px 22px 16px;
  }
}
