/*
Theme Name: Chau Thanh ESL - GeneratePress Child
Theme URI: https://chauthanhesl.edu.vn/
Description: Child theme for chauthanhesl.edu.vn. Contains a hand-written reconstruction of the header and footer that were previously built with the Elementor Pro Theme Builder (templates 39 and 64), rebuilt on 2026-08-09 from the 2026-05-11 database dump after Elementor Pro was removed. See README-RECONSTRUCTION.md.
Author: MT Solutions
Author URI: https://mtsols.vn/
Template: generatepress
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ctesl-child
*/

/* =========================================================================
   Design tokens - taken from Elementor Kit post 15
   ====================================================================== */

:root {
	--ctesl-dark:        #242424; /* Dark Background      */
	--ctesl-blue:        #103F76; /* Basic Text / Accent 1 / Button */
	--ctesl-red:         #D9503F; /* Button Hover / Accent 2 */
	--ctesl-heading:     #3C3C43; /* Heading              */
	--ctesl-line:        #DCDCDE; /* Line Color           */
	--ctesl-white:       #FFFFFF; /* Netral               */
	--ctesl-white-20:    rgba(255, 255, 255, 0.169); /* Transparent 20% */

	/* Kit button defaults. The original buttons overrode only the background
	   colour, so the kit's purple border and cyan hover survived. Reproduced
	   literally. If the live site never showed a purple border, set
	   --ctesl-btn-border to var(--ctesl-blue) and --ctesl-btn-hover-bg to a
	   darker blue - that is the only change needed. */
	--ctesl-btn-border:    #686EFF;
	--ctesl-btn-hover-bg:  #3BAFCA;
	--ctesl-btn-shadow:    0 10px 30px 0 rgba(251, 186, 27, 0.169);

	--ctesl-container:   1280px;
	--ctesl-shadow:      0 3px 10px 0 rgba(0, 0, 0, 0.1);

	--ctesl-font-body:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--ctesl-font-head:   "Lexend", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* =========================================================================
   Shared
   ====================================================================== */

.ctesl-topbar__inner,
.ctesl-navbar__inner,
.ctesl-footer__inner {
	/* The original Elementor containers were "boxed", i.e. capped at the kit's
	   1280px and centred, with the background painted on that boxed element
	   rather than edge to edge. */
	max-width: var(--ctesl-container);
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	box-sizing: border-box;
}

.ctesl-topbar *,
.ctesl-navbar *,
.ctesl-footer * {
	box-sizing: border-box;
}

.ctesl-social {
	display: flex;
	align-items: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ctesl-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background-color: var(--ctesl-blue);
	color: var(--ctesl-white);
	text-decoration: none;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.ctesl-social__link:hover,
.ctesl-social__link:focus {
	background-color: var(--ctesl-red);
	color: var(--ctesl-white);
	transform: scale(1.1); /* Elementor "pop" hover animation */
}

.ctesl-social__link svg {
	display: block;
	width: 1em;
	height: 1em;
}

/* Buttons - kit defaults, per Elementor Kit 15 */
.ctesl-btn {
	display: inline-block;
	font-family: var(--ctesl-font-body);
	font-weight: 500;
	font-size: 14px;
	line-height: 1;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ctesl-white);
	padding: 12px 24px;
	border: 1px solid var(--ctesl-btn-border);
	border-radius: 5px;
	box-shadow: var(--ctesl-btn-shadow);
	transition: background-color 0.2s ease, border-color 0.2s ease;
	white-space: nowrap;
}

.ctesl-btn:hover,
.ctesl-btn:focus {
	background-color: var(--ctesl-btn-hover-bg);
	border-color: var(--ctesl-btn-hover-bg);
	color: var(--ctesl-white);
}

.ctesl-btn--header {
	background-color: var(--ctesl-blue);
}

.ctesl-btn--footer {
	background-color: var(--ctesl-red);
}

/* =========================================================================
   Header - top bar (Elementor container 6fd8b13b)
   ====================================================================== */

.ctesl-topbar {
	background-color: var(--ctesl-dark);
}

.ctesl-topbar__inner {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
	padding: 10px 20px;
}

.ctesl-topbar__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ctesl-topbar__item {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ctesl-topbar__icon {
	display: inline-flex;
	align-items: center;
	color: var(--ctesl-blue);
	font-size: 21px;
}

.ctesl-topbar__icon svg {
	width: 21px;
	height: 21px;
	display: block;
}

.ctesl-topbar__text {
	font-family: var(--ctesl-font-body);
	font-weight: 400;
	font-size: 13px;
	line-height: 1.5;
	color: var(--ctesl-white);
}

.ctesl-social--header .ctesl-social__link {
	width: 28px;
	height: 28px;
	font-size: 13px;
}

/* =========================================================================
   Header - nav bar (Elementor container 7ed269a4)
   ====================================================================== */

.ctesl-navbar {
	background-color: var(--ctesl-white);
	box-shadow: var(--ctesl-shadow);
	position: relative;
	z-index: 99;
}

.ctesl-navbar__inner {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0;
	padding: 0;
}

/* Logo cell - container fda5ebb, 20% wide with a 1px right rule */
.ctesl-navbar__brand {
	width: 20%;
	display: flex;
	align-items: center;
	justify-content: center;
	border-right: 1px solid var(--ctesl-line);
	padding: 8px 0;
}

.ctesl-navbar__logo-link {
	display: block;
	width: 61%;
	line-height: 0;
}

.ctesl-navbar__logo-img {
	width: 100%;
	height: auto;
	object-fit: contain;
	display: block;
}

.ctesl-navbar__sitename {
	font-family: var(--ctesl-font-head);
	font-weight: 600;
	font-size: 18px;
	line-height: 1.3;
	color: var(--ctesl-heading);
	text-decoration: none;
}

/* Menu cell - container 157822ba, 80% wide, right aligned */
.ctesl-navbar__nav-cell {
	width: 80%;
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	align-items: center;
	padding: 0 10px 0 0;
	gap: 20px;
}

/* Menu itself - widget 7d44ffb3 */
.ctesl-menu {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 35px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ctesl-menu li {
	position: relative;
	margin: 0;
}

.ctesl-menu a {
	display: block;
	font-family: var(--ctesl-font-body);
	font-weight: 600;
	font-size: 15px;
	line-height: 1.5;
	color: var(--ctesl-heading);
	text-decoration: none;
	padding: 28px 0;
	transition: color 0.2s ease;
}

.ctesl-menu a:hover,
.ctesl-menu a:focus,
.ctesl-menu .current-menu-item > a,
.ctesl-menu .current-menu-ancestor > a {
	color: var(--ctesl-blue);
}

/* Dropdown arrow */
.ctesl-menu .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 0;
	height: 0;
	margin-left: 6px;
	vertical-align: middle;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
}

/* Sub menus */
.ctesl-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	margin: 0;
	padding: 0;
	list-style: none;
	background-color: var(--ctesl-white);
	border-radius: 0 0 7px 7px;
	box-shadow: var(--ctesl-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
	z-index: 100;
	overflow: hidden;
}

.ctesl-menu li:hover > .sub-menu,
.ctesl-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.ctesl-menu .sub-menu a {
	padding: 12px 18px;
	font-weight: 600;
	font-size: 15px;
	color: var(--ctesl-heading);
	background-color: var(--ctesl-white);
	white-space: normal;
}

.ctesl-menu .sub-menu a:hover,
.ctesl-menu .sub-menu a:focus {
	color: var(--ctesl-white);
	background-color: var(--ctesl-blue);
}

.ctesl-menu .sub-menu .sub-menu {
	top: 0;
	left: 100%;
	border-radius: 7px;
}

/* Hamburger toggle - hidden on desktop */
.ctesl-nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	background-color: transparent;
	border: 0;
	padding: 6px;
	cursor: pointer;
	color: var(--ctesl-heading);
	line-height: 0;
}

.ctesl-nav-toggle:hover,
.ctesl-nav-toggle:focus {
	color: var(--ctesl-blue);
}

.ctesl-nav-toggle svg {
	width: 1em;
	height: 1em;
	display: block;
}

.ctesl-nav-toggle__close {
	display: none;
}

.ctesl-nav-toggle[aria-expanded="true"] .ctesl-nav-toggle__open {
	display: none;
}

.ctesl-nav-toggle[aria-expanded="true"] .ctesl-nav-toggle__close {
	display: block;
}

/* =========================================================================
   Footer - reconstruction of Elementor template 64
   ====================================================================== */

.ctesl-footer {
	background-color: var(--ctesl-dark);
	margin-top: 50px;
	max-width: var(--ctesl-container);
	margin-left: auto;
	margin-right: auto;
}

.ctesl-footer__inner {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0;
	padding: 0;
}

/* CTA card - container b841e39. Pulled up to overlap the content above. */
.ctesl-footer__cta {
	position: relative;
	width: 100%;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0;
	background-color: var(--ctesl-blue);
	border-radius: 7px;
	padding: 2em;
	margin: -5em 0 3em 0;
	overflow: hidden;
}

/* Decorative overlay graphic, attachment 36. Elementor's default overlay
   opacity is 0.5 and the original set no override. */
.ctesl-footer__cta::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url("/wp-content/uploads/2025/05/bg_img3.png");
	background-position: top right;
	background-repeat: no-repeat;
	background-size: cover;
	opacity: 0.5;
	pointer-events: none;
}

