/*!
 * mcf-team.css — 團隊區塊前台樣式
 *
 * 來源：主題 mao-elementor-theme_release/assets/css/mainV1.css（?ver=6.8.1，2026-11-24 由 staging 首頁載入位址取得）
 * 原則：只搬「團隊區塊會用到」的規則，選擇器與數值原封不動，不改寫、不合併。
 *       改寫任何一條，就等於自己重畫外觀，破壞 N-263「外觀及彈窗顯示效果必須保持原樣」。
 * 未搬：header／nav／hero／mission／back-to-top 等與團隊區塊無關的段落。
 */

/* Layout Helpers：容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Sections & Cards */
.grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	grid-auto-rows: min-content;
	gap: 24px;
}
.card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}
.card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.card p {
  font-size: 16px;
  color: #4b5563;
}
.card a {
  color: #2563eb;
  text-decoration: none;
}
.card a:hover {
  text-decoration: underline;
}
.card.clickable {
  cursor: pointer;
  transition: transform 0.2s;
}
.card.clickable:hover {
  transform: scale(1.05);
}

/* About & Bio Sections（團隊只用 .bio-container／.bio-content） */
.about-container,
.bio-container {
  max-width: 800px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 30px;
}
.about-content,
.bio-content {
  flex: 1;
}

/* Utilities：彈窗大頭照 */
.team-photo {
  width: 30%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: white;
  max-width: 800px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 20px;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.modal-content h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--primary-red);
}
.modal-content p {
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.8;
  text-align: justify;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary-red);
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  background: #7A1515;
}

/* Media Queries（只取團隊相關） */
@media (max-width: 768px) {
  .modal-content {
    max-width: 95%;
    font-size: 14px;
  }
  .team-photo {
    width: 50%;
  }
  .about-container,
  .bio-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .grid {
		grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .grid {
		grid-template-columns: 1fr;
  }
}
