/* Magia Flory — premium webinar library, 2026-08-16. */
.page-webinars--premium {
  --webinar-ink: #273225;
  --webinar-green: #244b2c;
  --webinar-green-deep: #17371f;
  --webinar-muted: #70776c;
  --webinar-paper: #f8f3eb;
  --webinar-paper-light: #fdfaf5;
  --webinar-lilac: #8f6d91;
  --webinar-line: rgba(36,75,44,.14);
  --webinar-shadow: 0 28px 80px rgba(35,48,31,.1);
  color: var(--webinar-ink);
}

.page-webinars--premium #main {
  overflow: clip;
}

.page-webinars--premium .eyebrow {
  color: var(--webinar-green);
}

.webinars-hero {
  position: relative;
  padding: clamp(48px, 5vw, 82px) 0 clamp(70px, 7vw, 112px);
  background:
    radial-gradient(circle at 82% 20%, rgba(143,109,145,.12), transparent 30%),
    linear-gradient(180deg, rgba(253,250,245,.62), rgba(248,243,235,.36));
}

.webinars-hero__grid {
  display: grid;
  grid-template-columns: minmax(0,.94fr) minmax(440px,1.06fr);
  align-items: center;
  gap: clamp(54px, 7vw, 118px);
}

.webinars-hero__copy {
  max-width: 760px;
}

.webinars-hero h1,
.webinar-detail-hero h1 {
  margin: 18px 0 26px;
  color: var(--webinar-ink);
  font-size: clamp(4rem, 6.1vw, 7.2rem);
  font-weight: 450;
  line-height: .91;
  letter-spacing: -.052em;
}

.webinars-hero h1 em,
.webinars-section-head h2 em {
  color: var(--webinar-green);
  font-style: italic;
  font-weight: 430;
}

.webinars-hero__copy > p {
  max-width: 680px;
  margin: 0;
  color: var(--webinar-muted);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.78;
}

.webinars-hero__actions,
.webinar-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 32px;
}

.webinars-hero__actions .button,
.webinar-detail-actions .button {
  min-height: 54px;
  padding-inline: 27px;
}

.webinars-hero__proof {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  margin-top: 44px;
  border-top: 1px solid var(--webinar-line);
}

.webinars-hero__proof span {
  display: grid;
  gap: 4px;
  padding: 20px 20px 0;
  border-left: 1px solid var(--webinar-line);
}

.webinars-hero__proof span:first-child {
  padding-left: 0;
  border-left: 0;
}

.webinars-hero__proof b {
  font: 750 .78rem/1.25 var(--ui);
}

.webinars-hero__proof small {
  color: var(--webinar-muted);
  font: 500 .68rem/1.35 var(--ui);
}

.webinars-hero__visual {
  position: relative;
  min-height: clamp(520px, 45vw, 690px);
}

.webinars-hero__halo {
  position: absolute;
  inset: 5% 2% 4% 10%;
  border: 1px solid var(--webinar-line);
  border-radius: 48% 48% 46% 46% / 38% 38% 49% 49%;
  background: rgba(255,255,255,.28);
}

.webinars-hero__visual > img {
  position: absolute;
  z-index: 2;
  right: -1%;
  bottom: 1%;
  width: 98%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 42px rgba(35,48,31,.1));
}

.webinars-hero__seal {
  position: absolute;
  z-index: 3;
  top: 8%;
  right: 0;
  display: grid;
  width: 148px;
  aspect-ratio: 1;
  place-items: center;
  padding: 20px;
  color: #fff;
  border-radius: 50%;
  background: var(--webinar-green);
  box-shadow: 0 18px 44px rgba(23,55,31,.2);
  text-align: center;
  font: 750 .68rem/1.4 var(--ui);
  letter-spacing: .02em;
  transform: rotate(5deg);
}

.webinars-newcomers {
  padding-top: clamp(80px, 8vw, 126px);
  background: rgba(248,243,235,.68);
}

.webinars-section-head {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(300px,.55fr);
  align-items: end;
  gap: clamp(35px, 6vw, 90px);
  margin-bottom: clamp(38px, 5vw, 62px);
}

.webinars-section-head h2 {
  max-width: 880px;
  margin: 11px 0 0;
  color: var(--webinar-ink);
  font-size: clamp(2.8rem, 4.7vw, 5.45rem);
  line-height: .94;
  letter-spacing: -.045em;
}

.webinars-section-head > p {
  margin: 0;
  color: var(--webinar-muted);
  line-height: 1.72;
}

