/* ==========================================================================
   PHDwin Week 2026 — Schedule Widget Styles
   Shortcode: phdwinweek_schedule_2026
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@500;600;700;800&family=Poppins:wght@400;500;600&display=swap');

.phdwk-schedule-wrap {
  --phdwk-font-heading: 'Raleway', sans-serif;
  --phdwk-font-body: 'Poppins', sans-serif;

  --phdwk-keynote-bg: #FAEEDA;
  --phdwk-keynote-text: #7a4a00;
  --phdwk-keynote-dot: #E0A638;

  --phdwk-featured-bg: #f5e0e8;
  --phdwk-featured-text: #7a1f40;
  --phdwk-featured-dot: #D46A91;

  --phdwk-vendor-bg: #E6F1FB;
  --phdwk-vendor-text: #0C447C;
  --phdwk-vendor-dot: #2E7FD1;

  --phdwk-internal-bg: #AC1F2D;
  --phdwk-internal-text: #FFFFFF;
  --phdwk-internal-dot: #AC1F2D;

  --phdwk-replay-bg: #EAF3DE;
  --phdwk-replay-text: #27500A;
  --phdwk-replay-dot: #7CB342;

  --phdwk-award-bg: #EEEDFE;
  --phdwk-award-text: #3C3489;
  --phdwk-award-dot: #7A6FE0;

  --phdwk-forum-bg: #E1F5EE;
  --phdwk-forum-text: #085041;
  --phdwk-forum-dot: #2BAE8C;

  --phdwk-pending-bg: #E8E8E8;
  --phdwk-pending-text: #666666;
  --phdwk-pending-dot: #BDBDBD;

  --phdwk-external-bg: #B91C1C;
  --phdwk-red: #AC1F2D;
  --phdwk-font: inherit; /* inherits theme/site font automatically */

  font-family: var(--phdwk-font-body);
  max-width: 1920px;
  margin: 0 auto;
  color: #222;
}

.phdwk-schedule-wrap h1, .phdwk-schedule-wrap h2, .phdwk-schedule-wrap h3,
.phdwk-day-head, .phdwk-modal-title, .phdwk-modal-name, .phdwk-badge {
  font-family: var(--phdwk-font-heading);
 
}
.phdwk-modal-right .phdwk-badge {
    background-color: #ECCED2 !important;
    border-radius: 80px !important;
    border: 1px solid #B91C1C !important
}

/* ---------- Grid layout ---------- */
.phdwk-grid-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.phdwk-grid {
  display: grid;
  grid-template-columns: 180px repeat(5, minmax(190px, 1fr));
  gap: 15px !important;
  min-width: 100%;
}

/* sticky time column */
.phdwk-time-col,
.phdwk-grid > .phdwk-time-head {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #fff;
  box-shadow: -30px 0 0 0 #fff, 15px 0 0 0 #fff;
  border-radius: 0;
}


.phdwk-time-head {
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
font-family: Poppins;
font-weight: 500;
font-size: 22px;
line-height: 28px;
}

.phdwk-day-head {
  background: var(--phdwk-red);
  color: #fff;
  border-radius: 8px;
  text-align: center;
  padding: 14px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.phdwk-day-head .phdwk-dn {
  font-family: var(--phdwk-font-heading);
  font-weight: 600;
  font-size: 26px;
  line-height: 40px;
}
.phdwk-day-head .phdwk-dd { font-size: 15px;font-weight: 500; opacity: .85; margin-top: 2px; }

.phdwk-time-cell {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 15px;
  height: fit-content;
  align-self: center;
  padding: 8px 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 28px;
  color: #333;
  border-radius: 10px;
}
.phdwk-time-cell .phdwk-clock-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--phdwk-red);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.phdwk-time-cell .phdwk-clock-dot img { width: 12px; height: 12px; filter: brightness(0) invert(1); }
.phdwk-time-range { font-size: 22px; line-height: 28px; }