.ctesl-footer__cta > * {
	position: relative;
	z-index: 1;
}

.ctesl-footer__cta-text {
	width: 50%;
}

.ctesl-footer__cta-heading {
	font-family: var(--ctesl-font-head);
	font-weight: 600;
	font-size: 29.03px;
	line-height: 1.3;
	color: var(--ctesl-white);
	margin: 0;
}

.ctesl-footer__cta-action {
	width: 40%;
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	align-items: center;
	gap: 7px;
}

/* Brand column - container 2bb8c87a, 45% */
.ctesl-footer__brand {
	width: 45%;
	padding: 1em 10em 1em 1em;
}

.ctesl-footer__logo {
	width: 50%;
	height: auto;
	object-fit: contain;
	display: block;
	margin-bottom: 1em;
}

.ctesl-footer__tagline {
	font-family: var(--ctesl-font-body);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.4;
	color: var(--ctesl-white);
	text-align: justify;
	margin-bottom: 1em;
}

.ctesl-social--footer .ctesl-social__link {
	width: 34px;
	height: 34px;
	font-size: 16px;
}

/* "Thong tin" links - container 6380c22c, 30% */
.ctesl-footer__links {
	width: 30%;
	padding: 1em;
}

.ctesl-footer__links-heading {
	font-family: var(--ctesl-font-head);
	font-weight: 500;
	font-size: 16.8px;
	line-height: 1.4;
	color: var(--ctesl-line);
	margin: 0 0 1em 0;
}

