/*
Theme Name: CCCL Astra
Theme URI: https://chotichinda-utp-aug06.chotichinda.com/
Description: Minimal CCCL foundation layer for the Astra parent theme.
Author: CCCL staging
Template: astra
Version: 0.5.6
Text Domain: cccl-astra
*/

:root {
	--cccl-navy: #082b5c;
	--cccl-blue: #1261a0;
	--cccl-red: #c7202c;
	--cccl-gold: #c7a75a;
	--cccl-ink: #18324f;
	--cccl-muted: #5a6c80;
	--cccl-surface: #f4f7fa;
	--cccl-border: #dbe4ed;
	--cccl-content-width: 1180px;
	--cccl-radius: 2px;
	--cccl-space-section: clamp(3.5rem, 6vw, 6rem);
}

body.cccl-astra {
	background: #fff;
	color: var(--cccl-ink);
	font-family: "Noto Sans Thai", Tahoma, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.75;
}

body.cccl-astra .ast-container {
	max-width: var(--cccl-content-width);
}

body.cccl-astra .site-header {
	background: #fff;
	border-bottom: 1px solid var(--cccl-border);
	box-shadow: 0 4px 18px rgba(8, 43, 92, 0.06);
}

body.cccl-astra .ast-primary-header-bar {
	min-height: 86px;
}

body.cccl-astra .site-logo-img img {
	height: auto;
	max-height: 64px;
	width: auto;
}

body.cccl-astra .ast-site-title-wrap {
	display: none;
}

body.cccl-astra .main-header-menu .menu-link {
	border-bottom: 2px solid transparent;
	color: var(--cccl-navy);
	font-size: 0.98rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	padding: 1.25rem 1rem;
}

body.cccl-astra .main-header-menu .menu-link:hover,
body.cccl-astra .main-header-menu .menu-link:focus,
body.cccl-astra .main-header-menu .current-menu-item > .menu-link,
body.cccl-astra .main-header-menu .current_page_item > .menu-link {
	background: transparent;
	border-bottom-color: var(--cccl-red);
	color: var(--cccl-red);
}

/* Keyboard users need a high-contrast focus treatment that is visible on
 * both the white desktop header and the mobile drawer. */
body.cccl-astra .main-header-menu .menu-link:focus,
body.cccl-astra .main-header-menu .menu-link:focus-visible,
body.cccl-astra .menu-toggle:focus,
body.cccl-astra .menu-toggle:focus-visible,
body.cccl-astra .ast-mobile-popup-drawer .menu-link:focus,
body.cccl-astra .ast-mobile-popup-drawer .menu-link:focus-visible {
	outline: 3px solid var(--cccl-gold) !important;
	outline-offset: 3px;
	box-shadow: 0 0 0 3px var(--cccl-gold) !important;
}

/* Keep the desktop anchor override explicit because Astra's generic
 * `a:focus` rule otherwise reduces the indicator to a thin dotted line. */
body.cccl-astra .main-header-menu > .menu-item > .menu-link:focus {
	box-shadow: 0 0 0 3px #c7a75a !important;
	outline-color: #c7a75a !important;
	outline-offset: 3px !important;
	outline-style: solid !important;
	outline-width: 3px !important;
}

body.cccl-astra .menu-toggle {
	border: 1px solid var(--cccl-border);
	border-radius: var(--cccl-radius);
	color: var(--cccl-navy);
}

body.cccl-astra.elementor-page .entry-header {
	display: none;
}

