/* =========================
   AGENDA — Modern UI (Poppins + #d88f51 + Black)
   ========================= */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root{
  --brand: #d88f51;
  --black: #0f0f0f;
  --text: #1b1b1b;
  --muted: #6b7280;
  --line: #ececec;
  --panel: #ffffff;
  --soft: #faf7f4;
  --shadow: 0 14px 40px rgba(0,0,0,.08);
  --shadow2: 0 18px 55px rgba(0,0,0,.14);
  --radius: 16px;
}

body.agenda-modal-open{
  overflow: hidden;
}

.agenda-wrap,
.agenda-wrap *{
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  box-sizing: border-box;
}

.agenda-wrap{
  color: var(--text);
  align-items: start;
  display: flex;
      margin-top: 50px;
  flex-direction: column;
}

body{
    overflow:unset !important;
}

html.agenda-modal-open,
body.agenda-modal-open{
  overflow: hidden !important;
  height: 100%;
}

/* Strong lock (prevents wheel from reaching page) */
body.agenda-modal-open{
  position: fixed;
  width: 100%;
  left: 0;
}
/* smooth scroll for modal + sidebar */
.modal-content,
.agenda-sidebar{
  scroll-behavior: smooth;
}
/* =========================
   Layout
   ========================= */
.agenda-layout{
  display:grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items:start;
}

@media(max-width: 980px){
  .agenda-layout{ grid-template-columns: 1fr; }
}

/* =========================
   Tabs
   ========================= */
.agenda-tabs{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  padding: 10px 0 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 99;
  background: white;
}

.agenda-tab{
  border: 1px solid transparent;
  background: #fff;
  color: var(--black);
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  cursor:pointer;
  white-space:nowrap;
  transition: .18s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
}

.agenda-tab:hover{
  border-color: rgba(216,143,81,.35);
  transform: translateY(-1px);
}

.agenda-tab.is-active{
  background: var(--black);
  color: #fff;
  border-color: var(--black);
}

/* =========================
   Sidebar (Sticky + Scroll)
   ========================= */
.agenda-sidebar{
  background: linear-gradient(180deg, var(--soft), #fff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px 14px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 76px;

  /* Make only sidebar scroll if long */
  max-height: calc(100vh - 32px);
  overflow: auto;
}

/* nicer scrollbars */
.agenda-sidebar::-webkit-scrollbar{ width: 10px; }
.agenda-sidebar::-webkit-scrollbar-thumb{ background: #e7e2dd; border-radius: 999px; }
.agenda-sidebar::-webkit-scrollbar-track{ background: transparent; }

.agenda-side-title{
  font-size: 22px;
  margin: 10px 0 14px;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--black);
}

.agenda-check{
  display:flex;
  align-items:flex-start;
  gap: 12px;
  font-size: 16px;
  color: #2d2d2d;
  line-height: 1.35;
  padding: 10px 10px;
  border-radius: 12px;
  transition: .18s ease;
  font-size: 15px;
}

.agenda-check:hover{
  background: rgba(216,143,81,.08);
}

.agenda-check input{
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--brand);
}

/* Clear button (hidden by default, shown with .is-visible) */
.agenda-clear{
  display:none;
  border: 0;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(216,143,81,.28);
  transition: .18s ease;
}
.agenda-clear:hover{ filter: brightness(.98); transform: translateY(-1px); }
.agenda-clear.is-visible{display:inline-flex;position: absolute;right: 10px;}

/* you placed clear beside Streams title */
button.agenda-clear{
  position: sticky;
  top: 8px;
  margin-left: auto;
  float: right;
}

/* =========================
   Right List (Cards)
   ========================= */
.agenda-results *{ box-sizing:border-box; }

.agenda-item{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px;
  margin-bottom: 16px;
  cursor:pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  transition: .18s ease;
}

.agenda-item:hover{
  border-color: rgba(216,143,81,.35);
  box-shadow: 0 18px 50px rgba(0,0,0,.10);
  transform: translateY(-2px);
}

.agenda-time{
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  opacity: .9;
  margin-bottom: 6px;
}

.agenda-duration{
  margin-left: 8px;
  font-weight: 500;
  color: var(--brand);
}

.agenda-streams{
  margin-top: 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand);
  letter-spacing: .01em;
}

.agenda-title{
  font-size: 24px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.15;
  margin-top: 6px;
  text-transform: capitalize;
}

.agenda-desc{
  margin-top: 10px;
  color: #3b3b3b;
  font-size: 15px;
  line-height: 1.65;
  border-bottom: 1px solid #8080802e;
  padding-bottom: 10px;
}

.agenda-speakers{
  margin-top: 10px;
  font-size: 14px;
  color: #2f2f2f;
}

.agenda-speaker{
  margin-top: 4px;
  opacity: .95;
}

