:root {
  --nubex-red: #ff321f;
  --nubex-red-dark: #e62718;
  --nubex-orange: #ff4a28;
  --nubex-navy: #061426;
  --nubex-dark: #08111f;
  --nubex-blue: #0b2345;
  --nubex-light: #f7f9fc;
  --nubex-border: #dce3ec;
  --nubex-text: #111827;
  --nubex-muted: #5b6472;
  --shadow: 0 12px 30px rgba(8, 17, 31, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: #ffffff;
  color: var(--nubex-text);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  image-rendering: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.webinars-page {
  background: #ffffff;
  color: var(--nubex-text);
  min-height: 100vh;
}

.webinar-container {
  width: min(100% - 48px, 1200px);
  margin: 0 auto;
}

.webinar-hero.hero-as-image {
  position: relative;
  width: min(100% - 48px, 1200px);
  margin: 32px auto 18px;
  overflow: hidden;
  background: var(--nubex-navy);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(8, 17, 31, 0.16);
}

.webinar-hero.hero-as-image img {
  width: 100%;
  height: auto;
}

.hero-hotspot {
  position: absolute;
  display: block;
  border-radius: 10px;
}

.hero-register {
  left: 2.6%;
  top: 71%;
  width: 23.6%;
  height: 12%;
}

.hero-recordings {
  left: 27.5%;
  top: 71%;
  width: 18.5%;
  height: 12%;
}

.section {
  padding: 34px 0;
}

.section.compact {
  padding: 22px 0 16px;
}

.section.tight {
  padding: 12px 0 18px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}

.section-head h2,
.section-title {
  margin: 0;
  color: #101828;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--nubex-muted);
  font-size: 15px;
}

.text-link {
  flex: 0 0 auto;
  color: var(--nubex-red);
  font-weight: 800;
  font-size: 14px;
}

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

.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.webinar-card,
.video-card,
.speaker-card,
.register-card {
  background: #ffffff;
  border: 1px solid #e5eaf1;
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.media-wrap,
.video-thumb {
  position: relative;
  height: 156px;
  overflow: hidden;
  background: #0d2343;
}

.media-wrap img,
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--nubex-red), var(--nubex-orange));
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.card-body {
  position: relative;
  padding: 30px 18px 18px;
}

.calendar-mark {
  position: absolute;
  left: 16px;
  top: -24px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(8, 17, 31, 0.12);
  color: transparent;
}

.calendar-mark::before,
.calendar-mark::after {
  content: "";
  position: absolute;
  border: 2px solid var(--nubex-red);
}

.calendar-mark::before {
  inset: 13px 11px 10px;
  border-radius: 4px;
}

.calendar-mark::after {
  left: 17px;
  top: 9px;
  width: 12px;
  height: 8px;
  border-width: 0 2px;
}

h3 {
  color: #111827;
  font-weight: 850;
}

.card-body h3 {
  min-height: 68px;
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.card-body p,
.video-body p,
.speaker-card p {
  margin: 0;
  color: #344054;
  font-size: 14px;
  line-height: 1.55;
}

.card-body .date {
  margin-bottom: 12px;
  color: var(--nubex-red);
  font-size: 14px;
  font-weight: 800;
}

.card-body .date span {
  margin: 0 8px;
}

.webinars-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 12px 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

.webinars-page .btn-primary {
  margin-top: 18px;
  background: linear-gradient(135deg, var(--nubex-red), var(--nubex-orange));
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(255, 50, 31, 0.22);
}

.webinars-page .btn.block {
  width: 100%;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.benefit-card {
  min-height: 164px;
  padding: 26px 18px 22px;
  border-radius: 14px;
  text-align: center;
  border: 1px solid rgba(220, 227, 236, 0.7);
}

.benefit-red {
  background: #fff0ee;
}

.benefit-peach {
  background: #fff3ec;
}

.benefit-blue {
  background: #eff6ff;
}

.benefit-green {
  background: #eefaf6;
}

.benefit-card h3 {
  margin: 12px 0 8px;
  font-size: 16px;
  line-height: 1.2;
}

.benefit-card p {
  margin: 0 auto;
  color: #364152;
  font-size: 13px;
  line-height: 1.5;
  max-width: 240px;
}

.line-icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  border-radius: 18px;
  position: relative;
}

.benefit-red .line-icon,
.benefit-peach .line-icon {
  color: var(--nubex-red);
}

.benefit-blue .line-icon {
  color: #1d5fbf;
}

.benefit-green .line-icon {
  color: #087c5a;
}

.line-icon::before,
.line-icon::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 3px solid currentColor;
}

.line-icon.cloud::before {
  border-radius: 18px 18px 12px 12px;
  border-top-width: 5px;
}

.line-icon.expert::before {
  border-radius: 50%;
  inset: 10px 21px 28px;
}

.line-icon.expert::after {
  inset: 30px 13px 12px;
  border-radius: 18px 18px 6px 6px;
  border-top-width: 3px;
}

.line-icon.doc::before {
  border-radius: 4px;
}

.line-icon.doc::after {
  inset: 22px 21px 28px 20px;
  border-width: 2px 0 2px;
}

.line-icon.briefcase::before {
  border-radius: 7px;
  inset: 20px 8px 12px;
}

.line-icon.briefcase::after {
  inset: 12px 22px 37px;
  border-radius: 4px 4px 0 0;
}

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

.speaker-card {
  display: grid;
  grid-template-columns: 136px 1fr;
  min-height: 190px;
}

.speaker-card img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  object-position: center top;
}

