/* ===================================
   eMudhra Webinars Page Styles
   Entrust-inspired with filter pills
   =================================== */

/* ===================================
   1. Hero Banner
   =================================== */
.play-circle svg {
    margin-left: 0;
}

/* Prevent horizontal scroll from any webinar section */
.webinar-banner,
.webinar-filter-section,
.wh-hub-section,
.wh-faq-section {
  max-width: 100%;
  overflow-x: clip;
  overflow-x: hidden; /* fallback for older Safari */
}

.webinar-banner {
  width: 100%;
  background: linear-gradient(180deg, #FFF8F1 0%, #FFFBF8 77.6%, rgba(255, 255, 255, 0) 100%);
  min-height: 330px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  margin-top: 25px;
  padding-block: 3.5rem;
}
@media (max-width: 767px) {
  .webinar-banner {
    min-height: auto;
    padding-block: 3.5rem;
  }
}

.webinar-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -8%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(242, 103, 57, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.webinar-banner::after {
  content: '';
  position: absolute;
  bottom: -25%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(26, 86, 219, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.webinar-banner .banner-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.webinar-banner .banner-content h1 {
  font-size: 3rem;
  color: var(--neutral-900);
  font-weight: var(--fnt-semi);
  line-height: 1.2;
  margin-bottom: 16px;
}

.webinar-banner .banner-content p {
  font-size: 1.1rem;
  color: var(--neutral-500);
  line-height: 1.7;
  max-width: 650px;
  margin: 0 auto !important;
}

/* ===================================
   2. Filter Section
   =================================== */
.webinar-filter-section {
  padding-block: 40px 0;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.filter-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-bar-left .filter-label {
  font-size: 0.85rem;
  font-weight: var(--fnt-medium);
  color: var(--neutral-500);
  margin-right: 4px;
}

/* Filter pill buttons */
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--neutral-300);
  background: #fff;
  color: var(--neutral-700);
  font-family: var(--DMSans);
  font-size: 0.875rem;
  font-weight: var(--fnt-medium);
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.filter-pill:hover {
  border-color: var(--primary-500);
  color: var(--primary-700);
  background: var(--primary-050);
}

.filter-pill.active {
  border-color: var(--primary-700);
  background: var(--primary-700);
  color: #fff;
}

.filter-pill .pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.filter-pill .pill-dot.dot-live {
  background: #DC2626;
}

/* On the active (blue) Upcoming Live pill, use white so the dot reads
   against the solid blue background and matches the white pill text. */
.filter-pill.active .pill-dot.dot-live {
  background: #fff;
}

/* Browse On-Demand pill is white with orange text — match the dot to the
   text colour so the two elements feel intentional, not mismatched. */
.filter-pill .pill-dot.dot-ondemand {
  background: #f26739;
}

.filter-pill.active .pill-dot.dot-ondemand {
  background: var(--primary-200);
}

.filter-pill .pill-count {
  background: var(--neutral-100);
  color: var(--neutral-600);
  font-size: 0.7rem;
  font-weight: var(--fnt-bold);
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.filter-pill.active .pill-count {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* Results count */
.filter-bar-right {
  font-size: 0.85rem;
  color: var(--neutral-500);
}

.filter-bar-right strong {
  color: var(--neutral-800);
  font-weight: var(--fnt-semi);
}

/* ===================================
   2b. Search Bar
   =================================== */
.webinar-search-wrapper {
  margin-bottom: 28px;
}

.webinar-search-bar {
  position: relative;
  max-width: 440px;
}

.webinar-search-bar .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--neutral-400);
  pointer-events: none;
  transition: color 0.2s ease;
}

.webinar-search-bar input {
  width: 100%;
  padding: 12px 44px 12px 46px;
  border: 1.5px solid var(--neutral-200);
  border-radius: 12px;
  font-family: var(--DMSans);
  font-size: 0.9rem;
  color: var(--neutral-800);
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
}

.webinar-search-bar input::placeholder {
  color: var(--neutral-400);
}

.webinar-search-bar input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.08);
}

.webinar-search-bar input:focus ~ .search-icon {
  color: var(--primary-600);
}

.webinar-search-bar .search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  background: var(--neutral-100);
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--neutral-500);
  transition: background 0.2s ease, color 0.2s ease;
}

.webinar-search-bar .search-clear:hover {
  background: var(--neutral-200);
  color: var(--neutral-700);
}

.webinar-search-bar .search-clear.visible {
  display: flex;
}

/* Search highlight */
.search-highlight {
  background: rgba(26, 86, 219, 0.12);
  border-radius: 2px;
  padding: 0 1px;
}

/* No results text for search */
.webinar-empty-state .search-query-text {
  color: var(--primary-700);
  font-weight: var(--fnt-semi);
}

/* ===================================
   3. Webinar Grid
   =================================== */
.webinar-grid {
  padding-bottom: 60px;
}

/* Left-align cards in the grid (e.g. live webinars page) */
.webinar-grid > .row {
  justify-content: flex-start;
}

/* ---------------------------------------------------------------------
   webinar-grid--list — count-aware layout for sparse listings.

   1 card  →  wide centred horizontal row (thumbnail | body)
              Driven by `:only-child` so it auto-applies when there's
              exactly one .webinar-grid-item in the row.

   2 cards →  two 50/50 vertical cards side-by-side (default Bootstrap
              col-md-6 behaviour; we don't override).

   3+      →  wraps to a second row of 50/50 cards naturally.

   <768px  →  always single-column, thumbnail on top, body below
              (no horizontal-row override at that width).
   --------------------------------------------------------------------- */
.webinar-grid--list > .row { justify-content: center; }

