/* =========================================================
   1 Year Unlimited Certificate Pass page (page-1-year-certificate.php)
   Restyled from the shared template to the Tyne Academy design:
   --ta-* tokens from main.css (purple #6a00ec, lavender, gold), Montserrat,
   lavender light sections, deep-purple dark sections and the theme's own
   .ta-btn / .ta-btn-white pill buttons. Everything is scoped to #ta-cert-page.
========================================================= */

#ta-cert-page {
  --cp-blue: var(--ta-ink, #111111);                   /* headings / dark text */
  --cp-accent: var(--ta-purple, #6a00ec);
  --cp-accent-dark: var(--ta-purple-dark, #5300bb);
  --cp-amber: var(--ta-gold, #ffc21a);
  --cp-gradient: linear-gradient(135deg, var(--ta-purple-soft, #8f4dff) 0%, var(--ta-purple, #6a00ec) 100%);
  --cp-gradient-line: linear-gradient(90deg, var(--ta-purple-soft, #8f4dff), var(--ta-purple, #6a00ec));
  --cp-grad-start: #1d0047;
  --cp-grad-mid: var(--ta-purple-dark, #5300bb);
  --cp-grad-end: var(--ta-purple, #6a00ec);
  --cp-text: var(--ta-ink, #111111);
  --cp-text-mid: #4a4a55;
  --cp-text-light: var(--ta-muted, #6b6f76);
  --cp-bg-light: var(--ta-lavender, #f1f1ff);
  --cp-green: var(--ta-purple, #6a00ec);
  --cp-red: #e5484d;
  --cp-border: #e3e0f5;
  --cp-radius: var(--ta-radius, 22px);
  --cp-radius-sm: 14px;

  display: block;
  font-family: var(--ta-font, "Montserrat", sans-serif);
  color: var(--cp-text);
  line-height: 1.6;
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#ta-cert-page h1,
#ta-cert-page h2,
#ta-cert-page h3,
#ta-cert-page .cp-faq__q {
  font-family: inherit;
}

#ta-cert-page p {
  margin-top: 0;
}

/* Bootstrap already sets this site-wide; repeated so the page never overflows on its own. */
#ta-cert-page *,
#ta-cert-page *::before,
#ta-cert-page *::after {
  box-sizing: border-box;
}

#ta-cert-page .cp-hero__grid > *,
#ta-cert-page .cp-compare > *,
#ta-cert-page .cp-features > * {
  min-width: 0;
}

#ta-cert-page ul {
  margin: 0;
  padding: 0;
}

.cp-section {
  padding: 80px 0;
}

.cp-section--light {
  background: var(--cp-bg-light);
}

#cp-pricing {
  scroll-margin-top: 90px;
}

/* ---------- Buttons ----------
   Colours and hover come from the theme's .ta-btn / .ta-btn-white (main.css).
   This only sizes them for the page. */
#ta-cert-page .cp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 54px;
  padding: 0.9rem 1.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  box-shadow: 0 10px 25px rgba(106, 0, 236, 0.28);
}

/* ---------- Announcement bar ---------- */
.cp-announcement {
  background: var(--cp-blue);
  color: #fff;
  text-align: center;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.cp-announcement span {
  color: var(--cp-amber);
}

.cp-announcement .bi {
  color: var(--cp-amber);
  margin-right: 4px;
}

/* ---------- Hero ---------- */
.cp-hero {
  background: linear-gradient(135deg, var(--ta-lavender, #f1f1ff) 0%, #ffffff 60%, var(--ta-lavender-2, #f7f7ff) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cp-hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(106, 0, 236, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.cp-hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.cp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(106, 0, 236, 0.1);
  color: var(--cp-accent-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cp-badge__dot {
  width: 8px;
  height: 8px;
  background: var(--cp-green);
  border-radius: 50%;
  animation: cp-pulse 2s infinite;
}

@keyframes cp-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.cp-hero h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  color: var(--cp-blue);
}

/* Marker underline drawn per line, so the phrase wraps naturally instead of jumping to its own line. */
.cp-highlight {
  color: var(--cp-accent);
  display: inline;
  background: linear-gradient(transparent 68%, rgba(255, 194, 26, 0.5) 68%, rgba(255, 194, 26, 0.5) 90%, transparent 90%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.cp-hero__sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--cp-text-mid);
  margin-bottom: 30px;
  font-weight: 500;
  line-height: 1.5;
}

.cp-hero__checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.cp-hero__checks span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}

.cp-hero__checks .bi {
  color: var(--cp-green);
  font-size: 20px;
  -webkit-text-stroke: 1px var(--cp-green);
}

/* Real Tyne Academy certificate (certificate.webp), shown inside the price card. */
.cp-hero-card__cert {
  background: var(--cp-bg-light);
  border-radius: var(--cp-radius-sm);
  padding: 16px;
  margin: 6px 0 22px;
  overflow: hidden;
}

#ta-cert-page .cp-hero-card__cert img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto;
}

.cp-hero-card {
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--cp-gradient-line) border-box;
  border-radius: var(--cp-radius);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--ta-shadow, 0 18px 40px rgba(40, 0, 100, 0.12));
  position: relative;
}

.cp-hero-card::before {
  content: "LIMITED TIME";
  white-space: nowrap;
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cp-amber);
  color: var(--cp-text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: 100px;
}

.cp-hero-card__price-wrap {
  margin-bottom: 20px;
}

.cp-hero-card__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--cp-text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
  display: block;
}

.cp-hero-card__price {
  font-size: 64px;
  font-weight: 600;
  color: var(--cp-blue);
  line-height: 1;
  letter-spacing: -2px;
}

.cp-hero-card__price sup {
  font-size: 26px;
  margin-right: 2px;
}

.cp-hero-card__anchor {
  font-size: 14px;
  color: var(--cp-text-light);
  margin-top: 8px;
  display: block;
  font-weight: 500;
}

.cp-hero-card__anchor span {
  text-decoration: line-through;
  margin-right: 5px;
}

.cp-hero-card__anchor strong {
  color: var(--cp-green);
}

.cp-secure {
  margin-top: 15px;
  font-size: 12px;
  color: var(--cp-text-light);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* ---------- Section headings ---------- */
.cp-section-head {
  text-align: center;
  margin-bottom: 50px;
}

.cp-eyebrow {
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--cp-accent);
  margin-bottom: 16px;
}

#ta-cert-page .cp-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--cp-blue);
  line-height: 1.2;
  margin-bottom: 20px;
  text-align: center;
}

.cp-sub {
  font-size: 17px;
  color: var(--cp-text-mid);
  max-width: 620px;
  margin: 0 auto 45px;
  text-align: center;
}

.cp-section-head .cp-sub {
  margin-bottom: 0;
}

.cp-sub--tight {
  margin-bottom: 36px;
}

/* ---------- Comparison ---------- */
.cp-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 60px;
}

.cp-compare__box {
  border-radius: var(--cp-radius);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.cp-compare__box--old {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.cp-compare__box--new {
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--cp-gradient-line) border-box;
  box-shadow: 0 20px 40px rgba(40, 0, 100, 0.12);
}

.cp-compare__badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom-left-radius: var(--cp-radius-sm);
}

.cp-compare__box--old .cp-compare__badge {
  background: #fca5a5;
  color: #7f1d1d;
}

.cp-compare__box--new .cp-compare__badge {
  background: var(--cp-gradient);
  color: #fff;
}

#ta-cert-page .cp-compare__box h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  padding-right: 100px;
}

#ta-cert-page .cp-compare__box--old h3 { color: #991b1b; }
#ta-cert-page .cp-compare__box--new h3 { color: var(--cp-blue); }

.cp-compare__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cp-compare__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
}

.cp-compare__list .bi {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.cp-compare__box--old li { color: #7f1d1d; }
.cp-compare__box--old .bi { color: #ef4444; }
.cp-compare__box--new li { color: var(--cp-text); font-weight: 500; }
.cp-compare__box--new .bi { color: var(--cp-green); }

/* ---------- Features ---------- */
#ta-cert-page .cp-features-title {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: var(--cp-blue);
  margin-bottom: 30px;
}

.cp-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cp-feature {
  background: #fff;
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius-sm);
  padding: 30px 24px;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.cp-feature:hover {
  border-color: var(--cp-accent);
  box-shadow: 0 12px 30px rgba(40, 0, 100, 0.14);
  transform: translateY(-4px);
}

.cp-feature__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--cp-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
  color: #fff;
}

#ta-cert-page .cp-feature h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--cp-blue);
  margin-bottom: 12px;
}

.cp-feature ul {
  list-style: none;
}

.cp-feature li {
  font-size: 14.5px;
  color: var(--cp-text-mid);
  line-height: 1.5;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
  font-weight: 500;
}

.cp-feature li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--cp-green);
  font-weight: 600;
}

