/*
Theme Name: Training Helps
Theme URI: https://elearning-traininghelps.cloud/
Description: Training Helps child theme for Twenty Twenty-Five. Brand colours, header with top bar, page banners, course cards and WooCommerce course pages modelled on thlearning.edu.au.
Author: Training Helps
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: traininghelps
*/

:root {
	--th-navy: #171F32;
	--th-sky: #00BAF4;
	--th-blue: #0097E2;
	--th-purple: #9900CC;
	--th-tint: #F1F8FC;
	--th-border: #E3E9F0;
	--th-slate: #5B6475;
	--th-radius: 8px;
	--th-shadow: 0 10px 30px rgba(23, 31, 50, 0.08);
	--th-shadow-hover: 0 18px 40px rgba(23, 31, 50, 0.14);
}

body { -webkit-font-smoothing: antialiased; }

/* Keep block-theme root padding from adding a gap above the header */
.wp-site-blocks { padding-top: 0; padding-bottom: 0; }
.wp-site-blocks > footer { margin-block-start: 0; }
.wp-site-blocks > main { margin-block-start: 0; }

/* Page content: full-width sections butt together; plain pages get breathing room */
.th-page-content { padding-block: var(--wp--preset--spacing--60); }
.th-page-content:has(> .alignfull:first-child) { padding-top: 0; }
.th-page-content:has(> .alignfull:last-child) { padding-bottom: 0; }
.th-page-content > .alignfull { margin-block-start: 0 !important; margin-block-end: 0 !important; }
main > .wp-block-group.alignfull + .wp-block-group.alignfull,
main > .alignfull + .th-page-content { margin-block-start: 0; }
main.wp-block-group > * { margin-block-start: 0; }

/* ------------------------------------------------------------------ *
 * Icons (CSS masks so content stays plain text)
 * ------------------------------------------------------------------ */