@media (min-width: 768px) {
  /* === ONE-CARD CASE: wide horizontal row =========================== */

  /* Expand the lone item to fill the row (override Bootstrap's
     col-md-6 50% max-width with a higher-specificity selector). */
  .webinar-grid--list .row > .webinar-grid-item:only-child {
    flex: 0 0 100%;
    max-width: 900px;
  }

  /* Flip the only card into a horizontal row: thumbnail left, body right.
     align-items:center lets the thumbnail keep its natural 16:9 height
     instead of stretching to match the body — kills the empty purple bars
     above and below the image. */
  .webinar-grid--list .row > .webinar-grid-item:only-child .webinar-card {
    flex-direction: row;
    align-items: center;
  }
  .webinar-grid--list .row > .webinar-grid-item:only-child .webinar-card .card-thumbnail-link {
    flex: 0 0 42%;
    max-width: 380px;
    align-self: stretch;       /* link itself fills body height for hit area */
    display: flex;
    align-items: center;       /* image vertically centred inside link */
    justify-content: center;
    background: #fdf3fe;       /* soft pink-purple wash that matches the
                                   converged-identity banner palette */
    overflow: hidden;
  }
  .webinar-grid--list .row > .webinar-grid-item:only-child .webinar-card .card-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;        /* lock to image's natural ratio */
    height: auto;
    background: transparent;
    display: block;
  }
  /* Show the whole image — never crop speakers / brand text. */
  .webinar-grid--list .row > .webinar-grid-item:only-child .webinar-card .card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;         /* safe now that thumb matches image ratio */
    object-position: center;
    transform: none !important;       /* defeat the base hover scale */
  }
  .webinar-grid--list .row > .webinar-grid-item:only-child .webinar-card:hover .card-thumbnail img {
    transform: none !important;
  }
  .webinar-grid--list .row > .webinar-grid-item:only-child .webinar-card .card-body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 28px 32px;
  }
  .webinar-grid--list .row > .webinar-grid-item:only-child .webinar-card .card-badge {
    top: 16px;
    left: 16px;
  }
}

@media (min-width: 1200px) {
  /* True 50/50 split — thumbnail and body each take half the row. */
  .webinar-grid--list .row > .webinar-grid-item:only-child .webinar-card .card-thumbnail-link {
    flex-basis: 50%;
    max-width: none;
  }
  .webinar-grid--list .row > .webinar-grid-item:only-child .webinar-card .card-body {
    padding: 32px 40px;
  }
}

/* The single-card row gets crowded with the long description, so hide it
   on this layout. (It still renders on the 2-card / 3-col layouts and on
   mobile, where there's room for it.) */
@media (min-width: 768px) {
  .webinar-grid--list .row > .webinar-grid-item:only-child .webinar-card .card-desc {
    display: none;
  }
}

/* Tighter spacing for the register button so it doesn't visually float
   when the description is hidden on the wide single-card layout. The
   button itself shrinks to its content width and centers in the action
   row — the default `width:100%` btn looks oversized in this layout. */
.webinar-grid--list .row > .webinar-grid-item:only-child .webinar-card .card-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}
.webinar-grid--list .row > .webinar-grid-item:only-child .webinar-card .card-actions .btn-register {
  width: auto;
  padding: 0.75rem 1.75rem;
}

/* Card item - for filter animation */
.webinar-grid-item {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.webinar-grid-item.hidden {
  display: none;
}

.webinar-grid-item.fade-in {
  animation: cardFadeIn 0.4s ease forwards;
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================================
   4. Webinar Cards
   =================================== */
.webinar-card {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius16);
  overflow: hidden;
  transition: box-shadow 0.35s ease, transform 0.3s ease, border-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.webinar-card:hover {
  box-shadow: 0 12px 40px rgba(26, 86, 219, 0.1);
  transform: translateY(-6px);
  border-color: var(--primary-200);
}

/* Thumbnail */
.webinar-card .card-thumbnail {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--neutral-050);
}

.webinar-card .card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.webinar-card:hover .card-thumbnail img {
  transform: scale(1.06);
}

/* Badges */
.webinar-card .card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #DC2626;
  color: #fff;
  font-size: 0.7rem;
  font-weight: var(--fnt-medium);
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.badge-upcoming {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-700);
  color: #fff;
  font-size: 0.6rem;
  font-weight: var(--fnt-bold);
  padding: 4px 9px 2px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-ondemand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.6rem;
  font-weight: var(--fnt-bold);
  padding: 4px 9px 2px;
  border-radius: 20px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

/* Play overlay for on-demand */
.card-thumbnail .play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.webinar-card:hover .card-thumbnail .play-overlay {
  opacity: 1;
}

.play-overlay .play-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.webinar-card:hover .play-overlay .play-icon {
  transform: scale(1.1);
}

.play-icon svg {
  margin-left: 0px;
}

/* Product badge — identifies which eMudhra product a recording covers, at a
   glance while scanning the grid. Top-left; the On-Demand pill (and the NEW
   ribbon, when present) sit top-right, bottom-right is the duration pill.
   Intentionally the only place this shows — the card-topic eyebrow in the
   body is a category label (e.g. "IAM Architecture"), not the product, so
   this isn't a duplicate of it. Transparent background; left-aligned with
   the thumbnail's title-text indent rather than flush against the edge. */
.card-thumbnail .product-badge {
  position: absolute;
  top: 10px;
  left: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
}
.card-thumbnail .product-badge img {
  height: 26px;
  width: auto;
  display: block;
}
/* IDBroker PNG is squarer with built-in padding — scale up to match the other product logos */
.card-thumbnail .product-badge--idbroker {
  top: 4px;
  left: 18px;
}
.card-thumbnail .product-badge--idbroker img {
  height: 38px;
}

/* Duration badge */
.card-thumbnail .duration-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.72);
  color: #fff;
  font-size: 0.75rem;
  font-weight: var(--fnt-medium);
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* Card body */
.webinar-card .card-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Topic tag */
.webinar-card .card-topic {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: var(--fnt-bold);
  color: var(--primary-700);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.webinar-card .card-body h3 {
  font-size: 1.05rem;
  font-weight: var(--fnt-semi);
  color: var(--neutral-900);
  line-height: 1.45;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.webinar-card .card-body p.card-desc {
  font-size: 0.85rem;
  color: var(--neutral-500);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  /* Hard-cap the box to 2 lines (line-height 1.6 × 2). Without this the
     flex:1 grow lets the box exceed 2 lines, so overflow:hidden clips at
     3 lines and the line-clamp ellipsis is followed by a cut-off 3rd line.
     The cap keeps clipping at exactly 2 lines on every card width. */
  max-height: 3.2em;
}

.webinar-card .card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.webinar-card .card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--neutral-500);
}