.webinars-product-pair {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 20px;
}

.webinars-product-card {
  position: relative;
  display: grid;
  min-height: 500px;
  grid-template-columns: minmax(0,.82fr) minmax(260px,1.18fr);
  align-items: end;
  overflow: hidden;
  padding: clamp(32px, 4vw, 54px);
  color: var(--webinar-ink);
  border: 1px solid var(--webinar-line);
  border-radius: 34px;
  background: #e9eee5;
  box-shadow: 0 18px 48px rgba(35,48,31,.06);
}

.webinars-product-card--dark {
  color: #fff;
  background: var(--webinar-green-deep);
}

.webinars-product-card > div {
  position: relative;
  z-index: 3;
}

.webinars-product-card > div > span {
  color: var(--webinar-green);
  font: 800 .7rem/1 var(--ui);
  letter-spacing: .12em;
}

.webinars-product-card--dark > div > span {
  color: rgba(255,255,255,.65);
}

.webinars-product-card small {
  display: block;
  margin-top: 28px;
  color: var(--webinar-muted);
  font: 700 .67rem/1.3 var(--ui);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.webinars-product-card--dark small,
.webinars-product-card--dark p {
  color: rgba(255,255,255,.65);
}

.webinars-product-card h3 {
  margin: 10px 0 18px;
  font-size: clamp(2.5rem, 3.5vw, 4rem);
  line-height: .95;
}

.webinars-product-card p {
  max-width: 390px;
  color: var(--webinar-muted);
  font-size: .9rem;
  line-height: 1.62;
}

.webinars-product-card b {
  display: inline-block;
  margin-top: 14px;
  font: 750 .72rem/1 var(--ui);
}

.webinars-product-card > img {
  position: absolute;
  right: -4%;
  bottom: -3%;
  width: 57%;
  height: 84%;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 20px 32px rgba(20,35,20,.14));
}

.webinars-product-card--dark > img {
  width: 48%;
  right: 2%;
  filter: drop-shadow(0 20px 32px rgba(0,0,0,.24));
}

.webinars-library {
  padding-block: clamp(94px, 8vw, 136px);
}

.webinars-section-head--library {
  margin-bottom: clamp(46px, 6vw, 74px);
}

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

.webinar-premium-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--webinar-line);
  border-radius: 30px;
  background: rgba(253,250,245,.76);
  box-shadow: 0 18px 48px rgba(35,48,31,.055);
}

.webinar-premium-card--featured {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0,1.02fr) minmax(0,.98fr);
  min-height: 560px;
}

.webinar-premium-card__media {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: #e7e4dc;
}

.webinar-premium-card--featured .webinar-premium-card__media {
  min-height: 100%;
}

.webinar-premium-card__media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform .45s ease;
}

.webinar-premium-card__media > span {
  position: absolute;
  top: 22px;
  left: 22px;
  padding: 9px 12px;
  color: #fff;
  border-radius: 999px;
  background: rgba(36,75,44,.92);
  font: 750 .64rem/1 var(--ui);
}

.webinar-premium-card__content {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: clamp(30px, 4vw, 52px);
}

.webinar-premium-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 20px;
  color: var(--webinar-green);
  font: 750 .67rem/1.3 var(--ui);
  letter-spacing: .035em;
}

.webinar-premium-card h3 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3vw, 3.55rem);
  line-height: .98;
}

.webinar-premium-card__content > p {
  max-width: 620px;
  margin: 0;
  color: var(--webinar-muted);
  line-height: 1.67;
}

.webinar-premium-card__offers {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
  margin-top: 27px;
}

.webinar-premium-card__offers > div {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 112px;
  padding: 17px 18px;
  border: 1px solid var(--webinar-line);
  border-radius: 18px;
  background: rgba(255,255,255,.5);
}

.webinar-premium-card__offers small {
  color: var(--webinar-muted);
  font: 650 .66rem/1.35 var(--ui);
}

.webinar-premium-card__offers strong {
  color: var(--webinar-ink);
  font: 500 1.35rem/1 var(--display);
}

.webinar-premium-card__offers a {
  color: var(--webinar-green);
  font: 750 .68rem/1.2 var(--ui);
}

.webinar-premium-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 25px;
}

.webinar-youtube-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8b352d;
  font: 750 .7rem/1 var(--ui);
}

.webinar-youtube-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.webinar-youtube-link__play {
  fill: #fff;
}

