:root{
  /* === THEME: tweak these later === */
  --ev-primary:     #5d9e98;      /* teal vibe */
  --ev-primary-2: #54837fee;    /* grey-ish teal */
  --ev-bg: #fffffff5;
  --ev-surface: rgba(142, 159, 161, 0.08);      /* light teal-tinted surface */
  --ev-border: rgba(0,0,0,.10);
  --ev-text: #1e3b36;
  --ev-muted: rgba(11,31,35,.70);

  --ev-radius: 14px;
  --ev-maxw: 860px;
}

/* @media (prefers-color-scheme: dark){
  :root{
    --ev-bg: #0b1214;
    --ev-surface: #0f1b1e;
    --ev-border: rgba(255,255,255,.14);
    --ev-text: rgba(255,255,255,.92);
    --ev-muted: rgba(255,255,255,.70);
  }
} */

.ev-body{
  margin: 0;
  background: var(--ev-bg);
  color: var(--ev-text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
}

.ev-wrap{
  max-width: var(--ev-maxw);
  margin: 0 auto;
  padding: 0 18px;
}

/* Header */
.ev-header{
  background: var(--ev-bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.ev-header .ev-wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-bottom: 1px solid color-mix(in srgb, transparent, var(--ev-primary) 15%);
}

.ev-brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ev-text);
  font-weight: 700;
  letter-spacing: .2px;
}

.ev-mark{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffffff55, transparent 45%),
              linear-gradient(135deg, var(--ev-primary), var(--ev-primary-2));
  box-shadow: 0 0 0 2px rgba(0,0,0,.06);
}

.ev-nav{
  display: flex;
  gap: 14px;
}

.ev-nav a{
  text-decoration: none;
  color: var(--ev-primary-2);
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
}

.ev-nav a:hover{
  background: color-mix(in srgb, transparent, var(--ev-primary-2) 5%);
}

.ev-accent-line{
  height: 6px;
  background: var(--ev-primary);
  opacity: .95;
  box-shadow: 0 1px 0 rgba(0,0,0,.12) inset;
}

/* Main */
.ev-main{
  /* padding: 22px 0 40px 0; */
}

.ev-page-title{
  margin: 10px 0 16px 0;
  font-size: 34px;
  line-height: 1.15;
}

@media (max-width: 420px){
  .ev-page-title{ font-size: 30px; }
}

.ev-content{
  padding-top: 36px;
}

/* Links inside content */
.ev-content a{
  color: var(--ev-primary-2);
  text-underline-offset: 3px;
}

.ev-content a:visited{
  color: color-mix(in srgb, var(--ev-primary-2) 80%, var(--ev-muted) 20%);
}
.ev-content a:hover{
  color: var(--ev-primary);
  text-decoration: underline;
}

/* "Last updated" */
.last-updated{
  margin-top: 26px;
  font-size: .92em;
  opacity: .75;
  font-style: italic;
  font-weight: 200;
}

/* Timeline */
.timeline{
  position: relative;
  margin: 18px 0 8px 0;
  padding-left: 26px;
}

.timeline:before{
  content:"";
  position:absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: color-mix(in srgb, var(--ev-primary-2) 80%, transparent);
  box-shadow: 1px 2px 4px rgba(0,0,0,.15);
}

.timeline-item{
  position: relative;
  margin: 0 0 18px 0;
}

.timeline-marker{
  position:absolute;
  left: 2px;
  top: 18px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--ev-bg);
  border: 2px solid var(--ev-primary);
}

.timeline-content{
  position: relative;     /* Creates stacking context */
  overflow: clip;      /* Clip overflowing watermarks */
  margin-bottom: 28px;
  padding: 16px 16px 14px;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  background-color: var(--ev-surface);
  box-shadow: 1px 6px 12px rgba(0,0,0,.08);
  z-index: 0;             /* Create stacking context */
}

/* Base wrapper for all watermark layers */
.webinar-watermark {
  position: absolute;   /* Position it to fill the parent */
  inset: 0;             /* Top, right, bottom, left = 0 */
  pointer-events: none;
  z-index: -1;          /* Explicitly keep it in back */
  mask-image: radial-gradient(ellipse at center, 
    rgba(0,0,0,0.4) 50%,
    rgba(0,0,0,1) 70%
  );
}

.webinar-watermark img {
  position: absolute;
  height: auto;
  mix-blend-mode: multiply;
}

/* StatsUpAI Logo */
.webinar-logo-svg{
  right: 0%;            /* offset by container width */
  bottom: 0%;           /* offset by container height */
  width: 50%;           /* scale relative to container */
  transform: translate(10%, 25%);  /* shift by IMAGE width & height */
  opacity: .08;
}