.webinar-card .card-meta span svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* Speakers wrapper — 2-column grid to keep cards compact */
.webinar-card .card-speakers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin-bottom: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--neutral-100);
}

/* Single speaker card — span full width when alone */
.webinar-card .card-speakers.single {
  grid-template-columns: 1fr;
}

/* Individual speaker */
.webinar-card .card-speaker {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.card-speaker .speaker-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--neutral-100);
  flex-shrink: 0;
}

.card-speaker .speaker-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-speaker .speaker-name {
  font-size: 0.78rem;
  font-weight: var(--fnt-semi);
  color: var(--neutral-800);
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.card-speaker .speaker-role {
  font-size: 0.68rem;
  color: var(--neutral-500);
  line-height: 1.35;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Card actions */
.webinar-card .card-actions {
  margin-top: auto;
}

/* Brand-aligned: matches .ems-btn.ems-btn--info pattern */
.btn-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: var(--primary-600);
  color: #fff;
  font-family: var(--DMSans);
  font-size: 16px;
  line-height: 22px;
  font-weight: var(--fnt-medium);
  border: 1px solid var(--primary-600);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
  text-align: center;
  outline: none;
  box-shadow: none;
}

.btn-register:hover {
  background: transparent;
  color: var(--primary-600);
  box-shadow: none;
}
.btn-register:hover svg line,
.btn-register:hover svg polyline,
.btn-register:hover svg path {
  stroke: var(--primary-600);
}

.btn-watch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: var(--primary-600);
  color: #fff;
  font-family: var(--DMSans);
  font-size: 16px;
  line-height: 22px;
  font-weight: var(--fnt-medium);
  border: 1px solid var(--primary-600);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
  text-align: center;
  outline: none;
  box-shadow: none;
}

.btn-watch svg path {
  fill: #fff;
  transition: fill 0.3s ease;
}
.btn-watch:hover {
  background: transparent;
  color: var(--primary-600);
  box-shadow: none;
}
.btn-watch:hover svg path {
  fill: var(--primary-600);
}

/* ===================================
   5. Webinar Modal (XL two-panel)
   =================================== */
.webinar-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(17, 25, 40, 0.65);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(6px);
}

.webinar-modal-overlay.active {
  display: flex;
  animation: fadeInOverlay 0.3s ease;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

.webinar-modal {
  background: #fff;
  border-radius: var(--radius20);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  animation: slideUpModal 0.35s ease;
}

/* XL variant for desktop */
.webinar-modal.webinar-modal-xl {
  max-width: 860px;
}

@keyframes slideUpModal {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.webinar-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: var(--neutral-050);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 2;
}

.webinar-modal-close:hover {
  background: var(--neutral-200);
}

/* Two-panel inner layout */
.webinar-modal-inner {
  display: flex;
  min-height: 420px;
}

/* Left info panel */
.modal-info-panel {
  flex: 0 0 42%;
  background: linear-gradient(180deg, #FFF8F1 0%, #FFF3E8 100%);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius20) 0 0 var(--radius20);
}

.modal-info-icon {
  width: 52px;
  height: 52px;
  background: rgba(26, 86, 219, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary-700);
}

.modal-info-panel h3 {
  font-size: 1.3rem;
  font-weight: var(--fnt-semi);
  color: var(--neutral-900);
  margin-bottom: 10px;
  line-height: 1.35;
}

.modal-info-panel p {
  font-size: 0.88rem;
  color: var(--neutral-500);
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-info-features {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--neutral-700);
}

.info-feature svg {
  color: #059669;
  flex-shrink: 0;
}

/* Right form panel */
.modal-form-panel {
  flex: 1;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Form state */
.modal-form-state { display: block; }
.modal-form-state.hidden { display: none; }

.modal-form-heading {
  font-size: 1.1rem;
  font-weight: var(--fnt-semi);
  color: var(--neutral-900);
  margin-bottom: 22px;
}

/* Custom form styles */
.webinar-access-form .form-field {
  margin-bottom: 16px;
}

.webinar-access-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: var(--fnt-medium);
  color: var(--neutral-700);
  margin-bottom: 6px;
}

.webinar-access-form label .req {
  color: #DC2626;
}

.webinar-access-form input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--neutral-200);
  border-radius: 10px;
  font-family: var(--DMSans);
  font-size: 0.9rem;
  color: var(--neutral-800);
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
  box-sizing: border-box;
}

.webinar-access-form input::placeholder {
  color: var(--neutral-400);
}

.webinar-access-form input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.08);
}

.webinar-access-form input.input-error {
  border-color: #DC2626;
}

.webinar-access-form .field-error {
  font-size: 0.75rem;
  color: #DC2626;
  margin-top: 4px;
  display: none;
}

.webinar-access-form .field-error.visible {
  display: block;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.btn-submit-webinar {
  width: 100%;
  padding: 12px 24px;
  background: var(--primary-700);
  color: #fff;
  font-family: var(--DMSans);
  font-size: 0.95rem;
  font-weight: var(--fnt-semi);
  border: 1px solid var(--primary-700);
  border-radius: var(--radius12);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  margin-top: 6px;
}

.btn-submit-webinar:hover {
  background: #fff;
  color: var(--primary-700);
  border-color: var(--primary-700);
  box-shadow: 0 4px 14px rgba(26, 86, 219, 0.18);
}

/* Checkbox field */
.webinar-access-form .form-checkbox {
  margin-top: 4px;
  margin-bottom: 2px;
}

.form-checkbox .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--neutral-700);
  user-select: none;
}

.form-checkbox .checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-checkbox .checkbox-custom {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--neutral-300);
  border-radius: 4px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-top: 1px;
  position: relative;
}

.form-checkbox .checkbox-custom::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s ease;
  margin-top: -1px;
}

.form-checkbox .checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--primary-700);
  border-color: var(--primary-700);
}

.form-checkbox .checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  transform: rotate(45deg) scale(1);
}

