/*
Theme Name: Unicamp Child
Theme URI: https://unicamp.thememove.com/
Author: ThemeMove
Author URI: https://thememove.com/
Version: 1.0.3
Template: unicamp
Text Domain: unicamp-child
Tags: editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready
*/

.woocommerce-no-js .page-main-content * {
	opacity: 1 !important;
	visibility: visible !important;
}

.single-post .page-main-content {
	padding-bottom: 64px !important;
}

.header-right-inner .header-right-inner-content .header-search-form {
	@media (max-width: 767px) {
		max-width: 100%;
    }
}

/* Tutor LMS custom fields — sidebar card */
.tlcf-sidebar-content {
	margin-bottom: 16px;
}

.tlcf-sidebar-content .tlcf-row {
	display: flex;
	gap: 12px;
}

.tlcf-sidebar-content .tlcf-row:not(:first-child) {
	margin-top: 8px;
}

.tlcf-sidebar-content .tlcf-label {
	font-weight: 700;
	color: #222;
	min-width: 70px;
}

.tlcf-sidebar-content .tlcf-value {
	color: #888;
}

.tlcf-sidebar-content .tlcf-row--price .tlcf-value,
.tlcf-sidebar-content .tlcf-price {
	color: #d0342c;
	font-weight: 700;
}

.tlcf-sidebar-content .tlcf-row--info {
	margin-top: 24px !important;
}

.tlcf-sidebar-content .tlcf-row--info .tlcf-label {
	display: none;
}

.tutor-price-preview-box > *:not(.tlcf-sidebar-content) {
	display: none;
}

.tutor-single-course-sidebar:not(:has(.tlcf-sidebar-content)) {
	display: none !important;
}

/* Single course (layout 01): below lg, show the sidebar (price preview box)
   right under the course title/lead info instead of after the main content. */
.single-courses.single-course-01
	.tutor-full-width-course-body
	> .container
	> .row
	> .col-lg-4 {
	@media (max-width: 991px) {
		order: -1;
	}
}

.course-loop-wrapper .course-loop-badges {
	display: none;
}

.wpcf7-response-output:empty {
	display: none;
}

.course-loop-title {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;

	@media screen and (max-width: 768px) {
		font-size: 18px;
	}
}

.course-loop-date {
	margin: 12px 0 0;
	font-size: 14px;
	line-height: 1.5;
	color: #888;
}

.course-loop-date-label {
	font-weight: 500;
	color: #222;
}

.course-loop-date-value {
	display: inline-block;
	white-space: nowrap;
}

.course-loop-price .price {
	font-size: 14px;
	font-weight: 500;
}

.single-courses.single-course-01 .tutor-single-course-lead-info {
	@media (min-width: 992px) {
		min-height: 220px;
	}
}

.page-title-bar-fixed .page-title-bar-inner {
	@media screen and (max-width: 992px) {
		position: relative;
	}
}

.tlcf-benefits-preview-box {
	margin-top: 6px;
}

.tlcf-row.tlcf-row--benefits {
	display: block;
}

.tlcf-row--benefits .tlcf-label {
	margin-bottom: 4px;
}

.tlcf-row--benefits p {
	line-height: 1.65;
}

.tutor-single-course-lead-info .tutor-course-badges-wrap {
	display: none !important;
}

.hidden-fields-container {
	border: none !important;
}

.tutor-question-and-answer-wrap {
	display: none !important;
}

.tutor-single-course-segment.tutor-attachments-wrap {
	display: none !important;
}

.tutor-course-details-content .tutor-segment-title {
	display: none;
}

