.esg-container {
	font-family: inherit;
}

.esg-section {
	position: relative;
	width: 100%;
	overflow: hidden;
	padding: 40px 0;
}

/* Scoped global tags to prevent conflicts */
.esg-container img,
.esg-container video {
	/* max-width: none; */
	height: auto;
}

/* Section 2: Vision & Mission */
.vision-bg {
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

@media (min-width: 768px) {
	.vision-bg {
		background-image: url('https://www.asiaplus.co.th/api/image?imageUrl=uploads/ESG/Desktop/Vision-BG-Desktop.png');
		aspect-ratio: 1100 / 380;
	}
}

@media (max-width: 767px) {
	.vision-bg {
		background-image: url('https://www.asiaplus.co.th/api/image?imageUrl=uploads/ESG/Mobile/Vision-BG-Mobile.png');
		min-height: 400px;
		background-size: initial;
		background-position: top center;
	}
}

.vision-content {
	max-width: 800px;
	text-align: center;
	z-index: 2;
}

.vision-title {
	color: #002b5c;
	/* Dark navy from prototype image 2 */
	font-weight: bold;
	font-size: 2.4rem;
	margin-bottom: 2rem;
}

.vision-text {
	color: #333;
	font-size: 2rem;
	line-height: 1.5;
	max-width: 800px;
	margin: 0 auto;
}

/* General Sections */
.section-title {
	color: #002b5c;
	/* Dark navy for all headers */
	font-weight: bold;
	font-size: 2.2rem;
	margin-bottom: 30px;
	text-align: center;
	display: none;
}

/* Visibility Helpers */
@media (min-width: 768px) {
	.desktop-only {
		display: block !important;
	}

	.mobile-only {
		display: none !important;
	}
}

@media (max-width: 767px) {
	.desktop-only {
		display: none !important;
	}

	.mobile-only {
		display: block !important;
	}

	.vision-title {
		font-size: 1.7rem;
		margin-bottom: 1rem;
	}

	.vision-text {
		font-size: 1.4rem;
	}
}

.section-container {
	/* max-width: 1100px; */
	width: 100%;
	margin: 0 auto;
	/* padding: 40px 15px; */
}

.section-container:last-of-type {
	margin-bottom: 30px;
}

@media (max-width: 767px) {
	.section-title {
		font-size: 1.8rem;
	}

	.section-container {
		max-width: 1100px;
		width: 100%;
		margin: 0 auto;
		/* padding: 20px 15px; */
	}

	.resp-img {
		width: 100%;
		max-width: 1100px;
		margin: 0 auto;
	}
}

/* Responsive Image Helper */
.resp-img {
	height: auto;
	display: block;
	margin: 0 auto;
}

@media (min-width: 768px) {
	.goals-section {
		background-image: url('https://www.asiaplus.co.th/api/image?imageUrl=uploads/ESG/Desktop/ESG-Goals-BG-Desktop.png');
	}
}

@media (max-width: 767px) {
	.goals-section {
		background-image: url('https://www.asiaplus.co.th/api/image?imageUrl=uploads/ESG/Desktop/ESG-Goals-BG-Desktop.png');
	}
}

.goals-title {
	text-align: center;
	color: #008477;
	margin-bottom: 40px;
}

.goals-title h2 {
	color: #002b5c;
	/* Dark navy */
	font-size: 2.22rem;
	font-weight: bold;
	margin-bottom: 5px;
}

.goals-title p {
	color: #002b5c;
	font-size: 1.4rem;
}

.dimension-tabs {
	margin-bottom: 40px;
	display: flex;
	justify-content: center;
}

.dimension-tabs .tab-btn {
	min-width: 180px;
}

.tiles-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	max-width: 1100px;
	margin: 0 auto;
}

@media (max-width: 1024px) {
	.tiles-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.tiles-grid {
		grid-template-columns: repeat(1, 1fr);
	}
}

.tile-box {
	cursor: pointer;
	position: relative;
	transition: transform 0.2s;
}

.tile-box:hover {
	transform: translateY(-5px);
}

/* Carousel Styles */
.mobile-carousel-wrapper {
	position: relative;
	padding-bottom: 30px;
}

.mobile-slider {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	gap: 15px;
	padding-bottom: 10px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.mobile-slider::-webkit-scrollbar {
	display: none;
}

.slider-item {
	flex: 0 0 calc(100% - 60px);
	scroll-snap-align: center;
	transition: transform 0.3s ease;
}

.slider-item img {
	width: 100%;
	border-radius: 15px;
}

.carousel-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 15px;
}

.dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ccc;
	transition:
		background 0.3s,
		width 0.3s;
}

.dot.active {
	background: #00b2a9;
	width: 20px;
	border-radius: 10px;
}

