/*
Theme Name: JNews - Child Theme
Version: 1.0.0
Theme URI: http://themeforest.net/?ref=jegtheme
Description: A basic starter child theme for customization purpose of JNews theme.
Author: Jegtheme
Author URI: http://themeforest.net/user/jegtheme?ref=jegtheme
Template: jnews
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ------------------------------------------------------------------------- *
 *  Theme customization starts here
/* ------------------------------------------------------------------------- */

/* =============================================
   Module 18: SVG background on column div
   ============================================= */

/* Full-width column (single post per row) */
.jeg_posts_row > .col-sm-12.jeg_post_has_bg {
	position: relative;
	background-size: 100% 100%;
	background-position: center;
	background-repeat: no-repeat;
}

/* Paired column (two posts per row) */
.jeg_posts_row_pair > .col-sm-6.jeg_post_has_bg {
	position: relative;
	background-size: 100% 100%;
	background-position: center;
	background-repeat: no-repeat;
}

/* Content sits above the background */
.jeg_post_has_bg .jeg_pl_lg_8_article_wrapper {
	position: relative;
	z-index: 1;
}

/* =============================================
   Full-width post WITH image – content padding
   ============================================= */
.col-sm-12.jeg_col_with_thumb .jeg_postblock_content {
	margin: 0 auto;
	padding: 4rem 5rem 7rem;
	box-sizing: border-box;
}

/* =============================================
   Full-width post WITHOUT image – content padding
   ============================================= */
.col-sm-12.jeg_col_no_thumb .jeg_postblock_content {
	margin: 0 auto;
	padding: 4rem 4rem 2rem;
	box-sizing: border-box;
}

/* =============================================
   Paired row – WITH image column
   ============================================= */
.jeg_posts_row_pair .jeg_col_with_thumb .jeg_postblock_content {
	padding: 2rem 1.5rem 5.5rem;
	box-sizing: border-box;
}

/* =============================================
   Paired row – WITHOUT image column
   ============================================= */
.jeg_posts_row_pair .jeg_col_no_thumb .jeg_postblock_content {
	padding: 2rem 2.5rem 3.5rem;
	box-sizing: border-box;
	color:#fff
}

/* =============================================
   Featured image styling
   ============================================= */
.jeg_pl_lg_8_has_thumb .jeg_thumb {
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
	display: block;
}
.jeg_pl_lg_8_has_thumb .jeg_thumb a,
.jeg_pl_lg_8_has_thumb .jeg_thumb img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0px !important;
}
.thumbnail-container.animate-lazy {
	border-radius: 40px;
}

/* Keep featured image inside the card background shape */
.jeg_pl_lg_8_has_thumb .jeg_thumb .thumbnail-container {
	overflow: hidden;
	border-radius: 40px;
}

.jeg_pl_lg_8_has_thumb .jeg_thumb .thumbnail-container img {
	width: 100%;
	/* height: 100% !important;
	object-fit: cover !important; */
}

/* Control card image ratio via class instead of inline style */
.jeg_post.jeg_pl_lg_8 .jeg_thumb .thumbnail-container.animate-lazy {
	height: 0;
	padding-bottom: 65% !important;
}

/* =============================================
   Excerpt line clamping
   ============================================= */
.jeg_pl_lg_8_has_thumb .jeg_pl_lg_8_excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.jeg_pl_lg_8_no_thumb .jeg_pl_lg_8_excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.jeg_pl_lg_8_excerpt p {
	margin: 0.5em 0 0;
}

/* =============================================
   No-thumb wrapper minimum height
   ============================================= */
.jeg_pl_lg_8_article_wrapper.jeg_pl_lg_8_no_thumb {
	min-height: 200px;
}

/* =============================================
   Module 18: hide social share and like/dislike
   ============================================= */
.jeg_post.jeg_pl_lg_8 .jeg_share_button,
.jeg_post.jeg_pl_lg_8 .jeg_reaction.jeg_meta_like {
	display: none !important;
}
.col-sm-6.jeg_col_no_thumb.jeg_post_has_bg {
	max-width: 342px;
}

/* On mobile, no-thumb cards should never be capped to 342px */
@media (max-width: 767px) {
	.col-sm-6.jeg_col_no_thumb.jeg_post_has_bg {
		max-width: 100%;
	}
}
.jeg_post_title a {
	color:#fff !important;
}

/* =============================================
   Category badge – half inside, half outside
   top-right corner of the featured image
   ============================================= */
