/* ============================================
   about.css — 關於本會 專屬樣式
   ============================================ */

/* ============================================
   SECTION HEADING（D icon）
   ============================================ */
.section-heading {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  letter-spacing: .075rem;
}
.section-heading::before {
  content: '';
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  background: linear-gradient(129.81deg, #ED4EE9 10.1%, #6A37D4 100%);
  -webkit-mask: url('../images/icon-title.svg') center / contain no-repeat;
  mask: url('../images/icon-title.svg') center / contain no-repeat;
  flex-shrink: 0;
}
.location-sections {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.page-location .section-heading {
  color: var(--primary-color);
}
.page-location .section-heading::before {
  background: url('../images/icon-title.svg') center / contain no-repeat;
  -webkit-mask: none;
  mask: none;
}
@media (min-width: 992px) {
  .location-sections { gap: 4rem; }
  .section-heading { font-size: 1.5rem; margin-bottom: 1.5rem; }
}

/* ============================================
   ABOUT CONTENT（關於本會 區段內容）
   ============================================ */
.content-wrapper section {
  padding: 1.3rem 0;
  position: relative;
}
.content-wrapper section p,
.content-wrapper section li {
  font-size: 1rem;
  color: var(--text-base);
  line-height: 1.9;
}

.page-content p:not(.org-accordion__panel p):not(.chairman-bio__role) { text-align: justify; }

/* Numbered list */
.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.about-list__item {
  display: flex;
  gap: .2rem;
  line-height: 1.8;
}
.about-list__num {
  font-weight: 400;
  flex-shrink: 0;
  min-width: 2.25rem;
  letter-spacing: .1rem;
}

/* Border-left 引用 */
/* --- 修改區塊 --- */
.about-quote,
.chairman-bio__section-body,
.location-section__body {
  border-left: 2px solid;
  border-image: var(--gradient-border) 1;
  padding-left: 1.5rem;
  margin-left: .4rem;
}
.about-quote {
  line-height: 1.9;
  color: var(--text-base);
  text-align: justify;
}

@media (min-width: 992px) {
  .content-wrapper section { padding: 2rem 3rem; }
  .about-list__item { gap: .75rem; }
}

/* ============================================
   LOCATION MAP
   ============================================ */
.location-map-section { border-bottom: none !important; }
.location-map {
  width: 100%;
  aspect-ratio: 8 / 9;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(106, 55, 212, .12);
}
@media (min-width: 992px) {
  .location-map { aspect-ratio: 16 / 9; }
}
.location-map iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================
   ORG CHART
   ============================================ */
.org-chart {
  width: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
@media (min-width: 992px) {
  .org-chart { max-width: 850px; margin: 0 auto 60px; }
}
.org-chart img {
  width: 100%;
  height: auto;
  display: block;
}
.org-note {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ============================================
   ACCORDION
   ============================================ */
.org-accordion-section { border-bottom: none !important; }
.org-accordion {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.org-accordion__item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(106, 55, 212, .08);
}

.org-accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.5rem;
  background: var(--white);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  gap: 1rem;
}
.org-accordion__trigger:hover {
  background: #fff;
}
.org-accordion__trigger[aria-expanded="true"] {
  background: var(--primary-color);
}

.org-accordion__title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  text-align: left;
}
.org-accordion__trigger[aria-expanded="true"] .org-accordion__title {
  color: var(--white);
  font-weight: 600;
}

.org-accordion__icon {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-muted);
  flex-shrink: 0;
  line-height: 1;
  transition: color var(--transition);
}
.org-accordion__trigger[aria-expanded="true"] .org-accordion__icon {
  color: var(--white);
}

.org-accordion__panel {
  background: var(--white);
  padding: 1.5rem;
  max-height: 640px;
  overflow: auto;
}
@media (min-width: 992px) {
  .org-accordion__trigger:hover { background: #fff; }
  .org-accordion__trigger[aria-expanded="true"]:hover { background: var(--primary-color); }
  .org-accordion__panel { overflow: auto; max-height: 700px; }
}
.org-accordion__panel[hidden] { display: none; }

/* ============================================
   CHAIRMAN BIO（理事長簡介頁）
   ============================================ */
.chairman-bio {
  padding: 3rem 0;
}

.chairman-bio__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .chairman-bio__header {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
  }
}

.chairman-bio__info {
  flex: 1;
  order: 1;
}
.chairman-bio__photo-wrap {
  order: 0;
}
@media (min-width: 768px) {
  .chairman-bio__info,
  .chairman-bio__photo-wrap {
    order: unset;
  }
}

.content-wrapper .chairman-bio__role {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 2px;
  margin-bottom: .5rem;
  text-align: center;
}
@media (min-width: 768px) {
  .content-wrapper .chairman-bio__role { font-size: 1.7rem; text-align: left; }
}

.chairman-bio__name {
  font-size: clamp(2.5rem, 6vw, 3rem);
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: .1em;
  line-height: 1.1;
}

.chairman-bio__photo-wrap {
  width: 450px;
  height: 450px;
  flex-shrink: 0;
  background: url('../images/about/chairman-bio.png') center / contain no-repeat;
  position: relative;
}
@media (min-width: 768px) {
  .chairman-bio__photo-wrap {
    width: 675px;
    height: 675px;
    position: absolute;
    right: -5rem;
    top: -4rem;
  }
}

.chairman-bio__photo {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  background: #f2f2f2;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
@media (min-width: 768px) {
  .chairman-bio__photo {
    width: 360px;
    height: 360px;
  }
}

.chairman-bio__sections {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 4rem;
}
@media (min-width: 768px) {
  .chairman-bio__sections { margin-top: 10rem; gap: 4rem; }
  .chairman-bio__section-title { font-size: 2rem; margin-bottom: 1.5rem; }
}

.chairman-bio__section-title {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  letter-spacing: .075rem;
}
.chairman-bio__section-title::before {
  content: '';
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  background: url('../images/icon-title.svg') center / contain no-repeat;
  flex-shrink: 0;
}

.chairman-bio__section-body {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding-left: 1.35rem;
  margin-left: .4rem;
}
.chairman-bio__section-body p {
  font-size: .9375rem;
  color: var(--text-base);
  line-height: 1.9;
}

.chairman-bio__exp-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.chairman-bio__exp-list li {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.7;
}

.chairman-bio__exp-desc {
  margin-top: 1.25rem;
}

/* ============================================
   ORG CHAIR（主委 bio）
   ============================================ */
.org-chair {
  padding: 2.5rem 1.25rem;
  margin-bottom: 1.5rem;
}

.org-chair__header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.org-chair__label {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  letter-spacing: 2px;
  margin-bottom: .5rem;
}
.org-chair .org-chair__name {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: .375rem;
}
.org-chair .org-chair__title {
  font-size: .9375rem;
  color: var(--text-base);
  line-height: 1.6;
}

.org-chair__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .org-chair__body {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
    width: 55%;
    margin: 0 auto;
  }
}

.org-chair__photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #f2f2f2;
}
.org-chair__details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .875rem;
}
.org-chair .org-chair__section-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .375rem;
}
.org-chair__section-title::before {
  content: '';
  display: inline-block;
  width: .875rem;
  height: .875rem;
  background: #111;
  -webkit-mask: url('../images/icon-title.svg') center / contain no-repeat;
  mask: url('../images/icon-title.svg') center / contain no-repeat;
  flex-shrink: 0;
}
.org-chair__section-body {
  margin-left: .4rem;
  border-left: 2px solid #888;
  padding-left: .875rem;
  font-size: .9rem;
  color: var(--text-base);
  line-height: 1.9;
}
.org-chair__exp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-left: .4rem;
}

