/* Phitagoras Training Schedule – loaded only on pages that use the widget/shortcode. */
.phg-ts {
	--phg-ts-heading: #002E5B;
	--phg-ts-text: #2F3B4A;
	--phg-ts-muted: #5B6B80;
	--phg-ts-accent: #0D4FA6;
	--phg-ts-button: #0B3B7A;
	--phg-ts-panel: #FFFFFF;
	--phg-ts-line: #E6ECF3;
	--phg-ts-soft: #F4F7FB;
	--phg-ts-head-gap: 36px;
	--phg-ts-row-pad: 20px;
	--phg-ts-title-size: clamp(28px, 2.6vw + 10px, 52px);
	--phg-ts-visible: 6;
	font-family: Poppins, sans-serif;
	color: var(--phg-ts-text);
	scroll-margin-top: 90px;
}
.phg-ts *, .phg-ts *::before, .phg-ts *::after { box-sizing: border-box; }
.phg-ts .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.phg-ts__i { width: 1em; height: 1em; flex: 0 0 auto; }

/* Heading */
.phg-ts__head { text-align: center; margin: 0 auto var(--phg-ts-head-gap); max-width: 880px; }
.phg-ts__eyebrow { display: inline-flex; align-items: center; gap: 18px; margin: 0 0 14px; color: var(--phg-ts-accent); font-size: 15px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.phg-ts__eyebrow::after { content: ""; width: 60px; height: 1.5px; background: currentColor; opacity: .7; }
.phg-ts__title { margin: 0; color: var(--phg-ts-heading); font-family: inherit; font-size: var(--phg-ts-title-size); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; text-transform: none; }
.phg-ts__desc { margin: 14px 0 0; color: var(--phg-ts-muted); font-size: clamp(15px, .5vw + 12px, 19px); line-height: 1.55; }

/* Month tabs */
.phg-ts__nav { display: flex; align-items: center; gap: 16px; max-width: 1180px; margin: 0 auto 22px; }
.phg-ts__arrow { margin-bottom: 0; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 48px; width: 48px; height: 48px; padding: 0; border: 1px solid var(--phg-ts-line); border-radius: 50%; background: #fff; color: var(--phg-ts-heading); font-size: 20px; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 46, 91, .06); transition: background .2s, color .2s, opacity .2s; }
.phg-ts__arrow:hover:not(:disabled) { background: var(--phg-ts-soft); color: var(--phg-ts-accent); }
.phg-ts__arrow:disabled { opacity: .35; cursor: default; box-shadow: none; }
.phg-ts__arrow:focus-visible, .phg-ts__tab:focus-visible, .phg-ts__btn:focus-visible, .phg-ts__name:focus-visible { outline: 3px solid var(--phg-ts-accent); outline-offset: 3px; }
.phg-ts__tabs { --gap: 4px; display: flex; gap: var(--gap); flex: 1 1 auto; min-width: 0; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 4px 14px; margin-bottom: -10px; }
.phg-ts__tabs::-webkit-scrollbar { display: none; }
.phg-ts__tab { flex: 0 0 calc((100% - (var(--phg-ts-visible) - 1) * var(--gap)) / var(--phg-ts-visible)); min-width: 104px; display: flex; align-items: center; justify-content: center; height: 58px; padding: 0 10px; border: 1px solid var(--phg-ts-line); border-radius: 10px; background: var(--phg-ts-soft); color: var(--phg-ts-text); font-size: 16px; font-weight: 500; text-decoration: none !important; white-space: nowrap; scroll-snap-align: start; transition: background .2s, color .2s, border-color .2s; }
.phg-ts__tab:hover { border-color: #C9D7EA; color: var(--phg-ts-accent); }
.phg-ts__tab.is-active { background: var(--phg-ts-accent); border-color: var(--phg-ts-accent); color: #fff; font-weight: 600; box-shadow: 0 4px 10px rgba(13, 79, 166, .22); }

/* Table */
.phg-ts__board { padding: 24px; border: 1px solid var(--phg-ts-line); border-radius: 18px; background: var(--phg-ts-panel); box-shadow: 0 12px 34px rgba(0, 46, 91, .06); }
.phg-ts__panel[hidden] { display: none; }
.phg-ts__table { width: 100%; margin: 0; border: 0; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 17px; }
.phg-ts__table th, .phg-ts__table td { border: 0; background: none; text-align: left; vertical-align: middle; }
.phg-ts__table thead th { padding: 15px 20px; background: var(--phg-ts-soft); color: var(--phg-ts-muted); font-size: 15px; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; }
.phg-ts__table thead th:first-child { border-radius: 10px 0 0 10px; }
.phg-ts__table thead th:last-child { border-radius: 0 10px 10px 0; }
.phg-ts__table thead th:nth-child(1) { width: 35%; }
.phg-ts__table thead th:nth-child(2) { width: 27%; }
.phg-ts__table thead th:nth-child(3) { width: 15%; }
.phg-ts__table thead th:nth-child(4) { width: 15%; }
.phg-ts__table thead th:nth-child(5) { width: 8%; }
.phg-ts__row td { padding: var(--phg-ts-row-pad) 20px; border-bottom: 1px solid var(--phg-ts-line); }
.phg-ts__row:last-child td { border-bottom: 0; }
.phg-ts__row:hover td { background: #FAFBFD; }
.phg-ts__program { overflow-wrap: anywhere; }
.phg-ts__name { display: block; color: var(--phg-ts-heading) !important; font-weight: 700; line-height: 1.45; text-decoration: none !important; }
a.phg-ts__name:hover { color: var(--phg-ts-accent) !important; }
.phg-ts__sub { display: block; margin-top: 2px; color: var(--phg-ts-muted); font-size: .95em; line-height: 1.45; }
.phg-ts__date { color: var(--phg-ts-text); }
.phg-ts__date > .phg-ts__i { float: left; margin: 2px 14px 0 0; font-size: 26px; color: var(--phg-ts-accent); }
.phg-ts__dates { display: block; overflow: hidden; line-height: 1.4; }
.phg-ts__range { display: block; }
.phg-ts__more-date { display: block; margin-top: 3px; color: var(--phg-ts-muted); font-size: .88em; }
.phg-ts__badge { display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 16px; border-radius: 999px; font-size: .95em; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.phg-ts__badge .phg-ts__i { font-size: 1.3em; }
.phg-ts__badge--blended { background: #EAF1FC; color: #0D4FA6; }
.phg-ts__badge--online { background: #EEF0FD; color: #3B47B5; }
.phg-ts__badge--offline { background: #EAF7EE; color: #1E7B3A; }
.phg-ts__badge--hybrid { background: #E7F6F6; color: #0F6F6C; }
.phg-ts__price { color: var(--phg-ts-text); font-weight: 500; white-space: nowrap; }
.phg-ts__go { text-align: right !important; }
.phg-ts__go-link { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: #EEF2F7; color: var(--phg-ts-heading) !important; font-size: 22px; text-decoration: none !important; transition: background .2s, color .2s; }
.phg-ts__row:hover .phg-ts__go-link, .phg-ts__go-link:hover { background: var(--phg-ts-accent); color: #fff !important; }
.phg-ts__empty { margin: 0; padding: 48px 16px; color: var(--phg-ts-muted); font-size: 17px; text-align: center; }
.phg-ts__count { margin: 14px 0 0; color: var(--phg-ts-muted); font-size: 14px; text-align: center; }

/* Button */
.phg-ts__cta { margin-top: 28px; text-align: center; }
.phg-ts__btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 60px; padding: 14px 44px; border-radius: 8px; background: var(--phg-ts-button); color: #fff !important; font-size: 17px; font-weight: 600; text-decoration: none !important; box-shadow: 0 10px 22px rgba(11, 59, 122, .22); transition: filter .2s, transform .2s; }
.phg-ts__btn .phg-ts__i { font-size: 22px; }
.phg-ts__btn:hover { filter: brightness(1.12); transform: translateY(-1px); }

/* Tablet */
@media (max-width: 1024px) {
	.phg-ts { --phg-ts-row-pad: 16px; }
	.phg-ts__board { padding: 16px; }
	.phg-ts__table { font-size: 15px; }
	.phg-ts__table thead th { padding: 12px 14px; font-size: 13px; }
	.phg-ts__row td { padding: var(--phg-ts-row-pad) 14px; }
	.phg-ts__table thead th:nth-child(1) { width: 32%; }
	.phg-ts__table thead th:nth-child(2) { width: 28%; }
	.phg-ts__table thead th:nth-child(3) { width: 16%; }
	.phg-ts__table thead th:nth-child(4) { width: 16%; }
	.phg-ts__table thead th:nth-child(5) { width: 8%; }
	.phg-ts__date > .phg-ts__i { font-size: 22px; margin-right: 10px; }
	.phg-ts__badge { padding: 7px 12px; gap: 7px; }
	.phg-ts__go-link { width: 42px; height: 42px; font-size: 19px; }
	.phg-ts__price { white-space: normal; }
}
/* Narrow tablet + mobile: one card per schedule */
@media (max-width: 900px) {
	.phg-ts__board { padding: 0; border: 0; background: none; box-shadow: none; }
	.phg-ts__table, .phg-ts__table tbody { display: block; }
	.phg-ts__table thead { display: none; }
	.phg-ts__row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "program go" "date date" "method price"; gap: 12px 12px; margin-bottom: 12px; padding: 18px 16px; border: 1px solid var(--phg-ts-line); border-radius: 14px; background: var(--phg-ts-panel); box-shadow: 0 6px 18px rgba(0, 46, 91, .06); }
	.phg-ts__row td { display: block; padding: 0 !important; border: 0 !important; background: none !important; }
	.phg-ts__program { grid-area: program; }
	.phg-ts__date { grid-area: date; display: flex !important; align-items: flex-start; }
	.phg-ts__date > .phg-ts__i { float: none; margin: 1px 10px 0 0; font-size: 20px; }
	.phg-ts__method { grid-area: method; align-self: center; }
	.phg-ts__price { grid-area: price; align-self: center; text-align: right !important; white-space: nowrap; }
	.phg-ts__go { grid-area: go; align-self: start; }
	.phg-ts__go-link { width: 40px; height: 40px; font-size: 18px; }
	.phg-ts__badge { padding: 6px 12px; font-size: 14px; }
	.phg-ts__empty { padding: 36px 16px; border: 1px dashed var(--phg-ts-line); border-radius: 14px; background: var(--phg-ts-panel); }
}
/* Mobile: swipeable month tabs, full-width button */
@media (max-width: 767px) {
	.phg-ts__eyebrow { font-size: 13px; letter-spacing: .12em; }
	.phg-ts__nav { gap: 8px; }
	.phg-ts__arrow { flex-basis: 38px; width: 38px; height: 38px; font-size: 17px; }
	.phg-ts__tab { flex: 0 0 auto; min-width: 104px; height: 48px; font-size: 15px; }
	.phg-ts__btn { width: 100%; min-height: 54px; padding: 12px 20px; font-size: 16px; }
}
@media (max-width: 359px) {
	.phg-ts__row { grid-template-areas: "program go" "date date" "method method" "price price"; }
	.phg-ts__price { text-align: left !important; }
}
@media (prefers-reduced-motion: reduce) {
	.phg-ts__tabs { scroll-behavior: auto; }
	.phg-ts__btn:hover { transform: none; }
}
