/* =========================================================
   TYNE ACADEMY — CYBER MONDAY · HOT DEALS  (classes: ta-hd-*)
   Desktop values follow the 1440px design (Hot Deal Page.pdf).
   ========================================================= */

/* =========================================================
   HERO
   ========================================================= */
.ta-hd-hero {
  position: relative;
  background: #05030f url("../imgs/ta-cm-hd-hero-bg.webp") center / cover no-repeat;
}

.ta-hd-hero-inner {
  display: flex;
  align-items: center;
  min-height: 587px;
  padding: 40px 0 40px 223px;
  gap: 219px;
}

.ta-hd-offer {
  flex: 0 0 343px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

/* glass card (dark, over the neon city) */
.ta-hd-offer-card {
  position: relative;
  height: 281px;
  padding: 31px 19px 20px;
  border-radius: 28px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 45%),
    rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
  color: var(--ta-white);
}

.ta-hd-offer-card p { margin: 0; }

.ta-hd-offer-label {
  padding-left: 7px;
  font-size: 24.5px;
  line-height: 1;
}

.ta-hd-offer-off {
  position: absolute;
  top: 17px;
  right: 15px;
  width: 52px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--ta-purple);
  color: var(--ta-gold);
  font-weight: 700;
  font-size: 17.4px;
  line-height: 1.02;
  text-align: center;
}

/* £10.99: purple fill, white outline, thin purple rim */
.ta-hd-offer-price {
  display: inline-block;
  margin-top: 2px !important;
  font-family: var(--ta-font-price);
  font-weight: 700;
  font-size: 85px;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--ta-purple);
  -webkit-text-stroke: 7px var(--ta-white);
  paint-order: stroke fill;
  filter:
    drop-shadow(1.2px 0 0 var(--ta-purple)) drop-shadow(-1.2px 0 0 var(--ta-purple))
    drop-shadow(0 1.2px 0 var(--ta-purple)) drop-shadow(0 -1.2px 0 var(--ta-purple));
  transform-origin: left center;
}

.ta-hd-offer-regular {
  margin-top: 10px !important;
  font-size: 17.6px;
  color: #e8e8ee;
}

.ta-hd-offer-access {
  margin-top: 6px !important;
  padding-left: 1px;
  font-weight: 700;
  font-size: 17.6px;
  color: var(--ta-green);
}

.ta-coupon-pill {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 14px;
  border: none;
  border-radius: 8px;
  background: var(--ta-white);
  color: var(--ta-ink);
  font-family: var(--ta-font);
  font-size: 17.9px;
  cursor: copy;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.ta-coupon-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.ta-coupon-pill.is-copied {
  background: #efe5ff;
  color: var(--ta-purple);
  animation: cmPop 0.45s ease;
}

.ta-hd-browse {
  height: 57px;
  font-size: 21.3px;
}

.ta-hd-hero-badge {
  flex: 0 1 490px;
  min-width: 0;
  transform: translateY(-21px);
}

.ta-hd-hero-badge img {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================================================
   POPULAR COURSES
   ========================================================= */
.ta-hd-courses {
  position: relative;
  padding: 24px 0 67px;
}

.ta-hd-courses-title {
  margin: 0 0 50px;
  text-align: center;
  font-weight: 700;
  font-size: 45.8px;
  line-height: 1.2;
  color: var(--ta-purple-text);
}

.ta-hd-course-grid {
  display: grid;
  grid-template-columns: repeat(4, 299px);
  justify-content: center;
  gap: 14px 17.5px;
}

/* purple base peeks out 64px below the white card */
.ta-hd-course {
  position: relative;
  margin: 0 3px;
  background: var(--ta-purple);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ta-hd-course:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 30px rgba(106, 0, 236, 0.25);
}

.ta-hd-course-top {
  position: relative;
  align-self: stretch;
  margin: 0 -3px;
  height: 273px;
  padding: 8px 9px 0;
  background: var(--ta-white);
  border-radius: 20px;
}

.ta-hd-course .ta-corner-badge {
  --badge-w: 163px;
  top: -18px;
  right: -20px;
}

.ta-hd-course-thumb {
  display: block;
  height: 185px;
  border-radius: 16px;
  overflow: hidden;
}

.ta-hd-course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ta-hd-course:hover .ta-hd-course-thumb img {
  transform: scale(1.06);
}

.ta-hd-course-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 23px 5px 0 10px;
}

.ta-hd-course-info h3 {
  margin: 0;
  font-weight: 500;
  font-size: 14.6px;
  line-height: 0.98;
}

.ta-hd-course-info h3 a {
  color: var(--ta-ink);
  text-decoration: none;
}

.ta-hd-course-info h3 a:hover { color: var(--ta-purple); }

.ta-hd-course-price {
  margin: -2px 0 0;
  white-space: nowrap;
  font-size: 19.5px;
  line-height: 1;
}

.ta-hd-course-price s {
  color: var(--ta-grey);
}

.ta-hd-course-price strong {
  color: var(--ta-purple-text);
}

.ta-hd-cart {
  width: 205px;
  height: 36px;
  margin: 14px 0;
  border-radius: 18px;
  font-size: 13.2px;
  background: #fffdf6;
}

.ta-hd-more {
  width: 266px;
  height: 52px;
  margin-top: 40px;
  border-radius: 26px;
  font-weight: 500;
  font-size: 18px;
}

/* =========================================================
   WHY LEARNERS CHOOSE US
   ========================================================= */
.ta-hd-why {
  position: relative;
  background: var(--ta-lavender);
  padding: 58px 0 50px;
  z-index: 1;
}

.ta-hd-why-title {
  margin: 0;
  text-align: center;
  font-weight: 700;
  font-size: 37.5px;
  line-height: 1.2;
}

.ta-hd-why-sub {
  max-width: 870px;
  margin: 17px auto 30px;
  text-align: center;
  font-weight: 300;
  font-size: 17.5px;
  line-height: 1.32;
  color: var(--ta-grey);
}

.ta-hd-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 215px);
  justify-content: center;
  gap: 29px;
}

