/* ==========================================================================
   Trakanalytica Academy - Professional Tools Training page
   (pages/professional-tools.php). Every selector is prefixed "pt-" so nothing
   here collides with assets/style.css. Loaded only on this page via $pageCss.
   ========================================================================== */

.pt-wrap { max-width: 1500px; margin: 0 auto; padding: 0 32px; }
.pt-section { position: relative; padding: 88px 0; background: #fff; scroll-margin-top: 80px; }
.pt-section--tint { background: var(--off-white); }
.pt-curr { scroll-margin-top: 90px; }
.pt-head { margin-bottom: 40px; text-align: center; }
.pt-head h2 { margin: 0; font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; color: var(--navy); }

.pt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 10px; border: 2px solid transparent;
  font-family: var(--font-head); font-size: 0.98rem; font-weight: 700; text-align: center;
  cursor: pointer; transition: var(--transition);
}
.pt-btn i { font-size: 0.85em; transition: transform .25s ease; }
.pt-btn:hover i.fa-arrow-right { transform: translateX(4px); }
.pt-btn--primary { background: linear-gradient(135deg, #AD4A06, #CC5E0A); color: #fff; box-shadow: 0 10px 28px rgba(173,74,6,0.32); }
.pt-btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(173,74,6,0.42); }

/* ---------- 01 Hero ---------- */
.pt-hero { position: relative; overflow: hidden; color: #fff; padding: 96px 0 104px; background: linear-gradient(135deg, #0B1730 0%, #1A2E6B 55%, #4C1D95 100%); }
.pt-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(520px 420px at 88% 12%, rgba(167,139,250,0.36), transparent 70%),
    radial-gradient(460px 360px at 6% 98%, rgba(194,90,10,0.20), transparent 70%);
}
.pt-hero-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,0.14) 1.2px, transparent 1.2px); background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%); mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
}
.pt-hero-grid { position: relative; z-index: 1; }
.pt-hero-copy { max-width: 1000px; margin: 0 auto; text-align: center; }
.pt-crumb { margin-bottom: 26px; font-size: 0.88rem; color: rgba(255,255,255,0.65); }
.pt-crumb a { color: rgba(255,255,255,0.85); }
.pt-crumb a:hover { color: #fff; }
.pt-crumb i { margin: 0 6px; font-size: 0.6rem; }
.pt-hero-copy h1 { margin: 0 0 22px; font-family: var(--font-head); font-size: clamp(2rem, 3.8vw, 3.1rem); font-weight: 700; line-height: 1.18; color: #fff; text-wrap: balance; }
.pt-hero-lead { max-width: 780px; margin: 0 auto; font-size: 1.15rem; line-height: 1.75; color: rgba(255,255,255,0.86); }
.pt-chips { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pt-chips li { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 10px; font-size: 0.93rem; font-weight: 600; color: #fff; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); }
.pt-chips li i { color: var(--accent-light); }

/* ---------- 02 Levels ---------- */
.pt-level-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px; max-width: none; margin: 0; }
.pt-lvcard {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #fff 0%, #FAF8FF 100%);
  border: 1px solid var(--light-gray); border-radius: 24px;
  box-shadow: 0 14px 44px rgba(11,23,48,0.07); transition: var(--transition);
  padding: 56px 48px 46px;
}
.pt-lvcard::before, .pt-curr::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--blue-bright), var(--purple-mid), #C25A0A); }
.pt-lvcard::after, .pt-curr::after { content: ""; position: absolute; top: -90px; right: -90px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(124,58,237,0.10), transparent 70%); pointer-events: none; z-index: 0; }
.pt-lvcard > *, .pt-curr > * { position: relative; z-index: 1; }
.pt-lvcard:hover, .pt-curr:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(11,23,48,0.13); }
.pt-lvcard--advanced { border-color: rgba(124,58,237,0.45); box-shadow: 0 18px 56px rgba(124,58,237,0.18); }
.pt-badge { align-self: flex-start; margin-bottom: 20px; padding: 7px 16px; border-radius: 10px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple-mid); background: rgba(124,58,237,0.10); border: 1px solid rgba(124,58,237,0.2); }
.pt-lvcard--advanced .pt-badge { color: #fff; background: linear-gradient(135deg, var(--purple-mid), #A78BFA); border-color: transparent; box-shadow: 0 8px 18px rgba(124,58,237,0.30); }
.pt-lvcard h3 { margin: 0 0 24px; font-family: var(--font-head); font-size: 1.55rem; font-weight: 800; line-height: 1.3; color: var(--navy); }
.pt-stats { list-style: none; margin: 0 0 6px; padding: 0 0 30px; display: flex; flex-wrap: wrap; gap: 12px; border-bottom: 1px solid var(--light-gray); }
.pt-stats li { padding: 8px 16px; border-radius: 10px; font-size: 0.9rem; font-weight: 700; color: var(--navy); background: #fff; border: 1px solid var(--light-gray); box-shadow: 0 3px 10px rgba(11,23,48,0.04); }
.pt-lvcard h4 { display: flex; align-items: center; gap: 12px; margin: 30px 0 18px; font-family: var(--font-head); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--purple-mid); }
.pt-lvcard h4::before { content: ""; flex: 0 0 auto; width: 24px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #C25A0A, #E0B25A); }
.pt-list { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.pt-list li { position: relative; padding-left: 38px; font-size: 1rem; line-height: 1.55; color: var(--text-body); }
.pt-list li::before {
  content: "\f00c"; position: absolute; left: 0; top: 0;
  width: 24px; height: 24px; box-sizing: border-box; display: grid; place-items: center; border-radius: 50%;
  font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 0.62rem; color: var(--teal);
  background: rgba(13,148,136,0.06); border: 2px solid var(--teal);
}
.pt-outcome { margin: 0 0 28px; padding: 26px 28px; border-radius: 18px; font-size: 0.98rem; line-height: 1.75; color: rgba(255,255,255,0.88); background: linear-gradient(135deg, #1A2E6B, #4C1D95); box-shadow: 0 14px 34px rgba(76,29,149,0.25); }
.pt-outcome strong { color: var(--accent-light); }
.pt-cert { margin: auto 0 0; display: flex; align-items: center; gap: 16px; padding: 16px 22px; background: #fff; border: 1px solid var(--light-gray); border-radius: 18px; box-shadow: 0 6px 20px rgba(11,23,48,0.04); font-size: 0.96rem; color: var(--text-body); }
.pt-cert i { flex: 0 0 auto; width: 34px; height: 34px; box-sizing: border-box; display: grid; place-items: center; border-radius: 50%; font-size: 0.85rem; color: var(--purple-mid); background: rgba(124,58,237,0.08); border: 2px solid var(--purple-mid); }
.pt-both { max-width: 1200px; margin: 32px auto 0; text-align: center; font-size: 1rem; font-weight: 600; line-height: 1.7; color: var(--navy); }

/* ---------- 03 Price table ---------- */
.pt-table-wrap { max-width: none; margin: 0; overflow-x: auto; border-radius: 24px; border: 1px solid var(--light-gray); box-shadow: 0 18px 50px rgba(11,23,48,0.09); background: #fff; }
.pt-price-table { width: 100%; border-collapse: collapse; }
.pt-price-table thead th { padding: 24px 32px; text-align: left; font-family: var(--font-head); font-size: 1rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #0B1730, #1A2E6B 60%, #3B2A8C); box-shadow: inset 0 -4px 0 #C25A0A; }
.pt-price-table thead th + th { border-left: 1px solid rgba(255,255,255,0.12); }
.pt-price-table tbody th, .pt-price-table tbody td { padding: 28px 32px; text-align: left; vertical-align: middle; border-top: 1px solid var(--light-gray); transition: background .2s ease; }
.pt-price-table tbody th { background: rgba(124,58,237,0.035); }
.pt-price-table tbody td + td, .pt-price-table tbody th + td { border-left: 1px solid var(--light-gray); }
.pt-price-table tbody tr:hover th, .pt-price-table tbody tr:hover td { background: rgba(124,58,237,0.06); }
.pt-tname { display: flex; align-items: center; gap: 16px; font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; color: var(--navy); }
.pt-tname i { flex: 0 0 auto; width: 42px; height: 42px; box-sizing: border-box; display: grid; place-items: center; border-radius: 50%; font-size: 0.95rem; color: var(--purple-mid); background: rgba(124,58,237,0.08); border: 2px solid var(--purple-mid); }
.pt-tsub { display: block; margin-top: 6px; padding-left: 58px; font-size: 0.92rem; font-weight: 500; color: var(--text-body); }
.pt-price { margin-bottom: 14px; font-size: 1.15rem; }
.pt-price .price-was, .pt-foot-price .price-was { font-size: 0.8em; font-weight: 500; text-decoration: line-through; color: #94a3b8; margin-right: 6px; }
.pt-price .price-now { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: var(--navy); }
.pt-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 10px; font-size: 0.9rem; font-weight: 700; color: var(--purple-mid); background: rgba(124,58,237,0.07); border: 1.5px solid rgba(124,58,237,0.28); transition: var(--transition); }
.pt-link i { font-size: 0.8em; transition: transform .25s ease; }
.pt-link:hover { color: #fff; background: var(--purple-mid); border-color: var(--purple-mid); }
.pt-link:hover i { transform: translateX(4px); }

/* ---------- 04 Curricula ---------- */
.pt-tool-head { display: flex; align-items: center; gap: 20px; margin-bottom: 34px; }
.pt-ico { flex-shrink: 0; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, var(--purple-mid), #C25A0A); }
.pt-tool-head h2 { margin: 0 0 4px; font-family: var(--font-head); font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; color: var(--navy); }
.pt-tool-head p { margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--purple-mid); }
.pt-curricula { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px; align-items: stretch; }
.pt-curr {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #fff 0%, #FAF8FF 100%);
  border: 1px solid var(--light-gray); border-radius: 24px;
  box-shadow: 0 14px 44px rgba(11,23,48,0.07); transition: var(--transition);
  padding: 54px 46px 44px;
}
.pt-curr h3 { margin: 0 0 20px; font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: var(--navy); }
.pt-dur { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.pt-dur li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 10px; font-size: 0.88rem; font-weight: 700; color: var(--navy); background: #fff; border: 1px solid var(--light-gray); box-shadow: 0 3px 10px rgba(11,23,48,0.04); }
.pt-dur li i { color: #C25A0A; }
.pt-prereq { margin: 0 0 26px; font-size: 0.97rem; line-height: 1.75; color: var(--text-body); }
.pt-mod-table { width: 100%; margin-bottom: 28px; border-collapse: separate; border-spacing: 0; font-size: 0.93rem; background: #fff; border: 1px solid var(--light-gray); border-radius: 16px; overflow: hidden; }
.pt-mod-table thead th { padding: 14px 18px; text-align: left; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple-mid); background: rgba(124,58,237,0.09); }
.pt-mod-table tbody th, .pt-mod-table tbody td { padding: 16px 18px; text-align: left; vertical-align: top; line-height: 1.6; border-top: 1px solid var(--light-gray); }
.pt-mod-table tbody th { width: 38%; font-weight: 700; color: var(--navy); background: rgba(124,58,237,0.03); }
.pt-mod-table tbody td { color: var(--text-body); }
.pt-mod-table tbody tr:hover th, .pt-mod-table tbody tr:hover td { background: rgba(124,58,237,0.06); }
.pt-line { display: flex; align-items: center; gap: 16px; margin: 0 0 14px; padding: 18px 22px; border-radius: 18px; font-size: 0.97rem; line-height: 1.7; color: var(--text-body); background: #fff; border: 1px solid var(--light-gray); box-shadow: 0 6px 20px rgba(11,23,48,0.05); transition: var(--transition); }
.pt-line:hover { border-color: rgba(124,58,237,0.3); }
.pt-line i { flex: 0 0 auto; width: 36px; height: 36px; box-sizing: border-box; display: grid; place-items: center; border-radius: 50%; font-size: 0.85rem; color: var(--purple-mid); background: rgba(124,58,237,0.08); border: 2px solid var(--purple-mid); }
.pt-line strong, .pt-prereq strong { color: var(--navy); }
.pt-line:last-of-type { margin-bottom: 32px; }
.pt-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: auto; padding-top: 30px; border-top: 1px dashed #D5DBEA; }
.pt-foot-price { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; line-height: 1; color: var(--navy); }

/* ---------- 05 CTA ---------- */
.pt-cta { position: relative; overflow: hidden; padding: 96px 0; text-align: center; color: #fff; background: linear-gradient(135deg, #0B1730 0%, #1A2E6B 55%, #4C1D95 100%); }
.pt-cta-bg { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(480px 360px at 85% 0%, rgba(167,139,250,0.30), transparent 70%), radial-gradient(440px 320px at 8% 100%, rgba(194,90,10,0.20), transparent 70%); }
.pt-cta-inner { position: relative; z-index: 1; max-width: 860px; }
.pt-cta h2 { margin: 0 0 18px; font-family: var(--font-head); font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 700; line-height: 1.2; color: #fff; }
.pt-cta p { margin: 0 0 34px; font-size: 1.12rem; line-height: 1.7; color: rgba(255,255,255,0.84); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .pt-curricula { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .pt-section { padding: 68px 0; }
  .pt-hero { padding: 64px 0 76px; }
  .pt-cta { padding: 76px 0; }
}
@media (max-width: 720px) {
  .pt-wrap { padding: 0 20px; }
  .pt-section { padding: 52px 0; }
  .pt-hero { padding: 56px 0 64px; }
  .pt-cta { padding: 60px 0; }
  .pt-level-grid { grid-template-columns: 1fr; }
  .pt-lvcard, .pt-curr { padding: 40px 22px 30px; }
  .pt-level-grid, .pt-curricula { gap: 28px; }
  .pt-chips li { width: 100%; justify-content: center; }
  .pt-tool-head { flex-direction: column; align-items: flex-start; gap: 14px; }

  /* price table becomes stacked rows */
  .pt-price-table thead { display: none; }
  .pt-price-table, .pt-price-table tbody, .pt-price-table tr, .pt-price-table th, .pt-price-table td { display: block; width: 100%; }
  .pt-price-table tbody tr { padding: 8px 0; border-top: 1px solid var(--light-gray); }
  .pt-price-table tbody th, .pt-price-table tbody td { border-top: 0; padding: 10px 18px; }
  .pt-price-table tbody td + td, .pt-price-table tbody th + td { border-left: 0; }
  .pt-tsub { padding-left: 58px; }
  .pt-price-table tbody td::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple-mid); }

  /* module table becomes stacked rows */
  .pt-mod-table thead { display: none; }
  .pt-mod-table, .pt-mod-table tbody, .pt-mod-table tr, .pt-mod-table th, .pt-mod-table td { display: block; width: 100%; }
  .pt-mod-table tbody tr { padding: 10px 0; border-bottom: 1px solid var(--light-gray); }
  .pt-mod-table tbody th, .pt-mod-table tbody td { border: 0; padding: 3px 4px; width: 100%; }

  .pt-foot { flex-direction: column; align-items: stretch; }
  .pt-foot .pt-btn, .pt-cta .pt-btn { width: 100%; }
}