/*
Theme Name: Training Day Blog – Editable Products
Theme URI: https://trainingdayfitness.co
Author: Training Day
Author URI: https://trainingdayfitness.co
Description: A bold, dark, athletic WordPress blog theme for Training Day Performance Lab. Includes dynamic latest posts, featured article, category cards, and program CTAs.
Version: 1.7.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: training-day-blog
*/

:root {
  --td-bg: #050505;
  --td-bg-2: #0b0b0b;
  --td-card: #111111;
  --td-card-2: #171717;
  --td-text: #ffffff;
  --td-muted: #b7b7b7;
  --td-muted-2: #7f7f7f;
  --td-yellow: #f5c400;
  --td-yellow-2: #ffd900;
  --td-line: rgba(255, 255, 255, 0.12);
  --td-line-strong: rgba(245, 196, 0, 0.45);
  --td-max: 1180px;
  --td-radius: 28px;
  --td-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--td-bg);
  color: var(--td-text);
  font-family: Arial, Helvetica, sans-serif;
}

body.admin-bar .td-nav {
  top: 32px;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.td-blog {
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(245, 196, 0, 0.08), transparent 30%),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), transparent 24%),
    var(--td-bg);
  color: var(--td-text);
}

.td-container {
  width: min(var(--td-max), 92%);
  margin: 0 auto;
}

.td-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 5, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--td-line);
}

.td-nav-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.td-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: -0.6px;
  font-size: 18px;
  white-space: nowrap;
}


.td-logo-image {
  display: inline-flex;
  align-items: center;
}

.td-custom-logo {
  display: block;
  width: auto;
  max-width: 220px;
  max-height: 58px;
  object-fit: contain;
}

.td-logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 2px solid var(--td-yellow);
  color: var(--td-yellow);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 950;
}

.td-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #d8d8d8;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 800;
}

.td-nav-links a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.td-nav-links a:hover {
  color: var(--td-yellow);
}

.td-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--td-yellow);
  color: #000 !important;
  text-decoration: none;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 950;
  letter-spacing: 0.7px;
  transition: transform 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  border: 0;
}

.td-pill-btn:hover {
  transform: translateY(-2px);
  background: var(--td-yellow-2);
  color: #000 !important;
}

.td-outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--td-line);
  background: rgba(255, 255, 255, 0.04);
  color: #fff !important;
  text-decoration: none;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 950;
  letter-spacing: 0.7px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.td-outline-btn:hover {
  transform: translateY(-2px);
  border-color: var(--td-line-strong);
  background: rgba(245, 196, 0, 0.08);
}

.td-hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  padding: 96px 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.78) 42%, rgba(0, 0, 0, 0.36) 100%),
    url('https://images.unsplash.com/photo-1517963628607-235ccdd5476c?auto=format&fit=crop&w=2200&q=85');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--td-line);
}

.td-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--td-bg));
  pointer-events: none;
}

.td-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  align-items: end;
}

.td-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--td-yellow);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 950;
}

.td-eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--td-yellow);
  display: inline-block;
}

.td-hero h1 {
  margin: 0 0 26px;
  max-width: 850px;
  font-size: clamp(52px, 8vw, 112px);
  line-height: 0.88;
  letter-spacing: -4px;
  text-transform: uppercase;
  font-weight: 950;
}

.td-hero h1 span {
  color: var(--td-yellow);
}

.td-hero p {
  max-width: 650px;
  margin: 0 0 34px;
  color: #e4e4e4;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.58;
  font-weight: 500;
}

.td-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}


.td-hero-signup {
  max-width: 660px;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--td-line);
  border-radius: 24px;
  background: rgba(5, 5, 5, 0.55);
  backdrop-filter: blur(10px);
}

.td-hero-signup h3 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 0.95;
  letter-spacing: -1px;
  text-transform: uppercase;
  font-weight: 950;
}

.td-hero-signup p {
  max-width: 560px;
  margin: 0 0 16px;
  color: #d7d7d7;
  font-size: 15px;
  line-height: 1.55;
}