body.cccl-astra.elementor-page .site-content > .ast-container {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

body.cccl-astra.elementor-page .entry-content {
	margin: 0;
}

body.cccl-astra .site-footer {
	background: var(--cccl-navy);
	border-top: 4px solid var(--cccl-red);
	color: #dbe8f5;
}

body.cccl-astra .site-footer .site-below-footer-wrap,
body.cccl-astra .site-footer .ast-builder-grid-row-container-inner,
body.cccl-astra .site-footer .site-below-footer-inner-wrap {
	background: var(--cccl-navy);
}

body.cccl-astra .site-footer a {
	color: #dbe8f5;
}

body.cccl-astra .site-footer a:hover,
body.cccl-astra .site-footer a:focus {
	color: #fff;
}

body.cccl-astra .site-footer .ast-builder-footer-grid-columns {
	min-height: 108px;
}

/* Home reference layout: keep page content in Elementor and only tighten
 * the existing project carousel's surrounding whitespace. */
body.home.cccl-astra .elementor-widget-image-carousel {
	margin-top: 0;
	margin-bottom: -3rem;
	position: relative;
	top: -3rem;
}

body.home.cccl-astra .elementor-widget-image-carousel .swiper-slide figure {
	margin: 0;
}

body.home.cccl-astra .elementor-widget-image-carousel .swiper-slide a {
	color: var(--cccl-navy);
	text-decoration: none;
}

body.home.cccl-astra .elementor-widget-image-carousel .swiper-slide a:hover,
body.home.cccl-astra .elementor-widget-image-carousel .swiper-slide a:focus-visible {
	color: var(--cccl-red);
}

/* Phase 5.1: keyboard-visible focus for the Home primary carousel link. */
body.home.cccl-astra .elementor-widget-image-carousel .swiper-slide a:focus,
body.home.cccl-astra .elementor-widget-image-carousel .swiper-slide a:focus-visible {
	box-shadow: 0 0 0 3px var(--cccl-gold) !important;
	outline: 3px solid var(--cccl-gold) !important;
	outline-offset: 3px;
}

body.home.cccl-astra .elementor-widget-image-carousel .swiper-slide figcaption {
	color: var(--cccl-navy);
	font-size: clamp(0.82rem, 1.15vw, 1rem);
	font-weight: 600;
	line-height: 1.5;
	padding-top: 0.7rem;
}

/* Give the two existing Elementor content bands a deliberate corporate
 * rhythm without taking ownership of their widgets or page copy. */
body.home.cccl-astra .elementor > .elementor-top-section:nth-child(2) {
	border-top: 1px solid var(--cccl-border);
	padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
	padding-top: clamp(3.5rem, 6vw, 5.5rem);
}

body.home.cccl-astra .elementor > .elementor-top-section:nth-child(3) {
	background: var(--cccl-surface);
	border-bottom: 1px solid var(--cccl-border);
	border-top: 1px solid var(--cccl-border);
	padding-bottom: clamp(4rem, 7vw, 6rem);
	padding-top: clamp(4rem, 7vw, 6rem);
}

/* The verified Home footer block is represented by the Astra footer below.
 * This removes the duplicate page-level footer without changing Elementor
 * post data. */
body.home.cccl-astra .elementor > .elementor-top-section:last-child {
	display: none;
}

body.cccl-astra .ast-footer-copyright {
	color: #dbe8f5;
	font-size: 0.9rem;
	line-height: 1.6;
	text-align: center;
}

@media (max-width: 921px) {
	body.cccl-astra .ast-mobile-header-wrap .site-logo-img img {
		max-height: 58px;
		max-width: 74vw;
	}

	body.cccl-astra .ast-mobile-header-content,
	body.cccl-astra .ast-mobile-popup-drawer .ast-mobile-popup-inner {
		background: #fff;
	}

	body.cccl-astra .ast-mobile-header-content .menu-link,
	body.cccl-astra .ast-mobile-popup-drawer .menu-link {
		border-bottom: 1px solid var(--cccl-border);
		color: var(--cccl-navy);
		font-weight: 700;
	}

	body.cccl-astra .ast-mobile-header-content .current-menu-item > .menu-link,
	body.cccl-astra .ast-mobile-header-content .menu-link:hover,
	body.cccl-astra .ast-mobile-header-content .menu-link:focus {
		color: var(--cccl-red);
	}
}

@media (max-width: 544px) {
	body.cccl-astra {
		font-size: 15px;
	}

	body.cccl-astra .ast-mobile-header-wrap .site-logo-img img {
		max-height: 50px;
	}

	body.home.cccl-astra .elementor-widget-image-carousel {
		margin-top: 0;
		margin-bottom: -2rem;
		top: -2rem;
	}

	body.home.cccl-astra .elementor > .elementor-top-section:nth-child(2),
	body.home.cccl-astra .elementor > .elementor-top-section:nth-child(3) {
		padding-bottom: 3rem;
		padding-top: 3rem;
	}
}

/* Contact reference presentation. Elementor owns the content and these
 * stable classes provide only the page-level rhythm, grouping, and focus
 * treatment needed to express the frozen Astra/Home/Portfolio language. */
body.page-id-3555.cccl-astra .cccl-contact-intro {
	background: var(--cccl-surface);
	border-bottom: 1px solid var(--cccl-border);
	padding: clamp(3.5rem, 7vw, 6rem) 1rem clamp(2.75rem, 5vw, 4.5rem);
}

body.page-id-3555.cccl-astra .cccl-contact-intro > .elementor-container,
body.page-id-3555.cccl-astra .cccl-contact-map > .elementor-container {
	max-width: var(--cccl-content-width);
}

body.page-id-3555.cccl-astra .cccl-contact-intro > .elementor-container > .elementor-column,
body.page-id-3555.cccl-astra .cccl-contact-intro .elementor-widget-wrap {
	min-height: 0;
	padding: 0;
}

body.page-id-3555.cccl-astra .cccl-contact-page-title .elementor-heading-title {
	color: var(--cccl-navy) !important;
	font-family: "Noto Sans Thai", Tahoma, Arial, sans-serif !important;
	font-size: clamp(2.2rem, 5vw, 4rem) !important;
	font-weight: 800 !important;
	letter-spacing: -0.02em;
	line-height: 1.1 !important;
	margin: 0;
}

body.page-id-3555.cccl-astra .cccl-contact-page-title .elementor-heading-title::after,
body.page-id-3555.cccl-astra .cccl-contact-detail-heading .elementor-heading-title::after {
	background: var(--cccl-red);
	content: "";
	display: block;
	height: 4px;
	margin-top: 1rem;
	width: 3.5rem;
}

body.page-id-3555.cccl-astra .cccl-contact-subtitle {
	margin-top: 1.5rem;
}

body.page-id-3555.cccl-astra .cccl-contact-subtitle .elementor-heading-title {
	color: var(--cccl-navy) !important;
	font-family: "Noto Sans Thai", Tahoma, Arial, sans-serif !important;
	font-size: clamp(1.25rem, 2vw, 1.65rem) !important;
	font-weight: 700 !important;
	letter-spacing: 0.04em;
	line-height: 1.3 !important;
	margin: 0;
}

body.page-id-3555.cccl-astra .cccl-contact-intro-copy {
	margin-top: 0.9rem;
	max-width: 50rem;
}

body.page-id-3555.cccl-astra .cccl-contact-intro-copy p,
body.page-id-3555.cccl-astra .cccl-contact-detail-copy p,
body.page-id-3555.cccl-astra .cccl-contact-detail-list {
	color: var(--cccl-muted) !important;
	font-family: "Noto Sans Thai", Tahoma, Arial, sans-serif !important;
	font-size: 1rem !important;
	font-weight: 400 !important;
	line-height: 1.8 !important;
}

body.page-id-3555.cccl-astra .cccl-contact-intro-copy p,
body.page-id-3555.cccl-astra .cccl-contact-detail-copy p {
	margin-bottom: 0;
}

body.page-id-3555.cccl-astra .cccl-contact-details {
	background: #fff;
	border-bottom: 1px solid var(--cccl-border);
	padding: clamp(2.5rem, 5vw, 4.5rem) 1rem;
}

body.page-id-3555.cccl-astra .cccl-contact-details > .elementor-container {
	align-items: stretch;
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	max-width: var(--cccl-content-width);
}

body.page-id-3555.cccl-astra .cccl-contact-details > .elementor-container > .elementor-column {
	background: #fff;
	border: 1px solid var(--cccl-border);
	border-top: 4px solid var(--cccl-navy);
	box-sizing: border-box;
	display: block;
	max-width: none !important;
	padding: clamp(1.35rem, 2.5vw, 2rem) !important;
	width: auto !important;
}

body.page-id-3555.cccl-astra .cccl-contact-details .elementor-widget-wrap {
	padding: 0 !important;
}

body.page-id-3555.cccl-astra .cccl-contact-detail-heading .elementor-heading-title {
	color: var(--cccl-navy) !important;
	font-family: "Noto Sans Thai", Tahoma, Arial, sans-serif !important;
	font-size: clamp(1.2rem, 1.8vw, 1.4rem) !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
	margin: 0 0 1rem;
}

body.page-id-3555.cccl-astra .cccl-contact-detail-heading .elementor-heading-title::after {
	height: 3px;
	margin-top: 0.65rem;
	width: 2.5rem;
}

body.page-id-3555.cccl-astra .cccl-contact-detail-copy,
body.page-id-3555.cccl-astra .cccl-contact-detail-list {
	margin: 0;
}

body.page-id-3555.cccl-astra .cccl-contact-detail-list .elementor-icon-list-items {
	margin: 0;
}

body.page-id-3555.cccl-astra .cccl-contact-detail-list .elementor-icon-list-item {
	margin-bottom: 0.55rem;
}

body.page-id-3555.cccl-astra .cccl-contact-detail-list .elementor-icon-list-text,
body.page-id-3555.cccl-astra .cccl-contact-detail-list a {
	color: var(--cccl-navy) !important;
	display: inline-flex;
	align-items: center;
	font-family: "Noto Sans Thai", Tahoma, Arial, sans-serif !important;
	font-weight: 700;
	min-height: 44px;
	text-decoration: none;
}

body.page-id-3555.cccl-astra .cccl-contact-detail-list a:hover,
body.page-id-3555.cccl-astra .cccl-contact-detail-list a:focus-visible {
	color: var(--cccl-red) !important;
	text-decoration: underline;
}

body.page-id-3555.cccl-astra .cccl-contact-detail-list a:focus-visible {
	box-shadow: 0 0 0 3px var(--cccl-gold);
	outline: 3px solid var(--cccl-gold);
	outline-offset: 3px;
}

body.page-id-3555.cccl-astra .cccl-contact-map {
	background: var(--cccl-surface);
	border-bottom: 1px solid var(--cccl-border);
	padding: clamp(2.5rem, 5vw, 4.5rem) 1rem;
}

body.page-id-3555.cccl-astra .cccl-contact-map .elementor-widget-image,
body.page-id-3555.cccl-astra .cccl-contact-map .elementor-widget-container {
	margin: 0 auto;
	max-width: 960px;
	width: 100%;
}

body.page-id-3555.cccl-astra .cccl-contact-map img {
	border: 1px solid var(--cccl-border);
	display: block;
	height: auto;
	width: 100%;
}

/* Astra remains the single authoritative footer shell. */
body.page-id-3555.cccl-astra .cccl-contact-legacy-footer {
	display: none;
}

@media (max-width: 921px) {
	body.page-id-3555.cccl-astra .cccl-contact-details > .elementor-container {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.page-id-3555.cccl-astra .cccl-contact-location {
		grid-column: 1 / -1;
	}
}

@media (max-width: 544px) {
	body.page-id-3555.cccl-astra .cccl-contact-intro,
	body.page-id-3555.cccl-astra .cccl-contact-details,
	body.page-id-3555.cccl-astra .cccl-contact-map {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	body.page-id-3555.cccl-astra .cccl-contact-details > .elementor-container {
		grid-template-columns: 1fr;
	}

	body.page-id-3555.cccl-astra .cccl-contact-location {
		grid-column: auto;
	}

	body.page-id-3555.cccl-astra .cccl-contact-detail-copy p,
	body.page-id-3555.cccl-astra .cccl-contact-detail-list {
		font-size: 0.96rem !important;
	}
}

/* Portfolio reference presentation. The section classes are semantic
 * classes added to the existing Elementor structure; no generated Elementor
 * IDs are used as long-term hooks. */
body.page-id-3519.cccl-astra .cccl-portfolio-context {
	background: var(--cccl-surface);
	border-bottom: 1px solid var(--cccl-border);
	padding-bottom: clamp(3rem, 6vw, 5rem);
	padding-top: clamp(3rem, 6vw, 5rem);
}

body.page-id-3519.cccl-astra .cccl-portfolio-context > .elementor-container,
body.page-id-3519.cccl-astra .cccl-portfolio-projects-heading > .elementor-container {
	max-width: var(--cccl-content-width);
}

body.page-id-3519.cccl-astra .cccl-portfolio-context h2,
body.page-id-3519.cccl-astra .cccl-portfolio-context h3,
body.page-id-3519.cccl-astra .cccl-portfolio-projects-heading h1 {
	color: var(--cccl-navy);
}

body.page-id-3519.cccl-astra .cccl-portfolio-projects-heading {
	background: #fff;
	padding-bottom: clamp(2.5rem, 5vw, 4rem);
	padding-top: clamp(3.5rem, 7vw, 6rem);
}

body.page-id-3519.cccl-astra .cccl-portfolio-projects-heading h1 {
	font-size: clamp(2rem, 4vw, 3.2rem);
	line-height: 1.15;
	margin: 0;
}

body.page-id-3519.cccl-astra .cccl-portfolio-projects-heading h1::after {
	background: var(--cccl-red);
	content: "";
	display: block;
	height: 4px;
	margin-top: 1.25rem;
	width: 4rem;
}

body.page-id-3519.cccl-astra .cccl-portfolio-project {
	background: #fff;
	border: 1px solid var(--cccl-border);
	border-top: 4px solid var(--cccl-navy);
	box-shadow: 0 10px 28px rgba(8, 43, 92, 0.08);
	margin: 0 auto clamp(2rem, 5vw, 4rem);
	max-width: var(--cccl-content-width);
	overflow: hidden;
	width: calc(100% - 2rem);
}

body.page-id-3519.cccl-astra .cccl-portfolio-project > .elementor-container {
	align-items: stretch;
	max-width: none;
}

body.page-id-3519.cccl-astra .cccl-portfolio-project > .elementor-container > .elementor-column {
	box-sizing: border-box;
	flex: 0 0 50%;
	max-width: 50%;
	width: 50%;
}

/* The recovered sections retain Elementor inline percentage widths from the
 * legacy layout. Override those structural values only inside the scoped
 * Portfolio panels so the new presentation has a true two-up grid. */
body.page-id-3519.cccl-astra .cccl-portfolio-project > .elementor-container > .elementor-column.elementor-element {
	flex-basis: 50% !important;
	max-width: 50% !important;
	width: 50% !important;
}

body.page-id-3519.cccl-astra .cccl-portfolio-project > .elementor-container > .elementor-column:first-child {
	align-items: center;
	background: var(--cccl-surface);
	display: flex;
	padding: clamp(1rem, 2.5vw, 2rem);
}

body.page-id-3519.cccl-astra .cccl-portfolio-project > .elementor-container > .elementor-column:last-child {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(1.5rem, 3vw, 3rem);
}

body.page-id-3519.cccl-astra .cccl-portfolio-project .elementor-widget-wrap {
	padding: 0 !important;
	width: 100%;
}

body.page-id-3519.cccl-astra .cccl-portfolio-project-even > .elementor-container > .elementor-column:first-child {
	order: 2;
}

body.page-id-3519.cccl-astra .cccl-portfolio-project-even > .elementor-container > .elementor-column:last-child {
	order: 1;
}

body.page-id-3519.cccl-astra .cccl-portfolio-project .elementor-widget-image,
body.page-id-3519.cccl-astra .cccl-portfolio-project .elementor-widget-image .elementor-widget-container {
	width: 100%;
}

body.page-id-3519.cccl-astra .cccl-portfolio-project .elementor-widget-image img {
	border: 1px solid var(--cccl-border);
	display: block;
	height: auto;
	width: 100%;
}

body.page-id-3519.cccl-astra .cccl-portfolio-project h3.elementor-heading-title {
	color: var(--cccl-navy);
	font-size: clamp(1.15rem, 1.6vw, 1.45rem);
	line-height: 1.45;
	margin: 0 0 1rem;
}

body.page-id-3519.cccl-astra .cccl-portfolio-project .elementor-widget-text-editor {
	color: var(--cccl-muted);
	font-size: 0.96rem;
	line-height: 1.8;
}

body.page-id-3519.cccl-astra .cccl-portfolio-project .elementor-widget-text-editor p:last-child {
	margin-bottom: 0;
}

body.page-id-3519.cccl-astra .cccl-portfolio-project .elementor-widget-button {
	margin-top: 1.5rem;
}

body.page-id-3519.cccl-astra .cccl-portfolio-project .elementor-button {
	background: var(--cccl-navy);
	border: 1px solid var(--cccl-navy);
	border-radius: var(--cccl-radius);
	color: #fff;
	font-weight: 700;
	padding: 0.7rem 1.25rem;
}

body.page-id-3519.cccl-astra .cccl-portfolio-project .elementor-button:hover,
body.page-id-3519.cccl-astra .cccl-portfolio-project .elementor-button:focus-visible {
	background: var(--cccl-red);
	border-color: var(--cccl-red);
	color: #fff;
}

body.page-id-3519.cccl-astra .cccl-portfolio-project .elementor-button:focus-visible,
body.page-id-3519.cccl-astra .cccl-portfolio-project .elementor-widget-image a:focus-visible {
	box-shadow: 0 0 0 3px var(--cccl-gold);
	outline: 3px solid var(--cccl-gold);
	outline-offset: 3px;
}

/* The Astra footer is the authoritative shell, matching the frozen Home. */
body.page-id-3519.cccl-astra .cccl-portfolio-page-footer {
	display: none;
}

@media (max-width: 921px) {
	body.page-id-3519.cccl-astra .cccl-portfolio-project > .elementor-container {
		flex-direction: column;
	}

	body.page-id-3519.cccl-astra .cccl-portfolio-project > .elementor-container > .elementor-column:first-child,
	body.page-id-3519.cccl-astra .cccl-portfolio-project > .elementor-container > .elementor-column:last-child {
	flex: 0 0 100%;
	max-width: none;
	order: initial;
	width: 100%;
}

	body.page-id-3519.cccl-astra .cccl-portfolio-project > .elementor-container > .elementor-column.elementor-element:first-child,
	body.page-id-3519.cccl-astra .cccl-portfolio-project > .elementor-container > .elementor-column.elementor-element:last-child {
	flex-basis: 100% !important;
	max-width: 100% !important;
	width: 100% !important;
}

	body.page-id-3519.cccl-astra .cccl-portfolio-project > .elementor-container > .elementor-column:first-child {
		padding-bottom: 1rem;
	}
}

@media (max-width: 544px) {
	body.page-id-3519.cccl-astra .cccl-portfolio-project {
		margin-bottom: 2rem;
		width: calc(100% - 1.5rem);
	}

	body.page-id-3519.cccl-astra .cccl-portfolio-context {
		padding-bottom: 3rem;
		padding-top: 3rem;
	}

	body.page-id-3519.cccl-astra .cccl-portfolio-projects-heading {
		padding-bottom: 2.5rem;
		padding-top: 3.5rem;
	}

	body.page-id-3519.cccl-astra .cccl-portfolio-project > .elementor-container > .elementor-column:last-child {
		padding: 1.5rem;
	}

	body.page-id-3519.cccl-astra .cccl-portfolio-project .elementor-widget-text-editor {
		font-size: 0.94rem;
		line-height: 1.75;
	}
}