.form-checkbox .checkbox-label input[type="checkbox"]:focus-visible + .checkbox-custom {
  box-shadow: 0 0 0 2px rgba(26, 86, 219, 0.25);
}

.form-checkbox .checkbox-text {
  flex: 1;
  font-family: var(--DMSans);
}

/* Thank you state */
.modal-thankyou-state {
  display: none;
  text-align: center;
  padding: 8px 0;
}

.modal-thankyou-state.active {
  display: block;
  animation: cardFadeIn 0.4s ease;
}

.thankyou-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.modal-thankyou-state h4 {
  font-size: 1.2rem;
  font-weight: var(--fnt-semi);
  color: var(--neutral-900);
  margin-bottom: 6px;
}

.modal-thankyou-state p {
  font-size: 0.85rem;
  color: var(--neutral-500);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Video container in modal */
.modal-video-container {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius12);
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
}

.modal-video-container video,
.modal-video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Plyr (lazy-loaded branded video player) fits the modal video container
   edge-to-edge and uses the eMudhra brand orange for the progress + accents.
   The default Plyr purple clashes with the rest of the site. */
.modal-video-container .plyr {
  width: 100%;
  height: 100%;
  border-radius: var(--radius12);
  overflow: hidden;
  --plyr-color-main: #f26739;
  --plyr-video-control-color: #fff;
  --plyr-video-control-color-hover: #fff;
  --plyr-video-control-background-hover: #f26739;
  --plyr-range-fill-background: #f26739;
  --plyr-video-progress-buffered-background: rgba(255, 255, 255, 0.25);
  --plyr-tooltip-radius: 6px;
}
.modal-video-container .plyr--video,
.modal-video-container .plyr__video-wrapper,
.modal-video-container .plyr video {
  width: 100%;
  height: 100%;
  background: #000;
}
.modal-video-container .plyr__poster { background-size: cover; }
/* Big centre play button — keep its blue→orange transition feeling on brand. */
.modal-video-container .plyr__control--overlaid {
  background: rgba(242, 103, 57, 0.92);
  border: 0;
}
.modal-video-container .plyr__control--overlaid:hover,
.modal-video-container .plyr__control--overlaid:focus {
  background: #f26739;
}

/* Fallback when the video URL 404s or fails CORS — replaces the empty black
   box with a clickable "Open in a new tab" message. */
.webinar-video-error {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 1rem;
  text-align: center;
  color: #fff;
  background: #000;
  font-size: 0.875rem;
}
.webinar-video-error p { margin: 0 !important; }
.webinar-video-error a {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}

.video-play-btn {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  cursor: pointer;
  transition: background 0.3s ease;
}

.video-play-btn:hover {
  background: rgba(0,0,0,0.5);
}

