/* Phitagoras Training Activities – loaded only on pages that use the widget. */
.phg-act { --phg-act-accent: #0D4FA6; --phg-act-muted: #5B6B80; font-family: Poppins, sans-serif; color: #2F3B4A; }
.phg-act *, .phg-act *::before, .phg-act *::after { box-sizing: border-box; }
.phg-act__i { width: 1em; height: 1em; flex: 0 0 auto; }

/* Header: heading + description left, archive button right */
.phg-act__head { max-width: 880px; margin: 0 auto 40px; text-align: center; }
.phg-act__title { margin: 0; color: #002E5B; font-family: inherit; font-size: clamp(30px, 2.4vw + 12px, 52px); font-weight: 800; line-height: 1.12; letter-spacing: -.015em; text-transform: none; }
.phg-act__desc { margin: 14px 0 0; color: var(--phg-act-muted); font-size: clamp(15px, .5vw + 12px, 19px); line-height: 1.55; }
.phg-act__cta { margin-top: 32px; text-align: center; }
.phg-act__all { display: inline-flex; align-items: center; gap: 14px; padding: 16px 32px; border: 1.5px solid var(--phg-act-accent); border-radius: 8px; color: var(--phg-act-accent) !important; font-size: 17px; font-weight: 600; line-height: 1.2; text-decoration: none !important; white-space: nowrap; transition: background .2s, color .2s; }
.phg-act__all .phg-act__i { font-size: 22px; transition: transform .2s; }
.phg-act__all:hover { background: var(--phg-act-accent); color: #fff !important; }
.phg-act__all:hover .phg-act__i { transform: translateX(3px); }

/* Cards */
.phg-act__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.phg-act__card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #E3E9F1; border-radius: 16px; background: #fff; box-shadow: 0 10px 28px rgba(0, 46, 91, .07); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.phg-act__card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0, 46, 91, .12) !important; border-color: #C9DBF3; }
.phg-act__card:focus-within { outline: 3px solid var(--phg-act-accent); outline-offset: 3px; }
.phg-act__media { position: relative; aspect-ratio: 350 / 204; overflow: hidden; background: #0B2A66; }
.phg-act__img { display: block; width: 100% !important; height: 100% !important; max-width: none; object-fit: contain; object-position: center; border-radius: 0 !important; }
.phg-act__noimg { display: flex; align-items: center; justify-content: center; height: 100%; color: rgba(255, 255, 255, .55); font-size: 15px; font-weight: 700; letter-spacing: .3em; }
.phg-act__body { display: flex; flex: 1 1 auto; flex-direction: column; align-items: flex-start; padding: 24px 28px; }
.phg-act__badge { display: inline-block; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px; background: #EAF1FC; color: var(--phg-act-accent); font-size: 14px; font-weight: 500; line-height: 1.3; }
.phg-act__name { margin: 0 !important; padding: 0; color: #0B2A66; font-family: inherit; font-size: clamp(16px, .25vw + 14px, 18px); font-weight: 500; line-height: 1.45; text-transform: none; overflow-wrap: anywhere; }
.phg-act__sub { margin: 6px 0 0 !important; color: var(--phg-act-muted); font-size: 16px; line-height: 1.5; }
.phg-act__info { margin: 16px 0 0; padding: 0; list-style: none !important; color: var(--phg-act-muted); font-size: 16px; line-height: 1.45; }
.phg-act__info li { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 8px; padding: 0 !important; list-style: none !important; background: none !important; }
.phg-act__info li::before { content: none !important; }
.phg-act__info li:last-child { margin-bottom: 0; }
.phg-act__info .phg-act__i { margin-top: 2px; font-size: 20px; color: #3D4F66; }
.phg-act__foot { width: 100%; margin-top: auto; padding-top: 20px; }
.phg-act__foot::before { content: ""; display: block; height: 1px; margin-bottom: 18px; background: #E6ECF3; }
.phg-act__more { display: inline-flex; align-items: center; gap: 12px; color: var(--phg-act-accent) !important; font-size: 17px; font-weight: 600; text-decoration: none !important; outline: none; }
.phg-act__more .phg-act__i { font-size: 20px; transition: transform .2s; }
.phg-act__card:hover .phg-act__more .phg-act__i { transform: translateX(3px); }
/* the "Read Story" link covers the whole card (one link per card) */
.phg-act__more::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.phg-act__all:focus-visible { outline: 3px solid var(--phg-act-accent); outline-offset: 3px; }
.phg-act__empty { margin: 0; padding: 40px 16px; border: 1px dashed #D6DEE8; border-radius: 14px; color: var(--phg-act-muted); text-align: center; }

@media (max-width: 1024px) {
	.phg-act__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
	.phg-act__body { padding: 20px 22px; }
}
@media (max-width: 767px) {
	.phg-act__head { margin-bottom: 28px; }
	.phg-act__cta { margin-top: 24px; }
	.phg-act__all { width: 100%; justify-content: center; padding: 14px 20px; font-size: 16px; }
	.phg-act__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.phg-act__body { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
	.phg-act__card, .phg-act__all .phg-act__i, .phg-act__more .phg-act__i { transition: none; }
	.phg-act__card:hover { transform: none; }
}
