/*
Theme Name: Sala
Theme URI: https://sala.edu.vn
Author: SALA
Author URI: https://sala.edu.vn
Description: Theme WordPress chuyển đổi từ source PHP tĩnh của Trung tâm ngoại ngữ SALA Đà Nẵng. Bootstrap 4 + Font Awesome 5 + font Bauhaus.
Version: 1.1.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sala
Tags: custom-logo, custom-menu, featured-images, threaded-comments

Sala WordPress Theme, (C) 2026 SALA Language Center
Sala is distributed under the terms of the GNU GPL v2 or later.
*/

/* ---------- Font Bauhaus (chuyển từ style/custom.css, trỏ vào thư mục fonts/) ---------- */
@font-face {
	font-family: 'Bauhaus';
	src: url('fonts/Bauhaus-Medium.woff2') format('woff2'),
		url('fonts/Bauhaus-Medium.woff') format('woff'),
		url('fonts/Bauhaus-Medium.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

/* ---------- custom.css gốc ---------- */
.video-container {
	position: relative;
	padding-bottom: 56.25%;
	padding-top: 30px; height: 0; overflow: hidden;
}
.video-container iframe,
.video-container object,
.video-container embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.hdplay {
	position: relative;
	display: inline-block;
}
.hdplay.sala-gallery::before { content: "\f03e"; } /* icon ảnh thay cho icon play khi là album */
.hdplay::before {
	content: '\f04b';
	z-index: 5;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate( -50%, -50% );
	padding: 3px 15px 3px 25px;
	color: rgba(255, 255, 255, 0.7);
	font-family: 'Font Awesome\ 5 Free';
	font-size: 50px !important;
	font-weight: 900;
	background-color: rgba(23, 35, 34, 0.5);
	border-radius: 5px 5px 5px 5px;
}

.bauhaus {font-family: 'Bauhaus';}
.font-16 {font-size:16px; transform: scaleY(1.3);}
h2 { padding: 30px 0; font-size: 39px; }
#tophead {
	background-color: #8f1d5d;
	float: left;
	width: 100%;
	clear: both;
}
.top-news {
	float: left;
	color: #fff;
	font-size: 16px;
	white-space: nowrap;
}
.top-news-title{
	background: #e85a7d none repeat scroll 0 0;
	display: block;
	float: left;
	margin-left: -500px;
	padding: 0px 6px 0px 500px;
	position: relative;
	font-weight: 600;
}
.top-news-title::after{
	border-right: 16px solid #8f1d5d;
	border-top: 24px solid #e85a7d;
	content: "";
	display: inline;
	float: right;
	position: absolute;
	right: -16px;
	top: 0;
	bottom: 0;
}
.top-news a{ width:100%; color:#fff; padding-left:30px; }
.top-news a:hover{ color:#fff; }
#mainhead {
	clear: both;
}
.branding { padding: 10px 0; }
.branding img { height: 80px; width: auto; }
.branding-c { padding-top: 45px; }
.branding-c .circle {
	background-color: #901d5e;
	font-size: 18px;
	color: #fff;
	border-radius: 16px;
}
.branding-c .info {
	font-size: 17px;
	color: #901d5e;
	padding-left: 8px;
}
nav.navbar {
	background-color: #59266a;
	color: #fff;
	font-size: 16px;
}
nav.navbar a { color: #fff; }
nav.navbar .dropdown-menu a { color: #212529; }
nav.navbar .navbar-toggler { color: #fff; border-color: #fff; }
.nav-item { margin: 0 16px; -webkit-transform: scaleY(1.3); transform: scaleY(1.3); }

.carousel-item img { max-height: 550px; object-fit:cover; }
#carousel { min-height: 60px; background-color: #59266a; } /* không để nội dung chui dưới navbar khi ảnh slide chưa tải */
.sala-nav-spacer { height: 48px; background-color: #59266a; }

.intro {
	max-width: 840px;
	width: 100%;
	margin: -120px auto 0 auto;
	font-size: 21px;
}
.intro div { padding: 15px; }
.intro span { color: #fff; display: block; }

.whyc { font-size: 32px; margin: 45px auto; }
.why {
	max-width: 840px;
	width: 100%;
	margin: 0 auto;
}
.why .left td { padding-top: 45px; text-align: right; font-size: 25px; }
.why .left td img { width: 45px; height: 45px; margin-left: 15px; }
.why .right td { padding-top: 45px; text-align: left; font-size: 21px; }
.why .right td img { width: 45px; height: 45px; margin-right: 15px; }

.whyv {
	max-width: 920px;
	width: 100%;
	margin: 0 auto;
}
.whyv .left td { padding-top: 20px; text-align: right; font-size: 17px; }
.whyv .left td img { width: 45px; height: 45px; margin-left: 15px; }
.whyv .right td { padding-top: 40px; text-align: left; font-size: 17px; }
.whyv .right td img { width: 45px; height: 45px; margin-right: 15px; }

.khoahoc { color: #fff; text-decoration: underline; }
.giupban h2 { color: #294988; }
.giupban img { width: 100%; height: 230px; display: block; object-fit: cover; }
.giupban span { font-size: 16px; color: #fff; padding: 5px; margin: 5px 0 35px 0; display: block; }
.giupban a { text-decoration: none; }

.hoatdong div { padding: 0; }

.ndkh {	background-color: #f1f1f2; }
.ndkh .title { color: #6f3e98; font-size: 29px; margin-top: 15px; }
.ndkh .content { font-size: 19px; font-weight: 400; padding: 0 10px; }
.ndkh span { display: block; font-size: 32px; background-color: #6f3e98; color: #fff; margin: 0 -15px; }
.ndkh a { color: inherit; text-decoration: none; }

.footer { color: #fff; }

.deal {
	position: fixed;
	bottom: 0;
	right: 0;
	margin-left: 100px;
	cursor:pointer;
}

.dangky-button{
	z-index: 999999;
	position: fixed;
	bottom: 90px;
	padding: 1px 10px;
	background-color: rgba(237, 142, 86, 0.9);
	font-size: 15px;
	cursor:pointer;
}

/* ---------- Bổ sung cho WordPress ---------- */
.sala-page-content { padding: 30px 0; }
.sala-page-content img { max-width: 100%; height: auto; }
.sala-post-meta { color: #888; font-size: 14px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.sala-pagination .page-numbers { display: inline-block; padding: 6px 12px; margin: 0 2px; color: #59266a; border: 1px solid #ddd; border-radius: 4px; }
.sala-pagination .page-numbers.current { background: #59266a; color: #fff; }

/* Nút & thẻ theo màu thương hiệu */
.btn-sala { background-color: #59266a; border-color: #59266a; color: #fff; }
.btn-sala:hover, .btn-sala:focus { background-color: #901d5e; border-color: #901d5e; color: #fff; }
.btn-sala-light { background-color: #fff; border-color: #fff; color: #7f3982; }
.btn-sala-light:hover { background-color: #f6e4ef; color: #59266a; }
.sala-search .form-control { border-color: #59266a; }
.sala-search { max-width: 520px; margin: 0 auto; }
.sala-card { display: block; color: inherit; }
.sala-card:hover span { opacity: .9; }
.sala-card-placeholder { width: 100%; height: 230px; display: flex; align-items: center; justify-content: center; background: #59266a; color: #fff; font-size: 96px; }
.sala-narrow { max-width: 860px; }
.sala-article-header h1 { color: #59266a; font-size: 34px; }
.sala-article .entry-content { font-size: 17px; line-height: 1.7; }
.sala-article .entry-content a, .sala-post-nav a, .sala-archive-description a { color: #901d5e; }
.sala-article-footer { margin-top: 30px; padding-top: 15px; border-top: 1px solid #e6d2e7; }
.sala-article-footer a { color: #901d5e; }
.sala-comments-title { color: #59266a; font-size: 26px; margin-bottom: 20px; }
.sala-comment { padding: 15px; margin-bottom: 15px; background: #f6e4ef; border-radius: 6px; }
.sala-comment .children { list-style: none; margin-top: 15px; padding-left: 0; }
.sala-comment .children .sala-comment { background: #fff; border: 1px solid #e6d2e7; }
.sala-comment-meta strong { color: #7f3982; }
.sala-comment-reply a { font-size: 14px; color: #901d5e; }
.comment-form label { font-weight: 600; color: #59266a; }
.comment-form .required { color: #e6547f; }
.sala-footer-widgets .widget-title, .sala-footer-widgets h2, .sala-footer-widgets h3 { color: #59266a; font-size: 22px; padding: 10px 0; margin: 0; }
.sala-footer-widgets ul { padding-left: 18px; }
.sala-footer-widgets a { color: #901d5e; }
.sala-page-content h2, .sala-page-content h3 { color: #59266a; padding: 10px 0; }
.sala-page-content h2 { font-size: 30px; }
.wp-caption { max-width: 100%; } .wp-caption-text { font-size: 14px; color: #888; text-align: center; }
.alignleft { float: left; margin: 5px 20px 10px 0; } .alignright { float: right; margin: 5px 0 10px 20px; } .aligncenter { display: block; margin: 10px auto; }
.sticky {} .bypostauthor {} .gallery-caption {}

/* ---------- mobile.css gốc ---------- */
@media (max-width: 767.98px) {
	h2 { font-size: 29px; }
	#mainhead { text-align: center; }
	.branding img { height: auto; }
	.branding-c { padding-top: 20px; }
	.intro {
		margin-top: 0;
		font-size: 16px;
	}
	.whyc { margin: 15px auto; }
	.why .left td { padding-top: 0; padding-bottom: 15px; text-align: right; font-size: 25px; }
	.why .left td img { width: 45px; height: 45px; margin-left: 15px; }
	.why .right td { padding-top: 5px; padding-bottom: 10px; text-align: left; font-size: 21px; }
	.why .right td img { width: 45px; height: 45px; margin-right: 15px; }

	.whyv .left td { padding-top: 0; padding-bottom: 25px; text-align: right; }
	.whyv .left td img { width: 45px; height: 45px; margin-left: 15px; }
	.whyv .right td { padding-top: 25px; padding-bottom: 10px; text-align: left; }
	.whyv .right td img { width: 45px; height: 45px; margin-right: 15px; }

	.giupban img { height: auto; }
}