.ctesl-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.ctesl-footer__list a {
	font-family: var(--ctesl-font-body);
	font-weight: 400;
	font-size: 14px;
	line-height: 1.4;
	color: var(--ctesl-white);
	text-decoration: none;
	transition: color 0.2s ease;
}

.ctesl-footer__list a:hover,
.ctesl-footer__list a:focus {
	color: var(--ctesl-blue);
	text-decoration: underline;
}

/* Spare column - container 56bf4a3a, 25%. Was a zero-size Facebook embed. */
.ctesl-footer__spare {
	width: 25%;
	padding: 1em;
}

/* Bottom bar - container 2c4d40d8 */
.ctesl-footer__bottom {
	width: 100%;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	border-top: 1px solid var(--ctesl-white-20);
	padding: 2em 0;
	margin-top: 3em;
}

.ctesl-footer__copyright {
	font-family: var(--ctesl-font-body);
	font-weight: 400;
	font-size: 13px;
	line-height: 1.5;
	color: var(--ctesl-white);
}

.ctesl-footer__copyright a {
	color: var(--ctesl-white);
	text-decoration: underline;
}

.ctesl-footer__copyright a:hover,
.ctesl-footer__copyright a:focus {
	color: var(--ctesl-line);
}

/* =========================================================================
   Tablet - max-width 1024px (Elementor viewport_lg 1025)
   ====================================================================== */