/* ---------- Session cards ---------- */
.phdwk-schedule-wrap button.phdwk-card {
  all: unset;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px !important;
  padding: 14px 12px 30px;
  cursor: pointer;
  border: none;
  text-align: center;
  width: 100%;
  position: relative;
  min-height: 100px;
  transition: all 0.25s ease;
  white-space: normal !important;
  font-family: var(--phdwk-font-body);
}
.phdwk-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0px 0px 16px 2px #5353531a !important;
}
.phdwk-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  filter: brightness(1.03);
}
.phdwk-card.is-static { cursor: default; min-height: 56px; padding: 12px; }
.phdwk-card.is-static:hover { box-shadow: none; filter: none; }

/* pending cells */
.phdwk-card.is-pending {
  cursor: default;
  opacity: 0.75;
  justify-content: flex-start;
  padding-top: 40px;
}

.phdwk-card.is-pending:hover { box-shadow: none; filter: none; }
.phdwk-soon-tag {
  position: static;
  align-self: flex-end;
  margin-bottom: 10px;
  background: #B91C1C;
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  padding: 3px 8px 1px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.phdwk-card-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  margin-bottom: 4px;
  white-space: normal;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.phdwk-card-sub {
  font-size: 15px;
  opacity: .85;
  white-space: normal;
  overflow-wrap: break-word;
}

.phdwk-readmore {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
  opacity: .8;
}
.phdwk-readmore svg { width: 10px; height: 10px; }


.phdwk-schedule-wrap .phdwk-c-replay {
  min-height: 48px !important;
  padding: 10px 12px !important;
}

.phdwk-schedule-wrap .phdwk-c-keynote  { background: var(--phdwk-keynote-bg)  !important; color: var(--phdwk-keynote-text)  !important; }
.phdwk-schedule-wrap .phdwk-c-featured { background: var(--phdwk-featured-bg) !important; color: var(--phdwk-featured-text) !important; }
.phdwk-schedule-wrap .phdwk-c-vendor   { background: var(--phdwk-vendor-bg)   !important; color: var(--phdwk-vendor-text)   !important; }
.phdwk-schedule-wrap .phdwk-c-internal { background: var(--phdwk-internal-bg) !important; color: var(--phdwk-internal-text) !important; }
.phdwk-schedule-wrap .phdwk-c-replay   { background: var(--phdwk-replay-bg)   !important; color: var(--phdwk-replay-text)   !important; }
.phdwk-schedule-wrap .phdwk-c-award    { background: var(--phdwk-award-bg)    !important; color: var(--phdwk-award-text)    !important; }
.phdwk-schedule-wrap .phdwk-c-forum    { background: var(--phdwk-forum-bg)    !important; color: var(--phdwk-forum-text)    !important; }
.phdwk-schedule-wrap .phdwk-c-pending  { background: var(--phdwk-pending-bg)  !important; color: var(--phdwk-pending-text)  !important; }

/* ---------- Legend ---------- */
.phdwk-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
  padding: 0 4px;
}
.phdwk-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #000000;
}
.phdwk-legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.phdwk-ld-keynote  { background: var(--phdwk-keynote-dot); }
.phdwk-ld-featured { background: var(--phdwk-featured-dot); }
.phdwk-ld-vendor   { background: var(--phdwk-vendor-dot); }
.phdwk-ld-internal { background: var(--phdwk-internal-dot); }
.phdwk-ld-replay   { background: var(--phdwk-replay-dot); }
.phdwk-ld-award    { background: var(--phdwk-award-dot); }
.phdwk-ld-forum    { background: var(--phdwk-forum-dot); }
.phdwk-ld-pending  { background: var(--phdwk-pending-dot); }

/* ==========================================================================
   Pop-up / modal
   ========================================================================== */
