/* max-session-template.css */

/* Show colours */
:root {
  --show-lunch: #3aae97 !important;
  --show-nrpbs: #992122 !important;
  --show-nofs: #abbb41 !important;
  --show-lunch-hover: #3aae9787 !important;
  --show-nrpbs-hover: #99212287 !important;
  --show-nofs-hover: #abbb4187 !important;
}

/* Map the session's show to the active colour (set via data-show on .session-meta-container) */
[data-show="lunch"] {
  --show-color: var(--show-lunch) !important;
  --show-color-hover: var(--show-lunch-hover) !important;
}
[data-show="nrpbs"] {
  --show-color: var(--show-nrpbs) !important;
  --show-color-hover: var(--show-nrpbs-hover) !important;
}
[data-show="nofs"] {
  --show-color: var(--show-nofs) !important;
  --show-color-hover: var(--show-nofs-hover) !important;
}

/* BACK TO PROGRAMME BUTTON */
.back-to-programme {
  text-align: center;
  margin-top: 80px;
  display: flex;
  justify-content: center;
}

.back-to-programme-button {
  background-color: #1b1d1f;
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.back-to-programme-button:hover {
  background-color: #2f3133;
}

/* Session styling */
.max-session-content {
  width: 100%; /* Ensure it takes up full width */
  max-width: 1200px; /* Limit the maximum width to 800px */
  margin: 0 auto; /* Center the content horizontally */
  padding: 20px; /* Add some padding for spacing */
  box-sizing: border-box; /* Ensure padding is included in the total width */
  margin-top: 20px;
  margin-bottom: 40px;
}

.max-session-content h1 {
  margin: 0;
  text-transform: uppercase !important;
}

.session-meta-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

/* Description Container (Left) */
.session-meta-main {
  flex: 2;
  min-width: 0;
}

/* Post Meta Details Container (Right) */
.session-meta-sidebar {
  flex: 1;
  min-width: 250px;
}

.session-widget {
  border-radius: 8px;
  background: white;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #e6e7e8;
  margin-bottom: 20px;
}

.session-widget > p {
  color: #555;
}

.session-widget-title {
  text-align: center;
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-weight: bold;
  position: relative;
  padding-bottom: 10px;
  border-bottom: 4px solid #ebebeb;
}

/* Cool Underline */
.session-widget-title::after {
  content: "";
  position: absolute;
  background: var(--show-color, var(--single-event-underline-color)) !important;
  left: 35%;
  right: 35%;
  bottom: -4px;
  height: 4px;
}

/* Add to Calendar buttons */
.max-event-export-events {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.max-event-export-events a {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  color: var(--show-color, #9a2026) !important;
  background: transparent !important;
  border: 2px solid var(--show-color, #9a2026) !important;
  border-radius: 5px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.max-event-export-events a:hover {
  background: var(--show-color, #9a2026) !important;
  color: #fff !important;
  text-decoration: none;
}

.speaker-item {
  margin-bottom: .25rem;
}

/* Speaker name and image styling */
.speaker-link {
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
  font-weight: bold;
  color: var(--show-color, #9a2026) !important;
  text-decoration: none;
}

.speaker-link:hover {
  color: var(--show-color-hover, var(--show-color, #9a2026)) !important;
  text-decoration: none;
}

.speaker-content {
  display: flex;
  gap: 10px;
  align-items: center;
}

.speaker-image {
  margin-right: 8px;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 50%; /* Make the image round */
  display: contents;
}

.speaker-image img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--show-color, #9a2026) !important;
}

.speaker-link:hover .speaker-image img {
  border: 1px solid var(--show-color-hover, var(--schedule-speaker-color-hover)) !important;
}

.speaker-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.speaker-name {
  font-weight: bold;
  font-size: 0.9em;
}

.speaker-job {
  font-size: 0.6em;
  color: #555;
  font-weight: 300;
}

/* Session Time Styling */
.max-session-content p {
  margin-bottom: 15px;
}

.max-session-content p strong {
  font-weight: bold;
  color: #444;
}

/* Session Description */
.session-description {
  margin-top: 20px;
  font-size: 1.1em;
  line-height: 1.6;
  color: #555;
}
