/* Course finder table and filter box (includes/courses.php). Values taken
   from the Elementor/JetEngine version: red header, light grey rows with a
   5px white gap, Roboto 14px. */
.sh-courses { --sh-red: #aa1222; --sh-navy: #00325f; --sh-grey: #f2f2f2; --sh-text: #2f2f2f; }
.sh-courses__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sh-courses__table { width: 100%; min-width: 792px; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 14px; line-height: 1.65; margin: 0 0 24px; }
.sh-courses__table th,
.sh-courses__table td { padding: 10px 0 10px 7px; text-align: left; vertical-align: middle; border: 0; border-right: 2px solid #fff; border-bottom: 5px solid #fff; }
.sh-courses__table th { background: var(--sh-red); color: #fff; font-weight: 600; }
.sh-courses__table td { background: var(--sh-grey); color: var(--sh-text); font-weight: 400; }
/* Column widths of the JetEngine table (880px wide content column). */
.sh-col-nyelv { width: 7.6%; } .sh-col-szint { width: 6.4%; } .sh-col-tipus { width: 13.8%; } .sh-col-napok { width: 10.1%; }
.sh-col-kezdo_idopont, .sh-col-befejezes_ido { width: 6.9%; } .sh-col-kezdo_datum, .sh-col-befejezes_datum, .sh-col-online_dij { width: 10.1%; }
.sh-col-szemelyes_dij { width: 9.8%; } .sh-col-oraszam { width: 8.2%; }
.sh-courses__table th, .sh-courses__table td { overflow-wrap: anywhere; }
.sh-courses__row { cursor: pointer; }
.sh-courses__row td { transition: background-color .35s ease, color .35s ease; }
.sh-courses__row:hover td,
.sh-courses__row:focus-within td { background: #2f2f2f; color: #fff; }
.sh-courses__link { color: inherit; text-decoration: none; }
.sh-courses__link:focus-visible { outline: 2px solid var(--sh-navy); outline-offset: 2px; }
.sh-courses__pages { margin-top: 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.sh-courses__pages .page-numbers { display: inline-block; min-width: 36px; padding: 6px 10px; text-align: center; background: var(--sh-grey); color: var(--sh-text); text-decoration: none; }
.sh-courses__pages .page-numbers.current { background: var(--sh-red); color: #fff; }
.sh-courses__empty { font-weight: 600; color: var(--sh-navy); }

/* Filter box */
.sh-course-filter { --sh-red: #aa1222; --sh-grey: #f2f2f2; --sh-text: #2f2f2f; display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; margin: 0; }
.sh-course-filter__field { flex: 1 1 140px; position: relative; margin: 0; }
.sh-course-filter select,
.sh-course-filter__days > summary { box-sizing: border-box; width: 100%; height: 47px; padding: 0 28px 0 8px; border: 0; border-radius: 0; background: var(--sh-grey) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%232f2f2f'/%3E%3C/svg%3E") no-repeat right 10px center; color: var(--sh-text); font: 600 14px/47px Roboto, sans-serif; -webkit-appearance: none; appearance: none; cursor: pointer; }
.sh-course-filter__days > summary { list-style: none; font-weight: 500; }
.sh-course-filter__days > summary::-webkit-details-marker { display: none; }
.sh-course-filter__days fieldset { position: absolute; z-index: 20; left: 0; right: 0; min-width: 200px; margin: 0; padding: 10px 12px; border: 0; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }
.sh-course-filter__days legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sh-course-filter__days label { display: block; padding: 3px 0; font-size: 14px; color: var(--sh-text); cursor: pointer; }
.sh-course-filter__submit { flex: 0 0 auto; height: 53px; margin-top: -3px; padding: 0 34px; border: 2px solid var(--sh-red); border-radius: 0; background: #fff; color: var(--sh-red); font: 500 16px/1 Roboto, sans-serif; cursor: pointer; transition: background .2s, color .2s; }
.sh-course-filter__submit:hover,
.sh-course-filter__submit:focus-visible { background: var(--sh-red); color: #fff; }

/* Over the main page photo: white fields, filled red button. */
.sh-course-filter--hero select,
.sh-course-filter--hero .sh-course-filter__days > summary { background-color: #fff; }
.sh-course-filter--hero .sh-course-filter__submit { background: var(--sh-red); color: #fff; }
.sh-course-filter--hero .sh-course-filter__submit:hover { background: #8a0e1b; border-color: #8a0e1b; }
/* The Jet filters' sizes there: 190px fields 52px high, 24px apart, centred; a 193px button. */
.sh-course-filter--hero { justify-content: center; gap: 24px; }
.sh-course-filter--hero .sh-course-filter__field { flex: 0 0 190px; }
.sh-course-filter--hero select,
.sh-course-filter--hero .sh-course-filter__days > summary { height: 52px; line-height: 52px; }
.sh-course-filter--hero .sh-course-filter__submit { flex: 0 0 193px; padding: 0; margin-top: 0; }
@media (max-width: 1024px) {
	/* Tablets and phones: one under the other, centred, 10px apart. */
	.sh-course-filter--hero { flex-direction: column; align-items: center; gap: 10px; padding: 20px 0; }
	.sh-course-filter--hero .sh-course-filter__field,
	.sh-course-filter--hero .sh-course-filter__submit { flex: 0 0 auto; width: 190px; }
	.sh-course-filter--hero .sh-course-filter__submit { width: 193px; }
}

/* Sidebar: one under the other. */
.sh-course-filter--stack { flex-direction: column; align-items: stretch; gap: 5px; }
.sh-course-filter--stack .sh-course-filter__field { flex: 0 0 auto; }
.sh-course-filter--stack .sh-course-filter__submit { margin-top: 10px; align-self: flex-start; }
/* Sidebar positions as the JetSmartFilters widgets stood: 5px in, 48px selects, the day box 1px lower. */
.sh-course-filter--stack { padding-top: 5px; }
.sh-course-filter--stack select { height: 48px; }
.sh-course-filter--stack .sh-course-filter__days { margin-top: 1px; }

@media (max-width: 767px) {
	.sh-course-filter { gap: 10px; }
	.sh-course-filter__field { flex-basis: calc(50% - 5px); }
	.sh-course-filter__submit { flex-basis: 100%; margin-top: 0; }
	.sh-course-filter--hero .sh-course-filter__field, .sh-course-filter--hero .sh-course-filter__submit { flex-basis: auto; }
	.sh-course-filter--hero .sh-course-filter__submit { margin-top: 0; }
	/* Row of filters above a table: two per line, the button its own width under them (Jet's heights). */
	.sh-course-filter--row { row-gap: 5px; }
	.sh-course-filter--row .sh-course-filter__submit { flex: 0 0 auto; }
	/* The sidebar stays as on wide screens (one column, 5px apart). */
	.sh-course-filter--stack { gap: 5px; }
	.sh-course-filter--stack .sh-course-filter__field, .sh-course-filter--stack .sh-course-filter__submit { flex: 0 0 auto; }
	.sh-course-filter--stack .sh-course-filter__submit { margin-top: 10px; }
}
