:root {
  --sym-purple: #49308B;
  --sym-blue: #A8DAE6;
  --sym-grey: #6F6F6F;
  --sym-box: #EAE6E8;
  --sym-line: #24242414;
  --sym-icon-bg: #E1779529;
  /* ตาราง 2 สี (ชมพู/ม่วง) ใช้ทำขอบ Transportation / กรอบโรงแรมแนะนำ */
  --sym-checker: conic-gradient(var(--pink) 25%, var(--sym-purple) 0 50%, var(--pink) 0 75%, var(--sym-purple) 0) 0 0 / 16px 16px;
}

/* ===== Symposium archive (archive-symposium.php) ===== */

.sym-head {
  margin-bottom: 1.5rem;
}
.sym-title {
  font-size: 2rem;
  line-height: 1.25;
  color: var(--pink);
}
.sym-sub {
  margin-top: .5rem;
  font-size: 1rem;
  color: var(--sym-grey);
}
.sym-text {
  font-size: .875rem;
  line-height: 1.7;
  color: var(--sym-grey);
}
.btn-secondary-cust img {
  width: 16px;
  height: 16px;
}

/* ----- Logos ----- */
.sym-logos {
  padding: 1rem 0;
  background-color: var(--white);
  border-radius: 16px 16px 0 0;
  .container-md {
    gap: 12px;
  }
  img {
    width: auto;
    height: 40px;
  }
}

/* ----- Hero + แถบลายดาวสีเหลือง ----- */
.sym-divider {
  height: 48px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='%23E4E4E4'%3E%3Cpath d='M48 4l12 12-12 12-12-12z'/%3E%3Cpath d='M16 36l12 12-12 12-12-12z'/%3E%3C/g%3E%3Cg fill='%23FFCB05'%3E%3Cpath d='M16 2q2 12 14 14-12 2-14 14-2-12-14-14 12-2 14-14z'/%3E%3Cpath d='M48 34q2 12 14 14-12 2-14 14-2-12-14-14 12-2 14-14z'/%3E%3C/g%3E%3C/svg%3E") left center / auto 100% repeat-x var(--bg-body);
}

/* ----- Backed by organizations ----- */
.sym-orgs {
  padding: 2.5rem 0;
}
.sym-orgs-title {
  font-size: 1.5rem;
  line-height: 1.33;
}
.sym-orgs-sub {
  margin-top: .5rem;
  font-size: 1.125rem;
  color: var(--black-variant);
}
.sym-orgs-masc {
  width: 240px;
  max-width: 100%;
  height: auto;
  margin-top: 1.5rem;
}
/* มือถือ : โลโก้ + ปุ่มแถวบน, ชื่อ + รายละเอียดเต็มความกว้างแถวล่าง / md ขึ้นไป : โลโก้ | ข้อความ | ปุ่ม */
.sym-org {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "logo btn"
    "text text";
  align-items: center;
  gap: 1rem;
  padding: 1rem .75rem;
  & + & {
    border-top: 1px solid var(--sym-line);
  }
}
.sym-org-logo {
  grid-area: logo;
  img {
    width: auto;
    max-width: 160px;
    height: 56px;
    object-fit: contain;
    object-position: left center;
  }
}
.sym-org-text {
  grid-area: text;
  min-width: 0;
  color: var(--sym-grey);
  h3 {
    color: var(--black);
  }
}
.sym-org-btn {
  grid-area: btn;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #00000040;
  border-radius: 50%;
  background-color: var(--primary);
  transition: background-color var(--trans-2);
  &:hover {
    background-color: var(--btn-primary-hov);
  }
  &.is-disabled:hover {
    background-color: var(--primary);
  }
}

/* ----- Events within the expo (timeline) ----- */
.sym-events {
  position: relative;
  padding: 2.5rem .5rem;
  background-color: var(--sym-blue);
  border-radius: 16px 16px 0 0;
  background-image: url(../images/symposium/events_deco_l.webp), url(../images/symposium/events_deco_r.webp);
  background-repeat: no-repeat;
  background-position: left top 60px, right top 120px;
  background-size: 0, 0; /* แสดงเฉพาะจอ xl ขึ้นไป */
}
.sym-highlights {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-bottom: 2.5rem;
  li {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .875rem;
    color: var(--black-variant);
    text-align: center;
  }
  img {
    width: 56px;
    height: 56px;
    object-fit: contain;
  }
}

