/*
Theme Name: WAT Theme Child
Theme URI: https://webantam.com
Author: webantam.com
Author URI: https://webantam.com
Description: Theme con của WAT Theme. Viết CSS, code và sửa giao diện riêng ở đây để không bị mất khi cập nhật WAT Theme.
Template: cs-theme-wat
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cs-theme-wat-child
*/

/*
 * CSS riêng của bạn viết bên dưới. File này nạp SAU CSS của theme mẹ nên ghi đè được.
 * Có thể dùng biến màu / chữ của theme, ví dụ:
 *   color: var(--csw-text);          màu chữ
 *   background: var(--csw-bg);       màu nền
 *   background: var(--csw-btn-bg);   màu nút
 *   font-family: var(--csw-font-heading);
 *
 * Sửa xong mà trình duyệt vẫn hiện bản cũ: tăng CS_THEME_WAT_CHILD_REV trong functions.php,
 * hoặc bấm "Làm mới cache CSS/JS" ở WAT Theme > Công cụ.
 */

/* =========================================================================
 * GIAO DIỆN MẦM NON HOA SEN (theo layout 261020_WebHoaSen_Layout.pdf)
 * Các class hs-… được gắn ở ô "CSS class" của section / phần tử trong Wat Builder.
 * ====================================================================== */

:root {
	--hs-orange: #ff9f24;
	--hs-orange-soft: #ffb965;
	--hs-orange-line: #ffc679;
	--hs-green: #7fb521;
	--hs-green-text: #8ebd42;
	--hs-green-btn: #8dc63f;
	--hs-green-dark: #76983a;
	--hs-cream: #fff0dd;
	--hs-text: #484848;
	--hs-script: "Dancing Script", cursive;
}
body { font-weight: 500; }

