/**
 * WebEngine CMS 1.2.6 Compatibility CSS
 * Template: America
 */

/* Cập nhật các style cho phiên bản 1.2.6 */
.webengine-online-bar {
    height: 10px;
}

.castle-owner-widget {
    margin-bottom: 20px;
}

/* Cập nhật style cho Admin Panel */
.webengine-admin-notice {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 3px;
    background-color: #d9edf7;
    border: 1px solid #bce8f1;
    color: #31708f;
}

/* Cập nhật cho các thành phần UI mới trong 1.2.6 */
.webengine-update-notification {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 3px;
}

/* News List Styles */
/* Video Background Styles */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: #000;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.news-list {
    margin: 0;
    padding: 0;
    background-color: rgba(0, 0, 0, 0.7);
}

.news-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

/* Enhance visibility over video background */
.site-wrapper {
    position: relative;
    z-index: 1;
}

.header, .site-content, .footer {
    background-color: rgba(0, 0, 0, 0.7);
}

.news-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.news-thumbnail {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 10px;
}

.news-item h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 36px; /* Doubled from 18px */
}

.news-item h4 a {
    color: #f4c20d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-item h4 a:hover {
    color: #f4c20d;
}

.news-meta {
    font-size: 24px; /* Tripled from 12px */
    color: #999;
}

.news-meta span {
    margin-right: 15px;
}

.news-author, .news-date {
    display: inline-block;
}

.news-meta i {
    margin-right: 5px;
}

@media (max-width: 767px) {
    .news-item .col-md-3,
    .news-item .col-md-9 {
        width: 100%;
    }

    .news-thumbnail {
        margin-bottom: 15px;
    }
}

/* Specific font size adjustments for header and footer */
.header__top-bar * {
    font-size: 130%; /* Header first section */
}

.header__secondary * {
    font-size: 95%; /* Header second section */
}

.header__primary * {
    font-size: 120%; /* Header third section */
}

.footer * {
    font-size: 100%; /* Footer text */
}

/* Di chuyển logo sang trái 50px */
.header-logo {
    margin-left: -200px;
}
.header-mobile__logo {
    margin-left: -200px;
}

/* LANGUAGE PICKER */
.webengine-language-switcher {
	display: inline-block;
	list-style: none;
	padding: 0px !important;
	margin: 0px !important;
	width: 46px;
	height: 19px;
	overflow: hidden;
	transition: all .3s ease;
}
.webengine-language-switcher:hover {
	width: 400px;
}
	.webengine-language-switcher li {
		display: inline-block;
		list-style-type: none;
		background: #333333;
		padding: 0px 5px 2px 5px;
		-webkit-border-radius: 3px;
		-moz-border-radius: 3px;
		border-radius: 3px;
		-khtml-border-radius: 3px;
		transition: all .3s ease;
	}
	.webengine-language-switcher li:hover {
		-webkit-filter: brightness(120%);
		filter: brightness(120%);
	}
	.webengine-language-switcher li a {
		color: #999999;
	}
	.webengine-language-switcher li a:hover {
		color: #ffffff !important;
	}

/* News title size adjustment */
.news-item h4 {
    font-size: 110%; /* News titles */
}

/* Header layout adjustments */
.header__primary-inner-flex {
    display: flex;
    align-items: center;
    width: 100%;
}

.online-users-display {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 5px 10px;
    margin-right: auto;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { text-shadow: 0 0 5px rgba(255,255,255,0.5); }
    50% { text-shadow: 0 0 15px rgba(255,255,255,0.8); }
    100% { text-shadow: 0 0 5px rgba(255,255,255,0.5); }
}