.td-hero-signup .td-email-form {
  margin: 0;
  max-width: 560px;
}

.td-inline-signup {
  margin-top: 34px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr minmax(340px, 520px);
  align-items: center;
  gap: 28px;
  border: 1px solid var(--td-line);
  border-radius: var(--td-radius);
  background:
    radial-gradient(circle at top right, rgba(245, 196, 0, 0.13), transparent 32%),
    var(--td-card);
}

.td-inline-signup h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 0.95;
  letter-spacing: -1.8px;
  text-transform: uppercase;
  font-weight: 950;
}

.td-inline-signup p {
  margin: 0;
  color: var(--td-muted);
  line-height: 1.6;
}

.td-inline-signup .td-email-form {
  margin: 0;
}

.td-email-message {
  max-width: 620px;
  margin: 12px auto 0;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.td-hero-signup .td-email-message,
.td-inline-signup .td-email-message {
  margin-left: 0;
  margin-right: 0;
}

.td-email-success {
  color: var(--td-yellow);
  background: rgba(245, 196, 0, 0.10);
  border: 1px solid rgba(245, 196, 0, 0.28);
}

.td-email-error {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--td-line);
}

.td-hero-panel {
  background: rgba(10, 10, 10, 0.78);
  border: 1px solid var(--td-line);
  border-radius: var(--td-radius);
  padding: 30px;
  box-shadow: var(--td-shadow);
  backdrop-filter: blur(12px);
}

.td-hero-panel h3 {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1;
  text-transform: uppercase;
}

.td-feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.td-feature-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  color: #d9d9d9;
  line-height: 1.45;
  font-size: 15px;
}

.td-feature-list b {
  color: #fff;
}

.td-check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(245, 196, 0, 0.14);
  border: 1px solid rgba(245, 196, 0, 0.35);
  color: var(--td-yellow);
  display: grid;
  place-items: center;
  font-weight: 950;
}

.td-section {
  padding: 92px 0;
  position: relative;
}

.td-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 36px;
  margin-bottom: 38px;
}

.td-kicker {
  display: block;
  color: var(--td-yellow);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 950;
  margin-bottom: 14px;
}

.td-section-title {
  margin: 0;
  font-size: clamp(38px, 5.5vw, 72px);
  line-height: 0.94;
  letter-spacing: -2.6px;
  text-transform: uppercase;
  font-weight: 950;
}

.td-section-desc {
  max-width: 520px;
  margin: 0;
  color: var(--td-muted);
  line-height: 1.65;
  font-size: 16px;
}

.td-featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 490px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(245, 196, 0, 0.12), transparent 32%),
    linear-gradient(135deg, #151515, #070707);
  border: 1px solid var(--td-line);
  border-radius: var(--td-radius);
  box-shadow: var(--td-shadow);
}

.td-featured-image {
  position: relative;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  text-decoration: none;
}

.td-featured-image-badge {
  position: absolute;
  left: 28px;
  bottom: 28px;
  padding: 12px 14px;
  border-radius: 999px;
  background: #000;
  border: 1px solid var(--td-line);
  color: var(--td-yellow);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 950;
}

.td-featured-content {
  padding: 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.td-tag {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--td-yellow);
  color: #000 !important;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.7px;
  font-weight: 950;
  margin-bottom: 18px;
  text-decoration: none;
}

.td-featured-content h2 {
  margin: 0 0 18px;
  font-size: clamp(36px, 4.5vw, 62px);
  line-height: 0.95;
  letter-spacing: -2px;
  text-transform: uppercase;
  font-weight: 950;
}

.td-featured-content p {
  margin: 0 0 28px;
  color: #d5d5d5;
  font-size: 18px;
  line-height: 1.65;
}

.td-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
  color: var(--td-muted-2);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 850;
}

.td-cats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.td-cat {
  min-height: 170px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--td-card);
  border: 1px solid var(--td-line);
  border-radius: 24px;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.td-cat:hover {
  transform: translateY(-5px);
  border-color: var(--td-line-strong);
  background: #181818;
}