.webinars-empty {
  grid-column: 1 / -1;
  padding: clamp(42px, 7vw, 82px);
  border: 1px solid var(--webinar-line);
  border-radius: 30px;
  background: rgba(253,250,245,.74);
  text-align: center;
}

.webinars-empty h3 {
  margin: 12px auto 16px;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
}

.webinars-empty p {
  max-width: 650px;
  margin: 0 auto;
  color: var(--webinar-muted);
}

.webinars-empty > div {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.webinars-youtube {
  padding-block: clamp(68px, 7vw, 104px);
}

.webinars-youtube__card {
  display: grid;
  grid-template-columns: 150px minmax(0,1fr) auto;
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
  min-height: 330px;
  padding: clamp(38px, 5vw, 70px);
  color: #fff;
  border-radius: 36px;
  background:
    radial-gradient(circle at 86% 16%, rgba(255,255,255,.08), transparent 30%),
    var(--webinar-green-deep);
  box-shadow: 0 28px 70px rgba(23,55,31,.15);
}

.webinars-youtube__mark {
  display: grid;
  width: 132px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}

.webinars-youtube__mark svg {
  width: 58px;
  height: 58px;
  fill: #fff;
}

.webinars-youtube .eyebrow {
  color: rgba(255,255,255,.68);
}

.webinars-youtube h2 {
  margin: 10px 0 13px;
  color: #fff;
  font-size: clamp(2.5rem, 4vw, 4.8rem);
  line-height: .95;
}

.webinars-youtube p {
  max-width: 720px;
  margin: 0;
  color: rgba(255,255,255,.65);
  line-height: 1.65;
}

.webinars-how {
  padding-top: clamp(80px, 8vw, 122px);
}

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

.webinars-how__grid article {
  min-height: 270px;
  padding: 28px;
  border: 1px solid var(--webinar-line);
  border-radius: 24px;
  background: rgba(253,250,245,.6);
}

.webinars-how__grid article > span {
  color: var(--webinar-green);
  font: 800 .68rem/1 var(--ui);
  letter-spacing: .1em;
}

.webinars-how__grid h3 {
  margin: 58px 0 15px;
  font-size: clamp(1.6rem, 2vw, 2.2rem);
}

.webinars-how__grid p {
  margin: 0;
  color: var(--webinar-muted);
  font-size: .88rem;
  line-height: 1.62;
}

/* Webinar detail */
.webinar-detail-hero {
  padding: clamp(48px, 5vw, 78px) 0 clamp(72px, 7vw, 110px);
}

.webinar-detail-hero__grid {
  display: grid;
  grid-template-columns: minmax(0,.92fr) minmax(420px,1.08fr);
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
}

.webinar-detail-back {
  display: inline-flex;
  margin-bottom: 30px;
  color: var(--webinar-muted);
  font: 700 .7rem/1 var(--ui);
}

.webinar-detail-hero h1 {
  font-size: clamp(3.7rem, 5.7vw, 6.8rem);
}

.webinar-detail-lead {
  max-width: 690px;
  color: var(--webinar-muted);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.72;
}

.webinar-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.webinar-detail-meta span {
  display: grid;
  gap: 5px;
  min-width: 190px;
  padding: 15px 18px;
  border: 1px solid var(--webinar-line);
  border-radius: 16px;
  background: rgba(255,255,255,.38);
}

.webinar-detail-meta small {
  color: var(--webinar-muted);
  font: 650 .62rem/1 var(--ui);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.webinar-detail-meta strong {
  font: 650 .82rem/1.35 var(--ui);
}

.webinar-detail-hero__visual {
  height: min(680px, 70svh);
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--webinar-line);
  border-radius: 44% 44% 28px 28px / 30% 30% 28px 28px;
  background: #e8e3da;
  box-shadow: var(--webinar-shadow);
}

.webinar-detail-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.webinar-detail-content {
  background: rgba(248,243,235,.58);
}

.webinar-detail-content__grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 360px;
  align-items: start;
  gap: clamp(50px, 8vw, 120px);
}

.webinar-detail-body {
  max-width: 850px;
  font-size: 1.04rem;
  line-height: 1.78;
}

.webinar-detail-body h2,
.webinar-detail-body h3 {
  margin-top: 1.2em;
}

.webinar-detail-body h2 {
  font-size: clamp(2.3rem, 3.8vw, 4.4rem);
}

.webinar-detail-offer {
  position: sticky;
  top: 128px;
  padding: 28px;
  border: 1px solid var(--webinar-line);
  border-radius: 24px;
  background: var(--webinar-paper-light);
  box-shadow: 0 18px 48px rgba(35,48,31,.07);
}

