:root{
  /* === THEME: tweak these later === */
  --ev-primary:     #458580;      /* 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-muted);
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
}

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

.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);
  text-underline-offset: 3px;
}

.ev-content a:visited{
  color: var(--ev-primary);
}

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

/* 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) 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{
  background: var(--ev-surface);
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  padding: 16px 16px 14px 16px; /* top right bottom left */
  box-shadow: 2px 6px 12px rgba(0,0,0,.08);  /* x-offset, y-offset, blur-radius, color */
  margin-bottom: 28px;
}


.webinar-watermark {
  position: relative;
  overflow: hidden;
  background-color: var(--ev-bg);
}

/* Base for all SVG layers */
.webinar-watermark-svg {
  position: absolute;
  pointer-events: none;
  opacity: 0.05; /* shared default opacity */
  mix-blend-mode: multiply;  /* optional: helps remove any residual bg */
}

/* StatsUpAI Logo */
.webinar-watermark-svg{
  bottom: -20%;
  right: -5%;
  width: 50%;
  height: auto;
}
/* Affiliation Logo */
.webinar-affiliation-svg {
  top: -20%;
  left: -5%;
  width: 50%;
  height: auto;
  opacity: 0.07;              /* tweak independently if desired */
}
/* Background pattern */
.webinar-pattern-svg {
  left: -20px;
  bottom: -20px;
  height: fit-content;
  width: auto;
  opacity: 0.15;              /* tweak independently if desired */
}

/* Regular content above all SVGs */
.webinar-watermark > *:not(.webinar-watermark-svg) {
  position: relative;
  z-index: 2;
}

/* Webinar Details */
/* .webinar-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  align-items: center;
} */

/* 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: 120%;
  height: 180%;
  object-fit: cover;
  transform: translate(-5%, -10%); 
}

@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);
  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: 18px 0;
  background: var(--ev-bg);
}

.ev-footer-row{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ev-muted);
  font-weight: 600;
  /* font-size: .95rem; */
}

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