.ta-hd-why-card {
  min-height: 250px;
  padding: 16px 18px 18px;
  border-radius: 6px;
  background: var(--ta-purple);
  color: var(--ta-white);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ta-hd-why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 28px rgba(106, 0, 236, 0.3);
}

.ta-hd-why-icon {
  height: auto;
  transition: transform 0.4s ease;
}

.ta-hd-why-card:hover .ta-hd-why-icon { transform: scale(1.08) rotate(-3deg); }

.ta-hd-why-icon.i1 { width: 88px; margin-top: 2px; }
.ta-hd-why-icon.i2 { width: 78px; margin-top: 14px; }
.ta-hd-why-icon.i3 { width: 108px; margin-top: 9px; }

.ta-hd-why-card h3 {
  margin: 14px 0 6px;
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.38;
}

.ta-hd-why-icon.i2 + h3,
.ta-hd-why-icon.i3 + h3 { margin-top: 12px; }

.ta-hd-why-card p {
  margin: 0;
  font-weight: 300;
  font-size: 11px;
  line-height: 1.35;
}

.ta-hd-why-deco { z-index: 2; }
.ta-hd-why-deco.more-gift { left: 4px; top: -83px; width: 258px; }
.ta-hd-why-deco.curl { right: -33px; top: 62px; width: 171px; }
.ta-hd-why-deco.bag-l { left: -40px; top: 323px; width: 197px; }
.ta-hd-why-deco.bag-r { right: -50px; top: 371px; width: 202px; }

/* purple circuit lines in the review band */
.ta-hd-circuit { width: 320px; }
.ta-hd-circuit.tl { left: 4px; top: 18px; }
.ta-hd-circuit.br { right: 0; top: 186px; --cm-rot: 180deg; }

.ta-testi { padding-bottom: 64px; }

/* =========================================================
   LIFETIME MEMBERSHIP CTA
   ========================================================= */
.ta-hd-lft {
  position: relative;
  background: var(--ta-lavender);
}

.ta-hd-lft-inner {
  display: flex;
  align-items: center;
  min-height: 395px;
  padding: 26px 0 28px 321px;
  gap: 33px;
}

.ta-hd-lft-card {
  flex: 0 0 359px;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.ta-hd-lft-card:hover {
  transform: translateY(-6px) rotate(-1deg);
  filter: drop-shadow(0 12px 20px rgba(1, 106, 237, 0.28));
}

.ta-hd-lft-card img {
  width: 100%;
  height: auto;
}

.ta-hd-lft-text {
  max-width: 400px;
  margin-top: -18px;
}

.ta-hd-lft-text h2 {
  margin: 0 0 20px;
  white-space: nowrap;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.2;
}

.ta-hd-lft-text p,
.ta-hd-cert-text p {
  margin: 0 0 28px;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ta-grey);
}

.ta-hd-lft-btn,
.ta-hd-cert-btn {
  width: 258px;
  height: 43px;
  font-size: 16px;
}

.ta-hd-lft-deco { z-index: 2; }
.ta-hd-lft-deco.ribbon { left: 40px; top: 290px; width: 258px; }
.ta-hd-lft-deco.gift { left: -22px; top: 243px; width: 161px; }
.ta-hd-lft-deco.bag { right: 6px; top: 223px; width: 110px; }

/* =========================================================
   CERTIFICATE
   ========================================================= */
.ta-hd-cert {
  position: relative;
  background: var(--ta-white);
  clip-path: inset(-300px 0 -40px 0);
}

.ta-hd-cert-inner {
  display: flex;
  align-items: center;
  min-height: 443px;
  padding: 50px 0 20px 290px;
  gap: 56px;
}

.ta-hd-cert-image {
  position: relative;
  flex: 0 0 425px;
  top: 18px; /* design sits the frame a little low; offset without growing the section */
  padding-bottom: 58px;
}

.ta-hd-cert-image::after {
  content: "";
  position: absolute;
  left: -21.4%;
  right: -15.8%;
  bottom: 0;
  height: 73px;
  background: url("../imgs/ta-cert-shadow.webp") center / 100% 100% no-repeat;
  z-index: -1;
}

