/* Phitagoras Training Detail – loaded only where the widgets are used (training Single Post template). */
.phg-td { --phg-td-navy: #002E5B; --phg-td-blue: #0469DE; --phg-td-text: #3D4B5C; --phg-td-muted: #5B6B80; --phg-td-tint: #F3F7FC; --phg-td-line: #E3E9F1; --phg-td-gap: 56px;
	font-family: Poppins, sans-serif; color: var(--phg-td-text); }
.phg-td *, .phg-td *::before, .phg-td *::after { box-sizing: border-box; }
.phg-td-i { width: 1em; height: 1em; flex: 0 0 auto; }

/* Buttons */
.phg-td-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.phg-td-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border: 1.5px solid transparent; border-radius: 8px; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none !important; transition: background .2s, color .2s, border-color .2s; }
.phg-td-btn .phg-td-i { font-size: 18px; }
.phg-td-btn--primary { background: var(--phg-td-blue); color: #fff !important; }
.phg-td-btn--primary:hover { background: var(--phg-td-navy); }
.phg-td-btn--ghost { border-color: var(--phg-td-blue); color: var(--phg-td-blue) !important; background: #fff; }
.phg-td-btn--ghost:hover { background: var(--phg-td-tint); }
.phg-td-btn--light { width: 100%; margin-top: 18px; background: #fff; color: var(--phg-td-navy) !important; }
.phg-td-btn--light:hover { background: var(--phg-td-tint); }
.phg-td-btn--white { flex: 0 0 auto; background: #fff; color: var(--phg-td-navy) !important; }
.phg-td-btn--white:hover { background: var(--phg-td-tint); }
.phg-td-btn:focus-visible, .phg-td a:focus-visible { outline: 3px solid var(--phg-td-blue); outline-offset: 3px; }

/* Breadcrumb */
.phg-td-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 22px; padding: 0; list-style: none; font-size: 13px; color: var(--phg-td-muted); }
.phg-td-crumbs li { margin: 0; padding: 0; background: none; }
.phg-td-crumbs li::before { content: none !important; }
.phg-td-crumbs li + li::before { content: "›" !important; display: inline !important; margin: 0 8px; color: #9AA7B6; }
.phg-td-crumbs a { color: var(--phg-td-muted) !important; text-decoration: none !important; }
.phg-td-crumbs a:hover { color: var(--phg-td-blue) !important; }
.phg-td-crumbs span[aria-current] { color: var(--phg-td-navy); }

/* Hero */
.phg-td-hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; align-items: center; }
.phg-td-hero__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-bottom: 18px; }
.phg-td-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid #C9DBF3; border-radius: 999px; background: #EAF2FD; color: var(--phg-td-blue) !important; font-size: 13px; font-weight: 600; text-decoration: none !important; }
.phg-td-pill .phg-td-i { font-size: 16px; }
.phg-td-logos { display: flex; align-items: center; gap: 16px; }
.phg-td-logo { display: block; width: auto !important; height: 40px !important; max-width: 140px; object-fit: contain; }
.phg-td-hero__title { margin: 0; color: var(--phg-td-navy); font-family: inherit; font-size: clamp(28px, 2.2vw + 14px, 46px); font-weight: 800; line-height: 1.15; letter-spacing: -.015em; text-transform: none; text-wrap: balance; }
.phg-td-hero__sub { margin: 10px 0 0; color: var(--phg-td-navy); font-size: clamp(18px, .8vw + 13px, 24px); font-weight: 500; line-height: 1.35; }
.phg-td-hero__desc { margin: 14px 0 0; max-width: 60ch; font-size: 16px; line-height: 1.7; }
.phg-td-hero__points { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 20px 0 0; padding: 0; list-style: none; }
.phg-td-hero__points li { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 0; background: none; font-size: 14px; font-weight: 500; color: var(--phg-td-navy); line-height: 1.4; }
.phg-td-hero__points li::before { content: none !important; }
.phg-td-hero__points .phg-td-i { font-size: 18px; color: var(--phg-td-blue); margin-top: 1px; }
.phg-td-hero__media { position: relative; display: flex; justify-content: center; }
.phg-td-hero__media::after { content: ""; position: absolute; right: -10px; bottom: -10px; width: 96px; height: 96px; border-radius: 0 0 18px 0; background: linear-gradient(135deg, transparent 50%, var(--phg-td-blue) 50%); z-index: 0; }
.phg-td-hero__img { position: relative; z-index: 1; display: block; width: 100% !important; height: auto !important; max-height: 520px; object-fit: contain; border-radius: 16px; box-shadow: 0 14px 34px rgba(0, 46, 91, .14); background: #fff; }
.phg-td-hero__media.is-portrait .phg-td-hero__img { width: auto !important; max-width: 100%; }

/* Highlights bar */
.phg-td-facts__list { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); margin: 0; padding: 18px 8px; list-style: none; border: 1px solid var(--phg-td-line); border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(0, 46, 91, .06); }
.phg-td-facts__list li { display: flex; align-items: center; gap: 14px; margin: 0; padding: 6px 20px; background: none; min-width: 0; }
.phg-td-facts__list li::before { content: none !important; }
.phg-td-facts__list li + li { border-left: 1px solid var(--phg-td-line); }
.phg-td-facts__list .phg-td-i { flex: 0 0 44px; width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: #EAF2FD; color: var(--phg-td-blue); }
.phg-td-facts__list strong { display: block; color: var(--phg-td-navy); font-size: 15px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.phg-td-facts__list small { display: block; margin-top: 2px; color: var(--phg-td-muted); font-size: 12.5px; }

/* Body */
.phg-td-body { display: flex; flex-direction: column; gap: var(--phg-td-gap); }
.phg-td-h2 { position: relative; margin: 0 0 22px; padding-bottom: 12px; color: var(--phg-td-navy); font-family: inherit; font-size: clamp(22px, .9vw + 16px, 30px); font-weight: 700; line-height: 1.25; text-transform: none; }
.phg-td-h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; border-radius: 2px; background: var(--phg-td-blue); }
.phg-td-h3 { margin: 18px 0 8px; color: var(--phg-td-navy); font-size: 18px; font-weight: 600; text-transform: none; }
.phg-td-rich { font-size: 16px; line-height: 1.75; overflow-wrap: break-word; }
.phg-td-rich p, .phg-td-rich > span, .phg-td-rich > div { margin: 0 0 14px; }
.phg-td-rich h3, .phg-td-rich h4 { margin: 18px 0 8px; color: var(--phg-td-navy); font-size: 18px; font-weight: 600; text-transform: none; }
.phg-td-rich ul, .phg-td-rich ol { margin: 0 0 14px; padding-left: 1.3em; }
.phg-td-rich li { margin: 0 0 6px; }
.phg-td-rich img { max-width: 100%; height: auto; }
.phg-td-rich a { color: var(--phg-td-blue); }
.phg-td-pre { white-space: normal; font-family: inherit; text-align: left; }

.phg-td-about.has-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: 40px; align-items: start; }
.phg-td-card { position: sticky; top: 110px; padding: 26px; border-radius: 16px; background: var(--phg-td-navy); color: #DCE7F5; box-shadow: 0 14px 34px rgba(0, 46, 91, .18); }
.phg-td-card__label { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: 18px; font-weight: 700; }
.phg-td-card__price { display: flex; align-items: flex-start; gap: 12px; margin: 0; }
.phg-td-card__price .phg-td-i { flex: 0 0 34px; width: 34px; height: 34px; color: #8EC1FF; }
.phg-td-card__price strong { display: block; color: #fff; font-size: 28px; font-weight: 800; line-height: 1.15; }
.phg-td-card__price small { color: #BFD3EC; font-size: 14px; }
.phg-td-card__note { margin: 12px 0 0; font-size: 14px; line-height: 1.6; }
.phg-td-card__rich { font-size: 14.5px; line-height: 1.65; color: #E4EDF8; }
.phg-td-card__rich * { color: inherit !important; }
.phg-td-card__rich strong, .phg-td-card__rich b { color: #fff !important; }
.phg-td-card__rich ul { margin: 0; padding-left: 1.1em; }
.phg-td-card__rich img { display: none; }

/* Materi: two-column list of light cards */
.phg-td-grid ul, .phg-td-grid ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: m; }
.phg-td-grid li { position: relative; display: flex; align-items: center; min-height: 56px; margin: 0; padding: 12px 16px 12px 52px; border: 1px solid var(--phg-td-line); border-radius: 10px; background: var(--phg-td-tint); color: var(--phg-td-navy); font-size: 15px; line-height: 1.45; }
.phg-td-grid li::before { content: "" !important; position: absolute; left: 16px; top: 50%; width: 22px; height: 22px; margin-top: -11px; background: var(--phg-td-blue); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3.5h7l4 4v13H7z'/%3E%3Cpath d='M14 3.5v4h4M9.5 12h6M9.5 15.5h6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3.5h7l4 4v13H7z'/%3E%3Cpath d='M14 3.5v4h4M9.5 12h6M9.5 15.5h6'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Persyaratan | Fasilitas */
.phg-td-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.phg-td-checks ul, .phg-td-checks ol { margin: 0; padding: 0; list-style: none; }
.phg-td-checks li { position: relative; margin: 0 0 10px; padding-left: 32px; line-height: 1.55; }
.phg-td-checks li::before { content: "" !important; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--phg-td-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.phg-td-sec--fasilitas .phg-td-checks li::before { background-color: #2E9E5B; }

/* Schedule panel */
.phg-td-panel { padding: 30px 32px; border-radius: 16px; background: var(--phg-td-tint); border: 1px solid #DCE6F3; }
.phg-td-sched { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 32px; margin: 0; padding: 0; list-style: none; }
.phg-td-sched li, .phg-td-contacts li { display: flex; align-items: flex-start; gap: 14px; margin: 0; padding: 0; background: none; }
.phg-td-sched li::before, .phg-td-contacts li::before { content: none !important; }
.phg-td-sched .phg-td-i { flex: 0 0 44px; width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: #fff; color: var(--phg-td-blue); box-shadow: 0 4px 12px rgba(0, 46, 91, .08); }
.phg-td-sched strong { display: block; color: var(--phg-td-navy); font-size: 16px; line-height: 1.35; }
.phg-td-sched small { display: block; margin-top: 4px; color: var(--phg-td-muted); font-size: 14px; line-height: 1.55; }

/* Registration */
.phg-td-reg { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.phg-td-contacts { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.phg-td-contacts .phg-td-i { margin-top: 2px; font-size: 20px; color: var(--phg-td-blue); }
.phg-td-contacts a { color: var(--phg-td-navy) !important; text-decoration: none !important; font-weight: 500; }
.phg-td-contacts a:hover { color: var(--phg-td-blue) !important; text-decoration: underline !important; }
.phg-td-form { width: 100%; max-width: 760px; }

/* CTA banner */
.phg-td-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 40px; border-radius: 16px; background: var(--phg-td-navy); color: #DCE7F5; }
.phg-td-cta__title { margin: 0; color: #fff; font-size: clamp(20px, .9vw + 14px, 28px); font-weight: 700; line-height: 1.3; }
.phg-td-cta__desc { margin: 8px 0 0; font-size: 15px; line-height: 1.6; }

/* Tablet */
@media (max-width: 1024px) {
	.phg-td-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.phg-td-hero__media { max-width: 560px; margin: 0 auto; width: 100%; }
	.phg-td-facts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
	.phg-td-facts__list li:nth-child(odd) { border-left: 0; }
	.phg-td-about.has-card { grid-template-columns: minmax(0, 1fr); }
	.phg-td-card { position: static; }
}
/* Mobile */
@media (max-width: 767px) {
	.phg-td { --phg-td-gap: 40px; }
	.phg-td-hero__media::after { width: 64px; height: 64px; right: -6px; bottom: -6px; }
	.phg-td-btns .phg-td-btn { flex: 1 1 100%; }
	.phg-td-facts__list { grid-template-columns: minmax(0, 1fr); padding: 8px; }
	.phg-td-facts__list li { padding: 10px 12px; }
	.phg-td-facts__list li + li { border-left: 0; border-top: 1px solid var(--phg-td-line); }
	.phg-td-grid ul, .phg-td-grid ol, .phg-td-pair { grid-template-columns: minmax(0, 1fr); }
	.phg-td-pair { gap: var(--phg-td-gap); }
	.phg-td-panel { padding: 22px 18px; }
	.phg-td-cta { flex-direction: column; align-items: stretch; padding: 26px 20px; }
	.phg-td-cta .phg-td-btn { width: 100%; }
	.phg-td-rich { font-size: 15.5px; }
}
@media (prefers-reduced-motion: reduce) {
	.phg-td-btn { transition: none; }
}