.has-cat-banner.tax-course-category .page-title-bar-01 .page-title-bar-bg,
.has-cat-banner.tax-course-location .page-title-bar-01 .page-title-bar-bg,
.has-cat-banner.category .page-title-bar-02 .page-title-bar-bg {
	background-image: var(--uc-cat-banner) !important;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.has-cat-banner.category .page-title-bar-02 .page-title-bar-bg:before {
	background-color: rgba(0, 0, 0, 0.5);
}

.has-cat-banner.category-vesti .page-title-bar-02 .page-title-bar-bg {
	    background-position: bottom;
}


.has-cat-banner.single-courses.single-course-01 .tutor-course-top-info {
	background-image:
		linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
		var(--uc-cat-banner) !important;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.has-cat-banner.tax-course-category .insight_core_breadcrumb li:last-child,
.has-cat-banner.tax-course-location .insight_core_breadcrumb li:last-child,
.has-cat-banner.single-courses.single-course-01
	.insight_core_breadcrumb
	li:last-child,
.has-cat-banner.single-courses.single-course-01 .tutor-course-header-h1,
.has-cat-banner.tax-course-category .page-title-bar-01 .heading,
.has-cat-banner.tax-course-location .page-title-bar-01 .heading {
	color: #fff !important;
}

.has-cat-banner.single-courses.single-course-01
	.tutor-course-header-categories
	a:hover,
.has-cat-banner.single-courses.single-course-01
	.tutor-course-header-categories
	a:focus {
	color: #fff !important;
}

.has-cat-banner.single-courses .page-title-bar-04 .page-title-bar-inner {
	@media (max-width: 1199px) {
		padding-top: 16px;
		padding-bottom: 16px;
	}
}

.has-cat-banner.single-courses.single-course-01
	.insight_core_breadcrumb
	li:last-child {
	@media (max-width: 992px) {
		color: #000 !important;
	}
}

.page-title-bar-01 .page-title-bar-inner {
	@media screen and (max-width: 1200px) {
		padding-top: 24px !important;
	}
}

.unicamp-mailchimp-form input[type='email']::-webkit-input-placeholder {
	color: #9b9b9b !important;
}

body.search .unicamp-blog.unicamp-grid-wrapper .post-item .post-thumbnail {
	height: 100px;
}

.unicamp-blog.unicamp-grid-wrapper .post-item .post-thumbnail {
	height: 150px;
	overflow: hidden;
}

.unicamp-blog.unicamp-grid-wrapper .post-item .post-thumbnail > a {
	display: block;
	height: 100%;
}

.unicamp-blog.unicamp-grid-wrapper .post-item .post-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.unicamp-blog.unicamp-grid-wrapper .post-item .post-thumbnail--placeholder {
	background-color: #e5e5e5;
}

/* .unicamp-blog.unicamp-grid-wrapper .post-categories--empty {
	min-height: 26px;
} */

.wp-singular .page-content a[href]:not([class]) {
	color: #cb4040;
}

.wp-singular .page-content a[href]:not([class]):hover {
	color: #ae152d;
}

/* Course Carousel (Tutor LMS Elementor Addons) cards: "Mesto" / "Cena" rows below the title */
.tlcf-card-details {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.5;
	color: #888;
}

.tlcf-card-row + .tlcf-card-row {
	margin-top: 4px;
}

.tlcf-card-label {
	font-weight: 500;
	color: #222;
}

/* Modern Slider: two buttons side by side (Button 2 added in unicamp-child/inc/modern-slider).
   Styles 01/03/05 lay the buttons out in the .slide-layer; styles 02/04 in .button-wrap itself. */
.tm-modern-slider .button-wrap.has-two-buttons .slide-layer,
.tm-modern-slider .button-wrap.has-two-buttons:not(.slide-layer-wrap) {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 16px;
	vertical-align: top;
}

/* Contact Form 7: validation messages without layout shift.
   Each tip is drawn in the paragraph gap below its field, so the fields,
   the button and the page stay where they are when errors appear. */
.wpcf7-form .wpcf7-form-control-wrap {
	display: block;
	position: relative;
}

/* Block control, so the tip's position does not depend on the baseline gap. */
.wpcf7-form .wpcf7-form-control-wrap > .wpcf7-text {
	display: block;
}

/* Course signup form: the <br> after each field would become an empty line
   once the wrap is a block. */
.wpcf7-form .wpcf7-form-control-wrap + br {
	display: none;
}

.wpcf7-form .wpcf7-form-control-wrap .wpcf7-not-valid-tip {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin: 4px 0 0;
	font-size: 12px;
	line-height: 18px;
	font-weight: 500;
	color: #d9534f;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	animation: cf7-tip-in 0.2s ease-out;
}

/* Invalid field: red border in the theme's error color, same width, so nothing moves. */
.wpcf7-form .wpcf7-not-valid {
	border-color: #d9534f;
}

@keyframes cf7-tip-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* Space above the submit button, so a tip under the last field keeps its distance. */
.wpcf7-form .wpcf7-submit {
	margin-top: 12px;
}