.jeg_pl_lg_8_has_thumb .jeg_thumb {
	overflow: visible !important;
}
.jeg_post.jeg_pl_lg_8.jeg_pl_lg_8_no_thumb .jeg_postblock_content {
	position: relative;
}
.jeg_pl_lg_8_cat_badge {
	position: absolute !important;
	top: -20px !important;
	right: -10px !important;
	z-index: 10 !important;
}
.jeg_post.jeg_pl_lg_8.jeg_pl_lg_8_no_thumb .jeg_no_thumb_cat_badge_wrap .jeg_pl_lg_8_cat_badge {
	top: -16px !important;
	right: 12px !important;
}
.jeg_pl_lg_8_cat_badge .jeg_cat_image {
	max-height: 50px !important;
	width: auto !important;
	display: block !important;
}
.jeg_pl_lg_8_cat_badge.jeg_cat_badge_text {
	top: -14px !important;
	right: -8px !important;
	font-size: 11px !important;
	padding: 5px 10px !important;
	border-radius: 6px !important;
}
.jeg_pl_lg_8_has_thumb .jeg_pl_lg_8_excerpt p{
	color:#fff;
}

/* =============================================
   Área do Professor (account / professor-area)
   ============================================= */
.professor-area {
	background: #fff;
}

.professor-area__inner {
	max-width: 720px;
	padding: 0 0 2rem;
}

.professor-area__back-wrap {
	margin: 0 0 1.25rem;
	padding-left: 0.25rem;
}

.professor-area__back-link {
	color: #1565c0;
	text-decoration: none;
	font-size: 0.95rem;
}

.professor-area__back-link:hover {
	color: #0d47a1;
	text-decoration: underline;
}

.professor-area__section {
	margin-top: 2.5rem;
}

.professor-area__section:first-child {
	margin-top: 0;
}

.professor-area__section-head {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin: 0 0 1.25rem;
	padding: 0;
}

.professor-area__section-head--videos {
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem 1rem;
}

.professor-area__section-head-main {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	min-width: 0;
}

.professor-area__add-video {
	flex-shrink: 0;
	display: inline-block;
	padding: 0.45rem 0.9rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #fff;
	background: #1565c0;
	border-radius: 6px;
	text-decoration: none;
	line-height: 1.3;
}

.professor-area__add-video:hover {
	background: #0d47a1;
	color: #fff;
}

.professor-area__notice {
	margin: 0 0 1rem;
	padding: 0.65rem 0.85rem;
	border-radius: 6px;
	font-size: 0.9rem;
	line-height: 1.4;
}

.professor-area__notice--success {
	background: #e8f5e9;
	color: #1b5e20;
	border: 1px solid #a5d6a7;
}

.professor-area__notice--error {
	background: #ffebee;
	color: #b71c1c;
	border: 1px solid #ef9a9a;
}

.professor-area__section-icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	display: block;
}

.professor-area__section-title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
	color: #111;
}

.professor-area__list {
	list-style: none;
	margin: 0;
	padding: 0 0 0 0.25rem;
}

.professor-area__row {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	margin: 0;
	padding: 0.65rem 0;
	border-bottom: 1px solid #eee;
}

.professor-area__row--material {
	align-items: center;
	flex-wrap: wrap;
}

.professor-area__row--material .professor-area__link-text {
	flex: 1;
	min-width: 0;
}

.professor-area__material-empty-body {
	flex: 1;
	min-width: 0;
}

.professor-area__material-empty-action {
	margin: 0.5rem 0 0;
}

.professor-area__material-menu-details {
	position: relative;
	flex-shrink: 0;
	margin-left: auto;
}

