/* Twin block */

.tb-learn { position: relative; isolation: isolate; padding: 112px 60px 0; }
.tb-learn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(../../img/decor/orange-waves-bg.jpg) center / cover; opacity: .97; }
.tb-learn__inner { display: grid; grid-template-columns: minmax(0, 650px) minmax(340px, 1fr); gap: clamp(40px, 5vw, 90px); max-width: 1320px; min-height: 620px; margin-inline: auto; }
.tb-learn__photo { align-self: start; background: url(../../img/decor/blob-yellow.png) center / contain no-repeat; }
.tb-learn__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 650 / 475;
  object-fit: cover;
  -webkit-mask: url(../../img/decor/blob-mask.png) center / contain no-repeat;
  mask: url(../../img/decor/blob-mask.png) center / contain no-repeat;
}
.tb-learn__copy { position: relative; }
.tb-learn__arrow { position: absolute; top: 3px; left: -80px; }
.tb-learn h2 { color: #111; font-size: 60px; line-height: 70px; letter-spacing: -3px; }
.tb-learn__sub { margin-bottom: 20px; color: #036; font: 400 25px/35px var(--font-heading); letter-spacing: -1.25px; }
.tb-learn__list li { display: flex; align-items: flex-start; gap: 16px; min-height: 42px; margin-bottom: 20px; color: #1f1f1f; font: 600 20px/30px Adamina, sans-serif; }
.tb-learn__list .icon { width: 42px; height: 42px; color: #111; }
.tb-learn__list span { padding-bottom: 7px; }
/* The 650px photo column plus the gap needs ~860px. Below that the copy was
   pushed past the right edge (invisible at 768px), so stack it earlier. */
@media (max-width: 900px) {
  .tb-learn__inner { grid-template-columns: minmax(0, 1fr); gap: 36px; min-height: 0; }
  .tb-learn__photo { justify-self: center; }
  .tb-learn__arrow { display: none; }
}

.tb-offer { padding: 60px 10px 90px; background-image: url(../../img/decor/blue-dots-bg.jpg); }
.tb-offer img { box-shadow: none; }
.tb-offer p { margin: 0 0 45px; }

@media (max-width: 767px) {
  .tb-learn { padding: 74px 10px 0; }
  .tb-learn__inner { grid-template-columns: 1fr; gap: 31px; min-height: 0; }
  .tb-learn__photo img { width: 370px; height: 280px; }
  .tb-learn__arrow { display: none; }
  .tb-learn__copy { padding: 0 11px 24px; }
  .tb-learn__list li:last-child { margin-bottom: 0; }
  .tb-learn h2 { font-size: 32px; line-height: 40px; letter-spacing: -1.6px; }
  .tb-learn__sub { margin-bottom: 52px; font-size: 22px; line-height: 32.4px; letter-spacing: -1.1px; }
  .tb-offer img { width: 348px; }
}

/* Page-specific touches on the shared course hero */
.tb-hero { padding-block: 130px 140px; background: radial-gradient(ellipse at 78% 45%, rgba(248, 255, 127, .1), transparent 48%), radial-gradient(at 100% 0%, rgba(44, 100, 220, .5), transparent 60%), #0a0f18; }
.tb-hero__media::before { background: radial-gradient(circle, rgba(120, 170, 255, .2), rgba(120, 170, 255, 0) 68%); border-color: rgba(140, 180, 255, .2); }
.tb-hero .course-hero__media img { width: min(100%, 520px); }
.tb-hero h1 span { font-size: .45em; line-height: 1.4; }
@media (max-width: 767px) {
  .tb-hero { padding-block: 64px 80px; }
  .tb-hero .course-hero__media img { width: min(100%, 300px); }
}

/* Individual lectures: equal-height cards, so the prices and buttons line up
   whatever the length of the topic. Shown on every screen size. */
.tb-lessons { max-width: 1280px; margin: 0 auto; padding: 80px 24px 88px; }
.tb-lessons__head { margin-bottom: 36px; text-align: center; }
.tb-lessons__eyebrow { margin-bottom: 10px; color: #8ceada; font-size: 13px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; }
.tb-lessons__head h2 { color: #fff; font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -1.2px; }
.tb-lessons__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tb-lesson { display: flex; flex-direction: column; padding: 24px 24px 22px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 22px; background: linear-gradient(160deg, #162034, #0f1726); transition: transform .3s, border-color .3s, box-shadow .3s; }
.tb-lesson:hover { border-color: rgba(119, 229, 209, .4); box-shadow: 0 22px 44px rgba(0, 0, 0, .38); transform: translateY(-5px); }
.tb-lesson__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 18px; }
.tb-lesson__num { padding: 5px 11px; border-radius: 20px; background: rgba(119, 229, 209, .12); color: #8ceada; font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.tb-lesson__time { display: inline-flex; align-items: center; gap: 6px; color: #a9b8c8; font-size: 13px; font-weight: 600; }
.tb-lesson__time .icon { width: 15px; height: 15px; color: #8ceada; }
.tb-lesson h3 { color: #fff; font-size: 18px; font-weight: 600; line-height: 1.45; letter-spacing: -.2px; }
.tb-lesson__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); }
.tb-lesson > h3 { margin-bottom: 22px; }
.tb-lesson__price { color: #fbffb4; font: 600 30px/1 var(--font-heading); letter-spacing: -1px; }
.tb-lesson__buy { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 12px; background: linear-gradient(108deg, #8258c8, #2c84c8); color: #fff; font-size: 14px; font-weight: 600; transition: box-shadow .25s, transform .25s; }
.tb-lesson__buy .icon { width: 10px; height: 10px; }
.tb-lesson__buy:hover { box-shadow: 0 10px 24px rgba(130, 88, 200, .4); transform: translateY(-2px); }
@media (max-width: 1100px) { .tb-lessons__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .tb-lessons { padding: 56px 20px 64px; }
  .tb-lessons__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .tb-lesson, .tb-lesson__buy { transition: none; }
  .tb-lesson:hover, .tb-lesson__buy:hover { transform: none; }
}

/* Buy all four together: the lectures as a list beside the bundle price. */
.tb-bundle { padding: 8px 24px 96px; }
.tb-bundle__card { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: 40px; max-width: 1080px; margin-inline: auto; padding: 40px 44px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 26px; background: radial-gradient(ellipse at 100% 0%, rgba(69, 208, 189, .12), transparent 55%), linear-gradient(135deg, #162034, #0f1726); }
.tb-bundle__intro h2 { margin: 8px 0 8px; color: #fff; font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; line-height: 1.2; letter-spacing: -.9px; }
.tb-bundle__list { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.tb-bundle__list li { display: flex; align-items: flex-start; gap: 14px; color: #dbe6ef; font-size: 15px; line-height: 1.5; }
.tb-bundle__list span { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(119, 229, 209, .12); color: #8ceada; font-size: 12px; font-weight: 700; }
.tb-bundle__buy { display: grid; justify-items: center; gap: 18px; padding: 30px 24px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 20px; background: rgba(10, 15, 24, .45); text-align: center; }
.tb-bundle__buy .course-hero__offer { justify-items: center; }
.tb-bundle__buy .course-hero__offer-meta, .tb-bundle__buy .course-hero__price { justify-content: center; }
@media (max-width: 860px) {
  .tb-bundle__card { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 28px 22px; }
}
@media (max-width: 600px) {
  .tb-bundle { padding: 0 20px 64px; }
  .tb-bundle__buy .course-hero__cta { justify-content: center; width: 100%; }
}
