/* ==========================================================================
   Heroes and listing pages: Home, About, Contact, Hot Deals, Lifetime,
   All Courses / categories / search.
   ========================================================================== */

/* ---------- Home hero: text left, slanted laptop photo + ribbon right ---------- */
.ta-hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 430px; background: #f4f6f8 var(--ta-hero-bg) center / cover no-repeat; overflow: hidden;
}
.ta-hero-text {
  align-self: center; position: relative; z-index: 2;
  padding: 3rem 1rem 3rem max(1rem, calc((100vw - 1320px) / 2 + 1.5rem));
}
.ta-hero-eyebrow { font-size: 1rem; margin: 0 0 .9rem; }
.ta-hero-title { color: var(--ta-purple); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1.2; margin: 0 0 1.25rem; max-width: 15ch; }
.ta-hero-title strong { font-weight: 800; white-space: nowrap; }
.ta-hero .ta-search { margin-bottom: 1.25rem; }
.ta-hero-note { margin: .9rem 0 0 .4rem; font-size: .85rem; color: #333; }
.ta-hero-copy { max-width: 520px; margin-bottom: 1.25rem; line-height: 1.65; }
.ta-hero-media { position: relative; min-height: 100%; }
.ta-hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center;
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 30% 100%);
}
.ta-hero-ribbon {
  position: absolute; top: -4%; left: -3%; height: 110%; width: auto; z-index: 1;
  filter: drop-shadow(4px 6px 8px rgba(0, 0, 0, .25));
}
@media (max-width: 991.98px) {
  .ta-hero { grid-template-columns: 1fr; min-height: 0; }
  .ta-hero-text { padding: 2.5rem 1.25rem 2rem; text-align: center; }
  .ta-hero-title { margin-left: auto; margin-right: auto; }
  .ta-hero .ta-search { margin-left: auto; margin-right: auto; }
  .ta-hero-copy { margin-left: auto; margin-right: auto; }
  .ta-hero-media { height: 240px; }
  .ta-hero-photo { clip-path: none; }
  .ta-hero-ribbon { display: none; }
}

