/*
Theme Name: Astra Child
Description: Child theme of Astra
Author: Auto-generated
Template: astra
Version: 1.0.0
*/

@import url('../astra/style.css');

/* Pagina de curso: ast-container en columna en PC (banner y contenido uno debajo del otro) */
@media (min-width: 922px) {
	.single-stm-courses .site-content .ast-container,
	.site-content .ast-container {
		display: flex !important;
		flex-direction: column !important;
	}
}

/* Oculta lista de deseos y compartir en pagina de curso (MasterStudy) */
.masterstudy-single-course-sleek-sidebar__buttons,
.masterstudy-single-course__buttons {
	display: none !important;
	visibility: hidden !important;
}

/* Oculta bloques adicionales Requisitos del curso y Publico objetivo (contenido ya en pestanas) */
.masterstudy-single-course-sleek-sidebar__additional-info {
	display: none !important;
}

/* Oculta barra de widgets (Archives, Categories, etc.) en pagina de curso */
.masterstudy-single-course-widgets {
	display: none !important;
}

/* Color titulo y titulos de pestañas de curso (MasterStudy) */
.masterstudy-single-course-sleek-sidebar .masterstudy-single-course-title,
.masterstudy-single-course-sleek-sidebar .masterstudy-single-course-tabs__container-title,
h1.masterstudy-single-course-title,
span.masterstudy-single-course-tabs__container-title {
	color: #000066 !important;
}

/* Alineacion icono + texto en titulos de pestañas (iconos inyectados como HTML) */
.astra-tab-label {
	display: inline-flex !important;
	align-items: center !important;
}
.astra-tab-label .astra-tab-icon {
	width: 22px;
	height: 22px;
	margin-right: 8px;
	flex-shrink: 0;
	vertical-align: middle;
}

/* Hover y activo en lista de pestañas del curso (sidebar) */
.masterstudy-single-course-sleek-sidebar .masterstudy-single-course-tabs__item:hover,
.masterstudy-single-course-sleek-sidebar .masterstudy-single-course-tabs__item.masterstudy-single-course-tabs__item_active {
	background: rgba(255, 229, 36, 0.2) !important;
}
.masterstudy-single-course-sleek-sidebar .masterstudy-single-course-tabs__item:hover .astra-tab-label,
.masterstudy-single-course-sleek-sidebar .masterstudy-single-course-tabs__item:hover .astra-tab-text,
.masterstudy-single-course-sleek-sidebar .masterstudy-single-course-tabs__item.masterstudy-single-course-tabs__item_active .astra-tab-label,
.masterstudy-single-course-sleek-sidebar .masterstudy-single-course-tabs__item.masterstudy-single-course-tabs__item_active .astra-tab-text {
	color: #FFBF43 !important;
}
.masterstudy-single-course-sleek-sidebar .masterstudy-single-course-tabs__item:hover .astra-tab-icon path,
.masterstudy-single-course-sleek-sidebar .masterstudy-single-course-tabs__item:hover .astra-tab-icon g,
.masterstudy-single-course-sleek-sidebar .masterstudy-single-course-tabs__item.masterstudy-single-course-tabs__item_active .astra-tab-icon path,
.masterstudy-single-course-sleek-sidebar .masterstudy-single-course-tabs__item.masterstudy-single-course-tabs__item_active .astra-tab-icon g {
	fill: #FFBF43 !important;
	stroke: #FFBF43 !important;
}

@media (max-width: 1023.98px) {
	.masterstudy-single-course-sleek-sidebar .masterstudy-single-course-tabs {
		margin-bottom: 0 !important;
	}
}

/* Fondo y borde del bloque inferior de la tarjeta de curso (preview + precios) */
.ms_lms_courses_card_item_info_bottom_wrapper {
	background-color: #000066 !important;
	border-radius: 8px !important;
	color: #fff !important;
}
.ms_lms_courses_card_item_info_bottom_wrapper a,
.ms_lms_courses_card_item_info_bottom_wrapper a span,
.ms_lms_courses_card_item_info_bottom_wrapper .ms_lms_courses_card_item_info_price_preview,
.ms_lms_courses_card_item_info_bottom_wrapper .ms_lms_courses_card_item_info_price_preview span,
.ms_lms_courses_card_item_info_bottom_wrapper .ms_lms_courses_card_item_info_price,
.ms_lms_courses_card_item_info_bottom_wrapper .ms_lms_courses_card_item_info_price_single,
.ms_lms_courses_card_item_info_bottom_wrapper .ms_lms_courses_card_item_info_price_sale,
.ms_lms_courses_card_item_info_bottom_wrapper .ms_lms_courses_card_item_info_price span {
	color: #fff !important;
}

/* Cuenta de usuario: solo ocultar estos elementos (no contenedores enteros) */
/* 1. Visita el perfil público */
body a.masterstudy-account-profile__link,
body a[href*="instructor-public-account"][target="_blank"] {
	display: none !important;
	visibility: hidden !important;
}
/* 2. Titulo "Analítica", pestañas (Todo el tiempo/Año/Mes/etc.), boton "Informes detallados" (no el contenedor) */
.masterstudy-analytics-short-report-page__title,
.masterstudy-analytics-short-report-page__tabs,
a[data-id="user-detailed-report"],
a.masterstudy-button[data-id="user-detailed-report"] {
	display: none !important;
}
/* 3. Solo el bloque Ganancia ($0.00) */
.masterstudy-stats-block.masterstudy-stats-block_revenue,
.masterstudy-stats-block_revenue {
	display: none !important;
}
.masterstudy-analytics-short-report-page-stats__block:has(.masterstudy-stats-block_revenue) {
	display: none !important;
}
/* 4. Solo el bloque Pedidos */
.masterstudy-stats-block.masterstudy-stats-block_orders,
.masterstudy-stats-block_orders {
	display: none !important;
}
/* 5. Items del menu: Analítica y Mis ventas (enlace + fila) */
body a.masterstudy-account-menu__list-item[href*="analytics"],
body li:has(> a.masterstudy-account-menu__list-item[href*="analytics"]),
body a.masterstudy-account-menu__list-item[href*="sales"],
body li:has(> a.masterstudy-account-menu__list-item[href*="sales"]) {
	display: none !important;
	visibility: hidden !important;
}
/* 6. Bloque "Cursos 1" (masterstudy-enrolled-courses-sorting) */
body .masterstudy-enrolled-courses-sorting {
	display: none !important;
	visibility: hidden !important;
}
