/* Event details — purespot.org/eventdetails.php */

.page-event-detail .page-header {
  height: 220px;
  min-height: 200px;
  max-height: 38vh;
  padding-top: 0;
  align-items: center;
  background-image: url('../assets/img/thumb/about-us-3.png') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.page-event-detail .page-header:after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.page-event-detail .page-header .container {
  text-align: center;
}

.page-event-detail .page-header .container h2 {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  font-size: clamp(22px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 3rem;
  margin-bottom: 0;
}

.page-event-detail .page-header .container p {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 16px;
  margin-bottom: 0;
  opacity: 0.95;
}

.page-event-detail .page-header .container p a {
  color: #d39935;
}

.ps-event-detail {
  background: linear-gradient(180deg, #f7f3ec 0%, #ffffff 38%);
  padding: 28px 15px 40px;
  flex: 1 0 auto;
}

body:has(.page-event-detail) .footer {
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.ps-event-detail__wrap {
  max-width: 1140px;
  margin: 0 auto;
}

.ps-event-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: #6b5d4f;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ps-event-detail__back:hover {
  color: #d39935;
  text-decoration: none;
}

.ps-event-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.ps-event-detail__layout--solo {
  grid-template-columns: minmax(0, 1fr);
}

.ps-event-detail__below {
  margin-top: 28px;
}

.ps-event-detail__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

.ps-event-detail__gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid #e8dfd2;
  border-radius: 12px;
  overflow: hidden;
  background: #faf8f5;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ps-event-detail__gallery-item:hover {
  transform: translateY(-2px);
  border-color: #d39935;
  box-shadow: 0 10px 24px rgba(26, 20, 16, 0.1);
}

.ps-event-detail__gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.ps-event-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.9);
}

.ps-event-gallery-modal[hidden] {
  display: none !important;
}

.ps-event-gallery-modal__image {
  max-width: min(96vw, 1200px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.ps-event-gallery-modal__close {
  position: absolute;
  top: 18px;
  right: 24px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}

.ps-event-detail__card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ebe3d6;
  border-radius: 18px;
  overflow: visible;
  box-shadow: 0 16px 48px rgba(26, 20, 16, 0.1);
}

.ps-event-detail__hero {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1a1410;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
}

.ps-event-detail__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ps-event-detail__type {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1a1410;
  background: rgba(211, 153, 53, 0.95);
}

.ps-event-detail__type--webinar {
  color: #fff;
  background: rgba(36, 99, 168, 0.95);
}

.ps-event-detail__ended {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(198, 40, 40, 0.95);
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.35);
}

.ps-event-detail__date-pill {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #1a1410;
  background: rgba(255, 255, 255, 0.95);
}

.ps-event-detail__head {
  padding: 24px 28px 8px;
  border-bottom: 1px solid #f0e8dc;
}

.ps-event-detail__title {
  margin: 0;
  font-size: clamp(20px, 4.5vw, 28px);
  font-weight: 700;
  line-height: 1.4;
  color: #1a1410;
}

.ps-event-detail__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px 28px;
  border-bottom: 1px solid #f0e8dc;
}

.ps-event-detail__meta-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: #4a4038;
}

.ps-event-detail__meta-item i {
  width: 18px;
  margin-top: 2px;
  color: #d39935;
  flex-shrink: 0;
}

.ps-event-detail__meta-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9a8868;
}

.ps-event-detail__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 18px 28px 22px;
  border-top: 1px solid #f0e8dc;
}

.ps-event-detail__section {
  padding: 24px 28px;
  border-top: 1px solid #f0e8dc;
  flex: 1 1 auto;
}

.ps-event-detail__section h4 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a8868;
}

.ps-event-detail__summary {
  font-size: 16px;
  line-height: 1.75;
  color: #3d342c;
}

.ps-event-detail__summary img {
  display: none;
}

.ps-event-detail__summary p {
  margin-bottom: 1em;
}