@media (max-width: 1024px) {

	.ctesl-topbar__text {
		font-size: 12px;
	}

	.ctesl-nav-toggle {
		font-size: 28px;
	}

	.ctesl-menu {
		gap: 22px;
	}

	.ctesl-menu a {
		font-size: 14px;
		padding: 22px 0;
	}

	.ctesl-btn {
		font-size: 13px;
	}

	.ctesl-footer__cta {
		justify-content: center;
	}

	.ctesl-footer__cta-text {
		width: 100%;
	}

	.ctesl-footer__cta-heading {
		font-size: 25px;
		text-align: center;
	}

	.ctesl-footer__cta-action {
		width: 50%;
	}

	.ctesl-footer__brand {
		width: 100%;
		padding: 1em 10em;
		text-align: center;
	}

	.ctesl-footer__logo {
		margin-left: auto;
		margin-right: auto;
	}

	.ctesl-footer__tagline {
		text-align: center;
	}

	.ctesl-social--footer {
		justify-content: center;
	}

	.ctesl-footer__links {
		width: 25%;
	}

	.ctesl-footer__links-heading {
		font-size: 18px;
	}

	.ctesl-footer__list a {
		font-size: 13px;
	}

	.ctesl-footer__spare {
		width: 50%;
	}

	.ctesl-footer__copyright {
		font-size: 12px;
	}
}

/* =========================================================================
   Mobile - max-width 767px (Elementor viewport_md 768)
   ====================================================================== */

@media (max-width: 767px) {

	/* Top bar social icons were hidden on mobile in the original. */
	.ctesl-social--header {
		display: none;
	}

	.ctesl-topbar__inner {
		justify-content: center;
		padding: 8px 12px;
	}

	.ctesl-topbar__text {
		font-size: 11px;
	}

	/* Logo cell widens, image inside shrinks and left aligns. */
	.ctesl-navbar__brand {
		width: 80%;
		justify-content: flex-start;
		border-right: 0;
		padding-left: 12px;
	}

	.ctesl-navbar__logo-link {
		width: 25%;
	}

	.ctesl-navbar__nav-cell {
		width: 20%;
		justify-content: center;
		padding: 10px;
	}

	/* The header CTA button was hidden on mobile in the original. */
	.ctesl-btn--header {
		display: none;
	}

	.ctesl-nav-toggle {
		display: inline-flex;
		font-size: 25px;
	}

	/* Collapsed menu panel */
	.ctesl-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background-color: var(--ctesl-white);
		box-shadow: var(--ctesl-shadow);
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.25s ease;
	}

	.ctesl-nav.is-open {
		max-height: 80vh;
		overflow-y: auto;
	}

	.ctesl-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.ctesl-menu li {
		border-bottom: 1px solid var(--ctesl-line);
	}

	.ctesl-menu a {
		padding: 14px 18px;
		font-size: 13px;
	}

	.ctesl-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border-radius: 0;
		min-width: 0;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.25s ease;
	}

	.ctesl-menu li.is-open > .sub-menu {
		max-height: 60vh;
	}

	.ctesl-menu .sub-menu a {
		padding-left: 34px;
		font-size: 13px;
	}

	/* Footer */
	.ctesl-footer__cta {
		padding: 1em;
		margin: -5em 1em 2em 1em;
	}

	.ctesl-footer__cta-heading {
		font-size: 20px;
		text-align: justify;
	}

	.ctesl-footer__cta-action {
		justify-content: center;
		flex-wrap: wrap;
		gap: 7px;
	}

	.ctesl-footer__brand {
		padding: 1em;
	}

	.ctesl-footer__tagline {
		font-size: 14px;
		text-align: justify;
	}

	.ctesl-footer__links {
		width: 50%;
	}

	.ctesl-footer__links-heading {
		font-size: 16px;
	}

	.ctesl-footer__list a {
		font-size: 12px;
	}

	.ctesl-footer__bottom {
		justify-content: center;
		gap: 7px;
		padding: 2em 1em;
		margin-top: 2em;
	}

	.ctesl-footer__copyright {
		font-size: 11px;
		text-align: center;
	}

	.ctesl-btn {
		font-size: 12px;
	}
}