.td-cat-number {
  color: var(--td-yellow);
  font-size: 27px;
  font-weight: 950;
  letter-spacing: -1px;
}

.td-cat h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.4px;
}

.td-cat p {
  margin: 10px 0 0;
  color: var(--td-muted-2);
  font-size: 13px;
  line-height: 1.45;
}

.td-articles {
  background: var(--td-bg-2);
  border-top: 1px solid var(--td-line);
  border-bottom: 1px solid var(--td-line);
}

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

.td-card {
  overflow: hidden;
  background: var(--td-card);
  border: 1px solid var(--td-line);
  border-radius: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.td-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.24);
}

.td-card-image {
  display: block;
  height: 235px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--td-line);
  text-decoration: none;
}

.td-card-body {
  padding: 25px;
}

.td-card h3 {
  margin: 0 0 12px;
  font-size: 27px;
  line-height: 1.05;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.td-card h3 a {
  text-decoration: none;
}

.td-card h3 a:hover {
  color: var(--td-yellow);
}

.td-card p {
  margin: 0 0 20px;
  color: var(--td-muted);
  line-height: 1.58;
  font-size: 15px;
}

.td-read {
  color: var(--td-yellow) !important;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.8px;
  font-weight: 950;
}

.td-empty {
  grid-column: 1 / -1;
  padding: 36px;
  border: 1px solid var(--td-line);
  border-radius: 24px;
  background: var(--td-card);
  color: var(--td-muted);
}

.td-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 46px;
  align-items: center;
}

.td-program-box {
  padding: 42px;
  background:
    radial-gradient(circle at top right, rgba(245, 196, 0, 0.13), transparent 34%),
    var(--td-card);
  border: 1px solid var(--td-line);
  border-radius: var(--td-radius);
  box-shadow: var(--td-shadow);
}

.td-program-box h2 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.93;
  letter-spacing: -2.4px;
  text-transform: uppercase;
}

.td-program-box p {
  color: var(--td-muted);
  line-height: 1.7;
  font-size: 17px;
  margin: 0 0 28px;
}

.td-program-list {
  display: grid;
  gap: 12px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.td-program-list li {
  padding: 15px 16px;
  border: 1px solid var(--td-line);
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #e2e2e2;
  font-weight: 800;
}

.td-program-list span {
  color: var(--td-yellow);
  white-space: nowrap;
}

.td-sidebar {
  display: grid;
  gap: 18px;
}

.td-side-card {
  padding: 26px;
  border: 1px solid var(--td-line);
  border-radius: 22px;
  background: var(--td-card);
}

.td-side-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
  text-transform: uppercase;
}

.td-side-card p {
  margin: 0;
  color: var(--td-muted);
  line-height: 1.55;
}

.td-email {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.92), rgba(0,0,0,0.7)),
    url('https://images.unsplash.com/photo-1517836357463-d25dfeac3438?auto=format&fit=crop&w=2000&q=85');
  background-size: cover;
  background-position: center;
  text-align: center;
  border-top: 1px solid var(--td-line);
}

.td-email h2 {
  max-width: 900px;
  margin: 0 auto 18px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.92;
  letter-spacing: -3px;
  text-transform: uppercase;
  font-weight: 950;
}

.td-email p {
  max-width: 680px;
  margin: 0 auto 30px;
  color: #d7d7d7;
  font-size: 18px;
  line-height: 1.65;
}

.td-email-note {
  max-width: 680px;
  margin: 18px auto 0;
  color: var(--td-muted-2);
  font-size: 13px;
  line-height: 1.5;
}

.td-email-form {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0,0,0,0.25);
}

.td-email-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: #fff;
  color: #111;
  min-height: 50px;
  padding: 0 18px;
  font-size: 16px;
  outline: none;
  border-radius: 999px;
}

.td-email-form input::placeholder {
  color: #606060;
}

.td-email-form button {
  border: 0;
  cursor: pointer;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--td-yellow);
  color: #000;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  white-space: nowrap;
}


