.single-page-container {
  padding: 24px 0;
}

.single-content > *:not(.wp-block-separator):not(.wp-block-table) {
  max-width: 800px;
  width: 100%;
}

.single-page-title-wrapper {
  display: flex;
  flex-direction: column;
}

.post-date {
  color: var(--surface300);
  margin-bottom: 32px;
}

.single-page-title {
  color: var(--surface700);
  margin-bottom: 16px;
}

.single-page-card-info {
  color: var(--surface700);
  margin-bottom: 16px;
}

.single-page-container p.single-page-card-info {
  margin-top: 0px;
}

.single-thumbnail {
  margin: 24px 0;
  max-width: 1000px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.single-thumbnail img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

.single-page-container .single-thumbnail p.single-thumbnail-caption {
  color: var(--surface300);
  margin-top: 12px;
  margin-bottom: 0px;
}

.single-page-container
  p:not(.single-page-card-info):not(.single-thumbnail-caption) {
  font-weight: 400;
  font-family: "Inter";
  line-height: 140%;
  font-size: 18px;
  color: var(--surface700);
  margin: 0px 0px 40px 0px;
}

.single-page-container a {
  color: var(--primary500);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 2px;
  transition: text-decoration-color 0.4s ease;
}

.single-page-container a:hover {
  text-decoration-color: var(--primary500);
}
/* Details container */
.single-page-container details {
  margin: 24px 0;
}
.single-page-container details:has(.wp-block-buttons) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--surface150);
  border-radius: 8px;
  padding: 24px;
  margin: 76px 0px 60px 0;
}
.single-page-container details:has(.wp-block-buttons) summary {
  margin-bottom: 0;
  color: var(--surface700);
  text-align: center;
}
.single-page-container details summary {
  pointer-events: none;
  text-transform: uppercase;
  color: var(--primary500);
  font-family: "Roboto";
  line-height: 110%;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 40px;
  display: block;
}
.single-page-container #cmplz-cookies-overview details summary {
  pointer-events: auto;
}
.single-page-container details summary::marker {
  content: "";
}
.single-page-container details summary::-webkit-details-marker {
  display: none;
}

.single-page-container details p + p {
  margin-top: 40px;
}

.single-page-container details > p {
  font-weight: 400;
  font-family: "Inter";
  line-height: 140%;
  font-size: 18px;
  color: var(--surface700);
}

.single-page-container details > ul,
.single-page-container details > ul li {
  list-style-type: disc;
}

.single-page-container details > ul {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

details > ul li {
  margin-left: 20px;
  font-weight: 400;
  font-family: "Inter";
  line-height: 140%;
  font-size: 18px;
  color: var(--surface700);
}

/* Button */
.wp-block-button a {
  background: var(--primary500);
  border-radius: 4px;
  padding: 14px 16px;
  color: var(--surface50);
  font-weight: 500;
  line-height: 110%;
  font-family: "Roboto";
  font-size: 16px;
  text-transform: uppercase;
  transition: background-color 0.4s ease;
}

.wp-block-button a:hover {
  background: var(--primary700);
  text-decoration-color: transparent;
}

/* Separator */
.wp-block-separator {
  border-top: 1px solid var(--surface200);
  display: block;
  height: 1px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 60px;
  margin-bottom: 60px;
}

/* Headings */
.single-page-container h1:not(.single-page-title),
.single-page-container h2:not(.single-page-title),
.single-page-container h3:not(.single-page-title),
.single-page-container h4:not(.single-page-title),
.single-page-container h5:not(.single-page-title),
.single-page-container h6:not(.single-page-title) {
  color: var(--surface700);
  font-family: "Roboto";
  font-weight: 600;
  margin: 16px 0;
}
.single-page-container h1:not(.single-page-title) {
  line-height: 120%;
  font-size: 36px;
}

.single-page-container h2:not(.single-page-title) {
  line-height: 120%;
  font-size: 26px;
}

.single-page-container h3:not(.single-page-title) {
  line-height: 120%;
  font-size: 20px;
}
.single-page-container h4:not(.single-page-title) {
  line-height: 140%;
  font-size: 24px;
}
.single-page-container h5:not(.single-page-title) {
  line-height: 140%;
  font-size: 20px;
}
.single-page-container h6:not(.single-page-title) {
  line-height: 150%;
  font-size: 18px;
}

/* Table */
.single-page-inner .wp-block-table {
  margin: 24px 0;
}
.single-page-inner .wp-block-table table {
  min-width: 1000px;
  width: 100%;
  border: 1px solid var(--surface150);
  border-radius: 8px;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
}

.single-page-inner .wp-block-table thead {
  color: var(--surface700);
  border-bottom: none;
}
.single-page-inner .wp-block-table thead tr {
  background: var(--surface150);
  font-family: "Inter";
  font-weight: 500;
  line-height: 140%;
  font-size: 14px;
}
.single-page-inner .wp-block-table table tbody tr:first-child {
  color: var(--surface700);
  background: var(--surface150);
  font-family: "Inter";
  font-weight: 500;
  line-height: 140%;
  font-size: 14px;
}

.single-page-inner .wp-block-table tbody tr {
  color: var(--surface700);
  font-family: "Inter";
  font-weight: 400;
  line-height: 140%;
  font-size: 14px;
}

.single-page-inner .wp-block-table th,
.single-page-inner .wp-block-table td {
  border: none;
  padding: 12px 30px;
  width: 100%;
  transition:
    padding 0.3s ease,
    height 0.3s ease;
}
.single-page-inner .wp-block-table tr:not(:last-child) td {
  border-bottom: 1px solid var(--surface150);
}

/* Single Event Page */
.single-event {
  padding: 24px 0;
}
.single-event-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* max-width: 1440px; */
  margin: auto;
}
.single-event-image {
  position: relative;
  height: 100%;
  width: 100%;
  aspect-ratio: 1440 / 600;
  max-height: 600px;
  max-width: 1920px;
  background-size: cover;
  background-position: center;
  margin: auto;
  z-index: 0;
}
.single-event-upper-section {
  display: flex;
  flex-direction: column;
  padding: 36px 0 80px;
}