.video-play-btn .play-circle {
  width: 68px;
  height: 68px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.video-play-btn:hover .play-circle {
  transform: scale(1.08);
}

.play-circle svg {
  margin-left: 4px;
  color: var(--primary-700);
}

/* Poster image behind the play button (set inline from the card thumbnail in
   webinars.js). Replaces the plain black box before playback so the state
   reads as "ready to watch". A dark overlay keeps the play button readable
   over light thumbnails. */
.video-play-btn.has-poster {
  background-color: #000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.video-play-btn.has-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  transition: background 0.3s ease;
}
.video-play-btn.has-poster:hover::before {
  background: rgba(0, 0, 0, 0.55);
}

/* Keep the play circle (and its ripple rings) above the poster overlay. */
.video-play-btn .play-circle {
  position: relative;
  z-index: 2;
}

/* Pulsing ripple: two expanding rings, staggered, to draw the eye to the play
   button. Purely decorative and disabled under reduced-motion. */
.video-play-btn .play-circle::before,
.video-play-btn .play-circle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.65);
  pointer-events: none;
  animation: webinarPlayRipple 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.video-play-btn .play-circle::after {
  animation-delay: 1.2s;
}
@keyframes webinarPlayRipple {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { opacity: 0; }
  100% { transform: scale(2.1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .video-play-btn .play-circle::before,
  .video-play-btn .play-circle::after { animation: none; display: none; }
}

/* ===================================
   6. Empty State
   =================================== */
.webinar-empty-state {
  text-align: center;
  padding: 80px 20px;
  display: none;
}

.webinar-empty-state.visible {
  display: block;
  animation: cardFadeIn 0.4s ease;
}

.webinar-empty-state .empty-icon {
  width: 72px;
  height: 72px;
  background: var(--neutral-050);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.webinar-empty-state h3 {
  font-size: 1.15rem;
  color: var(--neutral-700);
  margin-bottom: 8px;
}

.webinar-empty-state p {
  font-size: 0.9rem;
  color: var(--neutral-500);
  max-width: 360px;
  margin: 0 auto;
}

/* ===================================
   7. Responsive
   =================================== */
@media (max-width: 991px) {
  .webinar-banner {
    padding-block: 3rem 2.5rem;
    min-height: auto;
  }

  .webinar-banner .banner-content h1 {
    font-size: 2.15rem;
  }

}

@media (max-width: 767px) {
  .webinar-banner {
    padding-block: 2.5rem 2rem;
  }

  .webinar-banner .banner-content h1 {
    font-size: 1.75rem;
  }

  .webinar-banner .banner-content p {
    font-size: 0.95rem;
  }

  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-bar-left {
    width: 100%;
  }

  .filter-pill {
    padding: 7px 16px;
    font-size: 0.82rem;
  }

  .webinar-search-bar {
    max-width: 100%;
  }

  .webinar-card .card-body {
    padding: 16px 18px 18px;
  }

  .webinar-card .card-body h3 {
    font-size: 0.95rem;
  }

  /* Speakers grid — single column on mobile */
  .webinar-card .card-speakers {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Modal: auto-minimize on mobile — stack panels vertically */
  .webinar-modal-overlay {
    padding: 12px;
    align-items: flex-end;
  }

  .webinar-modal,
  .webinar-modal.webinar-modal-xl {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    animation: slideUpMobile 0.35s ease;
  }

  @keyframes slideUpMobile {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
  }

  .webinar-modal-inner {
    flex-direction: column;
    min-height: auto;
  }

  .modal-info-panel {
    flex: none;
    border-radius: 20px 20px 0 0;
    padding: 24px 20px 20px;
  }

  .modal-info-panel h3 {
    font-size: 1.1rem;
  }

  .modal-info-features {
    margin-top: 16px;
    gap: 8px;
  }

  .modal-form-panel {
    padding: 20px 20px 24px;
  }

  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 0;
  }
}


/* ===================================
   8. Webinar Details Page
   =================================== */

/* Banner */
.wd-banner {
  width: 100%;
  background: linear-gradient(180deg, #FFF8F1 0%, #FFFBF8 77.6%, rgba(255,255,255,0) 100%);
  padding: 60px 0 90px;
  margin-top: 25px;
  position: relative;
  overflow: visible;
}

.wd-banner::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -6%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(242, 103, 57, 0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.wd-banner::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -4%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(26, 86, 219, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.wd-banner-content {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Banner container needs relative for breadcrumb */
.wd-banner > .container {
  position: relative;
}

/* Live badge */
.wd-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #DC2626;
  color: #fff;
  font-size: 0.72rem;
  font-weight: var(--fnt-bold);
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.wd-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: livePulse 1.5s infinite;
}

/* Banner heading */
.wd-banner-content h1 {
  font-size: 2.6rem;
  color: var(--neutral-900);
  font-weight: var(--fnt-bold);
  line-height: 1.2;
  margin-bottom: 16px !important;
  letter-spacing: -0.5px;
}

.wd-banner-content > p {
  font-size: 1.05rem;
  color: var(--neutral-500);
  line-height: 1.7;
  max-width: 715px;
  margin: 0 auto !important;
}

/* Banner CTA — brand-aligned (matches .btn-register pattern) */
.wd-banner-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding: 0.75rem 1.75rem;
  background: var(--primary-700);
  color: #fff;
  font-family: var(--DMSans);
  font-size: 0.95rem;
  font-weight: var(--fnt-semi);
  line-height: 22px;
  border: 1px solid var(--primary-700);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  outline: none;
  box-shadow: none;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.wd-banner-cta:hover {
  background: #fff;
  color: var(--primary-700);
  border-color: var(--primary-700);
  box-shadow: 0 4px 14px rgba(26, 86, 219, 0.18);
  text-decoration: none;
}

/* Presenter + Info Bar (unified, overlaps banner bottom, centered) */
.wd-presenter-bar {
  display: flex;
  align-items: center;
  gap: 22px;
  background: #EEF3FD;
  border: 1px solid #D6E2F9;
  border-radius: 16px;
  padding: 22px 26px;
  position: relative;
  z-index: 2;
  margin: 0px auto 25px;
  width: fit-content;
  transform: translateY(50%);
}

/* Presenter column */
.wd-presenter-col {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  padding-left: 120px;
  position: relative;
}

.wd-presenter-img {
  width: 120px;
  height: 120px;
  overflow: hidden;
  flex-shrink: 0;
  position: absolute;
  bottom: -22px;
  left: -10px;
}

.wd-presenter-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wd-presenter-details {
  display: flex;
  flex-direction: column;
}

.wd-presenter-label {
  font-size: 0.68rem;
  color: var(--primary-600);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: var(--fnt-bold);
  line-height: 1;
  margin-bottom: 4px;
}

.wd-presenter-name {
  font-size: 1.05rem;
  color: var(--neutral-900);
  font-weight: var(--fnt-bold);
  line-height: 1.3;
}

.wd-presenter-role {
  font-size: 0.8rem;
  color: var(--neutral-500);
  line-height: 1.3;
  margin-top: 1px;
}

/* Dotted divider */
.wd-bar-divider {
  width: 1px;
  height: 44px;
  border-left: 2px dotted var(--primary-200);
  flex-shrink: 0;
}

/* Info columns (date, venue) */
.wd-bar-col {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wd-bar-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-600);
  flex-shrink: 0;
}

.wd-bar-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wd-bar-value {
  font-size: 0.92rem;
  color: var(--neutral-900);
  font-weight: var(--fnt-semi);
}

.wd-bar-sub {
  font-size: 0.78rem;
  color: var(--neutral-500);
}


/* Content + Form Section */
.wd-content-section {
  padding: 80px 0 80px;
  background: linear-gradient(180deg, #f3f1ff 0%, #FFFFFF 100%);
}

.wd-content {
  padding-right: 40px;
}

/* Content blocks */
.wd-content-block {
  margin-bottom: 48px;
}

.wd-content-block:last-child {
  margin-bottom: 0;
}

/* Section heading: number badge + title */
.wd-section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.wd-num-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #EDE9FE;
  color: #7C3AED;
  font-size: 0.85rem;
  font-weight: var(--fnt-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wd-section-heading h2 {
  font-size: 1.4rem;
  color: var(--neutral-900);
  font-weight: var(--fnt-bold);
  margin-bottom: 0;
  line-height: 1.3;
}

.wd-content-block p {
  font-size: 0.92rem;
  color: var(--neutral-600);
  line-height: 1.8;
  margin-bottom: 14px;
}

.wd-content-block p:last-of-type {
  margin-bottom: 0;
}

/* "What we will cover" nested card */
.wd-cover-card {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  padding: 24px 28px;
  margin-top: 24px;
}

.wd-cover-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--neutral-800);
}

.wd-cover-heading svg {
  color: var(--neutral-500);
  flex-shrink: 0;
}

.wd-cover-heading span {
  font-size: 0.95rem;
  font-weight: var(--fnt-bold);
  color: var(--neutral-900);
}

/* 2-column checklist grid */
.wd-checklist-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
}

.wd-checklist-grid li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--neutral-700);
  line-height: 1.55;
}

/* Light purple check icon circle */
.wd-check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #EDE9FE;
  color: #7C3AED;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Benefits list (vertical, for Why Attend) */
.wd-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wd-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--neutral-700);
  line-height: 1.65;
  padding: 10px 0;
  border-bottom: 1px solid var(--neutral-100);
}

.wd-benefits-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.wd-benefits-list li:first-child {
  padding-top: 0;
}