.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.td-article-signup {
  position: relative;
  margin: 48px 0;
  padding: 28px;
  border: 1px solid rgba(245, 196, 0, 0.38);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(245, 196, 0, 0.14), rgba(245, 196, 0, 0.03) 38%, rgba(255,255,255,0.035)),
    #101010;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  text-align: left;
  overflow: hidden;
}

.td-article-signup::before {
  content: 'Free newsletter';
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(245, 196, 0, 0.16);
  color: var(--td-yellow);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 1.2px;
  line-height: 1;
  text-transform: uppercase;
}

.td-article-signup h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.6px;
  text-transform: uppercase;
  font-weight: 950;
}

.td-article-signup p {
  margin: 0 0 20px;
  max-width: 620px;
  color: var(--td-muted);
  font-size: 16px;
  line-height: 1.55;
}

.td-article-signup .td-email-form {
  max-width: 620px;
  margin: 0;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.34);
}

.td-article-signup .td-email-message {
  max-width: 620px;
  margin-left: 0;
  text-align: left;
}

.td-footer {
  padding: 38px 0;
  border-top: 1px solid var(--td-line);
  color: var(--td-muted-2);
  background: #030303;
}

.td-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 850;
}

.td-footer a {
  color: var(--td-muted);
  text-decoration: none;
  margin-left: 18px;
}

.td-footer a:hover {
  color: var(--td-yellow);
}

/* Single / Archive pages */

.td-page-wrap {
  background: var(--td-bg);
  color: var(--td-text);
  min-height: 70vh;
}

.td-page-hero {
  padding: 90px 0 55px;
  background:
    radial-gradient(circle at top right, rgba(245, 196, 0, 0.12), transparent 28%),
    var(--td-bg);
  border-bottom: 1px solid var(--td-line);
}

.td-page-hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.95;
  letter-spacing: -3px;
  text-transform: uppercase;
}

.td-content {
  width: min(860px, 92%);
  margin: 0 auto;
  padding: 70px 0;
  color: #e7e7e7;
  font-size: 19px;
  line-height: 1.8;
}

.td-content h1,
.td-content h2,
.td-content h3,
.td-content h4 {
  color: #fff;
  line-height: 1.1;
  text-transform: uppercase;
}

.td-content a {
  color: var(--td-yellow);
}

.td-content blockquote {
  border-left: 4px solid var(--td-yellow);
  margin-left: 0;
  padding-left: 24px;
  color: #fff;
  font-size: 22px;
  line-height: 1.55;
}

.td-content img {
  border-radius: 18px;
}

.td-post-thumb {
  width: min(1050px, 92%);
  margin: 42px auto 0;
  border-radius: var(--td-radius);
  overflow: hidden;
  border: 1px solid var(--td-line);
}

.td-post-thumb img {
  width: 100%;
  display: block;
}

.td-archive-grid {
  padding: 70px 0;
}

@media (max-width: 1080px) {
  .td-hero-grid,
  .td-featured-card,
  .td-split {
    grid-template-columns: 1fr;
  }

  .td-hero-panel {
    max-width: 640px;
  }

  .td-inline-signup {
    grid-template-columns: 1fr;
  }

  .td-cats {
    grid-template-columns: repeat(3, 1fr);
  }

  .td-grid {
    grid-template-columns: 1fr 1fr;
  }

  .td-featured-content {
    padding: 38px;
  }
}

@media (max-width: 782px) {
  body.admin-bar .td-nav {
    top: 46px;
  }
}