/* Desktop Grid Card */
.grid-card {
	transition: transform 0.3s;
}

.grid-card:hover {
	transform: translateY(-5px);
}

.tile-box img {
	width: 100%;
	display: block;
	border-radius: 12px;
}

.hidden {
	display: none !important;
}

/* Styles from tab1.php */
.download-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
	gap: 20px;
}

.download-title h2 {
	color: #002b5c;
	font-size: 2.2rem;
	font-weight: bold;
	margin: 0;
}

.search-container {
	display: flex;
	gap: 10px;
	align-items: center;
}

.search-input {
	padding: 8px 15px;
	border: 1px solid #ccc;
	border-radius: 8px;
	font-size: 1.5rem;
	width: 250px;
}

.search-btn {
	background: #00b2a9;
	color: white;
	border: none;
	padding: 8px 25px;
	border-radius: 8px;
	font-size: 1.5rem;
	cursor: pointer;
	transition: background 0.3s;
}

.search-btn:hover {
	background: #008477;
}

/* Table Styles */
.download-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 30px;
	background: white;
}

.download-table thead {
	background: #1d3557;
	/* Dark navy header */
	color: white;
}

.download-table th {
	padding: 15px;
	text-align: left;
	font-size: 1.6rem;
	font-weight: 500;
	border: none;
}

.download-table th:nth-child(2),
.download-table th:nth-child(3) {
	text-align: center;
}

.download-table td {
	padding: 15px;
	border-bottom: 1px solid #eee;
	font-size: 1.5rem;
	color: #333;
	vertical-align: middle;
}

.download-table tr:nth-child(even) {
	background: #f8fdfc;
}

.type-col,
.download-col {
	text-align: center;
}

.pdf-icon {
	width: 24px;
	height: 24px;
}

.download-link {
	color: #333;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
}

.download-link:hover {
	color: #00b2a9;
}

.download-icon-svg {
	stroke: #00b2a9;
}

@media (max-width: 767px) {
	.download-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.search-container {
		width: 100%;
	}

	.search-input {
		flex: 1;
	}

	/* Hide table header on mobile */
	.download-table thead {
		display: none;
	}

	/* Convert rows to card layout */
	.download-table,
	.download-table tbody,
	.download-table tr,
	.download-table td {
		display: block;
		width: 100%;
	}

	.download-table tr {
		background: #fff;
		border: 1px solid #e8e8e8;
		border-radius: 8px;
		margin-bottom: 12px;
		padding: 14px 16px;
		box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
	}

	.download-table tr:nth-child(even) {
		background: #fff;
	}

	.download-table td {
		padding: 0;
		border-bottom: none;
		font-size: 1.4rem;
	}

	/* Title - full width on top */
	.download-table td:first-child {
		font-weight: 500;
		color: #1d3557;
		margin-bottom: 10px;
		line-height: 1.4;
	}

	/* Type and download columns inline */
	.download-table td.type-col,
	.download-table td.download-col {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: auto;
		vertical-align: middle;
	}

	.download-table td.type-col {
		margin-right: 12px;
	}

	.download-link {
		font-size: 1.3rem;
	}

	.pdf-icon {
		width: 20px;
		height: 20px;
	}
}

/* Styles from tab2.php */
.vision-bg-tab2 {
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

@media (min-width: 768px) {
	.vision-bg-tab2 {
		background-image: url('https://www.asiaplus.co.th/api/image?imageUrl=uploads/ESG/Desktop/ProjectGoals-TH-Desktop.png');
		aspect-ratio: 1100 / 305;
	}
}

@media (max-width: 767px) {
	.vision-bg-tab2 {
		background-image: url('https://www.asiaplus.co.th/api/image?imageUrl=uploads/ESG/Mobile/ProjectGoals-TH-Mobile.png');
		min-height: 500px;
		background-size: initial;
		background-position: top center;
	}
}

.vision-line {
	width: 60px;
	height: 4px;
	background-color: #00b2a9;
	margin: -1rem auto 2rem;
	border-radius: 2px;
}

/* Styles from tab5.php */
@keyframes spin {
	from {
		transform: rotate(0);
	}
	to {
		transform: rotate(359deg);
	}
}

.spinner-box {
	height: 100px;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: transparent;
}

.circle-border {
	width: 50px;
	height: 50px;
	padding: 3px;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 50%;
	background: rgb(63, 249, 220);
	background: linear-gradient(
		0deg,
		rgba(0, 175, 159, 0.1) 33%,
		rgba(0, 175, 159, 1) 100%
	);
	animation: spin 0.8s linear 0s infinite;
}

.circle-core {
	width: 100%;
	height: 100%;
	background-color: #ffffff;
	border-radius: 50%;
}