/* ── Form Card (sticky sidebar) ── */
.wd-form-card {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius20);
  padding: 0;
  position: sticky;
  top: 100px;
  overflow: hidden;
  border-width: 1px 4px 4px 1px;
  border-color: #a59ac1;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

/* Form inner padding */
.wd-form-state {
  padding: 32px 30px 36px;
}

.wd-form-card h3 {
  font-size: 1.35rem;
  color: var(--neutral-900);
  font-weight: var(--fnt-bold);
  margin-bottom: 8px;
  line-height: 1.3;
}

.wd-form-subtitle {
  font-size: 0.88rem;
  color: var(--neutral-500);
  margin-bottom: 26px;
  line-height: 1.5;
}

/* Uppercase labels for form */
.wd-form-card .webinar-access-form label {
  font-size: 0.72rem;
  font-weight: var(--fnt-bold);
  color: var(--neutral-600);
  margin-bottom: 8px;
}

/* Phone field — make the form-field row, intl-tel-input wrapper and the
   inner <input> all take full width.
   Scoped to .webinar-access-form so it applies to both the detail-page
   sticky form (.wd-form-card) and the on-demand modal (.modal-form-panel).
   :has() targets only the row containing a tel input, so the
   first-name / last-name grid row above it stays 2-column. */
.webinar-access-form .form-field:has(input[type="tel"]) {
  min-width: 100%;
}

.webinar-access-form .form-field .iti {
  display: block;
  width: 100%;
  min-width: 100%;
}

.webinar-access-form .form-field .iti input,
.webinar-access-form .form-field .iti input[type="tel"] {
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
}

/* Privacy paragraph — small description text */
.wd-form-privacy {
  font-size: 0.72rem;
  color: var(--neutral-500);
  line-height: 1.55;
  margin-top: 14px;
  margin-bottom: 16px;
}

.wd-form-privacy a {
  font-size: inherit;
  color: var(--primary-600);
  text-decoration: underline;
}

.wd-form-privacy a:hover {
  color: var(--primary-700);
}

/* Trust indicator */
.wd-form-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--neutral-100);
  color: var(--neutral-400);
}

.wd-form-trust span {
  font-size: 0.75rem;
  color: var(--neutral-400);
  line-height: 1.4;
}

.wd-form-trust svg {
  flex-shrink: 0;
}

/* Thank-you state */
.wd-thankyou-state {
  display: none;
  padding: 28px 28px 32px;
}

.wd-thankyou-state.active {
  display: block;
  animation: cardFadeIn 0.4s ease;
}

.wd-thankyou-state h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  font-weight: var(--fnt-bold);
  color: var(--neutral-900);
  margin-bottom: 24px;
}

/* Date & time block */
.wd-ty-datetime {
  margin-bottom: 24px;
}

.wd-ty-label {
  display: block;
  font-size: 0.82rem;
  color: var(--neutral-500);
  margin-bottom: 8px;
}

.wd-ty-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: var(--fnt-semi);
  color: var(--neutral-900);
}

.wd-ty-value svg {
  color: var(--neutral-400);
  flex-shrink: 0;
}

/* Calendar links */
.wd-ty-calendar {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wd-ty-calendar .wd-ty-label {
  font-weight: var(--fnt-semi);
  color: var(--neutral-900);
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.wd-cal-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--neutral-100);
  font-size: 0.9rem;
  font-weight: var(--fnt-medium);
  color: var(--neutral-800);
  text-decoration: none;
  transition: background 0.2s ease;
}

.wd-cal-link:first-of-type {
  border-top: 1px solid var(--neutral-100);
}

.wd-cal-link:hover {
  background: var(--neutral-050);
  color: var(--neutral-900);
}

.wd-cal-link svg {
  flex-shrink: 0;
}


/* Speaker card */
.wd-speaker-card {
  display: flex;
  gap: 28px;
  background: linear-gradient(135deg, #f8f6ff 0%, #f0ecff 100%);
  border: 1px solid #e0d9f6;
  border-radius: var(--radius20);
  padding: 32px;
  align-items: flex-start;
}

.wd-speaker-photo {
  width: 120px;
  height: 120px;
  min-width: 120px;
  object-fit: cover;
}

.wd-speaker-body {
  flex: 1;
}

.wd-speaker-name {
  font-size: 1.2rem;
  font-weight: var(--fnt-bold);
  color: var(--neutral-900);
  margin-bottom: 4px;
  line-height: 1.3;
}

.wd-speaker-role {
  font-size: 0.88rem;
  color: #7C3AED;
  font-weight: var(--fnt-semi);
  margin-bottom: 16px;
  display: block;
}

.wd-speaker-bio {
  font-size: 0.9rem;
  color: var(--neutral-600);
  line-height: 1.8;
  margin-bottom: 0;
}


/* ===================================
   9. Webinar Details — Responsive
   =================================== */
@media (max-width: 991px) {
  .wd-banner {
    padding: 60px 0 60px;
  }

  .wd-banner-content h1 {
    font-size: 2rem;
  }

  .wd-presenter-bar {
    gap: 24px;
    padding: 20px 28px;
    margin-top: 32px;
  }

  .wd-content {
    padding-right: 0;
  }

  .wd-content-section {
    padding: 40px 0 60px;
  }

  .wd-form-card {
    position: static;
  }

  .wd-speaker-card {
    padding: 28px;
    gap: 24px;
  }

  .wd-speaker-photo {
    width: 100px;
    height: 100px;
    min-width: 100px;
  }
}

@media (max-width: 767px) {
  .wd-banner {
    padding: 72px 0 56px;
  }

  .wd-breadcrumb {
    position: static;
    margin-bottom: 16px;
  }

  .wd-banner-content {
    padding-top: 0;
  }

  .wd-banner-content h1 {
    font-size: 1.6rem;
    letter-spacing: -0.3px;
  }

  .wd-banner-content > p {
    font-size: 0.9rem;
  }

  .wd-presenter-bar {
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 20px;
    margin-top: 28px;
    border-radius: 14px;
    width: 100%;
  }

  .wd-presenter-col {
    width: 100%;
    padding-left: 80px;
  }

  .wd-presenter-img {
    width: 80px;
    height: 80px;
    bottom: -20px;
    left: -6px;
  }

  .wd-bar-divider {
    display: none;
  }

  .wd-bar-col {
    flex: 1;
    min-width: 140px;
  }

  .wd-content-section {
    padding: 32px 0 48px;
  }

  /* Numbered section headings */
  .wd-section-heading h2 {
    font-size: 1.05rem;
  }

  .wd-num-badge {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  /* Cover card — checklist grid to 1 column */
  .wd-cover-card {
    padding: 18px 18px 14px;
  }

  .wd-checklist-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .wd-check-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
  }

  .wd-check-icon svg {
    width: 11px;
    height: 11px;
  }

  /* Benefits list */
  .wd-benefits-list li {
    padding: 12px 0;
    font-size: 0.88rem;
  }

  /* Content blocks spacing */
  .wd-content-block {
    margin-bottom: 28px;
  }

  /* Speaker card — stack on mobile */
  .wd-speaker-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
    gap: 18px;
  }

  .wd-speaker-photo {
    width: 96px;
    height: 96px;
    min-width: 96px;
  }

  .wd-speaker-name {
    font-size: 1.1rem;
  }

  /* Form card — un-sticky on mobile */
  .wd-form-card {
    position: static;
    margin-top: 36px;
  }

  .wd-form-state,
  .wd-thankyou-state {
    padding: 24px 20px 28px;
  }

  .wd-form-card h3 {
    font-size: 1.2rem;
  }

  .wd-content-section .form-row-2col {
    grid-template-columns: 1fr;
    gap: 0;
  }
}