.cp-feature li strong {
  color: var(--cp-blue);
  font-weight: 600;
}

/* ---------- Social proof ---------- */
.cp-proof {
  background: linear-gradient(135deg, var(--cp-grad-start) 0%, var(--cp-grad-mid) 55%, var(--cp-grad-end) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cp-proof::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 194, 26, 0.14) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.cp-proof > .container-xxl {
  position: relative;
  z-index: 2;
}

#ta-cert-page .cp-proof .cp-title { color: #fff; }
.cp-proof .cp-sub { color: rgba(255, 255, 255, 0.78); }

.cp-testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 10px;
}

.cp-testimonial {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--cp-radius-sm);
  padding: 30px 26px;
}

.cp-stars {
  color: var(--cp-amber);
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.cp-testimonial blockquote {
  font-size: 16px;
  line-height: 1.6;
  color: #ffffff;
  margin: 0 0 20px;
  font-style: italic;
}

.cp-testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cp-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cp-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  color: var(--cp-text);
  flex-shrink: 0;
}

.cp-testimonial__info strong { display: block; font-size: 15px; font-weight: 600; }
.cp-testimonial__info span { font-size: 13px; color: rgba(255, 255, 255, 0.7); }

/* ---------- Pricing ---------- */
.cp-pricing {
  max-width: 520px;
  margin: 0 auto;
  border: 3px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--cp-gradient-line) border-box;
  border-radius: 28px;
  padding: 50px 40px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(40, 0, 100, 0.14);
  position: relative;
}

