/* =====================================================
   Campaign Cabinet – Styles
   File: campaign-cabinet.css
   ===================================================== */

/* ---------- Section ---------- */
.cabinet-section {
  /*background-color: #f0f2f5;*/
  padding: 60px 40px;
  font-family: Arial, Helvetica, sans-serif;
}

/* ---------- Header ---------- */
.cabinet-header {
  text-align: center;
  margin-bottom: 48px;
}

.cabinet-title {
  font-size: 28px;
  font-weight: 800;
  color: #1a3a5c;
  margin-bottom: 10px;
}

.cabinet-subtitle {
  font-size: 15px;
  color: #666666;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ---------- Grid ---------- */
.cabinet-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1300px;
  margin: 0 auto;
}

/* ---------- Card ---------- */
.cabinet-card {
  background: #f4f4f4;
  border-radius: 14px;
  padding: 28px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow-primary);
}

.cabinet-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

/* ---------- Avatar circle ---------- */
.cabinet-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  overflow: hidden;
  background-color: #edf2f7;
  flex-shrink: 0;
}

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

.cabinet-initials {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark-blue);
  letter-spacing: 1px;
}

/* ---------- Name ---------- */
.cabinet-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark-blue);
  line-height: 1.4;
  margin-bottom: 8px;
}

/* ---------- Read Bio link ---------- */
.cabinet-read-bio {
  font-size: 13px;
  color: #c0392b;
  font-weight: 600;
}

/* =====================================================
   Bio Modal
   ===================================================== */
.cabinet-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.cabinet-modal-overlay.is-open {
  display: flex;
}

.cabinet-modal {
  background: #ffffff;
  border-radius: 14px;
  padding: 40px 44px;
  max-width: 520px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

.cabinet-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: 1px solid #cccccc;
  border-radius: 6px;
  font-size: 18px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cabinet-modal-close:hover {
  background: #f5f5f5;
}

.cabinet-modal-name {
  font-size: 22px;
  font-weight: 800;
  color: #1a3a5c;
  margin-bottom: 4px;
}

.cabinet-modal-role {
  font-size: 14px;
  color: #666666;
  margin-bottom: 20px;
}

.cabinet-modal-photo-wrap {
  justify-content: center;
  margin-bottom: 20px;
}

.cabinet-modal-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #1a3a5c;
}

.cabinet-modal-bio {
  font-size: 14px;
  line-height: 1.8;
  color: #444444;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cabinet-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .cabinet-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cabinet-modal {
    padding: 28px 24px;
  }
}