.sym-timeline {
  --sym-node: 48px;
  --sym-line-x: 24px; /* แกน x ของเส้น timeline */
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  &::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--sym-line-x) - 4px);
    width: 8px;
    border-radius: 8px;
    background: linear-gradient(var(--green), var(--deco-green));
  }
}
.sym-event {
  position: relative;
  padding-left: calc(var(--sym-line-x) * 2 + 8px);
}
.sym-event-node {
  position: absolute;
  top: 50%;
  left: calc(var(--sym-line-x) - var(--sym-node) / 2);
  width: var(--sym-node);
  height: var(--sym-node);
  transform: translateY(-50%);
  z-index: 1;
  svg {
    display: block;
    width: 100%;
    height: 100%;
  }
}
.sym-event-card {
  position: relative;
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--bg-body);
  border-radius: 8px;
  box-shadow: 0 2px 8px #0000001a;
  transition: box-shadow var(--trans-2), transform var(--trans-2);
  &:hover {
    box-shadow: 0 6px 16px #00000029;
    transform: translateY(-2px);
  }
}
.sym-event-body {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-width: 0;
}
.sym-event-title {
  font-size: 1.125rem;
  a {
    color: var(--black);
  }
}
.sym-event-desc {
  margin-top: .25rem;
  font-size: .875rem;
  color: var(--sym-grey);
}
.sym-event-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: auto;
  padding-top: 1rem;
}
.sym-event-date {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--black-variant);
}
.sym-event-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background-color: var(--sym-icon-bg);
}
.sym-event-more {
  display: inline-flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #00000040;
  border-radius: 50%;
  color: var(--black);
}
.sym-event-img {
  flex: 0 0 96px;
  img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 4px;
  }
}
.sym-empty {
  position: relative;
}
.sym-more {
  margin-top: 2.5rem;
}
.sym-more-btn[disabled] {
  opacity: .6;
  pointer-events: none;
}

/* ----- Venue ----- */
.sym-venue {
  padding: 2.5rem 0;
}
.sym-venue-title {
  font-size: 1.25rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}
.sym-venue-lotus {
  width: 240px;
  max-width: 100%;
  height: auto;
  margin-top: 1.5rem;
}
/* รูปแบบโพลารอยด์ซ้อนกัน 3 ใบ */
.sym-photos {
  position: relative;
  aspect-ratio: 628 / 400;
  max-width: 628px;
  margin: 0 auto;
}
.sym-photo {
  position: absolute;
  width: 48%;
  padding: 2%;
  background-color: var(--white);
  border-radius: 4px;
  box-shadow: 0 4px 12px #00000029;
  img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 290 / 230;
    object-fit: cover;
  }
}
.sym-photo-1 {
  top: 16%;
  left: 5%;
  transform: rotate(-8deg);
}
.sym-photo-2 {
  top: 11%;
  right: 1%;
  transform: rotate(6deg);
}
.sym-photo-3 {
  top: 36%;
  left: 29%;
  width: 46%;
  transform: rotate(4deg);
  z-index: 1;
}

/* ----- Transportation ----- */
.sym-transport {
  padding: 2.5rem 0;
}
.sym-transport-box {
  overflow: hidden;
  background-color: var(--sym-box);
  &::after {
    content: '';
    display: block;
    height: 16px;
    background: var(--sym-checker);
  }
}
.sym-transport-head {
  padding: 1rem;
  background-color: var(--sym-purple);
  .sym-title {
    color: var(--white);
  }
  .sym-sub {
    color: #FFFFFFCC;
  }
}
.sym-transport-body {
  padding: 1.5rem;
}
.sym-transport-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 8px;
}

/* ----- Guide Map ----- */
.sym-map {
  padding: 2.5rem 0;
}
.sym-map-bg {
  background: url(../images/symposium/map_pattern.webp) center / auto 100% repeat-x;
}
.sym-map-frame {
  max-width: 1120px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background-color: #F296C8;
  img {
    display: block;
    width: 100%;
    height: auto;
  }
}
.sym-map-desc {
  max-width: 1120px;
  margin: 1.5rem auto 0;
}

/* ----- Accommodation ----- */
.sym-stay {
  padding: 2.5rem 0 0;
}
.sym-featured {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: var(--sym-checker);
}
.sym-featured-img img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 628 / 400;
  object-fit: cover;
}
.sym-featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 1rem;
  background-color: var(--bg-body);
}
.sym-featured-title {
  font-size: 1.5rem;
  margin-bottom: .75rem;
}
.sym-hotels {
  margin-top: 1rem;
  > div + div .sym-hotel {
    border-top: 1px solid var(--sym-line);
  }
}
.sym-hotel {
  height: 100%;
  padding: 1.5rem 0;
  h3 {
    color: var(--black);
  }
}
.sym-hotel-img {
  width: 100%;
  height: auto;
  aspect-ratio: 378 / 200;
  object-fit: cover;
  border-radius: 8px;
}
.sym-nearby {
  margin-top: 1.5rem;
}
.sym-nearby-img {
  width: 100%;
  max-width: 480px;
  height: auto;
}