.agenda-empty{
  padding: 16px;
  border: 1px dashed #d9d9d9;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 25px rgba(0,0,0,.06);
}

/* =========================
   Modal (Scrollable content)
   ========================= */
#agendaModal{
  display:none;
  position: fixed;
  inset: 0;
  background: rgba(15,15,15,.72);
  z-index: 999999;
  padding: 18px;

  overflow: hidden;       /* prevents page scroll */
  overscroll-behavior: contain;
}

/* Center modal */
#agendaModal .modal-box{
  background:#fff;
  width: min(980px, 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow2);
  position: relative;
  margin: 0 auto;

  /* Make modal height controlled + scroll inside */
  max-height: calc(80vh - 36px);
  display: flex;
  flex-direction: column;
  margin-top: 120px;
}

/* top bar */
#agendaModal .modal-box:before{
  content:"";
  display:block;
  min-height: 65px;
  background: linear-gradient(90deg, var(--black), #2a2a2a);
}

.agenda-check span {
    color: #2d2d2d;
}

#agendaModal .modal-close{
  position:absolute;
  right: 18px;
  top: 10px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgb(216 144 90);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 26px;
  color:#fff;
  cursor:pointer;
  z-index: 3;
  transition: .18s ease;
}
#agendaModal .modal-close:hover{
  background: rgba(255,255,255,.20);
  transform: rotate(90deg);
}

/* Prev/Next row */
.modal-nav{
  display:grid;
  grid-template-columns: 1fr 1fr;
  background: #f7f7f7;
  border-bottom: 1px solid var(--line);
}

.modal-nav-btn{
  padding: 16px 20px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: .18s ease;
}
.modal-nav-btn:hover{
  background: rgba(216,143,81,.08);
}
.modal-nav-btn-right{ text-align:right; }

.modal-nav-top{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 900;
}
.modal-nav-btn-right .modal-nav-top{ justify-content:flex-end; }

.modal-nav-label{
  letter-spacing:.05em;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}
.modal-arrow{
  font-size: 20px;
  font-weight: 900;
  color: var(--black);
}
.modal-nav-title{
  margin-top: 6px;
  font-size: 14px;
  color: var(--black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: .9;
}

/* Scrollable content area */
.modal-content{
  padding: 26px 34px 28px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 auto;

  max-height: calc(100vh - 200px);
  overscroll-behavior: contain;
}

.banner {
    padding: 70px;
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    color: white;
    background: black;
    width: 100vw;
    margin-left:calc(-50vw + 50%);
}

.container-wrap {padding-top: 0 !important;margin-top: 20px !important;}

/* modal scrollbar */
.modal-content::-webkit-scrollbar{ width: 10px; }
.modal-content::-webkit-scrollbar-thumb{ background: #ece6e0; border-radius: 999px; }
.modal-content::-webkit-scrollbar-track{ background: transparent; }

/* modal text */
.modal-format{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight: 500;
  font-size: 16px;
  color: var(--brand);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.modal-title{
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 14px;
  line-height: 1.06;
  color: var(--black);
  text-transform: capitalize;
  letter-spacing: 0;
}
.modal-body{
  font-size: 16px;
  line-height: 1.75;
  color: #222;
  /*padding-bottom: 30px;*/
}

/* modal meta */
.modal-meta{
  /*margin-top: 18px;*/
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: grid;
  gap: 0px;
}

.modal-streams{
  font-weight: 500;
  color: #272727;
  font-size: 14px;
}

.modal-datetime{
  color: var(--black);
  font-weight: 500;
  opacity: .9;
}

.modal-location{
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

/* Book Now button */
.book-btn{
  display:inline-flex;
  align-items:center;
  gap:12px;
  margin-top: 18px;
  padding: 10px 26px;
  border-radius: 999px;
  color:#fff;
  font-weight: 900;
  text-decoration:none;
  background: linear-gradient(90deg, var(--black), var(--brand));
  box-shadow: 0 16px 35px rgba(216,143,81,.25);
  transition: .18s ease;
}
.book-btn:hover{
  transform: translateY(-1px);
  filter: brightness(.98);
}
.book-btn span{ font-size: 18px; }

/* =========================
   Profiles grid in modal
   ========================= */
.agenda-profiles-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 14px;
}
@media(max-width: 820px){
  .agenda-profiles-grid{ grid-template-columns: 1fr; }
}

.agenda-profile-card{
  position:relative;
  display:block;
  background:#fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 16px;
  text-decoration:none;
  color: var(--black);
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
  transition: .18s ease;
}

.agenda-profile-card:hover{
  border-color: rgba(216,143,81,.35);
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(0,0,0,.10);
}

.agenda-profile-badge{
  position:absolute;
  top: -35px;
  left: 25px;
  background: var(--black);
  color:#fff;
  font-weight: 500;
  font-size: 12px;
  padding: 3px 20px;
  border-top-left-radius: 10px;
  letter-spacing:.04em;
  border: 1px solid rgba(255,255,255,.08);
  border-top-right-radius: 10px;
}

.agenda-profile-row{
  display:flex;
  gap: 14px;
  align-items:center;
}

.agenda-profile-photo{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  overflow:hidden;
  background:#eee;
  flex: 0 0 56px;
  border: 2px solid rgba(216,143,81,.35);
}

.agenda-profile-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.agenda-profile-photo-fallback{
  display:block;
  width:100%;
  height:100%;
  background:#e6e6e6;
}

.agenda-profile-name{
  font-size: 18px;
  font-weight: 600;
  line-height: 1.15;
}

.agenda-profile-title{
  margin-top: 4px;
  color:#444;
  font-weight: 600;
  font-size: 13px;
}

.agenda-profile-company{
  margin-top: 6px;
  color: var(--brand);
  font-weight: 600;
  font-size: 14px;
}


/*Profile page*/

/* =========================
   Profile Single (Stunning UI)
========================= */
.agenda-profile-page{
  padding: 28px 0 60px;
}
.ap-container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.ap-hero-card{
  border-radius: 22px;
  border: 1px solid rgba(0,0,0,.06);
  background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.00));
  box-shadow: 0 16px 40px rgba(0,0,0,.06);
  overflow: hidden;
}

.ap-hero-grid{
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  padding: 22px;
  align-items: center;
}

.ap-photo img{
  width: auto;
  height: auto;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}
.ap-photo-fallback{
  width: 100%;
  height: 240px;
  border-radius: 18px;
  background: rgba(0,0,0,.06);
}

.ap-kicker{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .65;
  margin-bottom: 6px;
}

.ap-name{
  margin: 0;
  font-size: 24px;
  line-height: 1.12;
  color: black;
}

.ap-subtitle{
  margin-top: 10px;
  font-size: 16px;
  opacity: .8;
  color: black;
}

.ap-chips{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin-top: 14px;
}
.ap-chip{
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.7);
  font-size: 13px;
  font-weight: 600;
  color: black;
  font-family: 'Poppins';
}

