.his-course-container {
    margin: 0 auto;
    max-width: min(100%, 1300px);
    width: 100%;
}

.his-course-hero {
	padding: 120px 20px 40px;
	background-image: url('/wp-content/uploads/2026/02/elements-courses-hero.svg');
	background-repeat: no-repeat;
	background-position: center top;
	background-size: cover;
	text-align: center;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw
}

@media (max-width: 1024px) {
    .his-course-hero {
        background-position: center left;
        padding: 100px 20px 0;
    }
}

@media (max-width: 767px) {
    .his-course-hero {
        background-position: center left;
        padding: 100px 20px 0;
    }
}

.his-course-hero__inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.his-course-hero__title {
	font-size: 3rem;
	line-height: 1.3em;
	font-weight: 800;
}

.his-course-hero__subtitle {
	font-size: 1.1rem;
}

.his-course-hero__meta {
	display: flex;
	justify-content: center;
    align-items: center;
	gap: 10px;
}

.hero-arrow {
    align-self: center;
    margin-left: 250px;
    margin-top: -60px;
}

@media (max-width:1024px) {
    .hero-arrow {
    margin-left: 0;
    margin-top: 0;
}
}

@media (max-width:767px) {
    .hero-arrow {
    display: none;
}
}

.his-course-summary {
	margin-top: 60px;
    padding-bottom: 40px;
}

@media (max-width:1024px) {
    .his-course-summary {
	margin-top: 60px;
}
}

@media (max-width:767px) {
    .his-course-summary {
	margin-top: 40px;
}
}

.his-course-summary__card {
	background: var(--e-global-color-c43df5b);
	border-radius: 13px;
	padding: 50px 30px;
}

@media (max-width: 767px) {
	.his-course-summary__card {
		padding: 20px;
	}
}

.his-course-summary__grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 60px 30px;
}

@media (max-width: 1124px) {
	.his-course-summary__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 30px;
	}
}

@media (max-width: 767px) {
	.his-course-summary__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}
}

.his-course-summary__item {
    text-align: left;
}

.his-course-summary__label {
	font-size: 0.9rem;
	line-height: 1.3em;
	margin-bottom: 8px;
}

.his-course-summary__value {
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.3em;
}

.his-course-summary__value--book {
    font-weight: 400;
}

.his-course-summary__value a {
	color: inherit;
	text-decoration: underline;
}

.his-course-summary__value .his-course-btn {
    display: inline-block;
}

.his-course-summary__value--capacity {
	color: var(--e-global-color-327d926);
}

.his-course-summary__value--capacity.closed {
    color: #FDB611;
}

.his-course-section {
	margin: 60px 0;
}

.his-course-single .his-course-section:nth-child(2) {
    margin-top: 0;
}

.his-course-section--center {
	text-align: center;
}

.his-course-section h2,
.his-course-related h2 {
	margin: 0 0 25px;
	font-size: 1.9rem;
	line-height: 1.3em;
	font-weight: 800;
	text-align: center;
}

.his-course-section.his-course-section--content h2 {
    font-size: 1.2rem;
    font-weight: 400;
    text-align: left;
    margin: 0;
}

.his-course-section.his-course-section--content .his-course-section__heading {
    justify-content: space-between;
    align-items: center;
}

@media (max-width:1024px) {
    .his-course-section.his-course-section--content .his-course-section__heading {
        justify-content: center;
        text-align: center;
    }
}

.his-course-section.his-course-section--content .his-course-section__heading_badge {
    display: flex;
    gap: 30px;
    justify-content: flex-start;
    align-items: center;
}

.his-course-section__heading {
	display: flex;
	margin-bottom: 25px;
	flex-wrap: wrap;
}

.his-course-curriculum {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px;
    padding-top: 20px;
}