/* ===== Symposium detail (single-symposium.php) ===== */
.sym-breadcrumb {
  color: var(--black-variant);
  a {
    color: inherit;
    &:hover {
      color: var(--primary);
    }
  }
}
.sym-breadcrumb-current {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.sym-detail {
  padding: 2rem 0 0;
}
.sym-detail-head {
  margin-bottom: 1.5rem;
}
.sym-detail-content {
  max-width: 960px;
  margin: 0 auto;
  line-height: 1.7;
  color: var(--black-variant);
  img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
  }
}
.sym-detail-sec {
  margin-top: 2.5rem;
}
.sym-detail-sec-title {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--pink);
}
.sym-speakers {
  --sym-cols: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.sym-speaker {
  width: calc((100% - (var(--sym-cols) - 1) * 1rem) / var(--sym-cols));
  padding: 1.5rem 1rem;
  text-align: center;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 8px #0000001a;
}
.sym-speaker-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
}
.sym-speaker-name {
  font-size: 1.25rem;
}
.sym-speaker-position {
  margin-top: .25rem;
  color: var(--primary);
}
.sym-speaker-org {
  font-size: .875rem;
  color: var(--black-variant);
}
.sym-speaker-bio {
  margin-top: .75rem;
}
.sym-topics {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto;
}
.sym-topic {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  padding: 1.25rem;
  background-color: var(--white);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  box-shadow: 0 2px 8px #0000001a;
}
.sym-topic-title {
  font-size: 1.125rem;
}
.sym-topic-speakers {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  margin-top: .5rem;
  li {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .875rem;
  }
  img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
  }
}
.sym-topic-speaker-pos {
  font-size: .75rem;
  color: var(--sym-grey);
}
.sym-detail-back {
  margin-top: 2.5rem;
}

@media (min-width: 576px) {
  .sym-speakers {
    --sym-cols: 2;
  }
}

@media (min-width: 768px) {
  .sym-detail-sec-title {
    font-size: 2rem;
  }
  .sym-topic {
    padding: 1.5rem;
  }
  .sym-topic-title {
    font-size: 1.25rem;
  }
}

@media (min-width: 992px) {
  .sym-speakers {
    --sym-cols: 3;
  }
}

@media (min-width: 1200px) {
  .sym-speakers {
    --sym-cols: 4;
  }
}

@media (min-width: 768px) {
  .sym-title {
    font-size: 2.5rem;
  }
  .sym-sub {
    font-size: 1.25rem;
  }
  .sym-logos img {
    height: 48px;
  }
  .sym-divider {
    height: 64px;
  }
  .sym-orgs-title {
    font-size: 2rem;
  }
  .sym-orgs-sub {
    font-size: 1.5rem;
  }
  .sym-org {
    grid-template-columns: 140px 1fr auto;
    grid-template-areas: "logo text btn";
    padding: 1rem;
  }
  .sym-org-logo img {
    width: 140px;
    max-width: none;
    height: auto;
  }
  .sym-org-text {
    font-size: .875rem;
  }
  .sym-org-btn {
    width: 40px;
    height: 40px;
  }
  .sym-event-title {
    font-size: 1.5rem;
  }
  .sym-event-img {
    flex-basis: 136px;
    img {
      width: 136px;
      height: 136px;
    }
  }
  .sym-venue-title {
    font-size: 1.5rem;
  }
  .sym-transport-head {
    padding: 1.5rem;
  }
  .sym-transport-icon {
    width: 160px;
    height: 160px;
  }
  .sym-hotels {
    > div + div .sym-hotel {
      border-top: 0;
      border-left: 1px solid var(--sym-line);
    }
  }
  .sym-hotel {
    padding: 1.5rem;
  }
}

@media (min-width: 992px) {
  .sym-orgs-masc,
  .sym-venue-lotus {
    width: 310px;
  }
  .sym-featured {
    flex-direction: row;
  }
  .sym-featured-img,
  .sym-featured-body {
    flex: 1 1 50%;
  }
  .sym-featured-body {
    padding: 2rem 1.5rem;
  }
  .sym-featured-title {
    font-size: 2rem;
  }

  /* timeline 2 ฝั่ง : เส้นอยู่กลาง การ์ดสลับซ้าย/ขวาและซ้อนกันครึ่งใบ */
  .sym-timeline {
    --sym-line-x: 50%;
    gap: 0;
  }
  .sym-event {
    width: calc(50% - 36px);
    padding-left: 0;
    & + & {
      margin-top: -40px;
    }
    &:nth-child(even) {
      align-self: flex-end;
    }
  }
  .sym-event-node {
    left: calc(100% + 36px - var(--sym-node) / 2);
  }
  .sym-event:nth-child(even) .sym-event-node {
    left: auto;
    right: calc(100% + 36px - var(--sym-node) / 2);
  }
}

@media (min-width: 1200px) {
  .sym-logos {
    padding: 1rem 5rem;
  }
  .sym-events {
    padding: 5rem .5rem;
    background-size: 120px auto, 120px auto;
  }
  .sym-venue-title {
    padding: 0 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sym-event-card {
    transition: none;
    &:hover {
      transform: none;
    }
  }
}
