:root {
  --tamtkd-black: #050505;
  --tamtkd-ink: #101010;
  --tamtkd-muted: #5f6268;
  --tamtkd-red: #ed1c24;
  --tamtkd-red-dark: #b90f16;
  --tamtkd-panel: #ffffff;
  --tamtkd-mist: #f7f7f7;
  --tamtkd-line: #e4e4e4;
  --tamtkd-shadow: 0 14px 36px rgba(0, 0, 0, 0.1);
  --tamtkd-content: min(1120px, calc(100vw - 32px));
  --tamtkd-wide: min(1280px, calc(100vw - 32px));
  --tamtkd-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --tamtkd-compact-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --tamtkd-crisp-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --tamtkd-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--tamtkd-ink);
  background: #fff;
  font-family: var(--tamtkd-body);
  font-size: 17px;
  line-height: 1.6;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

img,
video,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--tamtkd-red);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover,
a:focus {
  color: var(--tamtkd-red-dark);
}

h1,
h2,
h3,
.site-title,
.primary-navigation,
.button,
.text-link,
.stat-item strong,
.site-footer__inner {
  font-synthesis: none;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: auto;
  -webkit-font-smoothing: subpixel-antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

.margin-top-50 {
  margin-top: 50px;
}

.margin-bottom-50 {
  margin-bottom: 50px;
}


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

.skip-link:focus {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #fff;
  background: var(--tamtkd-red);
}

.site {
  min-height: 100vh;
  background: #fff;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
}

.admin-bar .site-header {
  top: 32px;
}

.site-header__inner {
  width: var(--tamtkd-wide);
  min-height: 108px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 10px 0;
}

.site-branding {
  min-width: 220px;
}

.site-branding__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.custom-logo,
.site-branding__logo {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.site-branding__text {
  display: grid;
  gap: 2px;
}

.site-branding__name {
  display: block;
  max-width: 210px;
  color: #fff;
  font-family: var(--tamtkd-compact-heading);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.site-branding__description {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.primary-navigation {
  min-width: 0;
  justify-self: end;
}

.primary-navigation__toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.primary-navigation__toggle-line,
.primary-navigation__toggle-line::before,
.primary-navigation__toggle-line::after {
  display: block;
  width: 30px;
  height: 3px;
  margin: 0 auto;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.primary-navigation__toggle-line::before {
  transform: translateY(-9px);
}

.primary-navigation__toggle-line::after {
  transform: translateY(6px);
}

.primary-navigation > ul,
.primary-navigation .menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-navigation li {
  position: relative;
}

.primary-navigation a {
  display: block;
  padding: 40px 10px 37px;
  border-bottom: 3px solid transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.primary-navigation > ul > li > a,
.primary-navigation .menu > li > a {
  white-space: nowrap;
}

.primary-navigation .sub-menu,
.primary-navigation .children {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 0;
  display: none;
  width: 220px;
  margin: 0;
  padding: 8px 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0 0 6px 6px;
  background: #000;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
  list-style: none;
}

.primary-navigation .menu-item-has-children:hover > .sub-menu,
.primary-navigation .menu-item-has-children:focus-within > .sub-menu,
.primary-navigation .page_item_has_children:hover > .children,
.primary-navigation .page_item_has_children:focus-within > .children {
  display: block;
}

.primary-navigation .sub-menu .sub-menu,
.primary-navigation .children .children {
  top: -9px;
  left: 100%;
}

.primary-navigation .sub-menu a,
.primary-navigation .children a {
  padding: 12px 16px;
  border-bottom: 0;
  white-space: normal;
}

.primary-navigation .sub-menu a:hover,
.primary-navigation .sub-menu a:focus,
.primary-navigation .children a:hover,
.primary-navigation .children a:focus {
  background: rgba(255, 255, 255, 0.08);
}

.primary-navigation a:hover,
.primary-navigation a:focus,
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a {
  border-bottom-color: var(--tamtkd-red);
  color: #fff;
}

.site-header__cta,
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header__cta {
  min-height: 56px;
}

.site-header__cta,
.button--primary {
  color: #fff;
  background: var(--tamtkd-red);
}

.site-header__cta:hover,
.site-header__cta:focus,
.button--primary:hover,
.button--primary:focus {
  color: #fff;
  background: var(--tamtkd-red-dark);
}

.button--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(0, 0, 0, 0.18);
}

.button--ghost:hover,
.button--ghost:focus {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.site-main {
  min-height: 62vh;
}

.home-hero {
  position: relative;
  min-height: 590px;
  color: #fff;
  background:
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 68%, rgba(0, 0, 0, 0.1) 86%, rgba(0, 0, 0, 0.68) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.46) 16%, rgba(0, 0, 0, 0.04) 40%, rgba(0, 0, 0, 0.04) 78%, rgba(0, 0, 0, 0.46) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.66), transparent 26%),
    var(--hero-image) 86% 10% / clamp(892px, 74vw, 1440px) auto no-repeat,
    #000;
}

.home-hero__inner {
  width: var(--tamtkd-wide);
  min-height: inherit;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 60px 0 68px;
}

.home-hero__content {
  width: min(560px, 100%);
}

.home-hero h1 {
  margin: 0;
  color: #fff;
  font-family: var(--tamtkd-heading);
  font-size: clamp(54px, 6.1vw, 80px);
  font-weight: 900;
  line-height: 0.98;
  text-transform: uppercase;
}

.home-hero h1::after {
  display: block;
  width: 82px;
  height: 4px;
  margin: 28px 0 22px;
  background: var(--tamtkd-red);
  content: "";
}

.home-hero p {
  width: min(360px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 24px;
  line-height: 1.35;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.home-section {
  background: #fff;
}

.home-section--courses,
.home-section--news {
  background:
    radial-gradient(circle at 50% 0, rgba(0, 0, 0, 0.06), transparent 300px),
    #fff;
}

.home-section--benefits {
  background: var(--tamtkd-mist);
}

.home-section__inner {
  width: var(--tamtkd-content);
  margin: 0 auto;
  padding: 42px 0 54px;
}

.section-heading {
  margin-bottom: 26px;
  text-align: center;
}

.section-heading--split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
}

.section-heading h2,
.home-stats h2 {
  margin: 0;
  color: var(--tamtkd-ink);
  font-family: var(--tamtkd-heading);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}

.course-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.course-card,
.news-card {
  overflow: hidden;
  border: 1px solid var(--tamtkd-line);
  border-radius: 6px;
  background: var(--tamtkd-panel);
  box-shadow: var(--tamtkd-shadow);
}

.course-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 6.4;
  object-fit: cover;
}

.course-card__body,
.news-card__body {
  padding: 20px;
}

.course-card h3,
.news-card h3,
.benefit-item h3 {
  margin: 0;
  color: var(--tamtkd-ink);
  font-family: var(--tamtkd-heading);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.course-card h3 {
  color: var(--tamtkd-red);
  font-family: var(--tamtkd-compact-heading);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.06;
}

.course-card p,
.benefit-item p {
  margin: 14px 0 0;
  color: #262626;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: var(--tamtkd-red);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link:hover,
.text-link:focus {
  color: var(--tamtkd-red-dark);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.benefit-item {
  min-width: 0;
  padding: 12px 28px;
  text-align: center;
}

.benefit-item + .benefit-item {
  border-left: 1px solid #d9d9d9;
}

.benefit-icon {
  display: block;
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  color: var(--tamtkd-red);
}

.benefit-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit-icon__fill {
  fill: currentColor;
  stroke: none;
}

.benefit-item h3 {
  font-family: var(--tamtkd-crisp-heading);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
  text-rendering: auto;
  -moz-osx-font-smoothing: auto;
  -webkit-font-smoothing: auto;
}

.benefit-item p {
  font-size: 15px;
  line-height: 1.45;
}

.home-stats {
  color: #fff;
  background:
    linear-gradient(rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.86)),
    var(--stats-image) center / cover no-repeat,
    #000;
}

.home-stats .home-section__inner {
  padding: 34px 0 40px;
}

.home-stats h2 {
  color: #fff;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 24px;
}

.stat-item {
  min-width: 0;
  padding: 0 28px;
  text-align: center;
}

.stat-item + .stat-item {
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.stat-item strong {
  display: block;
  color: var(--tamtkd-red);
  font-family: var(--tamtkd-heading);
  font-size: 56px;
  font-weight: 900;
  line-height: 0.9;
}

.stat-item span {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-family: var(--tamtkd-heading);
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.news-card {
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
}

.news-card__image {
  min-height: 132px;
  background: #ddd;
}

.news-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card time {
  display: block;
  color: var(--tamtkd-red);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.news-card h3 {
  margin-top: 9px;
  font-family: var(--tamtkd-body);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.18;
  text-transform: none;
}

.news-card h3 a {
  color: inherit;
  text-decoration: none;
}

.content-layout {
  width: var(--tamtkd-content);
  margin: 0 auto;
  padding: 54px 0 68px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) 340px;
  gap: 52px;
}

.content-layout--page {
  grid-template-columns: minmax(0, 1fr);
}

.content-area--narrow {
  width: min(760px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.page-header {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--tamtkd-line);
}

.page-header h1,
.entry-title {
  margin: 0;
  color: var(--tamtkd-ink);
  font-family: var(--tamtkd-heading);
  font-size: 42px;
  line-height: 1.08;
  text-transform: uppercase;
}

.archive-description {
  margin-top: 10px;
  color: var(--tamtkd-muted);
}

.entry {
  margin-bottom: 34px;
}

.entry + .entry {
  padding-top: 30px;
  border-top: 1px solid var(--tamtkd-line);
}

.entry-title a {
  color: inherit;
  text-decoration: none;
}

.entry-title a:hover,
.entry-title a:focus {
  color: var(--tamtkd-red);
}

.entry-meta {
  margin-top: 8px;
  color: var(--tamtkd-muted);
  font-size: 14px;
}

.entry-thumbnail {
  display: block;
  margin-bottom: 18px;
}

.entry-thumbnail img {
  display: block;
  width: 100%;
  border-radius: 6px;
}

.entry-content,
.entry-summary {
  margin-top: 20px;
}

.entry-content > *:first-child,
.entry-summary > *:first-child {
  margin-top: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  line-height: 1.2;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  padding: 10px;
  border: 1px solid var(--tamtkd-line);
  text-align: left;
  vertical-align: top;
}

.page-layout {
  background:
    radial-gradient(circle at 50% 120px, rgba(0, 0, 0, 0.05), transparent 340px),
    #fff;
}

.page-layout__content {
  width: min(860px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 40px 0 64px;
}

.page-layout__content:has(.myclub-embed) {
  width: 100%;
  max-width: 1600px;
  padding: 0px 16px;
}

.page-layout__content:has(.course-overview) {
  width: var(--tamtkd-wide);
}

.page-article {
  margin: 0;
}

.page-breadcrumbs span:last-child {
  color: var(--tamtkd-ink);
}

.page-article__header {
  margin-bottom: 24px;
}

.page-article .entry-title {
  max-width: 780px;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 0.98;
}

.page-article__lead {
  max-width: 620px;
  margin: 20px 0 0;
  color: #202020;
  font-size: 21px;
  line-height: 1.45;
}

.page-article__thumbnail {
  margin: 24px 0 28px;
}

.page-article__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.page-article .entry-content {
  margin-top: 0;
  color: #181818;
  font-size: 18px;
  line-height: 1.56;
  overflow-wrap: anywhere;
  word-break: normal;
}

.page-article .entry-content a {
  overflow-wrap: anywhere;
}

.page-article .entry-content .myclub-embed {
  width: 100%;
  max-width: 1600px;
}

.page-article .entry-content .myclub-embed iframe {
  display: block;
  width: 100%;
}

.page-article .entry-content > * {
  max-width: 760px;
}

.page-article .entry-content > .alignwide,
.page-article .entry-content > .alignfull,
.page-article .entry-content > figure,
.page-article .entry-content > table,
.page-article .entry-content > .wp-block-columns,
.page-article .entry-content > .wp-block-group,
.page-article .entry-content > .course-overview {
  max-width: 100%;
}

.page-article .entry-content h2,
.page-article .entry-content h3 {
  margin: 32px 0 10px;
  color: var(--tamtkd-ink);
  font-family: var(--tamtkd-compact-heading);
  font-weight: 900;
  line-height: 1.08;
}

.page-article .entry-content h2 {
  font-size: 32px;
}

.page-article .entry-content h3 {
  font-size: 25px;
}

.page-article .entry-content p {
  margin: 0 0 20px;
}

.page-article .entry-content figure {
  margin: 28px 0;
}

.page-article .entry-content img {
  max-width: 100%;
  /* height: auto; */
  border-radius: 8px;
}

.page-article .entry-content .wp-block-columns {
  gap: 42px;
  align-items: center;
  margin: 32px 0;
}

.page-article .entry-content .wp-block-buttons {
  margin-top: 18px;
}

.page-article .entry-content .wp-block-button__link {
  border-radius: 0;
  background: transparent;
  color: var(--tamtkd-red);
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.page-article .entry-content .wp-block-button__link::after {
  content: " \2192";
  margin-left: 8px;
}

/* Contact page */

.page-layout__content:has(.contact-page) {
  width: min(1180px, calc(100vw - 40px));
}

.page-article .entry-content > .contact-page {
  max-width: none;
}

.contact-page {
  color: #202020;
}

.page-article .entry-content .contact-page__lead {
  max-width: 760px;
  margin: 0 0 30px;
  color: #555;
  font-size: 20px;
  line-height: 1.5;
}

.contact-quick-grid,
.contact-billing-grid,
.contact-people-grid,
.contact-links-grid,
.contact-board-grid {
  display: grid;
  gap: 18px;
}

.contact-quick-grid > *,
.contact-billing-grid > *,
.contact-people-grid > *,
.contact-links-grid > *,
.contact-board-grid > * {
  height: 100%;
  margin-block-start: 0 !important;
}

.contact-quick-grid,
.contact-people-grid,
.contact-links-grid,
.contact-board-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-billing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-people-grid,
.contact-board-grid {
  column-gap: 32px;
  row-gap: 30px;
}

.contact-quick-item,
.contact-billing-item,
.contact-link-item {
  min-width: 0;
  padding: 24px;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  background: #fff;
}

.contact-quick-item {
  border-top: 4px solid var(--tamtkd-red);
}

.page-article .entry-content .contact-page h2 {
  margin: 0 0 10px;
  font-size: 32px;
}

.page-article .entry-content .contact-page h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.page-article .entry-content .contact-page h4 {
  margin: 0 0 5px;
  color: var(--tamtkd-ink);
  font-family: var(--tamtkd-compact-heading);
  font-size: 20px;
  font-weight: 900;
}

.page-article .entry-content .contact-page p {
  margin: 0;
}

.contact-page .contact-label {
  margin-bottom: 8px;
  color: var(--tamtkd-red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.contact-page .contact-meta {
  margin-top: 8px;
  color: #626262;
  font-size: 15px;
}

.contact-page a {
  color: #cf161d;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.contact-notice {
  margin-top: 20px;
  padding: 18px 20px;
  border-left: 4px solid var(--tamtkd-red);
  background: #fff4f4;
}

.contact-section {
  margin-top: 54px;
  padding-top: 28px;
  border-top: 1px solid #d7d7d7;
}

.contact-section__heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.page-article .entry-content .contact-section__heading p {
  color: #606060;
}

.contact-billing-item p + p,
.contact-link-item p + p {
  margin-top: 8px;
}

.contact-invoice-notes {
  margin: 22px 0 0;
  padding: 20px 24px 20px 46px;
  background: #f5f5f5;
}

.contact-invoice-notes li + li {
  margin-top: 7px;
}

.contact-person,
.contact-board-member {
  min-width: 0;
  padding: 18px 0;
}

.contact-person .contact-role,
.contact-board-member .contact-role {
  margin-bottom: 5px;
  color: #666;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-person .contact-email {
  margin-top: 7px;
  font-size: 15px;
}

.contact-link-item {
  background: #f7f7f7;
}

.contact-link-item address {
  margin-top: 10px;
  font-style: normal;
}

.contact-board-contact {
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
}

@media (max-width: 900px) {
  .contact-quick-grid,
  .contact-people-grid,
  .contact-links-grid,
  .contact-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-layout__content:has(.contact-page) {
    width: calc(100vw - 28px);
  }

  .contact-quick-grid,
  .contact-billing-grid,
  .contact-people-grid,
  .contact-links-grid,
  .contact-board-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-section {
    margin-top: 40px;
  }

  .contact-quick-item,
  .contact-billing-item,
  .contact-link-item {
    padding: 20px;
  }
}

.course-overview {
  margin-top: 0;
}

.page-article .entry-content .course-overview > h2 {
  margin-top: 0;
  font-size: clamp(30px, 3vw, 42px);
}

.page-article .entry-content .course-overview__lead {
  max-width: 720px;
  margin-bottom: 28px;
  color: var(--tamtkd-muted);
  font-size: 18px;
}

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

.course-overview-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--tamtkd-line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 28px rgb(0 0 0 / 8%);
}

.page-article .entry-content .course-overview-card > a {
  display: flex;
  height: 100%;
  color: inherit;
  flex-direction: column;
  overflow-wrap: normal;
  text-decoration: none;
}

.page-article .entry-content .course-overview-card > a:hover,
.page-article .entry-content .course-overview-card > a:focus-visible {
  color: inherit;
}

.course-overview-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  object-fit: cover;
}

.course-overview-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.page-article .entry-content .course-overview-card h3 {
  margin: 0;
  color: var(--tamtkd-ink);
  font-size: 25px;
  line-height: 1.08;
}

.page-article .entry-content .course-overview-card p {
  margin: 12px 0 20px;
  color: #343434;
  font-size: 16px;
  line-height: 1.45;
}

.course-overview-card__link {
  margin-top: auto;
  color: var(--tamtkd-red);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.course-overview-card > a:hover .course-overview-card__link,
.course-overview-card > a:focus-visible .course-overview-card__link {
  color: var(--tamtkd-red-dark);
}

.page-article__cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-top: 40px;
  padding: 28px 32px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.74) 52%, rgba(0, 0, 0, 0.88) 100%),
    url("../img/frontpage/hero.jpg") center 43% / cover no-repeat,
    #000;
  color: #fff;
}

.page-article__cta h2 {
  margin: 0;
  color: #fff;
  font-family: var(--tamtkd-compact-heading);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.page-article__cta p {
  max-width: 420px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.35;
}

.page-article__cta .button {
  min-width: 230px;
}

.post-layout {
  background:
    radial-gradient(circle at 50% 120px, rgba(0, 0, 0, 0.06), transparent 340px),
    #fff;
}

.post-layout__content {
  width: min(860px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 40px 0 64px;
}

.post-article {
  margin: 0;
}

.post-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  color: var(--tamtkd-muted);
  font-size: 15px;
  line-height: 1.35;
}

.post-breadcrumbs a {
  color: var(--tamtkd-red);
  text-decoration: none;
}

.post-breadcrumbs a:last-child {
  color: var(--tamtkd-ink);
}

.post-article__header {
  margin-bottom: 24px;
}

.post-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--tamtkd-ink);
  font-size: 15px;
  line-height: 1;
}

.post-article__meta a {
  color: var(--tamtkd-red);
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.post-article .entry-title {
  max-width: 780px;
  font-size: clamp(36px, 4.2vw, 54px);
  line-height: 0.98;
}

.post-article__lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: #202020;
  font-size: 21px;
  line-height: 1.45;
}

.post-article__thumbnail {
  margin: 24px -16px 26px;
}

.post-article__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.post-article__image--contain {
  width: min(260px, 100%);
  height: auto;
  max-height: 260px;
  margin-inline: auto;
  aspect-ratio: auto;
  /* object-fit: contain; */
}

.post-article .entry-content {
  margin-top: 0;
  color: #181818;
  font-size: 19px;
  line-height: 1.58;
  overflow-wrap: anywhere;
  word-break: normal;
}

.post-article .entry-content a {
  overflow-wrap: anywhere;
}

.post-article .entry-content > * {
  max-width: 760px;
}

.post-article .entry-content > .alignwide,
.post-article .entry-content > .alignfull,
.post-article .entry-content > figure,
.post-article .entry-content > table {
  max-width: 100%;
}

.post-article .entry-content h2,
.post-article .entry-content h3 {
  margin: 32px 0 8px;
  color: var(--tamtkd-ink);
  font-family: var(--tamtkd-compact-heading);
  font-weight: 900;
  line-height: 1.08;
}

.post-article .entry-content h2 {
  font-size: 30px;
}

.post-article .entry-content h3 {
  font-size: 24px;
}

.post-article .entry-content p {
  margin: 0 0 20px;
}

.post-article .entry-content figure {
  margin: 28px 0;
}

.post-article .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.post-article .entry-content .wp-block-columns,
.post-article .entry-content .wp-block-group {
  max-width: 100%;
}

.related-posts {
  margin-top: 44px;
}

.related-posts h2 {
  margin: 0 0 14px;
  color: var(--tamtkd-ink);
  font-family: var(--tamtkd-compact-heading);
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.related-posts__list {
  display: grid;
  gap: 12px;
}

.related-post-card {
  display: grid;
  min-height: 86px;
  grid-template-columns: 180px minmax(0, 1fr) 54px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--tamtkd-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--tamtkd-shadow);
}

.related-post-card__image {
  background: #ddd;
}

.related-post-card__image:empty {
  display: none;
}

.related-post-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-post-card__body {
  min-width: 0;
  padding: 16px 18px;
}

.related-post-card time {
  display: block;
  color: var(--tamtkd-red);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.related-post-card h3 {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.related-post-card h3 a {
  color: var(--tamtkd-ink);
  text-decoration: none;
}

.related-post-card__arrow {
  display: grid;
  place-items: center;
  color: var(--tamtkd-red);
  font-size: 25px;
  font-weight: 900;
  text-decoration: none;
}

.site-sidebar {
  min-width: 0;
  align-self: start;
}

.widget {
  margin-bottom: 18px;
}

.widget_recent_entries,
.widget_archive {
  padding: 22px;
  border: 1px solid var(--tamtkd-line);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.025), transparent 70px),
    #fff;
}

.widget-title,
.widgettitle {
  margin: 0 0 14px;
  color: var(--tamtkd-ink);
  font-family: var(--tamtkd-heading);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget li {
  margin: 0;
  color: var(--tamtkd-muted);
  font-size: 14px;
  line-height: 1.35;
}

.widget li + li {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.widget li a {
  display: inline-block;
  padding: 8px 0;
  color: var(--tamtkd-ink);
  font-weight: 650;
  text-decoration: none;
}

.widget li a:hover,
.widget li a:focus {
  color: var(--tamtkd-red);
}

.widget_recent_entries li a,
.widget_recent_entries li .post-date {
  display: block;
}

.widget_recent_entries li .post-date {
  margin-top: -4px;
  padding-bottom: 8px;
  color: var(--tamtkd-muted);
  font-size: 13px;
}

.widget_archive ul {
  max-height: 560px;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
}

.widget_archive li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.widget_archive li a {
  min-width: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.nav-links a,
.nav-links span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--tamtkd-line);
  border-radius: 4px;
  text-decoration: none;
}

.nav-links .current {
  color: #fff;
  border-color: var(--tamtkd-red);
  background: var(--tamtkd-red);
}

.site-footer {
  background: linear-gradient(180deg, #d71920 0%, #b80f16 100%);
}

.site-footer__inner {
  width: var(--tamtkd-wide);
  min-height: 78px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 26px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.site-footer__item {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.site-footer__item:hover,
.site-footer__item:focus {
  color: #fff;
}

.site-footer__icon {
  position: relative;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 2px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.site-footer__icon::after {
  position: absolute;
  inset: 7px;
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
}

.site-footer__icon--mail {
  border-radius: 3px;
  transform: none;
}

.site-footer__icon--mail::after {
  inset: 4px;
  border: 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-radius: 0;
  transform: rotate(45deg) translate(-2px, -2px);
}

.site-footer p {
  margin: 0;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: #fff;
}

.site-footer__copy {
  color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 1200px) {
  .site-header__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    min-height: 88px;
  }

  .site-branding {
    min-width: 0;
  }

  .site-branding__link {
    gap: 10px;
  }

  .custom-logo,
  .site-branding__logo {
    width: 72px;
    height: 72px;
  }

  .site-branding__name {
    max-width: 120px;
    font-size: 19px;
  }

  .primary-navigation {
    min-width: 0;
    justify-self: end;
  }

  .primary-navigation > ul,
  .primary-navigation .menu {
    gap: 4px;
    justify-content: flex-end;
  }

  .primary-navigation a {
    padding: 34px 8px 31px;
  }

  .site-header__cta {
    justify-self: end;
    min-height: 54px;
    padding: 0 22px;
  }
}

@media (max-width: 1040px) {
  .site-header__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .site-branding__text {
    display: none;
  }

  .home-hero {
    min-height: 520px;
  }

  .course-grid,
  .news-grid {
    gap: 18px;
  }
}

@media (max-width: 920px) {
  :root {
    --tamtkd-content: min(100vw - 28px, 720px);
    --tamtkd-wide: min(100vw - 28px, 720px);
  }

  .site-header__inner {
    min-height: 86px;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 10px;
    padding: 12px 0;
  }

  .admin-bar .site-header {
    top: 46px;
  }

  .site-branding {
    min-width: 0;
  }

  .custom-logo,
  .site-branding__logo {
    width: 58px;
    height: 58px;
  }

  .site-branding__description {
    display: none;
  }

  .site-header__cta {
    display: inline-flex;
    grid-column: 3;
    grid-row: 1;
    min-height: 44px;
    padding: 0 14px;
    font-size: 12px;
  }

  .primary-navigation {
    order: 0;
    grid-column: 4;
    grid-row: 1;
    width: auto;
  }

  .primary-navigation__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .primary-navigation > ul,
  .primary-navigation .menu {
    position: fixed;
    top: var(--tamtkd-mobile-menu-top, 86px);
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    width: auto;
    height: auto;
    max-height: none;
    min-height: 0;
    padding: 0 0 max(16px, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    background: #000;
    -webkit-overflow-scrolling: touch;
  }

  .admin-bar .primary-navigation {
    --tamtkd-mobile-menu-top: 132px;
  }

  .primary-navigation.is-open > ul,
  .primary-navigation.is-open .menu {
    display: flex;
  }

  .primary-navigation a {
    padding: 17px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    white-space: normal;
  }

  .primary-navigation .sub-menu,
  .primary-navigation .children {
    position: static;
    display: block;
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .primary-navigation .sub-menu a,
  .primary-navigation .children a {
    padding-left: 36px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
  }

  .home-hero {
    min-height: 520px;
    background:
      radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, 0.1) 84%, rgba(0, 0, 0, 0.68) 100%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.42) 30%, rgba(0, 0, 0, 0.06) 72%, rgba(0, 0, 0, 0.42)),
      linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent 30%),
      var(--hero-image) 48% 10% / auto 100% no-repeat,
      #000;
  }

  .home-hero__inner {
    align-items: flex-end;
    padding: 46px 0 42px;
  }

  .home-hero h1 {
    font-size: 50px;
  }

  .home-hero p {
    font-size: 21px;
  }

  .home-hero__actions {
    align-items: stretch;
    flex-direction: column;
    width: min(300px, 100%);
    margin-right: auto;
    margin-left: auto;
  }

  .home-section__inner {
    padding: 30px 0 38px;
  }

  .section-heading {
    margin-bottom: 18px;
    text-align: left;
  }

  .section-heading h2,
  .home-stats h2 {
    font-size: 27px;
  }

  .course-grid,
  .news-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .course-overview__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .page-layout__content:has(.course-overview) {
    width: calc(100vw - 28px);
    max-width: 720px;
  }

  .page-article .entry-content .course-overview-card > a {
    display: grid;
    grid-template-columns: 36% minmax(0, 1fr);
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .page-article .entry-content .course-overview-card > a:not(:has(img)) {
    grid-template-columns: minmax(0, 1fr);
  }

  .course-overview-card img {
    height: 100%;
    aspect-ratio: auto;
  }

  .course-overview-card__body,
  .page-article .entry-content .course-overview-card h3,
  .page-article .entry-content .course-overview-card p {
    min-width: 0;
  }

  .course-card {
    display: grid;
    grid-template-columns: 36% minmax(0, 1fr);
  }

  .course-card img {
    height: 100%;
    aspect-ratio: auto;
  }

  .course-card__body,
  .news-card__body {
    padding: 16px;
  }

  .course-card h3 {
    font-size: 21px;
  }

  .course-card p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.35;
  }

  .benefit-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 24px;
  }

  .benefit-item {
    padding: 8px 16px;
  }

  .benefit-item:nth-child(odd) {
    border-left: 0;
  }

  .stat-item:nth-child(odd) {
    border-left: 0;
  }

  .stat-item strong {
    font-size: 44px;
  }

  .news-card {
    grid-template-columns: 36% minmax(0, 1fr);
  }

  .news-card__image {
    min-height: 112px;
  }

  .section-heading--split {
    align-items: flex-start;
    flex-direction: column;
  }

  .content-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 34px;
  }

  .page-header h1,
  .entry-title {
    font-size: 32px;
  }

  .page-layout__content {
    width: var(--tamtkd-content);
    padding: 30px 0 46px;
  }

  .page-article .entry-title {
    font-size: 42px;
  }

  .page-article__lead,
  .page-article .entry-content {
    font-size: 18px;
  }

  .page-article .entry-content .wp-block-columns {
    gap: 18px;
  }

  .page-article__cta {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    padding: 24px;
  }

  .page-article__cta .button {
    width: min(300px, 100%);
  }

  .post-layout__content {
    width: var(--tamtkd-content);
    padding: 30px 0 46px;
  }

  .post-breadcrumbs {
    margin-bottom: 24px;
    font-size: 14px;
  }

  .post-article .entry-title {
    font-size: 42px;
  }

  .post-article__lead,
  .post-article .entry-content {
    font-size: 18px;
  }

  .related-post-card {
    grid-template-columns: 36% minmax(0, 1fr) 44px;
  }

  .related-post-card__body {
    padding: 14px 12px;
  }

  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    padding: 22px 0;
  }
}

@media (max-width: 520px) {

  .page-article .entry-content .course-overview-card > a {
    display: flex;
  }

  .course-overview-card img {
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .home-hero h1 {
    font-size: 42px;
  }

  .button {
    width: 100%;
  }

  .benefit-grid,
  .stats-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .benefit-item,
  .benefit-item + .benefit-item,
  .stat-item,
  .stat-item + .stat-item {
    border-left: 0;
  }

  .benefit-item + .benefit-item,
  .stat-item + .stat-item {
    padding-top: 22px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
  }

  .stat-item + .stat-item {
    border-top-color: rgba(255, 255, 255, 0.24);
  }

  .post-article .entry-title {
    font-size: 36px;
  }

  .page-article .entry-title {
    font-size: 40px;
  }

  .page-article__lead,
  .page-article .entry-content {
    font-size: 17px;
  }

  .page-article__cta {
    margin-top: 34px;
    padding: 22px;
  }

  .page-article__cta h2 {
    font-size: 26px;
  }

  .post-article__lead,
  .post-article .entry-content {
    font-size: 17px;
  }

  .related-post-card {
    grid-template-columns: 112px minmax(0, 1fr) 36px;
  }

  .related-post-card h3 {
    font-size: 16px;
  }

  .related-post-card__arrow {
    font-size: 20px;
  }
}

.course-page {
	--course-red: #ed1c24;
	--course-black: #090909;
	--course-gray: #f5f5f3;
	--course-border: #dedede;

	color: #161616;
	margin-top: 0 !important;
	padding-bottom: 64px;
}

.page-layout__content:has(.course-page) {
	width: 100%;
	padding-top: 26px;
	padding-bottom: 0;
}

.page-article:has(.course-page) .post-breadcrumbs {
	width: var(--tamtkd-wide);
	margin: 0 auto 18px;
}

.page-article:has(.course-page) .page-article__header,
.page-article:has(.course-page) .page-article__cta,
.page-article:has(.course-page) .entry-content > .course-page ~ * {
	display: none;
}

.page-article:has(.course-page) .entry-content {
	overflow-wrap: normal;
}

.course-page.alignfull {
	left: 50%;
	margin-left: -50vw !important;
	max-width: 100vw !important;
	position: relative;
	width: 100vw;
}

.course-shell {
	margin-left: auto !important;
	margin-right: auto !important;
	max-width: 1280px !important;
	width: min(1280px, calc(100vw - 32px)) !important;
}

.course-page.is-layout-constrained > .course-shell.alignwide {
	max-width: min(1280px, calc(100vw - 32px)) !important;
	width: min(1280px, calc(100vw - 32px)) !important;
}

.course-page.is-layout-constrained > .course-shell {
	margin-block-start: 0 !important;
}

.course-shell.is-layout-constrained > .course-hero__columns,
.course-shell.is-layout-constrained > .wp-block-columns,
.course-facts.is-layout-constrained > .wp-block-columns,
.course-cta.is-layout-constrained > .wp-block-columns {
	max-width: none !important;
	width: 100% !important;
}

/* Hero */

.course-hero {
	margin-top: 0;
}

.course-hero__columns {
	background: var(--course-gray);
	border-radius: 0;
	gap: 0;
	margin: 0 !important;
	overflow: hidden;
}

.course-hero__copy {
	padding: clamp(36px, 4.6vw, 72px) clamp(34px, 3.7vw, 58px);
}

.course-eyebrow {
	color: var(--course-red);
	font-size: 0.875rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	margin-bottom: 12px;
	text-transform: uppercase;
}

.course-title {
	max-width: 680px;
	font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
	font-size: clamp(4.25rem, 4.9vw, 5rem);
	font-weight: 900;
	letter-spacing: 0;
	line-height: 0.92;
	margin: 0 0 14px;
}

.course-lead {
	max-width: 560px;
	font-size: 1.05rem;
	line-height: 1.45;
	margin-bottom: 18px;
}

.course-hero__image {
	height: 100%;
	margin: 0;
}

.course-hero__image img {
	display: block;
	height: 360px;
	min-height: 0;
	object-fit: cover;
	border-radius: 0;
	width: 100%;
}

/* Painikkeet */

.page-article .entry-content .course-button .wp-block-button__link {
	align-items: center;
	background: var(--course-red);
	border-radius: 4px;
	color: #fff;
	display: inline-flex;
	font-size: 0.875rem;
	font-weight: 800;
	justify-content: center;
	line-height: 1.2;
	padding: 16px 24px;
	text-decoration: none;
	text-transform: uppercase;
	transition:
		background-color 150ms ease,
		transform 150ms ease;
}

.page-article .entry-content .course-button .wp-block-button__link:hover,
.page-article .entry-content .course-button .wp-block-button__link:focus {
	background: #c9141b;
	color: #fff;
	transform: translateY(-1px);
}

.page-article .entry-content .course-button .wp-block-button__link:focus-visible {
	outline: 3px solid rgba(237, 28, 36, 0.3);
	outline-offset: 3px;
}

.page-article .entry-content .course-button .wp-block-button__link:active {
	background: #ad1117;
	color: #fff;
	transform: translateY(0);
}

.page-article .entry-content .course-button .wp-block-button__link::after {
	content: none;
}

/* Yksi yhtenäinen faktarivi */

.course-facts {
	background: #fff;
	border: 1px solid var(--course-border);
	border-radius: 4px;
	box-shadow: 0 6px 24px rgb(0 0 0 / 5%);
	margin-top: 0 !important;
	padding: 14px 8px;
	transform: translateY(-1px);
}

.course-facts .wp-block-columns {
	gap: 0;
	margin: 0 !important;
}

.course-facts .wp-block-column {
	min-width: 0;
	padding: 4px 12px;
	text-align: center;
}

.course-facts .wp-block-column + .wp-block-column {
	border-left: 1px solid var(--course-border);
}

.page-article .entry-content .course-facts h3 {
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	line-height: 1.15;
	margin: 0 0 4px;
	text-transform: uppercase;
}

.page-article .entry-content .course-facts p {
	font-size: 0.875rem;
	line-height: 1.3;
	margin: 0;
}

/* Varsinainen tekstisisältö */

.course-reading {
	margin: 14px auto 20px !important;
	max-width: 900px !important;
	width: min(900px, calc(100vw - 32px)) !important;
}

.course-section {
	border-bottom: 0;
	margin-bottom: 18px;
	padding-bottom: 0;
}

.course-section:last-child {
	border-bottom: 0;
}

.course-section h2 {
	font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
	font-size: clamp(1.9rem, 2.2vw, 2.3rem);
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1;
	margin: 0 0 8px;
}

.course-section h2::after {
	background: var(--course-red);
	content: "";
	display: block;
	height: 3px;
	margin-top: 7px;
	width: 38px;
}

.course-section p {
	font-size: 1rem;
	line-height: 1.28;
	margin-bottom: 10px;
}

/* Alareunan CTA */

.course-cta {
	background: var(--course-black);
	border-radius: 6px;
	color: #fff;
	overflow: hidden;
	padding: 8px 94px;
	position: relative;
}

.course-page.is-layout-constrained > .course-cta.course-shell {
	margin-block-start: 50px !important;
}

.course-cta::after {
	border: 1px solid rgb(237 28 36 / 45%);
	border-radius: 50%;
	content: "";
	height: 240px;
	position: absolute;
	right: -70px;
	top: -110px;
	width: 420px;
}

.course-cta .wp-block-columns {
	margin: 0;
	position: relative;
	z-index: 1;
}

.course-cta h2 {
	color: #fff;
	font-size: 1.8rem;
	line-height: 1;
	margin: 0 0 4px;
}

.course-cta p {
	color: #fff;
	margin: 0;
}

/* Mobiili */

@media (max-width: 781px) {
	.page-layout__content:has(.course-page) {
		padding-top: 18px;
	}

	.page-article:has(.course-page) .post-breadcrumbs {
		width: calc(100% - 28px);
		margin-bottom: 16px;
	}

	.course-page {
		padding-bottom: 32px;
	}

	.course-shell,
	.course-reading {
		width: calc(100% - 28px) !important;
	}

	.course-hero {
		margin-top: 18px;
	}

	.course-hero__copy {
		padding: 34px 24px;
	}

	.course-title {
		font-size: clamp(3.2rem, 15vw, 4.25rem);
	}

	.course-hero__image img {
		aspect-ratio: 16 / 10;
		min-height: 0;
	}

	.course-facts {
		padding: 4px 20px;
	}

	.course-facts .wp-block-column {
		padding: 14px 0;
	}

	.course-facts .wp-block-column + .wp-block-column {
		border-left: 0;
		border-top: 1px solid var(--course-border);
	}

	.course-reading {
		margin-bottom: 44px !important;
		margin-top: 48px !important;
	}

	.course-cta {
		padding: 28px 24px;
	}

	.course-cta .wp-block-buttons {
		justify-content: flex-start !important;
	}
}