.org-divider {
  height: 1px;
  background: rgba(104, 63, 206, .15);
  margin: 1.25rem 0;
}

.org-accordion__panel .org-roster-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: .75rem;
  text-align: center;
}

/* ============================================
   ORG MEMBER CARDS（手機版）
   ============================================ */
.org-table-wrap { display: none; }
.org-member-list { display: block; }
@media (min-width: 768px) {
  .org-table-wrap { display: block; }
  .org-member-list { display: none; }
}

.org-member-card {
  padding: .875rem .75rem;
}
.org-member-card:nth-child(odd)  { background: #fff; }
.org-member-card:nth-child(even) { background: var(--color-light-purple); }
.org-member-card__header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .25rem;
}
.org-member-card__name { font-size: 1rem; font-weight: 700; color: var(--text-dark); }
/* --- 修改區塊 --- */
.org-member-card__role,
.org-member-card__company,
.org-member-card__title   { font-size: .875rem; color: var(--text-base); }
.org-member-card__company { line-height: 1.5; }
.org-member-card:not(:last-child) { border-bottom: 1px solid #eee; }

/* ============================================
   ORG TABLE
   ============================================ */
.org-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.org-table-wrap--spaced { margin-top: 1.5rem; }
.org-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.org-table th,
.org-table td {
  padding: .75rem 1rem;
  text-align: center;
  font-size: .9375rem;
  letter-spacing: .1em;
  border-bottom: 1px solid rgba(106, 55, 212, .08);
  position: relative;
}
.org-table th:not(:last-child)::after,
.org-table td:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 30%;
  height: 40%;
  width: 1px;
  background: var(--primary-color);
}
.org-table th:not(:last-child)::after { background: #888; }
.org-table thead tr { background: #D5CEF3; }
.org-table th:first-child { border-radius: 10px 0 0 0; }
.org-table th:last-child  { border-radius: 0 10px 0 0; }
.org-table tbody tr:nth-child(even) { background: #EEEAF3; }
.org-table th { font-weight: normal; color: var(--text-dark); }
.org-table td { color: var(--text-base); }
.org-table td:nth-child(3),
.org-table td:nth-child(4) { text-align: left; padding-left: 2rem; }
.org-table tbody tr:last-child td { border-bottom: none; }
.org-table tbody tr:last-child td:first-child { border-radius: 0 0 0 10px; }
.org-table tbody tr:last-child td:last-child  { border-radius: 0 0 10px 0; }

/* ============================================
   CHRONICLE（大事記）列表
   ============================================ */
.chronicle-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.chronicle-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}
.chronicle-item__date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-light-purple);
  padding: .75rem 1.25rem;
  border-bottom: 3px solid var(--primary-color);
}
.chronicle-item__year {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-dark);
  font-family: 'Montserrat', sans-serif;
  line-height: 1;
}
.chronicle-item__day {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: 1px;
  font-family: 'Montserrat', sans-serif;
  line-height: 1;
}
.chronicle-item__body {
  padding: 1rem 1.25rem;
}
.chronicle-item__text {
  font-size: 1.125rem;
  color: var(--text-dark);
  line-height: 1.7;
  letter-spacing: .075rem;
}

@media (min-width: 768px) {
  .chronicle-item {
    display: flex;
    flex-direction: row;
    align-items: stretch;
  }
  .chronicle-item__date {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 1.25rem 1.5rem;
    gap: .5rem;
    border-bottom: none;
    border-right: 3px solid var(--primary-color);
  }
  .chronicle-item__day {
    font-size: 1.3125rem;
    text-align: center;
  }
  .chronicle-item__body {
    flex: 1;
    padding: 2.5rem 2rem;
    display: flex;
    align-items: center;
  }
}