/* ============================================================
   WEBINARS HUB — Brand-aligned (eMudhra 2026)
   ============================================================
   25/75 layout: Left = heading + desc, Right = 2 cards
   Uses brand colors: --primary-600 (#f26739), --secondary-500 (#f26739)
   Self-contained additions only.
   ============================================================ */

.wh-hub-section {
  padding: 30px 0 90px;
  background: #fff;
  overflow-x: hidden;
}

/* ===== 25/75 Two-column wrapper (flexbox, no overflow) ===== */
.wh-hub-row {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}
.wh-hub-left {
  flex: 0 0 280px;
  max-width: 280px;
  min-width: 0;
}
.wh-hub-cards {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}
.wh-hub-card {
  min-width: 0;
}

/* ===== Left column: Heading + Description ===== */
.wh-hub-left {
  position: sticky;
  top: 100px;
  padding-right: 10px;
}
.wh-hub-eyebrow {
  display: inline-block;
  background: #FFF1E8;
  color: #f26739;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.wh-hub-left h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: #111928;
  line-height: 1.25;
  margin: 0 0 16px;
}
.wh-hub-left h2 span {
  color: #f26739;
}
.wh-hub-left p {
  font-size: 0.95rem;
  color: #6B7280;
  line-height: 1.7;
  margin: 0 0 22px;
}
.wh-hub-left .wh-trust-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #6B7280;
  padding-top: 18px;
  border-top: 1px solid #F3F4F6;
  margin-top: 6px;
}
.wh-hub-left .wh-trust-line svg {
  flex-shrink: 0;
  color: #f26739;
}

/* ===== Right column: 2 cards ===== */
.wh-hub-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.wh-hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 36px 32px 32px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 340px;
}

.wh-hub-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(242, 103, 57, 0.12);
  border-color: #f26739;
  color: inherit;
}
.wh-hub-card.wh-card-orange:hover {
  border-color: #f26739;
  box-shadow: 0 18px 40px rgba(242, 103, 57, 0.12);
}

/* Background watermark icon */
.wh-card-watermark {
  position: absolute;
  right: -20px;
  bottom: -25px;
  width: 180px;
  height: 180px;
  opacity: 0.05;
  color: #f26739;
  pointer-events: none;
  transition: all 0.4s ease;
}
.wh-hub-card.wh-card-orange .wh-card-watermark { color: #f26739; }
.wh-hub-card:hover .wh-card-watermark {
  opacity: 0.1;
  transform: scale(1.08) rotate(-4deg);
}

/* Top right status badge */
.wh-card-status {
  position: absolute;
  top: 22px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}
.wh-card-status.live {
  background: #FEE2E2;
  color: #DC2626;
}
.wh-card-status.live::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #DC2626;
  border-radius: 50%;
  animation: whPulse 1.5s ease infinite;
}
.wh-card-status.library {
  background: #FFF1E8;
  color: #f26739;
}
@keyframes whPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

/* Icon wrap */
.wh-card-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: #EBF5FF;
  border-radius: 14px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}
.wh-card-icon-wrap svg {
  color: #f26739;
  transition: color 0.3s ease;
}
.wh-hub-card:hover .wh-card-icon-wrap {
  background: linear-gradient(135deg, #f26739 0%, #1E429F 100%);
}
.wh-hub-card:hover .wh-card-icon-wrap svg {
  color: #fff;
}
/* Orange variant icon */
.wh-hub-card.wh-card-orange .wh-card-icon-wrap {
  background: #FFF1E8;
}
.wh-hub-card.wh-card-orange .wh-card-icon-wrap svg {
  color: #f26739;
}
.wh-hub-card.wh-card-orange:hover .wh-card-icon-wrap {
  background: linear-gradient(135deg, #f26739 0%, #E04A0F 100%);
}
.wh-hub-card.wh-card-orange:hover .wh-card-icon-wrap svg {
  color: #fff;
}

/* Content */
.wh-card-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.wh-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111928;
  margin: 0 0 12px;
  line-height: 1.3;
}
.wh-card-desc {
  font-size: 0.92rem;
  color: #6B7280;
  line-height: 1.65;
  margin: 0 0 24px;
  flex: 1;
}

/* CTA — uses brand .ems-btn--info pattern */
.wh-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f26739;
  border: 1px solid #f26739;
  color: #fff;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  width: fit-content;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.wh-card-cta svg {
  transition: transform 0.3s ease;
}
.wh-hub-card:hover .wh-card-cta {
  background: transparent;
  color: #f26739;
}
.wh-hub-card:hover .wh-card-cta svg {
  transform: translateX(3px);
}
/* Orange CTA */
.wh-hub-card.wh-card-orange .wh-card-cta {
  background: #f26739;
  border-color: #f26739;
}
.wh-hub-card.wh-card-orange:hover .wh-card-cta {
  background: transparent;
  color: #f26739;
}