.phdwk-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,20,20,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(0px);
  transition: opacity 0.35s ease, backdrop-filter 0.35s ease, visibility 0.35s;

}
.phdwk-overlay.is-open {
  opacity: 1;
  visibility: visible;
  backdrop-filter: blur(4px);
}
.phdwk-modal {
  transform: translateY(24px) scale(0.94);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease;
}
.phdwk-overlay.is-open .phdwk-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.phdwk-modal {
  background: #fff;
  border-radius: 30px;
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 450px 1fr;
  /* align-items: center; */
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}


.phdwk-modal-left {
  padding: 40px 32px;
  text-align: left;
  border-right: 1px solid #eee;
}
.phdwk-modal-photo {
  width: 130px;
  height: 130px;
  min-width: 130px;
  min-height: 130px;
  aspect-ratio: 1 / 1;
  border-radius: 100% !important;
  object-fit: cover;
  display: block;
  margin: 0 0 18px;
  background: transparent;
}
.phdwk-modal-name {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 32px;
  text-transform: uppercase;
}
.phdwk-modal-org {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  text-transform: uppercase;
  color: var(--phdwk-red);
  margin-top: 6px;
}
.phdwk-modal-about-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 36px;
  text-align: left;
  text-transform: uppercase;
  color: #000000;
  margin: 22px 0 8px;
}
.phdwk-modal-about-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 30px;
  color: #000000;
  text-align: left;
  margin-bottom: 20px;
}
.phdwk-modal-left .phdwk-btn { width: 100%; justify-content: flex-start; }

.phdwk-modal-right { padding: 36px 36px 32px; }

.phdwk-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
  background: #fff !important;
  border: 1.5px solid currentColor;
}
.phdwk-badge.phdwk-c-internal { color: var(--phdwk-internal-dot) !important; }
.phdwk-badge.phdwk-c-keynote,
.phdwk-badge.phdwk-c-featured,
.phdwk-badge.phdwk-c-vendor {
  color: var(--phdwk-external-bg) !important;
  border-color: var(--phdwk-external-bg) !important;
}

.phdwk-modal-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 36px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.phdwk-modal-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #444;
  margin-bottom: 20px;
}
.phdwk-modal-meta span { display: flex; align-items: center; gap: 6px; }
.phdwk-modal-meta img { width: 14px; height: 14px; }