@media (max-width: 760px) {
  .td-nav-inner {
    min-height: auto;
    padding: 16px 0;
    align-items: flex-start;
  }

  .td-nav-links {
    display: none;
  }

  .td-hero {
    min-height: auto;
    padding: 74px 0 86px;
  }

  .td-hero h1,
  .td-section-title,
  .td-email h2,
  .td-page-hero h1 {
    letter-spacing: -2px;
  }

  .td-section {
    padding: 68px 0;
  }

  .td-section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .td-cats,
  .td-grid {
    grid-template-columns: 1fr;
  }

  .td-cat {
    min-height: 135px;
  }

  .td-featured-image {
    min-height: 315px;
  }

  .td-program-box {
    padding: 28px;
  }

  .td-program-list li {
    flex-direction: column;
    gap: 6px;
  }

  .td-hero-signup,
  .td-inline-signup {
    padding: 22px;
  }

  .td-email-form {
    border-radius: 22px;
    flex-direction: column;
    padding: 12px;
  }

  .td-email-form input {
    min-height: 48px;
    text-align: center;
  }

  .td-email-form button {
    width: 100%;
  }

  .td-footer a {
    display: inline-block;
    margin-left: 0;
    margin-right: 18px;
    margin-top: 10px;
  }
}


/* Product CTA on single posts */

.td-product-cta {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(245, 196, 0, 0.13), transparent 34%),
    var(--td-card);
  border: 1px solid var(--td-line);
  border-radius: var(--td-radius);
  box-shadow: var(--td-shadow);
}

.td-product-cta-copy {
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.td-product-cta h2 {
  margin: 0 0 18px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 0.95;
  letter-spacing: -2px;
  text-transform: uppercase;
}

.td-product-cta p {
  color: var(--td-muted);
  line-height: 1.7;
  font-size: 17px;
  margin: 0 0 28px;
}

.td-product-cta-image {
  min-height: 420px;
  border-radius: 22px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #050505;
  border: 1px solid var(--td-line);
  text-decoration: none;
}

@media (max-width: 760px) {
  .td-product-cta {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .td-product-cta-copy {
    padding: 12px;
  }

  .td-product-cta-image {
  min-height: 420px;
  border-radius: 22px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #050505;
  border: 1px solid var(--td-line);
  text-decoration: none;
}
}


.td-product-price {
  width: fit-content;
  margin: -4px 0 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(245, 196, 0, 0.12);
  border: 1px solid rgba(245, 196, 0, 0.35);
  color: var(--td-yellow);
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
}


.td-product-cta-with-image {
  overflow: hidden;
}


.td-single-byline {
  color: var(--td-muted);
}

.td-single-byline span:first-child {
  color: #ffffff;
}


.td-post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.td-post-categories .td-tag {
  margin-bottom: 0;
}


/* Article newsletter card redesign: scoped only to mid-article and bottom-article signup blocks. */
.single-post .td-content > aside.td-article-signup,
.single .td-content > aside.td-article-signup,
.single-post .td-content .td-article-signup,
.single .td-content .td-article-signup {
  box-sizing: border-box !important;
  display: block !important;
  position: relative !important;
  clear: both !important;
  width: 100% !important;
  margin: 54px 0 !important;
  padding: 26px !important;
  border: 1px solid rgba(245, 196, 0, 0.42) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at top left, rgba(245, 196, 0, 0.18), transparent 34%),
    linear-gradient(135deg, #171717 0%, #101010 55%, #070707 100%) !important;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.48) !important;
  overflow: hidden !important;
  text-align: left !important;
}

.single-post .td-content > aside.td-article-signup::before,
.single .td-content > aside.td-article-signup::before,
.single-post .td-content .td-article-signup::before,
.single .td-content .td-article-signup::before {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 5px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 22px 22px 0 0 !important;
  background: var(--td-yellow) !important;
}

.single-post .td-content .td-article-signup-kicker,
.single .td-content .td-article-signup-kicker {
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  margin: 0 0 13px !important;
  padding: 7px 10px !important;
  border: 1px solid rgba(245, 196, 0, 0.36) !important;
  border-radius: 999px !important;
  background: rgba(245, 196, 0, 0.12) !important;
  color: var(--td-yellow) !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  letter-spacing: 1.1px !important;
  text-transform: uppercase !important;
}

.single-post .td-content .td-article-signup-grid,
.single .td-content .td-article-signup-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px) !important;
  gap: 22px !important;
  align-items: center !important;
}