/* ---------- Header: logo giữa, 2 nhóm nút xanh hai bên ---------- */
.hs-header { z-index: 50; }
.hs-header:not(.cs-theme-wat-sticky) { position: relative; } /* Bật "Header dính khi cuộn" thì để theme lo vị trí */
.hs-header .cs-theme-wat-hb__area--left,
.hs-header .cs-theme-wat-hb__area--right { flex: 1; }
.hs-header .cs-theme-wat-hb__area--left .cs-theme-wat-menu,
.hs-header .cs-theme-wat-hb__area--right .cs-theme-wat-menu { margin: 0; justify-content: space-evenly; flex-wrap: nowrap; gap: 10px; }
.hs-header .cs-theme-wat-menu > li { position: relative; }
.hs-header .cs-theme-wat-menu > li > a {
	display: flex; align-items: center; justify-content: center; text-align: center;
	width: 150px; min-height: 52px; padding: 4px 10px;
	font-family: var(--csw-font-heading); font-weight: 700; font-size: 14.5px; line-height: 1.25;
	color: #fff; text-decoration: none;
	background: linear-gradient(180deg, #a5d65a 0%, var(--hs-green-btn) 45%, var(--hs-green-dark) 100%);
	border: 1.5px solid rgba(255, 255, 255, .85); border-radius: 10px;
	box-shadow: 0 3px 8px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .45);
	text-shadow: 0 1px 1px rgba(0, 0, 0, .25);
	transition: transform .15s ease, filter .15s ease;
}
.hs-header .cs-theme-wat-menu > li > a::after { display: none; }
.hs-header .cs-theme-wat-menu > li > a:hover,
.hs-header .cs-theme-wat-menu > li.current-menu-item > a,
.hs-header .cs-theme-wat-menu > li.current-menu-ancestor > a { color: #fff; text-decoration: none; filter: brightness(1.06); transform: translateY(-1px); }
.hs-header .cs-theme-wat-menu > li.current-menu-item > a,
.hs-header .cs-theme-wat-menu > li.current-menu-ancestor > a { border-color: var(--hs-orange); }
/* Menu con: khung xanh trong mờ */
.hs-header .cs-theme-wat-menu .sub-menu {
	left: 50%; top: calc(100% + 6px); min-width: 190px; padding: 6px 0;
	transform: translate(-50%, 6px);
	background: rgba(118, 152, 58, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, .55); border-radius: 10px;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}
.hs-header .cs-theme-wat-menu li:hover > .sub-menu,
.hs-header .cs-theme-wat-menu li:focus-within > .sub-menu { transform: translate(-50%, 0); }
.hs-header .cs-theme-wat-menu .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; } /* giữ hover khi rê chuột xuống */
.hs-header .cs-theme-wat-menu .sub-menu a { padding: 6px 14px; font-size: 13.5px; color: #fff; white-space: nowrap; }
.hs-header .cs-theme-wat-menu .sub-menu a:hover { color: #fff; text-decoration: none; background: rgba(255, 255, 255, .15); }
.hs-header .cs-theme-wat-header__logo { margin: 0; }

/* Trang chủ: header nằm đè lên ảnh bìa, có chữ "Mầm non Hoa Sen" trên logo */
@media (min-width: 990px) {
	.home .hs-header { left: 0; right: 0; z-index: 50; background: transparent; --csw-bg: transparent; transition: background-color .25s ease, box-shadow .25s ease, padding .25s ease, top .3s ease; }
	.home .hs-header:not(.cs-theme-wat-sticky) { position: absolute; top: 0; }
	/* Header dính: cố định trên ảnh bìa; cuộn xuống thì có nền trắng và thu gọn */
	.home .hs-header.cs-theme-wat-sticky { position: fixed; }
	.home .hs-header.cs-theme-wat-sticky.is-scrolled { --csw-pt: 8px; --csw-pb: 8px; background: rgba(255, 255, 255, .96); box-shadow: 0 2px 12px rgba(0, 0, 0, .1); }
	.home .hs-header.is-scrolled .cs-theme-wat-header__logo a::before { display: none; }
	.home .hs-header.is-scrolled .cs-theme-wat-hb__row--main { align-items: center; }
	.home .hs-header.is-scrolled .cs-theme-wat-hb__area--left,
	.home .hs-header.is-scrolled .cs-theme-wat-hb__area--right { padding-top: 0; }
	.home .hs-header .cs-theme-wat-hb__row--main { align-items: flex-end; }
	.home .hs-header .cs-theme-wat-hb__area--left,
	.home .hs-header .cs-theme-wat-hb__area--right { align-self: center; padding-top: 34px; }
	/* Chữ + logo xếp dọc, cùng căn giữa */
	.home .hs-header .cs-theme-wat-header__logo a { display: flex; flex-direction: column; align-items: center; }
	.home .hs-header .cs-theme-wat-header__logo a::before {
		content: "Mầm non Hoa Sen"; display: block; margin-bottom: 4px; white-space: nowrap; text-align: center;
		font: 700 34px/1.1 var(--hs-script); color: var(--hs-orange);
		text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff, 0 3px 6px rgba(0, 0, 0, .25);
	}
	.home .hs-header .cs-theme-wat-header__logo-img { filter: drop-shadow(0 2px 6px rgba(255, 255, 255, .55)); }
}
@media (min-width: 990px) and (max-width: 1180px) {
	.hs-header .cs-theme-wat-menu > li > a { width: 118px; min-height: 48px; padding: 4px 3px; font-size: 12.5px; }
}

/* ---------- Tiêu đề section: chữ cam, gạch đậm dưới chữ + đường mảnh toàn hàng ---------- */
.hs-title,
.hs-sec-title .cs-theme-wat-section-header .cs-theme-wat-heading {
	position: relative; display: table; margin: 0 auto 28px; padding-bottom: 6px;
	font-family: var(--csw-font-heading); font-weight: 700; text-transform: uppercase;
	font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; text-align: center;
	color: var(--hs-orange);
}
/* Đường mảnh dài (khoảng 78% bề ngang, tối đa 1120px) + gạch cam đậm đúng bằng chữ, đè lên trên */
.hs-title::after,
.hs-sec-title .cs-theme-wat-section-header .cs-theme-wat-heading::after {
	content: ""; position: absolute; left: 50%; bottom: 0; z-index: 0;
	width: var(--hs-line-w, min(1120px, 78vw)); height: 1.5px; transform: translateX(-50%);
	background: var(--hs-orange-line);
}
/* Trang con: đường dài bằng cột nội dung của trang */
[data-cs-section-type="row"] .hs-title,
body:not(.home) .hs-sec-title .cs-theme-wat-section-header .cs-theme-wat-heading { --hs-line-w: min(var(--csw-page-width, 1000px), 92vw); }
/* Kẻ ngắn đúng bằng chữ (vd. "Chương trình học" ở trang chủ): thêm class hs-title--short */
.hs-title--short::after { display: none; }
.hs-title--short::before { height: 1.5px; }
.hs-title::before,
.hs-sec-title .cs-theme-wat-section-header .cs-theme-wat-heading::before {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
	height: 2.5px; background: var(--hs-orange);
}
@media (max-width: 749px) {
	.hs-title::after,
	.hs-sec-title .cs-theme-wat-section-header .cs-theme-wat-heading::after { width: 92vw; }
}
.hs-sec-title .cs-theme-wat-section-header { margin-bottom: 28px; }
.hs-sub { margin: 30px 0 10px; text-align: center; font-weight: 700; font-size: clamp(18px, 2.1vw, 22px); }
.hs-sub.cs-theme-wat-heading--small { margin: 0 0 6px; font-size: 15px; }
.hs-sub--green { color: var(--hs-green); }
.hs-sub--orange { color: var(--hs-orange); }
.hs-sub--pink { color: #f0679a; }
.hs-sub--brown { color: #c8612a; }
.hs-sub--blue { color: #3a9ad9; }
.hs-sub--dark { color: #222; }

/* ---------- Văn bản ---------- */
.hs-article .cs-theme-wat-text p,
.hs-green p { margin: 0 0 .35em; line-height: 1.6; }
.hs-green, .hs-green p { color: var(--hs-green-text); }
.hs-spaced p { margin-bottom: 1.1em; }
.hs-label { margin-top: .6em !important; }
.hs-label strong { font-weight: 700; color: #333; }
.hs-stages { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hs-stages a { display: inline-block; padding: 6px 16px; border-radius: 999px; border: 1.5px solid var(--hs-orange-soft); color: var(--hs-text); text-decoration: none; }
.hs-stages a:hover { background: var(--hs-cream); }
.hs-stages strong { color: var(--hs-orange); margin-right: 6px; }
.hs-checks { list-style: none; margin: 0 0 .8em; padding: 0; }
.hs-checks li { position: relative; padding-left: 28px; margin-bottom: .3em; line-height: 1.6; }
.hs-checks li::before { content: "✅"; position: absolute; left: 0; top: 0; }
[id] { scroll-margin-top: 110px; }

/* ---------- Trang chủ: ảnh bìa ---------- */
.hs-hero .cs-theme-wat-banner { --csw-overlay: 0; min-height: 100vh; min-height: 100svh; }
.hs-hero .cs-theme-wat-banner__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, transparent 28%, transparent 60%, rgba(0, 0, 0, .45) 100%); }
.hs-hero .cs-theme-wat-banner__box { max-width: 680px; margin-inline: auto; padding-bottom: 48px; }
.hs-hero .cs-theme-wat-btn { padding: 9px 26px; font-weight: 700; background: var(--hs-orange); color: #fff; border: 2px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .25); }
.hs-hero .cs-theme-wat-btn:hover { background: #f58d05; color: #fff; }
.hs-hero .cs-theme-wat-text p { font-size: 15px; font-weight: 600; line-height: 1.65; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .85), 0 0 12px rgba(0, 0, 0, .5); }

/* Thẻ ảnh viền cam (Chương trình học) */
.hs-card-img .cs-theme-wat-ibx__media { border: 2px solid var(--hs-orange-soft); border-radius: 6px; overflow: hidden; box-shadow: 0 6px 14px rgba(0, 0, 0, .12); }
.hs-card-img .cs-theme-wat-ibx__title,
.hs-card-img h3 { margin-top: 14px; font-family: var(--csw-font-body); font-weight: 500; font-size: clamp(16px, 1.7vw, 20px); color: var(--hs-orange-soft); }
.hs-card-img a:hover h3 { color: var(--hs-orange); }

/* ---------- Sự kiện hằng năm (slider) ---------- */
.hs-events .cs-theme-wat-multicolumn__media { border: 2px solid var(--hs-orange-soft); border-radius: 6px; overflow: hidden; box-shadow: 0 6px 14px rgba(0, 0, 0, .12); }
.hs-events .cs-theme-wat-multicolumn__title { margin: 14px 0 2px; font-family: var(--csw-font-body); font-weight: 700; font-size: 17px; color: var(--hs-orange); }
.hs-events .cs-theme-wat-multicolumn__title a { color: inherit; text-decoration: none; }
.hs-events .cs-theme-wat-multicolumn__text,
.hs-events .cs-theme-wat-multicolumn__text p { margin: 0; font-size: 15px; color: var(--hs-orange-soft); }

/* Nút ‹ › tròn viền cam, nằm 2 bên */
.hs-events .cs-theme-wat-carousel-wrap,
.hs-reviews .cs-theme-wat-carousel-wrap { position: relative; }
.hs-events .cs-theme-wat-slider-controls[hidden] { display: flex !important; }
.hs-events .cs-theme-wat-grid { gap: 28px; --csw-grid-gap: 28px; }
/* Khung trượt chỉ cuộn ngang (không hiện thanh cuộn dọc); chừa chỗ cho bóng đổ dưới thẻ */
.hs-events .cs-theme-wat-grid--slider,
.hs-reviews .cs-theme-wat-grid--slider { overflow-y: hidden; padding-bottom: 16px; } /* 5 mùa / 4 cột: vẫn hiện nút như layout */
.hs-events .cs-theme-wat-slider-controls,
.hs-reviews .cs-theme-wat-slider-controls { position: absolute; left: -64px; right: -64px; top: 38%; margin: 0; display: flex; justify-content: space-between; pointer-events: none; }
.hs-reviews .cs-theme-wat-slider-controls { top: 50%; left: -54px; right: -54px; }
.hs-events .cs-theme-wat-slider-controls__btn,
.hs-reviews .cs-theme-wat-slider-controls__btn { pointer-events: auto; width: 40px; height: 40px; border-radius: 50%; border: 2px solid #f26b3a; background: rgba(255, 255, 255, .6); color: #f26b3a; }
.hs-events .cs-theme-wat-slider-controls__btn:hover,
.hs-reviews .cs-theme-wat-slider-controls__btn:hover { background: #f26b3a; color: #fff; }
@media (max-width: 1240px) {
	.hs-events .cs-theme-wat-slider-controls, .hs-reviews .cs-theme-wat-slider-controls { left: -6px; right: -6px; }
}
@media (max-width: 749px) {
	.hs-events .cs-theme-wat-slider-controls, .hs-reviews .cs-theme-wat-slider-controls { position: static; justify-content: center; gap: 16px; margin-top: 18px; }
}

/* ---------- Nhận xét phụ huynh: thẻ viền cam, avatar tròn nổi trên đầu ---------- */
.hs-reviews .cs-theme-wat-grid { gap: 20px; --csw-grid-gap: 20px; }
@media (min-width: 1200px) { .hs-reviews .cs-theme-wat-grid--slider { --csw-cols: 5 !important; } }
.hs-reviews .cs-theme-wat-grid__item { padding-top: 34px; display: flex; flex-direction: column; }
.hs-reviews .cs-theme-wat-testimonial {
	height: auto; flex: 1;
	position: relative; flex-direction: column-reverse; justify-content: flex-end; gap: 2px;
	padding: 36px 14px 16px; border: 2px solid var(--hs-orange); border-radius: 14px; background: #fff;
	box-shadow: 0 6px 14px rgba(0, 0, 0, .14);
}
.hs-reviews .cs-theme-wat-testimonial__author { display: block; }
.hs-reviews .cs-theme-wat-testimonial__avatar { position: absolute; top: -32px; left: 50%; transform: translateX(-50%); width: 64px; height: 64px; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.hs-reviews .cs-theme-wat-testimonial__author span { display: block; }
.hs-reviews .cs-theme-wat-testimonial__author strong,
.hs-reviews .cs-theme-wat-testimonial__author small { display: inline; font-size: 15px; }
.hs-reviews .cs-theme-wat-testimonial__author strong { font-weight: 700; color: var(--hs-orange); }
.hs-reviews .cs-theme-wat-testimonial__author small { opacity: 1; color: var(--hs-orange-soft); }
.hs-reviews .cs-theme-wat-testimonial__author small:not(:empty)::before { content: "- "; }
.hs-reviews .cs-theme-wat-testimonial__quote { flex: 0 0 auto; font-size: 15px; line-height: 1.55; color: var(--hs-text); }
.hs-reviews .cs-theme-wat-testimonial__quote p { margin: 0; }
.hs-reviews .cs-theme-wat-stars { display: none; }

/* ---------- Đội ngũ giáo viên ---------- */
.hs-teacher .cs-theme-wat-team__media { max-width: 200px; margin-inline: auto; border-radius: 50%; box-shadow: 0 0 0 5px #fff, 0 0 0 7px var(--hs-orange-line), 0 6px 16px rgba(0, 0, 0, .12); overflow: hidden; }
.hs-teacher .cs-theme-wat-team__name { margin-top: 18px; font-family: var(--csw-font-body); font-weight: 500; font-size: 17px; color: var(--hs-orange-soft); }

/* ---------- Thực đơn ---------- */
.hs-table-wrap { overflow-x: auto; }
.hs-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.hs-table th, .hs-table td { padding: 8px 10px; border: 1px solid #555; text-align: center; color: var(--hs-text); }
.hs-table th { color: var(--hs-orange); font-weight: 700; font-size: 14px; }
.hs-table td:first-child { width: 72px; }
.hs-table td:nth-child(2) { width: 32%; }
.hs-table tbody tr:nth-child(even) td { background: #fffaf3; }

/* ---------- Sự kiện hằng năm (trang) ---------- */
.hs-events-page .hs-season-text p { font-size: 15.5px; }
.hs-events-page .hs-label strong { font-weight: 500; color: var(--hs-text); }

/* ---------- Học phí: thẻ xanh ---------- */
.hs-fee-card { padding: 0 !important; overflow: hidden; }
.hs-fee-title { margin: 0; padding: 16px 12px 10px; text-align: center; color: #fff; font-size: 17px; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.hs-fee-title span { font-weight: 500; font-size: 16px; }
.hs-fee-card .cs-theme-wat-cb--image { margin: 0; }
.hs-fee-card .cs-theme-wat-cb--image img { display: block; width: 100%; }
.hs-fee-body { padding: 12px 16px 16px; }
.hs-fee-body p { margin: 0 0 6px; color: #fff; font-size: 15.5px; }
.hs-fee-price { font-weight: 700; font-size: 17px !important; }
.hs-fee-note { font-style: italic; font-size: 13.5px !important; line-height: 1.55; }
.hs-fees .hs-sub--green { margin-top: 0; text-transform: uppercase; }

/* ---------- Footer: ảnh các bé, 4 cột chữ trắng ---------- */
.hs-footer { --csw-pb: 270px; min-height: 420px; }
.hs-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 70%; z-index: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .35), transparent); }
.hs-footer > .cs-theme-wat-container { position: relative; z-index: 1; }
.hs-footer .cs-theme-wat-sec-bg { object-fit: cover; }
.hs-ft-title { margin: 0 0 12px; font-family: var(--csw-font-heading); font-weight: 700; font-size: 20px; color: #fff; text-shadow: 0 2px 4px rgba(0, 0, 0, .5); }
.hs-ft-item, .hs-ft-item * { color: #fff; }
.hs-ft-item .cs-theme-wat-ibox__title,
.hs-ft-item h3 { margin: 0; font-family: var(--csw-font-body); font-weight: 600; font-size: 15.5px; line-height: 1.5; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.hs-ft-item a { text-decoration: none; }
.hs-ft-img { max-width: 260px; }
.hs-ft-img img { border-radius: 4px; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
@media (max-width: 749px) {
	.hs-footer { --csw-pb: 190px; }
	.hs-ft-img { max-width: 100%; }
}