.phdwk-modal-section-title { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #000000; margin-bottom: 8px; font-weight: 700; font-family: 'Raleway', sans-serif; }
.phdwk-modal-desc {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 30px;
  color: #444;
  margin-bottom: 20px;
}

.phdwk-modal-topics {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
}
.phdwk-modal-topics li {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 30px;
  color: #444;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.phdwk-modal-topics li::before {
  content: "";
  width: 12px;
  height: 12px;
  background-image: url('https://phdwinweek.com/wp-content/uploads/2026/01/Polygon-1-1.svg');
  background-size: contain;
  background-repeat: no-repeat;
  margin-top: 9px;
  flex-shrink: 0;
}

.phdwk-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.phdwk-schedule-wrap .phdwk-btn,
.phdwk-overlay .phdwk-btn {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px !important;
  border-radius: 60px !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none !important;
  font-family: 'Raleway', sans-serif;
}
.phdwk-schedule-wrap .phdwk-btn-primary,
.phdwk-overlay .phdwk-btn-primary {
  background: var(--phdwk-external-bg) !important;
  color: #fff !important;
}
a.phdwk-btn.phdwk-btn-primary,
button.phdwk-btn.phdwk-btn-secondary.phdwk-btn-ics
{
    background-color: #B91C1C !important;
    border-radius: 60px !important;
}
.phdwk-schedule-wrap .phdwk-btn-primary:hover,
.phdwk-overlay .phdwk-btn-primary:hover {
  background: #515962 !important;
}
.phdwk-schedule-wrap .phdwk-btn-secondary,
.phdwk-overlay .phdwk-btn-secondary {
  background: var(--phdwk-red) !important;
  color: #fff !important;
}
.phdwk-schedule-wrap .phdwk-btn-secondary:hover,
.phdwk-overlay .phdwk-btn-secondary:hover {
  background: #8c1925 !important;
}

/* hidden until stream goes live — toggle in schedule.js (PHDWK_STREAM_LIVE) */
.phdwk-btn-stream[hidden] { display: none !important; }


/* CROS ICON */
.phdwk-modal-close {
  all: unset;
  position: absolute;
  top: 20px;
  right: 20px;
  width: 34px !important;
  height: 34px !important;
  min-width: 0 !important;
  flex: none !important;
  background: transparent !important;
  padding: 0 !important;
  cursor: pointer;
  z-index: 5;
}
.phdwk-modal-close img {
  transition: opacity 0.2s ease;
}
.phdwk-modal-close:hover img {
  opacity: 0.6;
}

.phdwk-time-head,
.phdwk-time-cell.phdwk-time-col{
  margin-right: 15PX !important;
}
.phdwk-time-col, .phdwk-grid>.phdwk-time-head {border-radius: 10PX !important; padding: 7px;}


/* TAB */
@media (min-width: 761px) and (max-width: 1200px) {
  .phdwk-time-cell {
    height: 100%;
    align-self: stretch;
  }
  .phdwk-time-cell.phdwk-time-col,
  .phdwk-time-cell.phdwk-time-col{
    border-radius: 0 !important;
  }
}


/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .phdwk-grid { min-width: 880px; grid-template-columns: 80px repeat(5, minmax(160px, 1fr)); }
  .phdwk-time-cell { font-size: 14px; line-height: 18px; }
  .phdwk-time-range { font-size: 11px; line-height: 16px; }
  .phdwk-day-head .phdwk-dn { font-size: 18px; line-height: 24px; }
  .phdwk-card-title { font-size: 14px; line-height: 18px; }
  .phdwk-card-sub { font-size: 11px; }
  .phdwk-time-head{font-size:16px}

  .phdwk-modal { grid-template-columns: 1fr; }
  .phdwk-modal-left { border-right: none; border-bottom: 1px solid #eee; padding: 24px 20px; }
  .phdwk-modal-right { padding: 24px 20px; }
  .phdwk-modal-topics { grid-template-columns: 1fr; }
  .phdwk-modal-photo { width: 90px; height: 90px; min-width: 90px; min-height: 90px; }
  .phdwk-modal-name { font-size: 22px; line-height: 26px; }
  .phdwk-modal-org { font-size: 14px; line-height: 20px; }
  .phdwk-modal-about-title { font-size: 15px; line-height: 24px; }
  .phdwk-modal-about-text { font-size: 14px; line-height: 22px; }
  .phdwk-modal-title { font-size: 19px; line-height: 24px; }
  .phdwk-modal-desc { font-size: 14px; line-height: 22px; }
  .phdwk-modal-meta { font-size: 13px; line-height: 18px; }
  .phdwk-modal-topics li { font-size: 13px; line-height: 20px; }
  .phdwk-schedule-wrap .phdwk-btn,
  .phdwk-overlay .phdwk-btn { font-size: 11px; padding: 10px 16px !important; }
  .phdwk-time-cell {
  height: 100%;
  align-self: stretch; 
  gap: 5px;
flex-direction: column;
align-items: flex-start;
justify-content: center;
text-align: left;


}
.phdwk-time-cell .phdwk-clock-dot{
    width: 20px;
    height: 20px;
}
.phdwk-time-col, .phdwk-grid>.phdwk-time-head {border-radius: 10PX !important; padding: 7px;}

.phdwk-modal-close {
  all: unset;
  position: absolute;
  top: 30px;
  right: 10px;
  width: 30px !important;
  height: 30px !important;
}
.phdwk-modal-left { padding-top: 50px; }
}
/* no scrolling above 1200 */
@media (min-width: 1201px) {
  .phdwk-grid {
    grid-template-columns: 180px repeat(5, 1fr);
    min-width: 0;
  }
  .phdwk-grid-scroll {
    overflow-x: visible;
  }
}