.single-post .td-content .td-article-signup h2,
.single .td-content .td-article-signup h2 {
  margin: 0 0 7px !important;
  color: #fff !important;
  font-size: clamp(22px, 2.3vw, 30px) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.5px !important;
  text-transform: uppercase !important;
  font-weight: 950 !important;
}

.single-post .td-content .td-article-signup p,
.single .td-content .td-article-signup p {
  margin: 0 !important;
  max-width: 520px !important;
  color: var(--td-muted) !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
}

.single-post .td-content .td-article-signup .td-email-form,
.single .td-content .td-article-signup .td-email-form {
  max-width: none !important;
  margin: 0 !important;
  background: #050505 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035) !important;
}

.single-post .td-content .td-article-signup .td-email-message,
.single .td-content .td-article-signup .td-email-message {
  max-width: none !important;
  margin: 10px 0 0 !important;
  text-align: left !important;
}

@media (max-width: 760px) {
  .single-post .td-content > aside.td-article-signup,
  .single .td-content > aside.td-article-signup,
  .single-post .td-content .td-article-signup,
  .single .td-content .td-article-signup {
    padding: 22px !important;
  }

  .single-post .td-content .td-article-signup-grid,
  .single .td-content .td-article-signup-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* Homepage click-pressure update */
.td-media-top {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 36%),
    var(--td-bg);
}

.td-news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.td-featured-card-media {
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 520px;
}

.td-trending-panel,
.td-popular-week {
  padding: 26px;
  border: 1px solid var(--td-line);
  border-radius: var(--td-radius);
  background:
    radial-gradient(circle at top right, rgba(245, 196, 0, 0.12), transparent 34%),
    var(--td-card);
}

.td-panel-head {
  margin-bottom: 10px;
}

.td-panel-head h3,
.td-start-label h3 {
  margin: 0;
  text-transform: uppercase;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.9px;
}

.td-small-article {
  position: relative;
  display: block;
  padding: 18px 0;
  border-top: 1px solid var(--td-line);
}

.td-small-article:first-of-type {
  border-top: 0;
}

.td-small-label {
  display: inline-flex;
  margin-bottom: 9px;
  color: var(--td-yellow);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.td-small-title {
  display: block;
  color: #fff !important;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 20px;
  line-height: 1.08;
  letter-spacing: -0.6px;
  font-weight: 950;
}

.td-small-title:hover {
  color: var(--td-yellow) !important;
}

.td-small-meta {
  margin: 11px 0 0;
  font-size: 11px;
}

.td-start-strip {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
  margin-top: 24px;
  padding: 24px;
  border-radius: var(--td-radius);
  border: 1px solid var(--td-line);
  background: rgba(255,255,255,0.035);
}

.td-start-links,
.td-more-link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.td-start-links .td-small-article,
.td-more-link-grid .td-small-article {
  padding: 18px;
  border: 1px solid var(--td-line);
  border-radius: 20px;
  background: var(--td-card);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.td-start-links .td-small-article:hover,
.td-more-link-grid .td-small-article:hover {
  transform: translateY(-4px);
  border-color: var(--td-line-strong);
  background: #181818;
}

.td-click-hub {
  background:
    radial-gradient(circle at bottom left, rgba(245, 196, 0, 0.08), transparent 26%),
    var(--td-bg);
}

.td-click-hub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.7fr);
  gap: 28px;
  align-items: start;
}

.td-section-header-stacked {
  display: block;
}

.td-section-header-stacked .td-section-desc {
  margin-top: 16px;
}

.td-cats-counts {
  grid-template-columns: repeat(2, 1fr);
}

.td-cats-counts .td-cat {
  min-height: 155px;
}