@media (max-width: 1024px) {
	.his-course-curriculum {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.his-course-curriculum {
		grid-template-columns: 1fr;
		gap: 25px;
	}
}

.his-course-curriculum__col h3 {
	margin: 0 0 15px;
	font-size: 1.2rem;
	font-weight: 700;
}

.his-course-curriculum__col ul {
	margin: 0;
	padding-left: 18px;
}

.his-course-curriculum__col li {
	margin-bottom: 7px;
	line-height: 1.3em;
}

.his-course-text {
	font-size: 1rem;
	line-height: 1.3em;
}

.his-course-text.center {
	text-align: center;
}

.his-course-book__image {
	width: 158px;
    height: 182px;
	margin: 0 auto 20px;
	background: #D9D9D9;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.his-course-book__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 0 !important;
}

.his-course-book__title {
	font-size: 1rem;
	line-height: 1.3em;
}

.his-course-book__price {
	font-weight: 500;
}

.his-course-teacher__image {
	width: 204px;
	height: 208px;
	margin: 0 auto 20px;
	border-radius: 13px;
	overflow: hidden;
	background: #D9D9D9;
}

.his-course-teacher__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.his-course-teacher__name {
	font-size: 1.2rem;
	font-weight: 800;
	margin-bottom: 20px;
}

.his-course-teacher__role,
.his-course-teacher__desc {
	font-size: 1rem;
	line-height: 1.3em;
	margin-bottom: 10px;
}

.his-course-teacher__link {
	display: inline-block;
	padding: 5px 20px;
	border: 1px solid var(--e-global-color-text);
	border-radius: 13px;
	text-decoration: none;
	color: var(--e-global-color-text);
	font-size: 1rem;
}

.his-course-teacher__link:hover {
    background-color: var(--e-global-color-text);
    color: #fff;
}

.his-course-related__list {
	margin-top: 20px;
}

.his-course-related__semester {
	margin: 0 0 20px 0;
}

/* Barvy podle obdobi - stejne tridy/hodnoty jako v inc/css/courses-list.css
   (shortcode [his_courses]), duplikovano protoze tento list se nenacita na
   detailu kurzu. */
.his-courses-semester {
	border-left: 3px solid;
	padding-left: 10px;
}

.his-courses-semester--spring {
	border-left-color: #009B3B;
}

.his-courses-semester--summer {
	border-left-color: #F9C13E;
}

.his-courses-semester--autumn {
	border-left-color: #D9632B;
}

.his-courses-semester--winter {
	border-left-color: #007291;
}

.his-courses-semester--default {
	border-left-color: #F9F9F9;
}

.his-course-related__semester summary {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 15px 0;
	font-size: 1.3rem;
	line-height: 1.3em;
	border-bottom: 1.5px solid var(--e-global-color-text);
	cursor: pointer;
	user-select: none;
}

.his-course-related__semester summary::-webkit-details-marker {
	display: none;
}

.his-course-related__semester summary::marker {
	content: "";
}

.his-course-related__semester summary::before {
	content: "";
	width: 0;
	height: 0;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 9px solid var(--e-global-color-text);
	transform: rotate(-90deg);
	transition: transform .18s ease;
	flex: 0 0 auto;
}

.his-course-related__semester[open]>summary::before {
	transform: rotate(0deg);
}

.his-course-related__table-wrap {
	margin-top: 20px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: 13px;
}

.his-course-related__table-wrap::-webkit-scrollbar {
	height: 10px;
}

.his-course-related__table-wrap::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, .15);
	border-radius: 999px;
}

.his-course-related__table-wrap::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, .06);
	border-radius: 999px;
}

.his-course-related__table {
	width: 100%;
	min-width: 100px;
	border-collapse: separate;
	border-spacing: 0;
	background: #fff;
	border-radius: 13px;
	overflow: hidden;
	border: none !important;
}

.his-course-related__table tbody td {
	padding: 20px 10px;
	font-size: 1rem;
	line-height: 1.3em;
	vertical-align: middle;
	border: none;
	text-align: center;
	border-bottom: 1px solid #E0E0E0;
}

.his-course-related__table tbody tr:hover td {
	background: var(--e-global-color-c43df5b);
}


.his-course-related__table thead th {
	background: var(--e-global-color-c43df5b);
	padding: 10px;
	font-weight: 400;
	font-size: 1rem;
	text-align: center;
}

.his-course-related__table thead th:first-child {
	border-bottom-left-radius: 13px;
}

.his-course-related__table thead th:last-child {
	border-bottom-right-radius: 13px;
}

.his-course-related__table td a {
	color: inherit;
    text-decoration: underline;
}

.his-course-related__table .his-course-related__level,
.his-course-related__table .his-course-related__time,
.his-course-related__table .his-course-related__day,
.his-course-related__table .his-course-related__price,
.his-course-related__table .his-course-related__capacity {
	white-space: nowrap;
}

.his-course-related__table .his-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 5px 10px;
	border-radius: 8px;
}

.his-course-related__capacity {
	color: var(--e-global-color-327d926);
}

.his-course-related__capacity.closed {
	color: #FDB611;
}

.his-course-related__table .his-course-btn {
	padding: 8px 14px;
	border-radius: 13px;
	background: var(--e-global-color-327d926);
	color: #fff !important;
	font-weight: 500;
	text-decoration: none !important;
	white-space: nowrap;
	transition: transform .08s ease, background .15s ease;
}

.his-course-related__table .his-course-btn:hover,
.his-course-related__table .his-course-btn:focus,
.his-course-related__table .his-course-btn:active {
	color: #fff;
}


.his-course-btn--closed {
	font-weight: 500;
	white-space: nowrap;
}

.his-course-expected {
	display: grid;
	gap: 20px;
}

.his-course-expected__item:not(:first-child) {
	border-top: 1px solid #E0E0E0;
	padding-top: 20px;
}

.his-course-expected__summary {
	cursor: pointer;
	font-weight: 700;
}

.his-course-expected__summary span {
	padding-left: 10px;
}