/* ========== Webinar Info (desktop defaults) ========== */
.webinar-info {
  padding: 0 32px;
  max-width: 1280px;
  min-height: 500px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-self: center;
}

.webinar-button {
  width: 440px;
  height: 56px;
}

.red-arrow2 {
  position: absolute;
  left: -20px;
  bottom: 105px;
  width: 32px;
}

.webinar-info-inner {
  flex: 0.5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.webinar-info p {
  color: #202954;
  font-size: 21px;
  line-height: 30px;
  margin-bottom: 10px;
  font-family: "Avenir", sans-serif;
}

.webinar-info p strong {
  color: #db2127 !important;
}

.webinar-info-image {
  flex: 0.5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.webinar-info-image img {
  max-width: 434px;
  max-height: 434px;
  aspect-ratio: 1/1;
}


/* ========== Webinar Form (desktop defaults) ========== */
.webinar-form {
  max-width: 1280px;
  width: 90vw;
  max-height: 450px;
  padding: 50px 80px 120px;
  text-align: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  position: relative;
}

.webinar-form .diamond {
  position: absolute;
  bottom: 0;
  left: -216px;
  width: 282px;
  height: 282px;
  z-index: 1;
}

.webinar-form img {
  width: 44px;
  height: 44px;
  margin-bottom: 48px;
}

.webinar-form h2 {
  font-size: 26px;
  font-weight: 400;
  line-height: 36px;
  margin-bottom: 68px;
  font-family: "Avenir", sans-serif;
}

.webinar-container {
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}

.webinar-header {
  min-height: 640px;
  display: flex;
  flex-direction: row;
  background: url(../images/webinar/webinar-bg.png) no-repeat center/cover;
}

.webinar-background {
  background: linear-gradient(rgba(255, 255, 255, 1), rgba(255, 255, 255, 0)),
    url(../images/webinar/bg-triangle.png) no-repeat center/cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 158px;
}

.gap {
  flex: 1;
}

.webinar-header-inner {
  flex: 0.8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.webinar-header h1 {
  font-size: 36px;
  font-weight: 600;
  color: #db2127;
  font-family: "Avenir", sans-serif;
  margin-bottom: 10px;
  min-width: 300px;
}

.webinar-header p {
  font-size: 40px;
  line-height: 41px;
  font-weight: 600;
  color: #0062af;
  margin: 20px 0 40px;
  font-family: "Avenir", sans-serif;
  min-width: 300px;
  position: relative;
}

.webinar-header a {
  max-width: 400px;
}

/* ========== MEDIA QUERIES ========== */

/* Tablet (769px–1024px) */
@media screen and (max-width: 1024px) and (min-width: 769px) {
  .red-arrow2 {
    position: absolute;
    left: 0px;
    bottom: 118px;
    width: 16px;
  }

  .webinar-header h1 {
    font-size: 1.5rem;
  }

  .webinar-header p {
    font-size: 1.6rem;
  }

  /* .webinar-background {
    background: none;
  } */

  .webinar-form .diamond {
    position: absolute;
    bottom: 0;
    left: -7%;
    width: 247px;
    height: 232px;
    z-index: 1;
  }

  .webinar-info {
    padding: 0 16px;
    margin: 30px 0;
  }

  .webinar-info p {
    font-size: 19px;
  }

  .webinar-info-image img {
    max-width: 400px;
    max-height: 400px;
  }

  .webinar-form {
    max-width: 90vw;
    max-height: none;
    padding: 30px 20px 80px;
    clip-path: polygon(6% 0%, 100% 0%, 100% 90%, 95% 100%, 0% 100%, 0% 12%);
  }

  .webinar-form h2 {
    font-size: 16px;
    line-height: 26px;
    margin-bottom: 40px;
  }
}

/* Tablet Portrait & Small Desktop (479px–768px) */
@media screen and (max-width: 768px) and (min-width: 479px) {
  .red-arrow2 {
    position: absolute;
    left: 0px;
    bottom: 170px;
    width: 16px;
  }

  .webinar-form {
    padding-bottom: 80px;
  }

  .webinar-background,
  .webinar-header {
    background: none;
    margin-bottom: 69px;
  }

  .webinar-header {
    flex-direction: column;
  }

  .gap {
    background: url(../images/webinar/webinar-bg-m.png) no-repeat center/cover;
    flex: none;
    height: 55vh;
  }

  .webinar-header-inner {
    flex: 0;
    margin: -15% 8vw 0;
    /* width: 70vw; */
    align-self: center;
  }

  .webinar-header h1 {
    font-size: 20px;
    padding-left: 20px;
  }

  .webinar-header p {
    font-size: 25px;
    line-height: 34px;
    margin: 10px 0 20px;
    padding-left: 20px;
  }

  .webinar-info {
    padding: 0 16px;
    flex-direction: column-reverse;
    margin: 30px 0;
  }

  .webinar-info-inner {
    width: 90vw;
  }

  .webinar-info p {
    font-size: 16px;
  }

  .webinar-info-image {
    max-width: 90vw;
  }

  .webinar-info-image img {
    max-width: 300px;
    max-height: 300px;
  }

  .webinar-form {
    max-width: 90vw;
    max-height: none;
    padding: 30px 20px 80px;
    clip-path: none;
    padding-bottom: 80px;
  }

  .webinar-form h2 {
    font-size: 16px;
    line-height: 26px;
    margin-bottom: 40px;
  }

  .webinar-form .diamond {
    position: absolute;
    bottom: -74px;
    left: -12%;
    width: 127px;
    height: 127px;
    z-index: 1;
  }
}

/* Mobile (<=478px) */
@media screen and (max-width: 478px) {
  .red-arrow2 {
    position: absolute;
    left: 0px;
    bottom: 165px;
    width: 16px;
  }

  .webinar-background,
  .webinar-header {
    background: none;
  }

  .webinar-header {
    flex-direction: column;
    min-height: 586px;
    margin-bottom: 69px;
  }

  .gap {
    background: url(../images/webinar/webinar-bg-m.png) no-repeat center/cover;
    flex: none;
    height: 586px;
  }

  .webinar-header-inner {
    flex: 0;
    margin: -15% 8vw 0;
  }

  .webinar-header h1 {
    font-size: 20px;
    padding-left: 20px;
  }

  .webinar-header p {
    font-size: 24px;
    line-height: 26px;
    margin: 10px 0 30px;
    padding-left: 20px;
  }

  .webinar-header {
    min-height: 586px;
  }

  .webinar-info {
    padding: 0 16px;
    flex-direction: column-reverse;
    margin: 30px 0;
  }

  .webinar-info p {
    font-size: 16px;
  }

  .webinar-info-image {
    max-width: 90vw;
  }

  .webinar-info-image img {
    max-width: 80vw;
  }

  .webinar-form {
    max-width: 90vw;
    max-height: none;
    padding: 30px 20px;
    clip-path: none;
    padding-bottom: 80px;
  }

  .webinar-form h2 {
    font-size: 16px;
    line-height: 26px;
    margin-bottom: 40px;
  }

  .webinar-form .diamond {
    width: 64px;
    height: 58px;
    bottom: -60px;
    left: -36px;

  }
}