.td-cat-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.td-cat-count {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(245, 196, 0, 0.34);
  color: var(--td-yellow);
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.td-more-links {
  padding-top: 60px;
  background: var(--td-bg-2);
  border-top: 1px solid var(--td-line);
}

.td-more-link-grid {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1080px) {
  .td-news-layout,
  .td-featured-card-media,
  .td-click-hub-grid,
  .td-start-strip {
    grid-template-columns: 1fr;
  }

  .td-start-links,
  .td-more-link-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .td-start-links,
  .td-more-link-grid,
  .td-cats-counts {
    grid-template-columns: 1fr;
  }

  .td-trending-panel,
  .td-popular-week,
  .td-start-strip {
    padding: 20px;
  }

  .td-small-title {
    font-size: 18px;
  }
}

/* Homepage blog-card design correction */
.td-news-layout {
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.85fr);
  gap: 24px;
}

.td-media-top .td-section-desc,
.td-click-hub .td-section-desc {
  max-width: 520px;
}

.td-featured-card-media {
  overflow: hidden;
  background: #101010;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 20px 60px rgba(0,0,0,0.22);
}

.td-featured-card-media .td-featured-content p {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,0.72);
}

.td-trending-panel,
.td-popular-week,
.td-start-strip {
  background: #101010;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 48px rgba(0,0,0,0.18);
}

.td-trending-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.td-panel-head {
  margin-bottom: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.td-panel-head h3,
.td-start-label h3 {
  font-size: clamp(22px, 2vw, 28px);
}

.td-small-article {
  border: 0;
  padding: 0;
}

.td-small-article:first-of-type {
  border-top: 0;
}

.td-small-image {
  display: block;
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: #171717;
  overflow: hidden;
}

.td-small-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.22));
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.td-small-article:hover .td-small-image::after {
  opacity: 0.3;
}

.td-small-article-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.09);
}

.td-small-article-row:first-of-type,
.td-panel-head + .td-small-article-row {
  border-top: 0;
}

.td-small-article-row .td-small-image {
  width: 112px;
  aspect-ratio: 1.18 / 1;
  border-radius: 14px;
}

.td-small-article-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  background: #111;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.td-small-article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245,196,0,0.45);
  background: #151515;
}

.td-small-article-card .td-small-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.td-small-copy {
  min-width: 0;
}

.td-small-article-card .td-small-copy {
  padding: 16px;
}

.td-small-topline {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 7px;
}

.td-small-label,
.td-small-cat {
  display: inline-flex;
  margin: 0;
  color: var(--td-yellow) !important;
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
}

.td-small-cat {
  color: rgba(255,255,255,0.55) !important;
}

.td-small-title {
  font-size: 16px;
  line-height: 1.14;
  letter-spacing: -0.35px;
}

.td-small-article-card .td-small-title {
  font-size: 18px;
}

.td-small-meta {
  margin-top: 9px;
  font-size: 10px;
}

.td-start-strip {
  display: block;
  margin-top: 26px;
  padding: 26px;
}

.td-start-label {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.td-start-links,
.td-more-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.td-start-links .td-small-article,
.td-more-link-grid .td-small-article {
  padding: 0;
  border: 1px solid rgba(255,255,255,0.12);
}

.td-start-links .td-small-article:hover,
.td-more-link-grid .td-small-article:hover {
  transform: translateY(-4px);
  border-color: rgba(245,196,0,0.45);
  background: #151515;
}

.td-click-hub-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.75fr);
}