.cp-pricing::before {
  content: "MOST POPULAR";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cp-amber);
  color: var(--cp-text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  padding: 6px 18px;
  border-radius: 100px;
  white-space: nowrap;
}

.cp-pricing__label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--cp-text-light);
  margin-bottom: 8px;
}

.cp-pricing__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
}

.cp-pricing__old {
  font-size: 26px;
  color: var(--cp-text-light);
  text-decoration: line-through;
  font-weight: 600;
}

.cp-pricing__new {
  font-size: 68px;
  font-weight: 600;
  color: var(--cp-blue);
  letter-spacing: -3px;
  line-height: 1;
}

.cp-pricing__new sup {
  font-size: 28px;
  top: -22px;
  position: relative;
  margin-right: 2px;
}

.cp-pricing__once {
  font-size: 15px;
  color: var(--cp-text-mid);
  font-weight: 600;
  margin-bottom: 28px;
}

.cp-countdown {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.cp-countdown__box {
  background: var(--cp-gradient);
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  min-width: 62px;
  text-align: center;
}

.cp-countdown__num { font-size: 22px; font-weight: 600; display: block; line-height: 1; }
.cp-countdown__label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.8px; opacity: 0.85; margin-top: 4px; display: block; }

.cp-pricing__features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px !important;
  padding-top: 24px !important;
  border-top: 1px solid var(--cp-border);
}