.ps-event-detail__summary a {
  color: #9a6b12;
  font-weight: 600;
  word-break: break-word;
}

.ps-event-detail__summary a:hover {
  color: #d39935;
}

.ps-event-detail__banner {
  padding: 0 28px 24px;
}

.ps-event-detail__banner img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #ebe3d6;
}

.ps-event-detail__cta {
  padding: 0 28px 24px;
  text-align: center;
}

.ps-event-detail__cta .ps-event-detail__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: #1a1410;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 10px 24px rgba(26, 20, 16, 0.18);
}

.ps-event-detail__cta .ps-event-detail__btn:hover {
  background: #d39935;
  color: #1a1410;
  transform: translateY(-1px);
  text-decoration: none;
}

.ps-event-detail__summary ul,
.ps-event-detail__summary ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

.ps-event-detail__summary li {
  margin-bottom: 0.35em;
}

.ps-event-detail__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: auto;
  padding: 24px 28px 32px;
  border-top: 1px solid #f0e8dc;
  background: #faf8f5;
  border-radius: 0 0 17px 17px;
}

.ps-event-detail__action {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 104px;
  min-height: 96px;
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px solid #e8dfd2;
  background: #fff;
  color: #1a1410;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ps-event-detail__action i {
  font-size: 26px;
  color: #d39935;
  margin-bottom: 8px;
}

.ps-event-detail__action span {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}

.ps-event-detail__action:hover {
  border-color: #d39935;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 20, 16, 0.08);
  text-decoration: none;
  color: #1a1410;
}

.ps-event-detail__tags .ps-event-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #e8dfd2;
  background: #faf8f5;
  color: #5c5348;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ps-event-detail__tags .ps-event-tag:hover {
  border-color: #d39935;
  background: #fff8eb;
  color: #9a6b12;
  text-decoration: none;
  transform: translateY(-1px);
}

.ps-event-detail__tags .ps-event-tag--specialty {
  border-color: rgba(76, 120, 90, 0.35);
  background: #f3f8f4;
  color: #356447;
}

.ps-event-detail__tags .ps-event-tag--specialty:hover {
  border-color: #4c785a;
  background: #e8f2ea;
  color: #2a4f38;
}

.ps-event-detail__tags .ps-event-tag--type {
  border-color: rgba(211, 153, 53, 0.35);
  background: #fff6e8;
  color: #8a6418;
}

.ps-event-detail__tags .ps-event-tag--type:hover {
  background: #d39935;
  border-color: #d39935;
  color: #1a1410;
}

.ps-event-detail__sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ps-event-detail__panel {
  background: #fff;
  border: 1px solid #ebe3d6;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 12px 36px rgba(26, 20, 16, 0.08);
}

.ps-event-detail__panel h4 {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a8868;
}

.ps-event-detail__embed {
  position: relative;
  padding-top: max(60%, 324px);
  width: 100%;
  height: 0;
  border-radius: 12px;
  overflow: hidden;
}

.ps-event-detail__embed iframe {
  position: absolute;
  border: none;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}

@media (max-width: 991px) {
  .ps-event-detail__meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .page-event-detail .page-header {
    height: 190px;
  }

  .page-event-detail .page-header .container h2 {
    margin-top: 2.25rem;
    font-size: clamp(20px, 5vw, 28px);
  }

  .ps-event-detail__title {
    font-size: 22px;
  }

  .ps-event-detail__meta-item {
    font-size: 16px;
  }

  .ps-event-detail__meta-item strong {
    font-size: 13px;
  }

  .ps-event-detail__summary {
    font-size: 16px;
  }

  .ps-event-detail__head,
  .ps-event-detail__meta,
  .ps-event-detail__tags,
  .ps-event-detail__section,
  .ps-event-detail__banner,
  .ps-event-detail__cta,
  .ps-event-detail__actions {
    padding-left: 18px;
    padding-right: 18px;
  }

  .ps-event-detail__actions {
    justify-content: center;
  }
}