.ta-hd-cert-image img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.ta-hd-cert-image:hover img {
  transform: translateY(-6px) scale(1.02);
}

.ta-hd-cert-text {
  max-width: 420px;
  margin-top: -20px;
}

.ta-hd-cert-text h2 {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 33px;
  line-height: 1.32;
}

.ta-hd-cert-text p {
  font-family: var(--ta-font-alt);
  margin-bottom: 12px;
}

.ta-hd-cert-deco.gift { right: -13px; top: 343px; width: 395px; z-index: 2; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1399.98px) {
  .ta-hd-hero-inner { padding-left: 140px; gap: 150px; }
  .ta-hd-lft-inner { padding-left: 230px; }
  .ta-hd-cert-inner { padding-left: 180px; }
}

@media (max-width: 1299.98px) {
  .ta-hd-course-grid { grid-template-columns: repeat(4, minmax(0, 270px)); }
  .ta-hd-course-info h3 { font-size: 13.5px; }
  .ta-hd-course-price { font-size: 17px; }
  .ta-hd-hero-inner { padding-left: 80px; padding-right: 40px; }
  .ta-hd-lft-inner { padding-left: 150px; }
  .ta-hd-cert-inner { padding-left: 110px; }
}

@media (max-width: 1199.98px) {
  .ta-hd-course-grid { grid-template-columns: repeat(3, minmax(0, 290px)); }
  .ta-hd-lft-inner, .ta-hd-cert-inner { padding-left: 60px; padding-right: 60px; justify-content: center; }
  .ta-hd-why-deco.curl, .ta-hd-lft-deco.ribbon { display: none; }
  .ta-hd-why-deco.bag-l, .ta-hd-why-deco.bag-r { width: 140px; }
  .ta-hd-circuit { width: 220px; }
}

@media (max-width: 991.98px) {
  .ta-hd-hero-inner {
    flex-direction: column-reverse;
    padding: 40px 24px 48px;
    gap: 20px;
    min-height: 0;
  }

  .ta-hd-hero-badge { flex-basis: auto; width: min(490px, 100%); transform: none; }
  .ta-hd-offer { flex-basis: auto; width: 343px; }

  .ta-hd-courses-title { font-size: 38px; margin-bottom: 36px; }
  .ta-hd-course-grid { grid-template-columns: repeat(2, minmax(0, 299px)); padding: 0 20px; }

  .ta-hd-why { padding: 50px 20px 46px; }
  .ta-hd-why-title { font-size: 32px; }
  .ta-hd-why-sub { font-size: 16px; }
  .ta-hd-why-grid { grid-template-columns: repeat(3, minmax(0, 215px)); gap: 18px; }

  .ta-hd-lft-inner, .ta-hd-cert-inner {
    flex-direction: column;
    text-align: center;
    padding: 56px 24px;
    gap: 30px;
  }

  .ta-hd-lft-card { flex-basis: auto; width: 320px; }
  .ta-hd-lft-text, .ta-hd-cert-text { margin-top: 0; }
  .ta-hd-cert-image { flex-basis: auto; width: min(425px, 100%); top: 0; }
  .ta-hd-cert-text h2 br { display: none; }
  .ta-hd-cert-deco.gift { width: 260px; top: auto; bottom: -10px; }
  .ta-hd-lft-deco.gift { width: 110px; top: auto; bottom: -20px; left: -16px; }
  .ta-hd-lft-deco.bag { width: 80px; top: auto; bottom: 20px; }
  .ta-hd-why-deco.more-gift { width: 180px; top: -58px; }
}

@media (max-width: 767.98px) {
  .ta-hd-why-grid { grid-template-columns: minmax(0, 300px); }
  .ta-hd-why-card { min-height: 0; padding-bottom: 22px; }
  .ta-hd-why-card p { font-size: 13px; }
  .ta-hd-why-deco.bag-l, .ta-hd-why-deco.bag-r, .ta-hd-circuit { display: none; }
}

@media (max-width: 575.98px) {
  .ta-hd-offer { width: 100%; max-width: 343px; }
  .ta-hd-offer-card { padding-left: 16px; padding-right: 16px; }
  .ta-hd-offer-price { font-size: 74px; }
  .ta-hd-courses-title { font-size: 30px; }
  .ta-hd-course-grid { grid-template-columns: minmax(0, 320px); padding: 0 16px; }
  .ta-hd-why-title { font-size: 26px; }
  .ta-hd-why-sub { font-size: 14.5px; }
  .ta-hd-lft-text h2 { white-space: normal; font-size: 26px; }
  .ta-hd-cert-text h2 { font-size: 28px; }
  .ta-hd-lft-card { width: 100%; max-width: 320px; }
  .ta-hd-lft-btn, .ta-hd-cert-btn { width: 100%; max-width: 258px; }
  .ta-hd-cert-deco.gift, .ta-hd-lft-deco.bag, .ta-hd-lft-deco.gift { display: none; }
}