.ap-social{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 16px;
}
.ap-social-btn{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  text-decoration:none !important;
  background:#fff;
  font-size: 14px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ap-social-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
}
.ap-ico{
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.06);
  font-weight: 700;
  text-transform: lowercase;
}

.ap-actions{
  margin-top: 18px;
}
.ap-back{
  text-decoration:none !important;
  opacity: .8;
}
.ap-back:hover{ opacity: 1; }

.ap-body{
  margin-top: 22px;
}
.ap-two-col{
  display:grid;
  grid-template-columns: 1fr 420px;
  gap: 18px;
  align-items:start;
}

.ap-bio{
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.05);
}
.ap-bio h2{
  margin: 0 0 12px;
  font-size: 28px;
  font-family: 'Poppins';
  letter-spacing: 0;
  font-weight: 600;
}
.ap-wysiwyg{
  line-height: 1.75;
  opacity: .92;
}

.ap-side-card{
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.06);
  background: #fff;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.05);
  margin-bottom: 12px;
  font-family: 'Poppins';
}
.ap-side-title{
  font-weight: 700;
  margin-bottom: 6px;
  color: black;
}
.ap-side-sub{
  opacity: .7;
}

.ap-sessions{
  display:grid;
  gap: 12px;
}
.ap-session{
  display:block;
  text-decoration:none !important;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.06);
  background: #fff;
  padding: 14px 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.04);
  transition: transform .15s ease, box-shadow .15s ease;
  color: black;
  font-family: 'Poppins';
}
.ap-session:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(0,0,0,.08);
}
.ap-session-top{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  font-size: 12px;
  opacity: .75;
  margin-bottom: 8px;
}
.ap-session-title{
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
  color: black;
  font-family: 'Poppins';
}
.ap-session-meta{
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
  align-items:center;
  font-size: 13px;
  opacity: .85;
}
.ap-pill{
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  font-size: 12px;
  font-weight: 700;
}
.ap-meta-text{
  opacity: .85;
}

.ap-empty{
  border: 1px dashed rgba(0,0,0,.18);
  border-radius: 18px;
  padding: 18px;
  opacity: .75;
  background: rgba(0,0,0,.02);
}

.ap-photo {
    width: max-content;
}

/* Responsive */
@media (max-width: 980px){
  .ap-two-col{ grid-template-columns: 1fr; }
}
@media (max-width: 720px){
  .ap-hero-grid{ grid-template-columns: 1fr; }
  .ap-photo img, .ap-photo-fallback{ height: 280px; }
  .ap-name{ font-size: 28px; }
}