.td-popular-week {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.td-cats-counts .td-cat {
  min-height: 136px;
}

.td-cats-counts .td-cat p {
  font-size: 13px;
  line-height: 1.45;
}

.td-articles .td-card-body p {
  display: none;
}

.td-articles .td-card-body {
  padding-bottom: 22px;
}

.td-more-links {
  padding-top: 70px;
}

.td-more-link-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.td-program-mini-card {
  min-height: auto;
}

@media (max-width: 1080px) {
  .td-news-layout,
  .td-click-hub-grid {
    grid-template-columns: 1fr;
  }

  .td-start-links,
  .td-more-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .td-small-article-row {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 12px;
  }

  .td-small-article-row .td-small-image {
    width: 94px;
    border-radius: 12px;
  }

  .td-start-links,
  .td-more-link-grid,
  .td-cats-counts {
    grid-template-columns: 1fr;
  }

  .td-start-label {
    display: block;
  }

  .td-trending-panel,
  .td-popular-week,
  .td-start-strip {
    padding: 20px;
  }

  .td-small-title,
  .td-small-article-card .td-small-title {
    font-size: 17px;
  }
}


/* Homepage featured article image/top adjustment */
.td-featured-card-media {
  grid-template-columns: 1fr !important;
}

.td-featured-card-media .td-featured-image {
  width: 100%;
  min-height: 360px;
  aspect-ratio: 16 / 9;
  background-position: center;
}

.td-featured-card-media .td-featured-content {
  padding: 42px;
}

@media (max-width: 760px) {
  .td-featured-card-media .td-featured-image {
    min-height: 240px;
  }

  .td-featured-card-media .td-featured-content {
    padding: 28px;
  }
}

/* Homepage featured article title overlay only */
.td-featured-card-media {
  position: relative;
  display: block;
  grid-template-columns: none !important;
  min-height: 0;
  overflow: hidden;
}

.td-featured-card-media .td-featured-image {
  display: block;
  width: 100%;
  min-height: 560px;
  aspect-ratio: 16 / 9;
  background-position: center;
}

.td-featured-card-media .td-featured-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 90px 36px 34px;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.70) 44%, rgba(0,0,0,0) 100%);
  justify-content: flex-end;
  pointer-events: none;
}

.td-featured-card-media .td-featured-content a {
  pointer-events: auto;
}

.td-featured-card-media .td-featured-content h2 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(28px, 3vw, 46px);
  text-shadow: 0 4px 22px rgba(0,0,0,0.65);
}

.td-featured-card-media .td-featured-content .td-meta {
  margin-bottom: 0;
}

.td-featured-card-media .td-featured-content p,
.td-featured-card-media .td-featured-content .td-pill-btn {
  display: none;
}

.td-featured-card-media .td-featured-image-badge {
  display: none;
}

@media (max-width: 760px) {
  .td-featured-card-media .td-featured-image {
    min-height: 390px;
  }

  .td-featured-card-media .td-featured-content {
    padding: 78px 22px 24px;
  }

  .td-featured-card-media .td-featured-content h2 {
    font-size: clamp(24px, 8vw, 36px);
  }
}

/* Homepage program product cards */
.td-programs-header {
  align-items: end;
  margin-bottom: 24px;
}

.td-program-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.td-program-card {
  overflow: hidden;
  border: 1px solid var(--td-line);
  border-radius: 24px;
  background: var(--td-card);
  box-shadow: var(--td-shadow);
}

.td-program-card-image {
  position: relative;
  display: block;
  aspect-ratio: 1.12 / 1;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  text-decoration: none;
}

.td-program-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.38));
}

.td-program-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 180ms ease;
}

.td-program-card:hover .td-program-card-image img {
  transform: scale(1.04);
}

.td-program-price {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  min-width: 54px;
  padding: 9px 11px;
  border-radius: 999px;
  background: var(--td-yellow);
  color: #050505;
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
  text-align: center;
  letter-spacing: 0.4px;
}

.td-program-card-body {
  padding: 20px;
}

.td-program-card-meta {
  margin: 0 0 9px;
  color: var(--td-yellow);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.4px;
  font-weight: 950;
}

.td-program-card h3 {
  margin: 0 0 10px;
  color: #fff;
  text-transform: uppercase;
  font-size: clamp(19px, 1.75vw, 25px);
  line-height: 0.98;
  letter-spacing: -0.7px;
}

.td-program-card p {
  margin: 0 0 18px;
  color: var(--td-muted);
  font-size: 14px;
  line-height: 1.45;
}

.td-program-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  border-radius: 999px;
  background: var(--td-yellow);
  color: #050505 !important;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.8px;
  font-weight: 950;
}

@media (max-width: 1100px) {
  .td-program-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .td-programs-header {
    align-items: start;
  }

  .td-program-card-grid {
    grid-template-columns: 1fr;
  }
}