.event-category {
  color: var(--primary500);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.event-title {
  color: var(--primary700);
  margin-bottom: 32px;
}

.single-event-meta {
  display: flex;
  flex-wrap: wrap;
  column-gap: 40px;
  row-gap: 16px;
}
.event-date-wrapper {
  display: flex;
  gap: 8px;
}
.event-date {
  color: var(--primary700);
  min-width: max-content;
}
.event-location {
  color: var(--surface300);
  width: fit-content;
}
.event-date-location-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.event-date-wrapper svg {
  color: var(--primary500);
  height: 20px;
  width: 20px;
  min-width: 20px;
}
.single-event-section {
  padding: 80px 0;
  /* max-width: 1440px; */
  margin: auto;
}
.single-event-section.event-content {
  background: var(--surface100);
}
.single-event-section.event-agenda {
  background: var(--primary500);
}
.single-event-section.event-speakers {
  background: var(--surface50);
}
.single-event-content {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 32px;
}

.single-event-section.event-content .event-caption,
.single-event-section.event-speakers .event-caption {
  color: var(--primary500);
}
.single-event-section.event-agenda .event-caption {
  color: var(--secondary500);
}
.event-caption {
  text-transform: uppercase;
}

.single-event-about {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.single-event-about > div {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.single-event-agenda {
  display: flex;
  flex-direction: column;
}
.signle-event-agenda-description {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.single-event-agenda-item {
  border-top: 1px solid var(--primary300);
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--surface50);
  padding: 40px 0;
}
.single-event-agenda-item:last-child {
  padding: 40px 0 0;
}

.single-event-speakers {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.single-event-speaker {
  display: flex;
  align-items: center;
  gap: 24px;
}

.single-event-speaker-image {
  height: 120px;
  width: 120px;
  min-width: 120px;
  border-radius: 8px;
  overflow: hidden;
}

.single-event-speaker-image img {
  object-fit: cover;
  object-position: center;
  height: 100%;
  width: 100%;
}

.single-event-speaker-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.single-event-speaker-name {
  color: var(--surface700);
}
.single-event-speaker-title {
  text-transform: uppercase;
  color: var(--primary500);
}
.single-event-speaker-description {
  color: var(--surface300);
}

/* Responsive */
@media (max-width: 768px) {
  .post-date {
    margin-bottom: 24px;
  }
  .single-thumbnail {
    margin: 16px 0;
  }

  /* Details container */
  .single-page-container details > p:not(.single-thumbnail-caption),
  .single-page-container details > ul li,
  .single-page-container p:not(.single-thumbnail-caption) {
    font-size: 16px;
  }

  .single-page-container details:has(.wp-block-buttons) {
    flex-direction: column;
  }

  /* Headings */
  .single-page-container h1:not(.single-page-title) {
    font-size: 30px;
  }

  .single-page-container h2:not(.single-page-title) {
    font-size: 22px;
  }

  .single-page-container h3:not(.single-page-title) {
    font-size: 18px;
  }
  .single-page-container h4:not(.single-page-title) {
    font-size: 20px;
  }
  .single-page-container h5:not(.single-page-title) {
    font-size: 18px;
  }
  .single-page-container h6:not(.single-page-title) {
    font-size: 16px;
  }

  /* Button */
  .single-page-container details:has(.wp-block-buttons) {
    align-items: unset;
    justify-content: center;
    margin: 40px 0;
  }
  .single-page-container .wp-block-buttons > .wp-block-button {
    width: 100%;
  }
  .single-page-container .wp-block-button a {
    font-size: 14px;
  }

  /* Single event page */
  .single-event-upper-section {
    padding: 24px 0 40px;
  }
  .single-event-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }
  .single-event-meta .event-date-wrapper:last-child {
    grid-column: span 2;
  }
  .single-event-section {
    padding: 60px 0;
  }
  .single-event-content {
    display: flex;
    flex-direction: column;
  }
  .single-event-about,
  .single-event-speakers {
    gap: 32px;
  }
  .single-event-agenda-item {
    padding: 32px 0;
  }
  .single-event-agenda-item:last-child {
    padding: 32px 0 0;
  }
  .single-event-speaker {
    flex-direction: column;
    align-items: unset;
  }
  .single-event-speaker-info {
    gap: 16px;
  }
}