.professor-area__material-menu {
	list-style: none;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: none;
	background: transparent;
	color: #757575;
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.professor-area__material-menu::-webkit-details-marker {
	display: none;
}

.professor-area__material-menu:hover {
	background: #f5f5f5;
	color: #333;
}

.professor-area__row--material-empty {
	align-items: flex-start;
}

.professor-area__row:last-child {
	border-bottom: none;
}

.professor-area__row-icon {
	flex-shrink: 0;
	margin-top: 2px;
	line-height: 0;
}

.professor-area__row-icon--spacer {
	display: inline-block;
	width: 20px;
	height: 20px;
}

.professor-area__item-text {
	margin: 0;
	flex: 1;
	min-width: 0;
	color: #111;
	font-size: 0.95rem;
	line-height: 1.45;
}

a.professor-area__item-link {
	text-decoration: none;
	display: block;
}

a.professor-area__item-link:hover {
	color: #0d47a1;
}

.professor-area__link-text {
	color: #111;
	text-decoration: none;
	font-size: 0.95rem;
	line-height: 1.45;
}

.professor-area__link-text:hover {
	color: #0d47a1;
}

.professor-area__download-label {
	font-weight: 700;
	text-transform: uppercase;
	color: #111;
}

.professor-area__footer-link-wrap {
	margin: 1rem 0 0;
	padding-left: 0.25rem;
}

.professor-area__see-all {
	color: #1565c0;
	text-decoration: underline;
	font-size: 0.95rem;
}

.professor-area__see-all:hover {
	color: #0d47a1;
}

/* Video cards (playlist-style) */
.professor-area__video-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.professor-area__video-card {
	position: relative;
	display: flex;
	flex-direction: row;
	gap: 0.85rem;
	padding: 0.85rem 2rem 0.85rem 0;
	border-bottom: 1px solid #eee;
	align-items: flex-start;
}

.professor-area__video-card:last-child {
	border-bottom: none;
}

.professor-area__video-menu {
	position: absolute;
	top: 0.5rem;
	right: 0;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: none;
	background: transparent;
	color: #757575;
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	border-radius: 50%;
}

.professor-area__video-menu:hover {
	background: #f5f5f5;
	color: #333;
}

.professor-area__video-menu-details {
	position: absolute;
	top: 0.35rem;
	right: 0;
	z-index: 2;
}

.professor-area__video-menu-details .professor-area__video-menu {
	position: static;
	list-style: none;
}

.professor-area__video-menu-details .professor-area__video-menu::-webkit-details-marker {
	display: none;
}

.professor-area__video-menu-panel {
	position: absolute;
	right: 0;
	top: 100%;
	margin-top: 2px;
	min-width: 10rem;
	padding: 0.35rem 0;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.professor-area__video-remove {
	display: block;
	width: 100%;
	padding: 0.4rem 0.65rem;
	border: none;
	background: transparent;
	color: #c62828;
	font-size: 0.85rem;
	text-align: left;
	cursor: pointer;
}

.professor-area__video-remove:hover {
	background: #ffebee;
}

.professor-area__video-card--empty {
	flex-direction: column;
	align-items: flex-start;
	padding-right: 0;
	border-bottom: none;
}

.professor-area__video-empty-msg {
	margin: 0;
	font-size: 0.95rem;
	color: #757575;
}

.professor-area__video-empty-action {
	margin: 0.5rem 0 0;
}

/* Add-video form */
.professor-area__video-form {
	max-width: 32rem;
}

.professor-area__field {
	margin: 0 0 1.1rem;
}

.professor-area__label {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	margin: 0 0 0.35rem;
	color: #111;
}

.professor-area__input,
.professor-area__textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.5rem 0.65rem;
	font-size: 0.95rem;
	border: 1px solid #ccc;
	border-radius: 6px;
	box-sizing: border-box;
}

.professor-area__input--narrow {
	max-width: 8rem;
}

.professor-area__input--file {
	padding: 0.35rem 0;
	font-size: 0.9rem;
}

.professor-area__hint {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.8rem;
	color: #757575;
}

.professor-area__form-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
	margin: 1.5rem 0 0;
}

.professor-area__submit {
	padding: 0.55rem 1.1rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: #fff;
	background: #1565c0;
	border: none;
	border-radius: 6px;
	cursor: pointer;
}

.professor-area__submit:hover {
	background: #0d47a1;
}

.professor-area__cancel {
	font-size: 0.95rem;
	color: #1565c0;
	text-decoration: underline;
}

.professor-area__video-thumb-wrap {
	position: relative;
	flex-shrink: 0;
	width: 168px;
	max-width: 38%;
	text-decoration: none;
	display: block;
}

.professor-area__video-thumb {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 8px;
	background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
}

.professor-area__video-thumb--placeholder {
	min-height: 94px;
}

.professor-area__video-duration {
	position: absolute;
	right: 6px;
	bottom: 6px;
	padding: 2px 5px;
	font-size: 11px;
	font-weight: 600;
	color: #fff;
	background: rgba(0, 0, 0, 0.78);
	border-radius: 3px;
	line-height: 1.2;
	pointer-events: none;
}

.professor-area__video-body {
	min-width: 0;
	flex: 1;
	padding-top: 0;
}

.professor-area__video-title {
	display: block;
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.35;
	color: #111;
	text-decoration: none;
	margin: 0 0 0.35rem;
}

.professor-area__video-title:hover {
	color: #1565c0;
}

.professor-area__video-meta {
	margin: 0 0 0.4rem;
	font-size: 0.8rem;
	color: #757575;
	line-height: 1.3;
}

.professor-area__video-channel {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0 0 0.4rem;
	flex-wrap: wrap;
}

.professor-area__video-channel-avatar {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #bdbdbd;
	flex-shrink: 0;
}

.professor-area__video-channel-name {
	font-size: 0.8rem;
	color: #424242;
}

.professor-area__video-verified {
	display: inline-flex;
	line-height: 0;
}

.professor-area__video-desc {
	margin: 0;
	font-size: 0.8rem;
	color: #757575;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (max-width: 600px) {
	.professor-area__video-card {
		flex-direction: column;
		padding-right: 0;
	}

	.professor-area__video-thumb-wrap {
		max-width: 100%;
		width: 100%;
	}

	.professor-area__video-menu {
		right: -0.25rem;
	}
}