.th-ico { display: inline-flex; align-items: center; gap: 0.45em; }
.th-ico::before {
	content: "";
	width: 1em; height: 1em; flex: none;
	background: currentColor;
	-webkit-mask: var(--th-icon) center / contain no-repeat;
	mask: var(--th-icon) center / contain no-repeat;
}
.th-ico-phone { --th-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E"); }
.th-ico-mail { --th-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4-8 5-8-5V6l8 5 8-5z'/%3E%3C/svg%3E"); }
.th-ico-user { --th-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-3.3 0-10 1.7-10 5v3h20v-3c0-3.3-6.7-5-10-5z'/%3E%3C/svg%3E"); }
.th-ico-clock { --th-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 10.4 3.5 2.1-.8 1.3L11 13V7h2z'/%3E%3C/svg%3E"); }
.th-ico-check { --th-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E"); }
.th-ico-doc { --th-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8zm-1 7V3.5L18.5 9zM8 13h8v2H8zm0 4h8v2H8z'/%3E%3C/svg%3E"); }

/* ------------------------------------------------------------------ *
 * Header
 * ------------------------------------------------------------------ */
.wp-site-blocks > header,
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}
.admin-bar .wp-site-blocks > header,
.admin-bar header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .wp-site-blocks > header,
	.admin-bar header.wp-block-template-part { top: 0; position: relative; }
}

.th-topbar { font-size: 0.875rem; color: #C5CEDC; }
.th-topbar p { margin: 0; }
.th-topbar a { color: #FFFFFF; text-decoration: none; }
.th-topbar a:hover { color: var(--th-sky); text-decoration: none; }
.th-topbar__contact { display: flex; flex-wrap: wrap; gap: 0.35rem 1.6rem; }
.th-topbar__contact .th-ico::before { color: var(--th-sky); }
@media (max-width: 781px) {
	.th-topbar__welcome { display: none; }
	.th-topbar .wp-block-group.alignwide { justify-content: center !important; }
	.th-topbar__contact { justify-content: center; gap: 0.25rem 1rem; }
}

.th-header { box-shadow: 0 2px 18px rgba(23, 31, 50, 0.08); }
.th-header .wp-block-site-logo img { max-height: 54px; width: auto; }
.th-header .wp-block-navigation { color: var(--th-navy); }
.th-header .wp-block-navigation .wp-block-navigation-item__content { padding: 0.5rem 0; }
.th-header .wp-block-navigation a:hover,
.th-header .wp-block-navigation .current-menu-item > a,
.th-header .wp-block-navigation .current-menu-ancestor > a { color: var(--th-sky); text-decoration: none; }
.th-header .wp-block-navigation__submenu-container {
	border: 0 !important;
	border-top: 3px solid var(--th-sky) !important;
	box-shadow: var(--th-shadow);
	min-width: 280px !important;
	padding: 0.5rem 0 !important;
	font-weight: 400;
}
.th-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.55rem 1.25rem !important;
	color: var(--th-navy);
}
.th-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { color: var(--th-purple); background: var(--th-tint); }
.th-header .wp-block-woocommerce-mini-cart { color: var(--th-navy); }
.th-header__cta .wp-block-button__link { padding: 0.6rem 1.3rem; font-size: 0.95rem; white-space: nowrap; }
@media (max-width: 599px) {
	.th-header__cta { display: none; }
}
/* Mobile menu overlay */
.th-header .wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem; }
.th-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { box-shadow: none; border-top: 0 !important; min-width: 0 !important; }

/* ------------------------------------------------------------------ *
 * Page banner (inner pages)
 * ------------------------------------------------------------------ */
.th-banner {
	position: relative;
	overflow: hidden;
	background-color: var(--th-navy);
	background-image:
		radial-gradient(circle at 88% 20%, rgba(0, 186, 244, 0.28) 0, transparent 38%),
		radial-gradient(circle at 12% 110%, rgba(153, 0, 204, 0.35) 0, transparent 42%);
}
.th-banner h1, .th-banner .wp-block-post-title, .th-banner .wp-block-query-title { color: #FFFFFF; margin: 0; }
.th-banner .woocommerce-breadcrumb,
.th-banner .th-crumbs { color: #C5CEDC; font-size: 0.9rem; margin: 0 0 0.4rem; }
.th-banner .woocommerce-breadcrumb a,
.th-banner .th-crumbs a { color: var(--th-sky); }
.th-banner__eyebrow { color: var(--th-sky); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 700; margin: 0 0 0.4rem; }

/* ------------------------------------------------------------------ *
 * Home
 * ------------------------------------------------------------------ */
.th-hero .wp-block-cover__inner-container { max-width: 1200px; }
.th-hero__eyebrow { color: var(--th-sky); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; font-size: 0.9rem; }
.th-hero h1 { color: #FFFFFF; max-width: 16ch; }
.th-hero__lead { max-width: 56ch; color: #E4EAF3; }
.th-hero .is-style-outline .wp-block-button__link { color: #FFFFFF; border-color: #FFFFFF; background: transparent; }
.th-hero .is-style-outline .wp-block-button__link:hover { background: #FFFFFF; color: var(--th-navy); }

.th-eyebrow { color: var(--th-purple); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; font-size: 0.85rem; margin-bottom: 0.25rem; }
.th-section-title { position: relative; padding-bottom: 0.9rem; }
.th-section-title::after {
	content: ""; position: absolute; bottom: 0; width: 64px; height: 3px;
	background: linear-gradient(90deg, var(--th-sky), var(--th-purple));
	left: 0;
}
.th-section-title.has-text-align-center::after { left: 50%; transform: translateX(-50%); }

/* Highlight strip overlapping the hero */
.th-highlights { position: relative; z-index: 2; margin-top: -70px !important; }
.th-highlight {
	background: #FFFFFF;
	border-radius: var(--th-radius);
	box-shadow: var(--th-shadow);
	border-bottom: 4px solid var(--th-sky);
	height: 100%;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.th-highlight:hover { transform: translateY(-4px); box-shadow: var(--th-shadow-hover); }
.th-highlight h3 { text-transform: uppercase; font-size: 1.1rem; letter-spacing: 0.02em; }
.th-highlight--book { background: var(--th-purple); border-bottom-color: var(--th-sky); color: #FFFFFF; }
.th-highlight--book h3 { color: #FFFFFF; }
.th-highlight--book .wp-block-button__link { background: #FFFFFF; color: var(--th-purple); border-color: #FFFFFF; }
.th-highlight--book .wp-block-button__link:hover { background: var(--th-navy); color: #FFFFFF; border-color: var(--th-navy); }
.th-readmore a { font-family: Rubik, sans-serif; font-weight: 500; color: var(--th-purple); }
.th-readmore a::after { content: " \2192"; }

/* Features */
.th-feature { text-align: left; }
.th-feature__icon {
	width: 58px; height: 58px; border-radius: 50%;
	display: grid; place-items: center;
	background: linear-gradient(135deg, var(--th-sky), var(--th-purple));
	margin-bottom: 1rem;
}
.th-feature__icon::before {
	content: ""; width: 26px; height: 26px; background: #FFFFFF;
	-webkit-mask: var(--th-icon) center / contain no-repeat; mask: var(--th-icon) center / contain no-repeat;
}
.th-feature h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.th-feature p { margin-top: 0; color: var(--th-slate); }
.th-icon-award { --th-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1a7 7 0 0 0-4 12.7V23l4-2 4 2v-9.3A7 7 0 0 0 12 1zm0 11a4 4 0 1 1 0-8 4 4 0 0 1 0 8z'/%3E%3C/svg%3E"); }
.th-icon-laptop { --th-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16a1 1 0 0 1 1 1v10H3V6a1 1 0 0 1 1-1zm1 2v7h14V7zM1 18h22v1a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2z'/%3E%3C/svg%3E"); }
.th-icon-people { --th-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 11a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7zm-8 0a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7zm0 2c-2.7 0-8 1.3-8 4v3h16v-3c0-2.7-5.3-4-8-4zm8 0c-.3 0-.7 0-1.1.1A4.7 4.7 0 0 1 17 17v3h7v-3c0-2.7-5.3-4-8-4z'/%3E%3C/svg%3E"); }
.th-icon-support { --th-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1a9 9 0 0 0-9 9v7a3 3 0 0 0 3 3h3v-8H5v-2a7 7 0 0 1 14 0v2h-4v8h4v1h-6v2h6a2 2 0 0 0 2-2V10a9 9 0 0 0-9-9z'/%3E%3C/svg%3E"); }

/* About block with image */
.th-about-image img { border-radius: var(--th-radius); box-shadow: var(--th-shadow); }
.th-stat { border-left: 3px solid var(--th-sky); padding-left: 1rem; }
.th-stat strong { display: block; font-family: Rubik, sans-serif; font-size: 1.6rem; color: var(--th-navy); line-height: 1.2; }

/* Steps */
.th-steps { counter-reset: th-step; }
.th-step {
	position: relative;
	background: #FFFFFF;
	border-radius: var(--th-radius);
	padding: 2.2rem 1.5rem 1.5rem !important;
	box-shadow: var(--th-shadow);
	height: 100%;
}
.th-step::before {
	counter-increment: th-step;
	content: counter(th-step, decimal-leading-zero);
	position: absolute; top: -18px; left: 1.5rem;
	width: 44px; height: 44px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--th-purple); color: #FFFFFF;
	font-family: Rubik, sans-serif; font-weight: 600; font-size: 0.95rem;
	box-shadow: 0 6px 14px rgba(153, 0, 204, 0.3);
}
.th-step h3 { font-size: 1.1rem; margin: 0 0 0.4rem; }
.th-step p { margin: 0; color: var(--th-slate); }

/* Call-to-action band */
.th-cta { background: linear-gradient(100deg, var(--th-sky) 0%, var(--th-blue) 100%); }
.th-cta h2, .th-cta p { color: var(--th-navy); }
.th-cta .wp-block-button__link { background: var(--th-navy); border-color: var(--th-navy); }
.th-cta .wp-block-button__link:hover { background: var(--th-purple); border-color: var(--th-purple); }

/* FAQ */
.wp-block-details { background: #FFFFFF; margin-bottom: 0.75rem; }
.wp-block-details summary { font-family: Rubik, sans-serif; font-weight: 500; color: var(--th-navy); cursor: pointer; }
.wp-block-details[open] { border-color: var(--th-sky); }
.wp-block-details[open] summary { color: var(--th-purple); margin-bottom: 0.5rem; }

/* ------------------------------------------------------------------ *
 * Course cards (shortcode [th_course_cards])
 * ------------------------------------------------------------------ */
.th-course-grid {
	display: grid;
	gap: 1.75rem;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	margin: 2rem 0 0;
}
.th-course-card {
	display: flex; flex-direction: column;
	background: #FFFFFF;
	border: 1px solid var(--th-border);
	border-radius: var(--th-radius);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.th-course-card:hover { transform: translateY(-5px); box-shadow: var(--th-shadow-hover); }
.th-course-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--th-navy); }
.th-course-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.th-course-card:hover .th-course-card__media img { transform: scale(1.04); }
.th-course-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.35rem 1.35rem; }
.th-course-card__code {
	align-self: flex-start;
	background: rgba(153, 0, 204, 0.08); color: var(--th-purple);
	font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em;
	padding: 0.2rem 0.6rem; border-radius: 3px;
}
.th-course-card__title { font-size: 1.15rem; margin: 0.7rem 0 0.5rem; }
.th-course-card__title a { color: var(--th-navy); }
.th-course-card__title a:hover { color: var(--th-purple); text-decoration: none; }
.th-course-card__text { color: var(--th-slate); font-size: 0.95rem; margin: 0 0 1rem; flex: 1; }
.th-course-card__footer {
	display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
	border-top: 1px solid var(--th-border); padding-top: 1rem;
}
.th-course-card__price { font-family: Rubik, sans-serif; font-weight: 600; color: var(--th-navy); font-size: 1.15rem; }
.th-course-card__price small { display: block; font-family: Nunito, sans-serif; font-weight: 400; font-size: 0.75rem; color: var(--th-slate); }
.th-course-card__footer .wp-element-button { padding: 0.55rem 1.1rem; font-size: 0.9rem; }

/* ------------------------------------------------------------------ *
 * Content helpers
 * ------------------------------------------------------------------ */
.th-checklist { list-style: none; padding-left: 0 !important; }
.th-checklist li { position: relative; padding-left: 1.9rem; margin-bottom: 0.5rem; }
.th-checklist li::before {
	content: ""; position: absolute; left: 0; top: 0.3em;
	width: 1.2rem; height: 1.2rem; border-radius: 50%;
	background: var(--th-sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.th-card {
	background: #FFFFFF;
	border: 1px solid var(--th-border);
	border-radius: var(--th-radius);
	box-shadow: var(--th-shadow);
}
.th-card--accent { border-top: 4px solid var(--th-sky); }
.th-note { background: var(--th-tint); border-left: 4px solid var(--th-sky); border-radius: 0 var(--th-radius) var(--th-radius) 0; }

.th-table-wrap { overflow-x: auto; }
.th-table, .wp-block-table.th-table table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.th-table th, .wp-block-table.th-table th {
	background: var(--th-sky); color: var(--th-navy);
	font-family: Rubik, sans-serif; font-weight: 600; text-align: left;
	padding: 0.85rem 1rem; border: 0;
}
.th-table td, .wp-block-table.th-table td { padding: 0.85rem 1rem; border: 0; border-bottom: 1px solid var(--th-border); vertical-align: middle; }
.th-table tbody tr:nth-child(even) td { background: #FAFCFE; }
.th-table .wp-element-button { padding: 0.45rem 1rem; font-size: 0.875rem; white-space: nowrap; }
.th-table__code { display: block; color: var(--th-slate); font-size: 0.85rem; }

.th-doc-list { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 1rem; }
.th-doc-list li {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem;
	background: #FFFFFF; border: 1px solid var(--th-border); border-radius: var(--th-radius);
	padding: 1rem 1.25rem; margin: 0;
}
.th-doc-list .th-ico { font-family: Rubik, sans-serif; font-weight: 500; color: var(--th-navy); }
.th-doc-list .th-ico::before { color: var(--th-purple); width: 1.4em; height: 1.4em; }

.th-contact-card .th-ico { font-size: 1.05rem; }
.th-contact-card .th-ico::before { color: var(--th-purple); width: 1.2em; height: 1.2em; }

/* ------------------------------------------------------------------ *
 * WooCommerce: single course
 * ------------------------------------------------------------------ */
.th-product-layout { align-items: flex-start !important; }
.th-book-card { position: sticky; top: 120px; }
.admin-bar .th-book-card { top: 152px; }
.th-book-card .wp-block-post-featured-image img { border-radius: var(--th-radius) var(--th-radius) 0 0; }
.th-book-card .wc-block-components-product-price,
.th-book-card .wp-block-woocommerce-product-price { font-family: Rubik, sans-serif; font-weight: 600; color: var(--th-purple); font-size: 1.9rem; }
.th-book-card .variations { width: 100%; border: 0; margin-bottom: 0.75rem; }
.th-book-card .variations th, .th-book-card .variations td { display: block; text-align: left; padding: 0; border: 0; }
.th-book-card .variations th label { font-family: Rubik, sans-serif; font-weight: 500; color: var(--th-navy); }
.th-book-card .variations select {
	width: 100%; padding: 0.7rem 0.8rem; margin-top: 0.35rem;
	border: 1px solid var(--th-border); border-radius: 4px; background: #FFFFFF; font: inherit;
}
.th-book-card .reset_variations { font-size: 0.85rem; }
.th-book-card .single_add_to_cart_button,
.woocommerce .th-book-card button.button.alt {
	width: 100%;
	background: var(--th-purple) !important; color: #FFFFFF !important;
	border: 2px solid var(--th-purple) !important; border-radius: 4px;
	font-family: Rubik, sans-serif; font-weight: 500; font-size: 1.05rem;
	padding: 0.85rem 1rem !important; margin-top: 0.75rem;
}
.th-book-card .single_add_to_cart_button:hover { background: var(--th-navy) !important; border-color: var(--th-navy) !important; }
.th-book-card .quantity { display: none !important; }
.th-book-card .woocommerce-variation-add-to-cart { display: block; }
.th-book-card .woocommerce-variation-price { margin: 0.5rem 0; }

.th-course-facts { list-style: none; padding: 0 !important; margin: 1rem 0 0; font-size: 0.95rem; }
.th-course-facts li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-top: 1px solid var(--th-border); margin: 0; }
.th-course-facts li span:first-child { color: var(--th-slate); }
.th-course-facts li span:last-child { color: var(--th-navy); font-weight: 700; text-align: right; }

/* Product tabs styled like the reference site */
.woocommerce-tabs ul.tabs,
.wp-block-woocommerce-product-details ul.tabs {
	display: flex; flex-wrap: wrap; gap: 0.4rem;
	list-style: none; padding: 0 !important; margin: 0 0 0 !important;
	border-bottom: 2px solid var(--th-purple);
}
.woocommerce-tabs ul.tabs::before, .woocommerce-tabs ul.tabs::after { display: none !important; }
.woocommerce-tabs ul.tabs li {
	margin: 0 !important; border: 0 !important; border-radius: 4px 4px 0 0 !important;
	background: var(--th-tint) !important; padding: 0 !important;
}
.woocommerce-tabs ul.tabs li::before, .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce-tabs ul.tabs li a {
	display: block; padding: 0.8rem 1.3rem !important;
	font-family: Rubik, sans-serif; font-weight: 500; color: var(--th-navy) !important; text-decoration: none !important;
}
.woocommerce-tabs ul.tabs li.active { background: var(--th-purple) !important; }
.woocommerce-tabs ul.tabs li.active a { color: #FFFFFF !important; }
.woocommerce-tabs .woocommerce-Tabs-panel { padding: 1.75rem 0 0; margin: 0 !important; }
.woocommerce-tabs .woocommerce-Tabs-panel > h2:first-child { font-size: 1.6rem; }
.woocommerce-tabs .woocommerce-Tabs-panel h3 { font-size: 1.15rem; margin-top: 1.75rem; color: var(--th-navy); }
.woocommerce-tabs .woocommerce-Tabs-panel ul li { margin-bottom: 0.3rem; }
@media (max-width: 600px) {
	.woocommerce-tabs ul.tabs li { flex: 1 1 45%; text-align: center; }
	.woocommerce-tabs ul.tabs li a { padding: 0.7rem 0.6rem !important; font-size: 0.9rem; }
}
.wp-block-woocommerce-product-details.is-style-minimal ul.tabs li.active a { border-bottom: 0 !important; }

/* ------------------------------------------------------------------ *
 * WooCommerce: course archive, cart, checkout, account
 * ------------------------------------------------------------------ */
.wc-block-product-template .wc-block-product,
.wp-block-woocommerce-product-template > li {
	background: #FFFFFF; border: 1px solid var(--th-border); border-radius: var(--th-radius);
	overflow: hidden; padding-bottom: 1.25rem;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wc-block-product-template .wc-block-product:hover { transform: translateY(-4px); box-shadow: var(--th-shadow-hover); }
.wc-block-product-template .wc-block-product .wp-block-post-title,
.wc-block-product-template .wc-block-product .wp-block-post-excerpt,
.wc-block-product-template .wc-block-product .wp-block-woocommerce-product-price,
.wc-block-product-template .wc-block-product .wp-block-woocommerce-product-button { padding-left: 1.25rem; padding-right: 1.25rem; }
.wc-block-product-template .wc-block-product .wp-block-post-title a { color: var(--th-navy); }
.wc-block-product-template .wc-block-product .wp-block-post-excerpt { color: var(--th-slate); font-size: 0.93rem; }
.wc-block-product-template .wc-block-product .wp-block-post-excerpt strong { color: var(--th-purple); font-weight: 700; font-size: 0.85rem; }
.wc-block-components-product-button .wp-block-button__link,
.wp-block-woocommerce-product-button .wp-block-button__link { background: var(--th-purple); color: #FFFFFF; border-color: var(--th-purple); }

.woocommerce-store-notice, p.demo_store { background: var(--th-purple); }
.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	background: var(--th-purple) !important; color: #FFFFFF !important; border-radius: 4px !important;
}
.wc-block-components-button:not(.is-link):hover { background: var(--th-navy) !important; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; border: 1px solid var(--th-border); border-radius: var(--th-radius); overflow: hidden; }
.woocommerce-MyAccount-navigation li a { display: block; padding: 0.7rem 1rem; color: var(--th-navy); border-bottom: 1px solid var(--th-border); }
.woocommerce-MyAccount-navigation li.is-active a { background: var(--th-purple); color: #FFFFFF; }

/* ------------------------------------------------------------------ *
 * Footer
 * ------------------------------------------------------------------ */
.th-footer { color: #AEB8C8; font-size: 0.95rem; }
.th-footer h2, .th-footer h3, .th-footer h4 {
	color: #FFFFFF; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.06em;
	position: relative; padding-bottom: 0.8rem; margin-bottom: 1.2rem;
}
.th-footer h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--th-sky); }
.th-footer a { color: #D6DDE8; text-decoration: none; }
.th-footer a:hover { color: var(--th-sky); text-decoration: none; }
.th-footer ul { list-style: none; padding-left: 0; margin: 0; }
.th-footer ul li { margin-bottom: 0.55rem; }
.th-footer .th-ico::before { color: var(--th-sky); }
.th-footer__brand { font-family: Rubik, sans-serif; font-weight: 700; font-size: 1.7rem; color: #FFFFFF; margin: 0 0 0.75rem; line-height: 1; }
.th-footer__brand span { color: var(--th-sky); }
.th-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.875rem; }
.th-footer__bottom p { margin: 0; }
.th-footer__links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }

/* ------------------------------------------------------------------ *
 * Fixes after visual review
 * ------------------------------------------------------------------ */
.th-hero .wp-block-cover__inner-container { width: 100%; margin-inline: auto !important; }
.is-layout-constrained > .th-course-grid,
.is-layout-constrained > .th-table-wrap { max-width: var(--wp--style--global--wide-size); margin-inline: auto; }
.th-cta a { color: var(--th-navy); text-decoration: underline; }
.th-cta a:hover { color: var(--th-purple); }
.th-header .wp-block-site-logo { flex-shrink: 0; }
@media (max-width: 781px) {
	.th-header .wp-block-site-logo img { max-height: 44px; width: 106px !important; }
}
.th-book-card .variations td.value { width: 100%; }
.th-book-card .variations select { height: auto; min-height: 48px; line-height: 1.4; }
.th-book-card .wp-block-post-excerpt__excerpt { margin-top: 0.5rem; }
.th-hero .wp-block-cover__inner-container > * { margin-left: 0 !important; margin-right: auto !important; max-width: 1200px; }
.th-hero .wp-block-cover__inner-container > h1 { max-width: 16ch; }
.th-hero .wp-block-cover__inner-container > .th-hero__lead { max-width: 56ch; }
.wp-site-blocks > * { margin-block-start: 0 !important; }
.wp-block-cover.th-hero > .wp-block-cover__inner-container { max-width: var(--wp--style--global--wide-size) !important; width: 100% !important; }