.cp-pricing__features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
}

.cp-pricing__features .bi {
  color: var(--cp-green);
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1.3;
  -webkit-text-stroke: 1px var(--cp-green);
}

.cp-unavailable {
  background: #fef2f2;
  color: #991b1b;
  border-radius: 12px;
  padding: 14px;
  font-weight: 600;
  margin: 0;
}

.cp-guarantee {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--cp-border);
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.cp-guarantee__icon {
  font-size: 36px;
  flex-shrink: 0;
  color: var(--cp-accent);
}

.cp-guarantee__text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--cp-blue);
  margin-bottom: 2px;
}

.cp-guarantee__text span {
  font-size: 13px;
  color: var(--cp-text-light);
  line-height: 1.5;
}

/* ---------- FAQ ---------- */
.cp-faq {
  max-width: 760px;
  margin: 0 auto;
}

.cp-faq__item {
  border-bottom: 1px solid var(--cp-border);
  padding: 22px 0;
}

.cp-faq__item:first-child {
  border-top: 1px solid var(--cp-border);
}

#ta-cert-page .cp-faq__q {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  color: var(--cp-blue);
  gap: 16px;
}

.cp-faq__plus {
  font-size: 24px;
  color: var(--cp-accent);
  font-weight: 400;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.cp-faq__item.open .cp-faq__plus {
  transform: rotate(45deg);
}

.cp-faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.cp-faq__item.open .cp-faq__a {
  max-height: 300px;
  padding-top: 14px;
}

.cp-faq__a p {
  font-size: 15px;
  color: var(--cp-text-mid);
  line-height: 1.65;
  margin: 0;
}

/* ---------- Final CTA ---------- */
.cp-final {
  background: linear-gradient(135deg, var(--cp-grad-start) 0%, var(--cp-grad-mid) 55%, var(--cp-grad-end) 100%);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}

#ta-cert-page .cp-final h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -1px;
  margin-bottom: 18px;
  line-height: 1.15;
  color: #fff;
}

.cp-final p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 580px;
  margin: 0 auto 34px;
}

#ta-cert-page .cp-btn--inline {
  display: inline-flex;
  color: var(--cp-accent);
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  width: auto;
  font-size: 1.2rem;
  padding: 1.1rem 3rem;
}

#ta-cert-page .cp-final__sub {
  color: rgba(255, 255, 255, 0.78);
  margin: 18px auto 0;
  font-size: 14px;
  font-weight: 500;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cp-compare { gap: 20px; }
  .cp-compare__box { padding: 30px 20px; }
}

@media (max-width: 900px) {
  .cp-hero__grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .cp-hero__checks { align-items: center; }
  .cp-features { grid-template-columns: repeat(2, 1fr); }
  .cp-compare { grid-template-columns: 1fr; gap: 30px; }
}


@media (max-width: 640px) {
  #ta-cert-page .cp-hero-card__cert img { max-width: 260px; }
  .cp-section { padding: 50px 0; }
  .cp-hero { padding: 50px 0 60px; }
  .cp-features { grid-template-columns: 1fr; }
  .cp-pricing { padding: 40px 24px; }
  .cp-pricing__new { font-size: 56px; }
  #ta-cert-page .cp-btn { font-size: 1rem; }
  #ta-cert-page .cp-btn--inline { font-size: 1.05rem; padding: 1rem 1.75rem; width: 100%; }
  .cp-testimonial { padding: 26px 22px; }
  #ta-cert-page .cp-compare__box h3 { padding-right: 0; margin-bottom: 14px; }
  .cp-compare__badge { position: relative; display: inline-block; border-radius: 8px; margin-bottom: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .cp-badge__dot { animation: none; }
  .cp-feature, #ta-cert-page .cp-btn, .cp-faq__a, .cp-faq__plus { transition: none !important; }
}
