/* =====================================================================
   GMTW Company + Manager Accordion — styles
   Drop this into your theme's custom CSS (Divi > Theme Options > Custom CSS,
   or enqueue as a separate stylesheet). Class names are prefixed "gmtw-"
   to avoid collisions with existing site styles.
===================================================================== */

.gmtw-panel-shell{
  --gmtw-bg-card: #ffffff;
  --gmtw-text-primary: #1f2125;
  --gmtw-text-secondary: #8b8d92;
  --gmtw-accent-gold: #DB0A10;
  --gmtw-badge-blue-bg: #dce6fb;
  --gmtw-badge-blue-text: #2f5fdc;
  --gmtw-badge-green-bg: #d9f0e2;
  --gmtw-badge-green-text: #1f8a55;
  --gmtw-badge-purple-bg: #e7e1fb;
  --gmtw-badge-purple-text: #5b3fcf;
  --gmtw-border-soft: #e8e4d9;
  --gmtw-shadow-card: 0 6px 20px rgba(31,33,37,0.06);
  --gmtw-shadow-row-active: 0 8px 24px rgba(31,33,37,0.08);
  --gmtw-radius-lg: 18px;
  --gmtw-radius-md: 14px;

  background: var(--gmtw-bg-card);
  border-radius: var(--gmtw-radius-lg);
  padding: 28px 32px 36px;
  box-shadow: var(--gmtw-shadow-card);
  color: var(--gmtw-text-primary);
}

.gmtw-panel-shell *{ box-sizing: border-box; }

.gmtw-list-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 0 16px 16px;
  border-bottom: 1px solid var(--gmtw-border-soft);
  margin-bottom: 6px;
}
.gmtw-list-header span{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gmtw-text-secondary);
  text-transform: uppercase;
}
.gmtw-list-header .gmtw-col-team{
  flex-shrink:0;
  /*width: 170px;*/
  text-align:left;
}

/* ---------------- Accordion item ---------------- */
.gmtw-item{
  border-radius: var(--gmtw-radius-md);
  overflow:hidden;
}
.gmtw-item + .gmtw-item{ margin-top: 4px; }

.gmtw-item.is-open{
  background: #ffffff;
  box-shadow: var(--gmtw-shadow-row-active);
}

.gmtw-row{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 18px 16px;
  background:none;
  border:none;
  text-align:left;
  cursor:pointer;
  font-family: inherit;
  transition: background-color .18s ease;
}
.gmtw-row:hover{ background: #fbfaf7; }
.gmtw-item.is-open .gmtw-row:hover{ background:none; }

.gmtw-row:focus-visible{
  outline: 2px solid var(--gmtw-accent-gold);
  outline-offset: 2px;
}

.gmtw-left{
  display:flex;
  align-items:flex-start;
  gap:18px;
  min-width:0;
}

.gmtw-rank{
  font-size: 15px;
  font-weight: 600;
  color: var(--gmtw-text-secondary);
  width: 24px;
  flex-shrink:0;
  padding-top: 12px;
}

.gmtw-badge{
  width: 100px;
  height: 56px;
  border-radius: var(--gmtw-radius-md);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink:0;
}
.gmtw-badge img{width: 100%}

/*.gmtw-badge.blue{ background: var(--gmtw-badge-blue-bg); color: var(--gmtw-badge-blue-text); }
.gmtw-badge.green{ background: var(--gmtw-badge-green-bg); color: var(--gmtw-badge-green-text); }
.gmtw-badge.purple{ background: var(--gmtw-badge-purple-bg); color: var(--gmtw-badge-purple-text); }
*/
.gmtw-meta{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding-top: 2px;
}
.gmtw-name{
  font-size: 19px;
  font-weight: 700;
  color: var(--gmtw-text-primary);
  line-height:1.2;
}
.gmtw-item.is-open .gmtw-name{ color: var(--gmtw-accent-gold); }
.gmtw-category{
  font-size: 14px;
  color: var(--gmtw-text-secondary);
}

.gmtw-right{
  display:flex;
  align-items:center;
  gap:14px;
  flex-shrink:0;
}

.gmtw-avatars{ display:flex; align-items:center; }
.gmtw-avatars img{
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit:cover;
  border: 2px solid #fff;
  margin-left: -10px;
  background:#eee;
}
.gmtw-avatars img:first-child{ margin-left:0; }

.gmtw-team-count{
  font-size: 14px;
  color: var(--gmtw-text-secondary);
  min-width: 14px;
}

.gmtw-chevron{
  width: 18px;
  height: 18px;
  flex-shrink:0;
  color: var(--gmtw-text-secondary);
  transition: transform .25s ease, color .18s ease;
}
.gmtw-item.is-open .gmtw-chevron{
  color: var(--gmtw-accent-gold);
  transform: rotate(90deg);
}

/* ---------------- Expanding panel (managers) ---------------- */
.gmtw-panel{
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.gmtw-panel-inner{
  padding: 4px 16px 24px;
}

.gmtw-eyebrow{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gmtw-text-secondary);
  text-transform: uppercase;
  margin: 8px 0 16px;
}

.gmtw-managers-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}


.gmtw-manager-card{
  display:flex;
  align-items:center;
    justify-content: space-between;
  gap:14px;
  background: #fafaf8;
  border: 1px solid var(--gmtw-border-soft);
  border-radius: var(--gmtw-radius-md);
  padding: 16px 18px;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.gmtw-manager-card:hover{
  box-shadow: var(--gmtw-shadow-card);
  transform: translateY(-2px);
  border-color: transparent;
}
.profile-manager-details{display: flex;align-items: center;gap:14px;}
.gmtw-badge-logo{width: 60px;}
.gmtw-badge-logo img{width: 100%;}

.gmtw-manager-photo{
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit:cover;
  flex-shrink:0;
  background:#eee;
}

.gmtw-manager-info{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.gmtw-manager-name{
  font-size: 16px;
  font-weight: 700;
  color: var(--gmtw-text-primary);
  line-height:1.25;
}
.gmtw-manager-title{ font-size: 13px; color: var(--gmtw-text-secondary); }
.gmtw-manager-duration{ font-size: 12px; color: var(--gmtw-text-secondary); opacity:0.85; }

.gmtw-no-managers{
  font-size: 14px;
  color: var(--gmtw-text-secondary);
  grid-column: 1 / -1;
}

/* ---------------- Pagination (kept from original, restyled to match) ---------------- */
.paginationlist{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  list-style:none;
  padding:0;
  margin: 28px 0 0;
}
.paginationlist li a{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gmtw-text-secondary, #8b8d92);
  text-decoration:none;
  transition: background-color .15s ease, color .15s ease;
}
.paginationlist li a:hover{ background: #f3f0e9; }
.paginationlist li a.active{
  background: var(--gmtw-accent-gold, #DB0A10);
  color: #fff;
}
.paginationlist li a img{ width:14px; height:14px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 720px){
  .gmtw-panel-shell{ padding: 22px 18px 28px; }
  .gmtw-team-count{ display:none; }
  .gmtw-name{ font-size: 17px; }
  .gmtw-badge{ width:46px; height:46px; font-size:14px; }
  .gmtw-managers-grid{ grid-template-columns: 1fr; }
}