/* Affiliation Logo */
.webinar-affiliation-svg {
  top: 0%;              /* offset by container width */
  left: 0%;             /* offset by container height */
  width: 50%;           /* scale relative to container */
  transform: translate(-10%, -25%);  /* shift by IMAGE width & height */
  opacity: .10;
}

/* Background pattern */
.webinar-bg-pattern-svg {
  left: 0%;
  bottom: 0%;
  width: 200%;
  transform: translate(-30%, 20%);
  opacity: .25;
}

@media (max-width: 520px){
  .webinar-logo-svg{
    width: 80%;
    transform: translate(10%, 20%);
  }
  .webinar-affiliation-svg {
    width: 100%;
    transform: translate(-15%, -10%);
  }
  .webinar-bg-pattern-svg {
    width: auto;
    transform: translate(0%, 0%);;
  }
}

/* Webinar Content */

/* circular speaker photo on the left of the title block */
.webinar-speaker-photo {
  float: inline-start;                 /* let text flow around the image */
  margin: 0.2em 0.5em 0 0;          /* space between photo and text */
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: clip;
  border: 2px solid color-mix(in srgb, var(--ev-muted) 40%, transparent);
  box-shadow: 1px 1px 4px color-mix(in srgb, var(--ev-primary-2) 60%, transparent);
}

.webinar-speaker-photo img {
  width: 110%;
  height: auto;
  object-fit: cover;
  transform: translate(0%, -5%);  /* center the image within the circle */
}

@media (max-width: 520px){
  .webinar-heading {
    grid-template-columns: auto 1fr;
    column-gap: 10px;
  }
}

.webinar-title{
  margin: 0 0 8px 0;
  font-size: 22px;
  line-height: 1.2;
  border-left: 4px solid var(--ev-primary-2);
  padding-left: 10px;
}

.webinar-meta{
  margin: 0 0 10px 0;
  color: var(--ev-muted);
  font-weight: 600;
  /* font-size: 0.98rem; */
}

.webinar-section {
  margin: 0;         /* no default top/bottom margin */
}

/* spacing only between sections */
.webinar-section + .webinar-section {
  margin-top: 8px;
}

.webinar-label {
  font-weight: 600;
  font-size: larger;
}

.webinar-section p{
  display: inline;
  margin: 0 0 10px 0;
}

.webinar-section p:last-child{
  margin-bottom: 0;
}

/* Speaker Bio Box */
/* bottom box: grey-ish */
.webinar-section.speaker-bio{
  color: color-mix(in srgb, var(--ev-text) 60%, var(--ev-primary-2) 40%);
  margin-top: 1em;
  margin-left: 0.2em;
  margin-bottom: 1.2em;
  position: relative;
  top: 0.5em;                             /* shift down */
  border-radius: calc(var(--ev-radius) / 3);
  border: color-mix(in srgb, var(--ev-primary-2) 20%, transparent) 1px solid;
  box-shadow: 1px 1px 8px rgba(0,0,0,.04);  /* x-offset, y-offset, blur-radius, color */
  padding: 0 1em 1.2em 0.2em;           /* top right bottom left */
  background: rgba(191, 191, 191, 0.24);
  z-index: 0;                             /* make sure this sits above ::before */
}

/* top box: white-ish, diagonally offset to top-left */
.webinar-section.speaker-bio::before{
  content: "";
  position: absolute;   /* absolutely positioned inside speaker-bio */
  top: -0.6em;          /* shift slightly upward */
  left: -0.8em;         /* shift slightly to the left */
  right: 0.6em;         /* inset a bit from the right edge */
  bottom: 0.5em;        /* inset a bit from the bottom edge */
  border: color-mix(in srgb, var(--ev-muted) 30%, transparent) 1px solid;
  border-radius: inherit;
  box-shadow: inherit;
  background: color-mix(in srgb, var(--ev-bg) 90%, transparent);
  z-index: -1;                         /* send this behind the main text */
}

.webinar-section.registration-button a{
  display: inline-block;
  margin-top: .3em;
  margin-left: -.4em;
  margin-bottom: -.3em;
  border: var(--ev-border) 2px solid;
  border-radius: calc(var(--ev-radius) * 2);
  background: var(--ev-primary-2);
  color: #ffffff;
  padding: 0.3em .8em 0.5em .8em; /* top right bottom left */
  font-weight: 600;
  font-style: italic;
  text-decoration: underline;
  box-shadow: 1px 2px 6px rgba(0,0,0,.20);
}

/* Footer */
.ev-footer{
  border-top: 1px solid var(--ev-border);
  padding: 0.5em 0;
  background: var(--ev-bg);
}

.ev-footer-row{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ev-muted);
  font-weight: 500;
  margin: 0 -1em;
}

@media (max-width: 520px){
  .ev-nav{ display:none; } /* keep it clean on mobile for now */
  .ev-footer-row{ 
    flex-direction: column; 
    text-align: right;
    gap: 1px;
    margin: -.5em -1em;
  }
}