/* ---------- Page hero (All Courses / categories / search) ---------- */
.ta-page-hero { background: #f4f6f8 var(--ta-hero-bg) center / cover no-repeat; padding: 4.5rem 0 3.5rem; text-align: center; }
.ta-page-hero-title { color: var(--ta-purple); font-weight: 700; font-size: clamp(2rem, 4vw, 2.75rem); margin: 0 0 1.75rem; }
.ta-page-hero .ta-search-lg { margin: -.5rem auto 1.75rem; max-width: 420px; background: #fff; }

.ta-cat-pills { max-width: 1240px; margin: 0 auto; }
.ta-cat-pills-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem 1rem; }
.ta-cat-pills-list a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 128px;
  background: var(--ta-purple); color: #fff; border: 1.5px solid var(--ta-purple); border-radius: 999px;
  padding: .55rem 1.1rem; font-size: .8rem; text-decoration: none; transition: background-color .15s, color .15s;
}
.ta-cat-pills-list a:hover { background: var(--ta-purple-dark); color: #fff; }
.ta-cat-pills-list a.active { background: #fff; color: var(--ta-ink); border-color: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
/* More than 20 categories: show three rows until expanded. */
.ta-cat-pills:has(.ta-more-btn) .ta-cat-pills-list { max-height: 9.6rem; overflow: hidden; }
.ta-cat-pills.is-open .ta-cat-pills-list { max-height: none; }
.ta-more-btn { margin-top: 1rem; border: 0; background: none; color: var(--ta-purple); font-weight: 600; font-size: .85rem; }
.ta-more-btn i { display: inline-block; transition: transform .2s; }
.ta-cat-pills.is-open .ta-more-btn i { transform: rotate(180deg); }
@media (max-width: 575.98px) {
  .ta-cat-pills-list { gap: .5rem; }
  .ta-cat-pills-list a { min-width: 0; font-size: .75rem; padding: .45rem .9rem; }
}

/* ---------- Listing head + Sort By ---------- */
.ta-listing-head { position: relative; display: flex; align-items: center; justify-content: center; margin-bottom: 2rem; min-height: 3rem; }
.ta-listing-head .ta-heading-light { margin: 0; text-align: center; }
.ta-sort { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.ta-sort-btn {
  display: inline-flex; align-items: center; gap: .9rem; border: 0; border-radius: 4px;
  background: var(--ta-purple); color: #fff; font: inherit; font-size: .95rem; padding: .7rem 2rem;
}
.ta-sort-btn:hover { background: var(--ta-purple-dark); }
.ta-sort-menu { border: 0; border-radius: 0 0 8px 8px; padding: .4rem 0; min-width: 100%; box-shadow: 0 10px 24px rgba(0, 0, 0, .1); background: #fffefa; }
.ta-sort-menu .dropdown-item { text-align: center; font-size: .82rem; padding: .3rem 1rem; }
.ta-sort-menu .dropdown-item.active,
.ta-sort-menu .dropdown-item:active { background: var(--ta-purple); color: #fff; }
.ta-sort-menu .dropdown-item:hover:not(.active) { background: var(--ta-lavender); color: var(--ta-purple); }
@media (max-width: 991.98px) {
  .ta-listing-head { flex-direction: column; gap: 1rem; }
  .ta-sort { position: static; transform: none; }
}

/* ---------- Hot Deals hero ---------- */
.ta-deal-hero { background: #f4f6f8 var(--ta-hero-bg) center / cover no-repeat; padding: 4.5rem 0 5rem; }
.ta-deal-card {
  position: relative; max-width: 345px; margin: 0 auto;
  background: rgba(100, 103, 108, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 3px solid rgba(255, 255, 255, .7); border-radius: 26px; color: #fff;
  padding: 1.5rem 1.2rem 1.2rem; box-shadow: 0 16px 30px rgba(0, 0, 0, .18);
}
.ta-deal-off {
  position: absolute; top: 1.1rem; right: 1rem; background: var(--ta-purple); color: #ffb21a;
  font-weight: 800; font-size: .9rem; line-height: 1; text-align: center; padding: .35rem .35rem; border-radius: 4px; max-width: 3.4rem;
}
.ta-deal-lead { font-size: 1.55rem; font-weight: 400; margin: 0; color: #fff; padding-left: .3rem; }
.ta-deal-price {
  font-size: clamp(3.4rem, 7vw, 4.3rem); font-weight: 800; line-height: 1; margin: .1rem 0 .7rem; color: #fff;
  -webkit-text-stroke: 2px var(--ta-purple); text-shadow: 4px 3px 0 var(--ta-purple); letter-spacing: -.02em;
}
.ta-deal-regular { margin: 0; font-size: .95rem; }
.ta-deal-access { color: #7cf03b; font-weight: 700; margin: .1rem 0 .9rem; }
.ta-coupon {
  display: block; width: 100%; border: 0; border-radius: 6px; background: #fff; color: #000;
  padding: .6rem 1rem; font: inherit; font-size: 1.05rem; cursor: copy;
}
.ta-coupon:hover { box-shadow: 0 0 0 3px rgba(255, 255, 255, .5); }
.ta-coupon-hint { display: block; text-align: center; font-size: .7rem; opacity: .85; margin-top: .4rem; }
.ta-deal-browse { max-width: 345px; margin: 1rem auto 0; font-size: 1.15rem; font-weight: 400; padding: .75rem; }
.ta-deal-art { width: 100%; max-width: 520px; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .15)); }

/* ---------- Lifetime hero ---------- */
.ta-life-hero { background: #f4f6f8 var(--ta-hero-bg) center / cover no-repeat; padding: 3.5rem 0 4rem; }
.ta-life-title { margin: 0 0 .5rem; line-height: 1.15; }
.ta-life-eyebrow { display: block; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 400; }
.ta-life-big { display: block; font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 700; text-transform: uppercase; }
.ta-life-price { font-size: clamp(1.2rem, 2.2vw, 1.6rem); text-transform: uppercase; margin: 0 0 1.4rem; }
.ta-life-price strong { color: var(--ta-purple); font-size: clamp(2.1rem, 4vw, 2.7rem); font-weight: 800; margin: 0 .5rem 0 .8rem; vertical-align: -0.1em; }
.ta-life-price span { font-size: 1rem; text-transform: none; }
.ta-timer { display: flex; gap: .6rem; margin: 0 0 1.4rem; }
.ta-timer div {
  width: 4.1rem; height: 4.1rem; border-radius: 50%; background: var(--ta-purple); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
}
.ta-timer span { font-size: 1.55rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ta-timer small { font-size: .5rem; margin-top: .2rem; }
.ta-checklist { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.ta-checklist li { position: relative; padding-left: 2.1rem; margin-bottom: .55rem; font-size: clamp(1rem, 1.6vw, 1.2rem); }
.ta-checklist li::before {
  content: '\F26E'; font-family: 'bootstrap-icons'; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1.45rem; height: 1.45rem; border-radius: 50%; background: var(--ta-purple); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.ta-life-hero .ta-btn { font-size: .85rem; font-weight: 400; padding: .55rem 1.1rem; }
.ta-hero-plain .ta-hero-title { max-width: none; }
.ta-contact-email { font-size: 1.05rem; }
.ta-contact-email i { color: var(--ta-purple); margin-right: .35rem; }

/* Graduate in a purple frame, head above it */
.ta-grad-frame { position: relative; max-width: 440px; margin: 4.5rem auto 0; }
.ta-grad-bg { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 6px solid var(--ta-purple); border-radius: 18px; box-shadow: 0 0 0 3px #fff; }
.ta-grad-person { position: absolute; left: 50%; bottom: 6px; width: 62%; height: auto; transform: translateX(-46%); }
.ta-grad-star { position: absolute; top: -1.4rem; right: -1.2rem; color: #ffd43b; font-size: 4.2rem; transform: rotate(14deg); filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, .15)); }
@media (max-width: 991.98px) { .ta-grad-frame { margin-top: 3.5rem; } }
