/* Site-wide fixes on top of the parent theme — see inc/site.php */

/* The theme title-cases headings, labels and buttons ("Регистрация На ЕТ"). Bulgarian doesn't; keep text as written. */
.ct-contact-form-layout1.style1 h3 span,
.ct-contact-form-layout1.style2 input[type="submit"],
.ct-contact-form-layout1.style3 input[type="submit"],
.single-hentry .entry-readmore a span, .entry-holder .entry-readmore a span,
.ct-item-meta li.item-author a,
body.error404 .error-404-content .button-home,
#content .widget_product_categories ul li a, #content .widget_categories ul li a, #content .widget_nav_menu ul li a, #content .widget_pages ul li a, #content .widget_archive ul li a, #content .widget_meta ul li a,
#content .widget_recent_entries ul li a,
.entry-tags a,
.widget_text p:last-child,
.widget-title,
.widget_tag_cloud .widget-content .tagcloud a,
.comment-title,
.single .comment-form .form-submit .submit, .page-template-default .comment-form .form-submit .submit,
.ct-careers-grid1 .item--inner .item--holder .item--readmore,
.ct-search-form3 .ct-search-list,
.ct-heading .item--title,
.ct-heading .item--sub-title,
.ct-list.style2 .ct-list-item .ct-list-content,
.ct-text-editor.style2 p,
.ct-text-editor.style3 p,
.ct-team-carousel1 .item--image ul li a,
.ct-team-carousel1 .item--title,
.ct-team-carousel2 .item--image ul li a,
.ct-team-carousel2 .item--title,
.ct-team-grid1 .item--image ul li a,
.ct-link1.style4 ul li a,
.elementor-widget-progress .elementor-widget-container .elementor-title,
.ct-practice-grid1 .grid-item-inner .wrap-derection .item--holder .item--meta .item--title a,
.ct-practice-grid2 .grid-item-inner .wrap-derection .item--holder .item--meta .item--title a,
.ct-practice-grid3 .grid-item-inner .wrap-derection .item--holder .item--meta .item--title a,
.ct-timeline1 .ct-carousel-inner .item--inner .wrap-datetime .item--year,
.ct-timeline1 .ct-carousel-inner .item--inner .wrap-datetime .item--date,
.ct-fancy-box-carousel1 .item--inner .item--meta .item--title,
.ct-fancy-box-carousel2 .item--inner .item--holder .item--meta .item--featured,
.ct-fancy-box-carousel2 .item--inner .item--holder .item--meta .item--title,
.ct-fancy-box-carousel3 .item--inner .item--holder .item--meta .item--featured,
.ct-fancy-box-carousel3 .item--inner .item--holder .item--meta .item--title,
.ct-fancy-box-carousel4 .item--inner .item--holder .item--meta .item--title,
.woocommerce .woocommerce-notices-wrapper .woocommerce-message .button, .woocommerce-page .woocommerce-notices-wrapper .woocommerce-message .button,
body.woocommerce-cart .cart-collaterals .cart_totals > h2,
.woocommerce-checkout #customer_details .woocommerce-billing-fields > h3,
.woocommerce-checkout #customer_details .woocommerce-additional-fields > h3,
.woocommerce-checkout form.woocommerce-checkout #order_review_heading,
.single-lp_course #tab-reviews .course-rate__summary .course-rate__summary-text,
.single-lp_course #tab-reviews .course-rate__details .course-rate__details-row .course-rate__details-row-star, .single-lp_course #tab-reviews .course-rate__details .course-rate__details-row .course-rate__details-row-value .rating-count,
.ct-fancy-box-layout1 .item--inner .item--meta .item--title,
.ct-counter-layout2 .ct-counter-image .ct-counter-inner .ct-counter-title,
.ct-testimonial-carousel1 .item--holder .item--title,
.ct-testimonial-carousel1 .item--holder .item--position,
.ct-testimonial-carousel2 .item--meta .item--position {
	text-transform: none;
}

/* Practice grid: equal card heights so the masonry layout lines up in rows */
@media (min-width: 992px) {
	.ct-practice-grid2 .grid-item-inner {
		min-height: 350px;
	}
}

/* Filter tabs on the dark "Всички услуги" section of /uslugi/: rounded pills, one row (scrolls sideways on small screens) */
.page-id-923 .ct-practice-grid2 .grid-filter-wrap {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-bottom: 50px;
	padding: 4px 15px;
	overflow-x: auto;
	scrollbar-width: none;
}

.page-id-923 .ct-practice-grid2 .grid-filter-wrap::-webkit-scrollbar {
	display: none;
}

.page-id-923 .ct-practice-grid2 .grid-filter-wrap .filter-item {
	flex: 0 0 auto;
	margin: 0;
	padding: 11px 22px;
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 999px;
	background-color: rgba(255, 255, 255, .06);
	color: rgba(255, 255, 255, .85);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-transform: none;
	white-space: nowrap;
	backdrop-filter: blur(4px);
	transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.page-id-923 .ct-practice-grid2 .grid-filter-wrap .filter-item:hover {
	border-color: rgba(255, 255, 255, .6);
	background-color: rgba(255, 255, 255, .12);
	color: #fff;
}

.page-id-923 .ct-practice-grid2 .grid-filter-wrap .filter-item.active {
	border-color: #7f71f0;
	background-color: #7f71f0;
	color: #fff;
	box-shadow: 0 8px 24px -8px rgba(127, 113, 240, .7);
}

@media (max-width: 991px) {
	.page-id-923 .ct-practice-grid2 .grid-filter-wrap {
		justify-content: flex-start;
	}
}

/* Practice grid without an "all" tab (inc/site.php): hidden until the first category is applied */
.adv-filter-pending .ct-grid-masonry {
	opacity: 0;
}

.adv-no-all-filter .ct-grid-masonry {
	transition: opacity .3s ease;
}

/* Practice card hover turns the card orange — keep the category label and "Виж повече" readable on it */
.ct-practice-grid2 .grid-item-inner:hover .item--category a,
.ct-practice-grid2 .grid-item-inner:hover .item-readmore a,
.ct-practice-grid2 .grid-item-inner:hover .item-readmore a span {
	color: #fff;
}

/* Cards that the filter is hiding still animate at their old spots; clip them to the grid so they can't stretch the page below the footer */
.ct-practice-grid2 .ct-grid-masonry {
	overflow: hidden;
}

/* Home hero: on tablets and phones the text sits over the hand and paper, so darken the whole photo (desktop keeps the left-to-right gradient set in Elementor). */
@media screen and (max-width: 1024px) {
	.elementor-element-b67aa5e > .elementor-background-overlay {
		background: rgba(16, 22, 40, .72) !important;
		opacity: 1 !important;
	}
}