/* Stats footer */
.wh-card-stats {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #F3F4F6;
  position: relative;
  z-index: 1;
}
.wh-card-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6B7280;
}
.wh-card-stat strong {
  color: #f26739;
  font-weight: 700;
  font-size: 14px;
}
.wh-hub-card.wh-card-orange .wh-card-stat strong {
  color: #f26739;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .wh-hub-row {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .wh-hub-left {
    position: static;
    padding-right: 0;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
  }
  .wh-hub-left .wh-trust-line { justify-content: center; }
}
@media (max-width: 768px) {
  .wh-hub-section { padding: 20px 0 60px; }
  .wh-hub-left h2 { font-size: 1.5rem; }
  .wh-hub-cards {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 480px;
    margin: 0 auto;
  }
  .wh-hub-card { padding: 30px 26px 28px; min-height: auto; }
  .wh-card-icon-wrap { width: 56px; height: 56px; margin-bottom: 18px; }
  .wh-card-title { font-size: 1.2rem; }
  .wh-card-watermark { width: 140px; height: 140px; }
}


/* ===== Switch button between Live <-> On-Demand pages (filter-bar right) ===== */
.filter-pill.filter-pill-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  background: #fff;
  border: 1.5px solid #E5E7EB;
  color: #f26739;
  font-weight: 600;
  transition: all 0.2s ease;
}
.filter-pill.filter-pill-switch:hover {
  background: #f26739;
  border-color: #f26739;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(242, 103, 57, 0.2);
}
.filter-pill.filter-pill-switch:hover .pill-dot {
  background: #fff;
}


/* ============================================================
   "Latest" / "NEW" highlight for first on-demand card
   ============================================================ */
.webinar-card.webinar-card-latest {
  position: relative;
  box-shadow: 0 0 0 1px #FFD4BD, 0 12px 36px rgba(242, 103, 57, 0.18);
  transform: translateY(-4px);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.webinar-card.webinar-card-latest:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 0 1px #FFB088, 0 18px 44px rgba(242, 103, 57, 0.26);
}

/* Corner ribbon "NEW" badge */
.webinar-card.webinar-card-latest .latest-ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  background: linear-gradient(135deg, #f26739 0%, #E04A0F 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(242, 103, 57, 0.4);
  animation: ribbonBob 2s ease-in-out infinite;
}
@keyframes ribbonBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Hide the existing on-demand badge on the latest card to avoid clutter */
.webinar-card.webinar-card-latest .card-badge {
  display: none;
}

/* ===== Webinars Hub redesign — top-centered heading + 2-col cards ===== */
.wh-hub-topcontent .wh-hub-eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
}
.wh-hub-topcontent h2 {
    margin-bottom: 0.75rem;
}
.wh-hub-topcontent p {
    max-width: 760px;
    margin: 0 auto !important;
}
.wh-hub-cards-row .wh-hub-card {
    height: 100%;
}
/* Webinars FAQ section */
.wh-faq-section {
    background: linear-gradient(135deg, #F5F8FC 0%, #EBF5FF 100%);
}
.wh-faq-left h3.ems-h3 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    color: #111928;
}
.wh-faq-left .ems-section-title {
    color: var(--primary-700, #1A56DB);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: 13px;
}
@media (min-width: 992px) {
    .wh-faq-left {
        position: -webkit-sticky;
        position: sticky;
        top: 120px;
    }
}
.wh-faq-accordion .accordion-item {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px !important;
    margin-bottom: 14px;
    overflow: hidden;
}
.wh-faq-accordion .accordion-header { margin: 0; }
.wh-faq-accordion .accordion-button {
    background: #fff;
    color: #1F2937;
    font-weight: 600;
    font-size: 16px;
    padding: 20px 24px;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}
.wh-faq-accordion .accordion-button::after { display: none; }
.wh-faq-accordion .accordion-button:not(.collapsed) {
    background: #fff;
    color: var(--primary-700, #1A56DB);
    box-shadow: none;
}
.wh-faq-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}
.wh-faq-accordion .accordion-button > span { flex: none; }
.wh-faq-arrow {
    font-size: 26px;
    line-height: 1;
    color: #6B7280;
    background: #F3F4F6;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
    transition: transform .25s ease, background-color .25s ease, color .25s ease;
}
.wh-faq-accordion .accordion-button:not(.collapsed) .wh-faq-arrow {
    transform: rotate(180deg);
    background: var(--primary-700, #1A56DB);
    color: #fff;
}
.wh-faq-accordion .accordion-body {
    padding: 0 24px 22px;
    color: #4A5568;
    font-size: 15px;
    line-height: 1.65;
}

/* Banner CTA buttons */
.banner-content .banner-ctas {
    margin-top: 1.5rem;
}

/* === Country flag (iti sprite) alignment inside our custom phone dropdown === */
.wf-cc-toggle .iti__flag {
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}
.wf-cc-list .iti__flag {
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}
.wf-cc-iso-txt {
  vertical-align: middle;
}

/* === Multi-speaker (2 presenters) overrides — placed at bottom to win cascade === */
.wd-presenter-col + .wd-presenter-col .wd-presenter-img {
  bottom: -22px;
}
@media (min-width: 768px) and (max-width: 991px) {
  .wd-presenter-col + .wd-presenter-col {
    margin-top: 8px;
  }
}
@media (max-width: 767px) {
  .wd-presenter-bar {
    margin-top: 0 !important;
    transform: translateY(10%) !important;
  }
  .wd-banner {
    padding-bottom: 32px !important;
  }
  .wd-presenter-col + .wd-presenter-col .wd-presenter-img {
    bottom: -20px;
  }
  .wd-presenter-col + .wd-presenter-col {
    margin-top: 36px;
  }
}
