/* Webinar page — ported from dawar lhony/Webinar.html & Webinar Detail.html */

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

[dir="rtl"] .ph-title,
[dir="rtl"] .feat-title,
[dir="rtl"] .past-title,
[dir="rtl"] .testi-head .testi-title,
[dir="rtl"] .wd-title {
  line-height: 1.55;
  letter-spacing: 0;
}

/* ── PAGE HEADER ── */

.page-header { background: white; border-bottom: 1px solid var(--border, #e5e7eb); padding: 28px 0; }

.ph-inner { max-width: 1320px; margin: 0 auto; padding: 0 80px; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }

.ph-bc { font-size: 12.5px; color: var(--muted, #6b7280); display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }

.ph-bc a { color: var(--muted, #6b7280); text-decoration: none; transition: color .15s; }

.ph-bc a:hover { color: var(--orange, #fd8a00); }

.ph-title { font-size: 26px; font-weight: 800; letter-spacing: -0.6px; color: var(--text, #111827); margin-bottom: 5px; }

.ph-sub { font-size: 14px; color: var(--muted, #6b7280); line-height: 1.65; max-width: 500px; }

.ph-live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px; background: var(--ol, #fff4e6); border: 1px solid rgba(253,138,0,0.3); border-radius: 100px; font-size: 11px; font-weight: 800; color: var(--orange, #fd8a00); letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 10px; }

.ph-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange, #fd8a00); animation: livePulse 1.5s ease-in-out infinite; }

/* ── FEATURED WEBINAR ── */

.featured-wrap { padding: 32px 0 40px; background: var(--bg-alt, #f9fafb); }

.featured-inner { max-width: 1320px; margin: 0 auto; padding: 0 80px; }

.feat-card {
  background: var(--dark, #0d1b2a); border-radius: 20px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 280px; align-items: stretch;
  box-shadow: 0 24px 64px rgba(13,27,42,0.18);
}

.feat-broadcast { padding: 32px 36px; display: flex; flex-direction: column; gap: 18px; }

.feat-top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.feat-upcoming { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 800; color: var(--orange, #fd8a00); letter-spacing: 1.2px; text-transform: uppercase; }

.feat-upcoming-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange, #fd8a00); animation: livePulse 1.5s ease-in-out infinite; }

.feat-platform { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.45); padding: 5px 12px; border-radius: 20px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); }

.feat-title { font-size: 26px; font-weight: 800; color: white; letter-spacing: -0.5px; line-height: 1.3; max-width: 560px; }

a.feat-title { color: white; text-decoration: none; transition: color .18s; }

a.feat-title:hover { color: var(--ol, #fff4e6); }

.feat-host { display: flex; align-items: center; gap: 14px; }

.feat-host-av { width: 44px; height: 44px; border-radius: 50%; background: var(--orange, #fd8a00); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; color: white; flex-shrink: 0; }

.feat-host-name { font-size: 14px; font-weight: 800; color: white; }

.feat-host-role { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 2px; }

.feat-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.feat-tag { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.55); padding: 5px 12px; border-radius: 20px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); }

.feat-meta-row { display: flex; gap: 20px; flex-wrap: wrap; }

.feat-meta-item { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: rgba(255,255,255,0.45); font-weight: 600; }

.feat-apply { padding: 32px 28px; border-inline-start: 1px solid rgba(255,255,255,0.08); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-width: 240px; }

.feat-date-box { text-align: center; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 18px 24px; width: 100%; }

.feat-date-day { font-size: 42px; font-weight: 800; color: white; line-height: 1; letter-spacing: -2px; }

.feat-date-mon { font-size: 11px; font-weight: 800; color: var(--orange, #fd8a00); letter-spacing: 0.8px; text-transform: uppercase; margin-top: 4px; }

.feat-date-time { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 6px; font-weight: 600; }

.feat-free-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; color: var(--green, #16a34a); background: rgba(22,163,74,0.12); border: 1px solid rgba(22,163,74,0.25); padding: 6px 14px; border-radius: 20px; }

.feat-apply-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px 20px; background: var(--orange, #fd8a00); color: white; font-size: 14px; font-weight: 800; border-radius: 12px; transition: background .18s; text-decoration: none; border: none; cursor: pointer; font-family: inherit; }

.feat-apply-btn:hover { background: var(--oh, #e07a00); }

.feat-attendees { font-size: 11.5px; color: rgba(255,255,255,0.35); text-align: center; line-height: 1.55; }

/* ── PAST WEBINARS ── */

.past-wrap { padding: 60px 0 88px; background: var(--dark, #0d1b2a); }

.past-inner { max-width: 1320px; margin: 0 auto; padding: 0 80px; }

.past-head { margin-bottom: 32px; }

.past-eye { font-size: 11px; font-weight: 800; color: var(--orange, #fd8a00); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; }

.past-title { font-size: 28px; font-weight: 800; color: white; letter-spacing: -0.5px; }

.past-sub { font-size: 14px; color: rgba(255,255,255,0.4); margin-top: 6px; line-height: 1.65; }

.past-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }

.past-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
  min-width: 0; height: 100%;
}

.past-thumb { height: 150px; position: relative; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; }

.past-thumb-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,27,42,0.9) 0%, transparent 60%); }

.past-play { position: absolute; width: 48px; height: 48px; border-radius: 50%; background: rgba(253,138,0,0.9); display: flex; align-items: center; justify-content: center; z-index: 2; }

.past-watched-badge { position: absolute; top: 12px; inset-inline-end: 12px; font-size: 9.5px; font-weight: 800; color: white; background: rgba(22,163,74,0.85); padding: 4px 9px; border-radius: 20px; z-index: 2; }

.past-thumb-title { position: absolute; bottom: 12px; inset-inline: 14px; font-size: 13.5px; font-weight: 800; color: white; z-index: 2; line-height: 1.35; }

.past-body { padding: 14px 16px 8px; flex: 1; min-width: 0; }

.past-cat { font-size: 9.5px; font-weight: 800; color: var(--orange, #fd8a00); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }

.past-name { font-size: 14px; font-weight: 800; color: #fff; line-height: 1.35; margin-bottom: 4px; word-wrap: break-word; }

.past-date { font-size: 11px; color: rgba(255,255,255,0.35); font-weight: 600; }

.past-foot { padding: 10px 16px 14px; border-top: 1px solid rgba(255,255,255,0.07); display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; flex-wrap: wrap; }

.past-dur { display: flex; align-items: center; gap: 5px; font-size: 11px; color: rgba(255,255,255,0.35); font-weight: 600; }

.past-replay { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--orange, #fd8a00); background: rgba(253,138,0,0.1); border: 1px solid rgba(253,138,0,0.28); padding: 7px 14px; border-radius: 9px; text-decoration: none; }

.past-panel { position: relative; }

.past-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

.past-lock-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(220,38,38,0.15); border: 1px solid rgba(220,38,38,0.35);
  font-size: 11px; font-weight: 800; color: #fca5a5;
}

.past-locked {
  display: none; text-align: center; padding: 56px 32px;
  background: rgba(255,255,255,0.04); border: 1.5px dashed rgba(255,255,255,0.14);
  border-radius: 24px;
}

.past-locked.show { display: block; }

.past-lock-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px;
  background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.55);
}

.past-lock-title { font-size: 20px; font-weight: 800; margin-bottom: 8px; color: white; }

.past-lock-sub { font-size: 14px; color: rgba(255,255,255,0.45); max-width: 420px; margin: 0 auto 22px; line-height: 1.7; }

.past-lock-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px;
  background: var(--orange, #fd8a00); color: white; font-size: 14px; font-weight: 800;
  border-radius: 12px; text-decoration: none; transition: background .18s;
}

.past-lock-btn:hover { background: var(--oh, #e07a00); }

.past-grid.hidden { display: none; }

/* ── TESTIMONIALS ── */

.testi-wrap { padding: 72px 0 96px; background: white; }

.testi-inner { max-width: 1320px; margin: 0 auto; padding: 0 80px; }

.testi-head { text-align: center; margin-bottom: 44px; }

.testi-head .testi-title { font-size: 24px; font-weight: 800; color: var(--text, #111827); line-height: 1.4; }

.testi-head .testi-eye { font-size: 11px; font-weight: 800; color: var(--orange, #fd8a00); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; }

.testi-head .testi-sub { font-size: 14px; color: var(--muted, #6b7280); margin-top: 8px; max-width: 560px; margin-inline: auto; line-height: 1.7; }

.testi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.testi-card { background: var(--bg-alt, #f9fafb); border: 1px solid var(--border, #e5e7eb); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; min-width: 0; transition: transform .2s, box-shadow .2s; }

.testi-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.06); }

.testi-quote { font-size: 40px; font-weight: 900; color: var(--orange, #fd8a00); line-height: 0.8; margin-bottom: 16px; font-family: Georgia, serif; opacity: 0.75; }

.testi-text { font-size: 14.5px; color: var(--text, #111827); line-height: 1.75; margin-bottom: 24px; flex: 1; word-wrap: break-word; overflow-wrap: anywhere; }

.testi-author { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--border, #e5e7eb); }

.testi-photo { width: 52px; height: 52px; border-radius: 50%; -o-object-fit: cover; object-fit: cover; border: 2px solid rgba(253,138,0,0.2); }

.testi-name { font-size: 15px; font-weight: 800; color: var(--text, #111827); }

.testi-role { font-size: 12.5px; color: var(--muted, #6b7280); margin-top: 3px; font-weight: 600; }

/* ── APPLY MODAL ── */

.modal-overlay { position: fixed; inset: 0; z-index: 400; background: rgba(13,27,42,0.55); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .22s; }

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal { background: white; border-radius: 20px; width: min(480px, 100%); max-height: 90vh; overflow-y: auto; box-shadow: 0 32px 80px rgba(0,0,0,0.22); }

.m-head { padding: 24px 24px 16px; border-bottom: 1px solid var(--border, #e5e7eb); position: relative; }

.m-label { font-size: 11px; font-weight: 800; color: var(--orange, #fd8a00); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }

.m-title { font-size: 20px; font-weight: 800; color: var(--text, #111827); line-height: 1.35; padding-inline-end: 36px; }

.m-close { position: absolute; top: 20px; inset-inline-end: 20px; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border, #e5e7eb); background: var(--bg-alt, #f9fafb); color: var(--muted, #6b7280); cursor: pointer; display: flex; align-items: center; justify-content: center; }

.m-body { padding: 20px 24px 24px; }

.m-info-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }

.m-info-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted, #6b7280); padding: 6px 10px; background: var(--bg-alt, #f9fafb); border-radius: 8px; border: 1px solid var(--border, #e5e7eb); }

.m-note { font-size: 13px; color: var(--muted, #6b7280); line-height: 1.65; margin-bottom: 18px; padding: 12px 14px; background: var(--bg-alt, #f9fafb); border-radius: 10px; border: 1px solid var(--border, #e5e7eb); display: flex; gap: 8px; }

.m-field { margin-bottom: 14px; }

.m-field label { display: block; font-size: 12px; font-weight: 700; color: var(--text, #111827); margin-bottom: 6px; }

.m-field input { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border, #e5e7eb); border-radius: 10px; font-size: 14px; font-family: inherit; }

.m-field input:focus { outline: none; border-color: var(--orange, #fd8a00); }

.m-submit { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; background: var(--orange, #fd8a00); color: white; font-size: 14px; font-weight: 800; border: none; border-radius: 12px; cursor: pointer; font-family: inherit; }

.m-success { display: none; text-align: center; padding: 24px 8px; }

.m-success.on { display: block; }

.m-suc-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(22,163,74,0.12); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }

.m-suc-title { font-size: 18px; font-weight: 800; color: var(--green, #16a34a); margin-bottom: 6px; }

.m-suc-sub { font-size: 13px; color: var(--muted, #6b7280); line-height: 1.65; }

/* ── WEBINAR DETAIL ── */

.wd-hero { position: relative; min-height: 400px; overflow: hidden; background: var(--dark, #0d1b2a); }

.wd-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }

.wd-hero-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(13,27,42,0.88) 0%, rgba(13,27,42,0.5) 60%, rgba(13,27,42,0.35) 100%); }

.wd-hero-inner { position: relative; z-index: 2; max-width: 1320px; margin: 0 auto; padding: 52px 80px 44px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; min-height: 400px; }

.wd-hero-content { max-width: 720px; }

.wd-plat { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); border-radius: 999px; font-size: 11px; font-weight: 800; color: rgba(255,255,255,0.8); margin-bottom: 14px; }

.wd-title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: white; line-height: 1.2; margin-bottom: 14px; }

.wd-desc { font-size: 16px; color: rgba(255,255,255,0.72); line-height: 1.75; max-width: 600px; margin-bottom: 20px; }

.wd-meta { display: flex; flex-wrap: wrap; gap: 18px; }

.wd-meta-item { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,0.65); }

.wd-date-chip { flex-shrink: 0; background: rgba(255,255,255,0.1); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.18); border-radius: 18px; padding: 18px 22px; text-align: center; min-width: 110px; }

.wd-date-num { font-size: 36px; font-weight: 800; color: white; line-height: 1; }

.wd-date-mon { font-size: 11px; font-weight: 700; color: var(--orange, #fd8a00); margin-top: 4px; letter-spacing: 1px; }

.wd-date-time { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 8px; font-weight: 600; }

.wd-body { max-width: 1320px; margin: 0 auto; padding: 48px 80px 88px; display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }

.wd-prose { font-size: 15px; color: var(--muted, #6b7280); line-height: 1.85; }

.wd-prose p { margin-bottom: 14px; }

.wd-sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }

.book-free { font-size: 26px; font-weight: 800; color: var(--green, #16a34a); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }

.book-applied { font-size: 13px; font-weight: 700; color: var(--muted, #6b7280); margin-bottom: 18px; }

.reg-form { display: none; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border, #e5e7eb); }

.reg-form.open { display: block; }

.reg-field { margin-bottom: 12px; }

.reg-field label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 5px; }

.reg-field input { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border, #e5e7eb); border-radius: 10px; font-size: 14px; font-family: inherit; }

.reg-field input:focus { outline: none; border-color: var(--orange, #fd8a00); box-shadow: 0 0 0 3px rgba(253,138,0,0.1); }

.reg-note { font-size: 12.5px; color: var(--muted, #6b7280); line-height: 1.6; margin-bottom: 14px; display: flex; gap: 8px; }

.reg-success { display: none; text-align: center; padding: 16px 0 4px; }

.reg-success.on { display: block; }

.reg-success-title { font-size: 18px; font-weight: 800; margin-bottom: 6px; color: var(--green, #16a34a); }

/* ── RESPONSIVE ── */

@media (max-width: 1024px) {
  .ph-inner, .featured-inner, .past-inner, .testi-inner { padding-inline: 28px; }
  .wd-hero-inner, .wd-body { padding-inline: 28px; }
  .wd-body { grid-template-columns: 1fr; }
  .wd-sidebar { position: static; }
}

@media (max-width: 900px) {
  .past-grid, .testi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .feat-card { grid-template-columns: 1fr; display: flex; flex-direction: column; }
  .feat-apply {
    border-inline-start: none; border-top: 1px solid rgba(255,255,255,0.08);
    flex-direction: column; align-items: stretch;
    min-width: 0; padding: 24px; gap: 16px;
  }
  .feat-date-box { width: 100%; }
  .feat-apply-btn { width: 100%; }
}

@media (max-width: 820px) {
  .page-header { padding: 20px 0; }
  .ph-inner { padding-inline: 20px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .ph-title { font-size: 22px; }
  .featured-inner, .past-inner, .testi-inner { padding-inline: 20px; }
  .testi-wrap { padding: 48px 0 64px; }
  .testi-head { margin-bottom: 28px; }
  .past-wrap { padding: 48px 0 64px; }
  .past-foot { flex-wrap: wrap; gap: 10px; }
  .wd-hero-inner, .wd-body { padding-inline: 20px; }
  .wd-hero-inner { flex-direction: column; align-items: flex-start; min-height: auto; padding-top: 36px; padding-bottom: 32px; }
  .wd-date-chip { align-self: flex-start; }
}

@media (max-width: 640px) {
  .featured-wrap { padding: 16px 0; }
  .feat-card { border-radius: 16px; }
  .feat-broadcast { padding: 20px 18px; gap: 14px; }
  .feat-title { font-size: 20px; max-width: none; }
  .feat-meta-row { flex-direction: column; gap: 8px; align-items: flex-start; }
  .feat-apply { padding: 18px; }
  .past-grid, .testi-grid { grid-template-columns: 1fr; }
  .past-replay { width: 100%; justify-content: center; }
}