.speaker-card:nth-child(3) img {
  object-position: 42% center;
}

.speaker-card > div {
  position: relative;
  padding: 24px 18px 18px;
}

.speaker-card h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.speaker-card .role {
  margin-bottom: 12px;
  color: var(--nubex-red);
  font-weight: 800;
  font-size: 13px;
}

.speaker-card span {
  display: inline-flex;
  margin-top: 14px;
  padding: 7px 10px;
  border-radius: 6px;
  background: #f7f9fc;
  border: 1px solid var(--nubex-border);
  color: #475467;
  font-size: 12px;
  font-weight: 600;
}

.linkedin {
  position: absolute;
  top: 16px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background: #0a66c2;
  color: #ffffff;
  font-weight: 900;
  font-size: 15px;
}

.video-thumb {
  height: 130px;
}

.play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.play::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 17px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid var(--nubex-blue);
}

.duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.78);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.video-body {
  padding: 14px;
}

.video-body h3 {
  min-height: 70px;
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.video-body p {
  min-height: 76px;
  font-size: 13px;
}

.webinars-page .btn-outline-red,
.webinars-page .btn-outline-gray {
  margin-top: 10px;
  background: #ffffff;
  color: var(--nubex-red);
  border-color: var(--nubex-red);
  min-height: 36px;
  padding: 8px 12px;
}

.webinars-page .btn-outline-gray {
  color: #334155;
  border-color: #98a6b8;
}

.register-section {
  padding-top: 18px;
  padding-bottom: 0;
  scroll-margin-top: 118px;
}

.registration-grid {
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #e4eaf2;
}

.register-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 28px;
}

.register-card h2,
.why-register h2 {
  margin: 0 0 6px;
  color: #101828;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.register-card > p {
  margin: 0 0 18px;
  color: var(--nubex-muted);
  font-size: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: block;
  position: relative;
}

label span {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #536071;
  font-size: 13px;
}

label b {
  color: var(--nubex-red);
}

input,
select {
  width: 100%;
  height: 42px;
  border: 1px solid #d7e0eb;
  border-radius: 6px;
  background: #ffffff;
  padding: 8px 12px;
  font: inherit;
}

.register-card .btn-primary {
  border: 0;
  margin-top: 16px;
}

.register-card small {
  display: block;
  margin-top: 10px;
  text-align: center;
  color: #667085;
  font-size: 12px;
}

.why-register {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 280px;
  align-items: center;
  gap: 22px;
  min-height: 280px;
  padding: 34px 30px;
  background:
    radial-gradient(circle at 82% 35%, rgba(20, 117, 255, 0.22), transparent 28%),
    linear-gradient(135deg, #061426 0%, #071a33 55%, #08111f 100%);
  color: #ffffff;
  overflow: hidden;
}

.why-register img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  opacity: 0.86;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.28);
}

.why-register h2 {
  color: #ffffff;
  margin-bottom: 18px;
}

.why-register ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.why-register li {
  position: relative;
  padding-left: 42px;
}

.why-register li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  border: 2px solid var(--nubex-red);
  border-radius: 4px;
}

.why-register strong {
  display: block;
  color: #ffffff;
  font-size: 15px;
}

.why-register span {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.45;
}

.final-cta {
  margin-top: 18px;
  background: linear-gradient(135deg, var(--nubex-red), #f22b18 52%, #ff4a28);
  color: #ffffff;
}

.final-cta-inner {
  min-height: 118px;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 28px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.cta-cloud {
  width: 86px;
  height: 64px;
  position: relative;
}

.cta-cloud::before {
  content: "";
  position: absolute;
  inset: 12px 4px 0;
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: 28px 28px 16px 16px;
  border-top-width: 7px;
}

.final-cta h2 {
  margin: 0 0 5px;
  font-size: 32px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.final-cta p {
  max-width: 630px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.45;
}

.cta-actions {
  display: flex;
  gap: 18px;
}

.webinars-page .btn-white {
  min-width: 220px;
  background: #ffffff;
  color: var(--nubex-red);
  border-color: #ffffff;
}

.webinars-page .btn-red-outline {
  min-width: 220px;
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 1024px) {
  .cards-3,
  .speaker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-4,
  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .registration-grid,
  .why-register,
  .final-cta-inner {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .webinar-container {
    width: min(100% - 32px, 1200px);
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .section.compact,
  .section {
    padding: 28px 0;
  }

  .cards-3,
  .cards-4,
  .benefit-grid,
  .speaker-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .webinar-hero.hero-as-image {
    overflow-x: auto;
  }

  .webinar-hero.hero-as-image img {
    width: 941px;
    max-width: none;
  }

  .hero-hotspot {
    display: none;
  }

  .speaker-card {
    grid-template-columns: 120px 1fr;
  }

  .speaker-card img {
    min-height: 210px;
  }

  .why-register {
    padding: 28px 20px;
  }

  .why-register img {
    height: 180px;
  }

  .final-cta-inner {
    text-align: left;
  }

  .cta-actions,
  .webinars-page .btn-white,
  .webinars-page .btn-red-outline {
    width: 100%;
  }
}