.webinar-detail-offer__row {
  display: grid;
  gap: 8px;
  padding: 20px 0;
  border-top: 1px solid var(--webinar-line);
}

.webinar-detail-offer__row small {
  color: var(--webinar-muted);
  line-height: 1.4;
}

.webinar-detail-offer__row strong {
  font: 500 2rem/1 var(--display);
}

.webinar-detail-offer__row a {
  color: var(--webinar-green);
  font: 750 .7rem/1.2 var(--ui);
}

.webinar-detail-offer > p {
  margin: 18px 0;
  color: var(--webinar-muted);
  font-size: .78rem;
  line-height: 1.55;
}

.webinar-detail-next__card {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(42px, 6vw, 76px);
  color: #fff;
  border-radius: 34px;
  background: var(--webinar-green);
}

.webinar-detail-next .eyebrow {
  color: rgba(255,255,255,.68);
}

.webinar-detail-next h2 {
  margin: 10px 0 0;
  color: #fff;
  font-size: clamp(2.5rem, 4vw, 4.7rem);
  line-height: .96;
}

.webinar-detail-next__card > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (hover:hover) and (pointer:fine) {
  .webinar-premium-card:hover .webinar-premium-card__media img {
    transform: scale(1.025);
  }
  .webinars-product-card:hover b,
  .webinar-premium-card__offers a:hover,
  .webinar-detail-offer__row a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

@media (max-width: 1180px) {
  .webinars-hero__grid,
  .webinar-detail-hero__grid {
    grid-template-columns: minmax(0,1fr) minmax(360px,.85fr);
    gap: 46px;
  }
  .webinars-product-card {
    grid-template-columns: 1fr;
    min-height: 520px;
  }
  .webinars-product-card > img {
    opacity: .62;
  }
  .webinars-youtube__card {
    grid-template-columns: 110px 1fr;
  }
  .webinars-youtube__card > .button {
    grid-column: 2;
    justify-self: start;
  }
  .webinars-youtube__mark {
    width: 100px;
  }
}

@media (max-width: 900px) {
  .webinars-hero__grid,
  .webinar-detail-hero__grid,
  .webinar-detail-content__grid {
    grid-template-columns: 1fr;
  }
  .webinars-hero__copy,
  .webinar-detail-hero__copy {
    max-width: none;
  }
  .webinars-hero__visual {
    min-height: 520px;
  }
  .webinars-section-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .webinars-product-pair,
  .webinars-library__grid {
    grid-template-columns: 1fr;
  }
  .webinar-premium-card--featured {
    grid-column: auto;
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .webinar-premium-card--featured .webinar-premium-card__media {
    min-height: 380px;
  }
  .webinars-how__grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .webinar-detail-hero__visual {
    height: min(620px, 68svh);
  }
  .webinar-detail-offer {
    position: static;
  }
  .webinar-detail-next__card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .webinars-hero,
  .webinar-detail-hero {
    padding-top: 32px;
  }
  .webinars-hero h1,
  .webinar-detail-hero h1 {
    font-size: clamp(3.35rem, 16vw, 5.2rem);
  }
  .webinars-hero__proof {
    grid-template-columns: 1fr;
  }
  .webinars-hero__proof span,
  .webinars-hero__proof span:first-child {
    padding: 13px 0;
    border-left: 0;
    border-bottom: 1px solid var(--webinar-line);
  }
  .webinars-hero__visual {
    min-height: 390px;
  }
  .webinars-hero__seal {
    width: 105px;
    padding: 12px;
    font-size: .57rem;
  }
  .webinars-product-card {
    min-height: 450px;
    padding: 28px;
  }
  .webinars-product-card > img {
    width: 72%;
    height: 68%;
  }
  .webinar-premium-card__media,
  .webinar-premium-card--featured .webinar-premium-card__media {
    min-height: 280px;
  }
  .webinar-premium-card__offers {
    grid-template-columns: 1fr;
  }
  .webinar-premium-card__actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .webinars-youtube__card {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .webinars-youtube__card > .button {
    grid-column: auto;
  }
  .webinars-how__grid {
    grid-template-columns: 1fr;
  }
  .webinars-how__grid article {
    min-height: 220px;
  }
  .webinars-how__grid h3 {
    margin-top: 38px;
  }
  .webinar-detail-meta {
    display: grid;
  }
  .webinar-detail-hero__visual {
    height: 430px;
  }
}
