/* ========================= ========================= ========================= ========================= ========================= =========================
***
* please make sure all media_query css inside @layer media_query 
***
* please make sure all media_query css inside @layer media_query 
* please make sure all media_query css inside @layer media_query 
* Use CSS @layer
* Use CSS @layer
* Use CSS @layer
***
 ========================= ========================= ========================= ========================= ========================= =========================*/

/* ========================= ========================= ========================= ========================= ========================= =========================
***
* use base.css to reset the browser style and style basic tag, some class cannot be classify also include in base css, color variable also set in base.css for global use
***
* then use @layer plugin to include all plugin related css
* then use @layer components to include all components such as button, modal, card, accordion, etc
* then use @layer layout to put style the layout. @layer layout also include header footer, mobile menu and body area styling
* then use @layer custom to put style for special styling
* then use @layer pages to put style for specific pages. eg index page has index.css with @layer pages
* then use @layer inline_style for inline_style class
* then use @layer media_query to put style for mobile and responsive design
* last use @layer print to put style for print version

* make sure all style is in last least one @layer{write your style} in order to fullfill the layer rules
* make sure all style is in last least one @layer{write your style} in order to fullfill the layer rules
* make sure all style is in last least one @layer{write your style} in order to fullfill the layer rules
* make sure all style is in last least one @layer{write your style} in order to fullfill the layer rules

* dont use px as font size unit in this project because this project uses aaa function so use rem as font size unit!!!!!!!!!!!!!!!!!!!!!!
* dont use px as font size unit in this project because this project uses aaa function so use rem as font size unit!!!!!!!!!!!!!!!!!!!!!!
* dont use px as font size unit in this project because this project uses aaa function so use rem as font size unit!!!!!!!!!!!!!!!!!!!!!!
***
 ========================= ========================= ========================= ========================= ========================= =========================*/

@layer media_query {
	@media(max-width: 1024px) {
		html {
			background-color: #fff;
		}
	}
}

@layer media_query {
	@media (max-width: 1024px) {
		.scroll_table {
			position: relative;
		}

		.scroll_table .table_wrapper1,
		.scroll_table table {
			min-width: 33rem;
		}

		.scroll_table_inside_wrapper {
			
			width: calc(100vw - 3rem);
			overflow-x: auto;
		}

		.need_to_scroll:before {
			content: "";
			position: absolute;
			z-index: 25;
			top: 5rem;
			right: 0.9375rem;
			width: 3rem;
			height: 2rem;
			transition: width 0.3s ease-in-out, height 0.3s ease-in-out,
				opacity 0.3s ease-in-out;
			-webkit-animation: passing 1.3s linear infinite;
			animation: passing 1.3s linear infinite;
			background: url(../images/icon/icon_arrow_right.svg) no-repeat center center;
			background-size: contain;
		}

		.need_to_scroll:after {
			content: "";
			position: absolute;
			z-index: 22;
			top: 0;
			right: 0;
			display: block;
			width: 3.75rem;
			height: 100%;
			transition: width 0.3s ease-in-out, height 0.3s ease-in-out,
				opacity 0.3s ease-in-out;
			pointer-events: none;
			background-image: -webkit-gradient(linear,
					left top,
					right top,
					from(rgba(255, 255, 255, 0)),
					color-stop(30%, rgba(255, 255, 255, 0.5)),
					to(#fff));
			background-image: -o-linear-gradient(left,
					rgba(255, 255, 255, 0) 0,
					rgba(255, 255, 255, 0.5) 30%,
					#fff 100%);
			background-image: linear-gradient(to right,
					rgba(255, 255, 255, 0) 0,
					rgba(255, 255, 255, 0.5) 30%,
					#fff 100%);
		}

		.need_to_scroll.reachend:before {
			width: 0;
			height: 0;
			opacity: 0;
			overflow: hidden;
		}

		.need_to_scroll.reachend:after {
			width: 0;
			height: 0;
			opacity: 0;
			overflow: hidden;
		}
	}

	@media(max-width: 1024px) {
		.left_menu {
			display: none;
		}

		.main_cont_row {
			grid-template-columns: 1fr;
			padding-right: 1rem;
		}

		.content_area:has(.left_menu) .breadcrumb_bigwrap {
			margin-left: var(--main_content_pad_left);
			padding-right:var(--main_content_pad_right);
		}
	}

	@media(max-width: 1024px) {
		.mobile_show {
			display: block;
		}

		.desktop_show {
			display: none;
		}

		.header_big_area {
			position: fixed;
			top: 0;
			z-index: 7000;
		}

		.page_wrapper {
			/*becuase header is fixed so the browser doesnt regonize as element so only two elements left in grid system*/
			grid-template-rows: 1fr max-content;
		}

		.content_area {
			position: relative;
			z-index: 3000;
			box-shadow: none;
		}

		.mobSearchArea {
			display: grid;
			grid-template-rows: max-content 1fr;
		}

		body:has(.mobMenuArea.active, .mobSearchArea.active) {
			overflow-y: hidden;
		}

		.mobMenuArea {
			display: grid;
			grid-template-rows: max-content max-content 1fr max-content;
		}

		.mobMenuBtn {
			display: flex;
			padding-bottom: 0.5rem;
			padding-right: 1rem;
			align-items: center
		}

		.mobSearchBtn {
			display: flex;
			padding-bottom: 0.5rem;
		}

		.right_tool {
			display: none;
		}

		.header_area .brandhk_logo {
			display: none;
		}

		.region-header-left {
			display: none;
		}

		.header2 {
			display: none;
		}

		.header_area .section {
			display: grid;
			grid-template-columns: 1fr max-content max-content;
			align-items: center;
			column-gap: 1rem;
			padding-top: 0.5rem;
		}

		.header_area {
			background-color: #fff;
			background-image: none;
		}

		.content_area .navigation {
			display: none;
		}

		.my_footer {
			padding-left: 1rem;
			padding-right: 1rem;
		}

		.my_footer .normalfooter {}

		.my_footer .left_side {}


		.my_footer .footer_item:not(.copyright) {
			padding-left: 0.5rem;
			padding-right: 0;
		}

		.footer_item.copyright::after {
			width: 0;
			height: 0;
		}

		.footer_item:last-child::after {
			width: 1px;
			height: 1rem;
		}

		.my_footer .footer_item::after {
			right: auto;
			left: 0;
		}

		.my_footer .right_side {
			align-items: flex-start;

		}

		.my_footer .right_side>*:not(:last-child) {
			padding-right: 0;
		}

		.my_footer .true_footer_date {
			display: none;
		}

		.mobile_footer_date {
			display: block;
		}

		.footer_item {}

		.my_footer :where(.wcag_logo_wrap, .last_rev_date) {
			margin-bottom: 0.5rem;
		}

		:where(.banner2, .banner3) img {
			width: auto;
			height: auto
		}

	}
}

@layer media_query {
	@media(max-width: 767px) {
		.television_announcements .views-row {
			grid-template-columns: 1fr;
			row-gap: 1rem;
		}
	}
}

@layer media_query {
	@media(max-width: 767px) {
		.videos_content .views-row {
			grid-template-columns: 1fr;
			row-gap: 1rem;

		}
	}
}

@layer media_query {
	@media(max-width: 767px) {
		.views-table tr {
			display: block;
		}

		.views-table td {
			display: block;
		}

		.views-table td:nth-child(1) {
			padding-top: 1rem;
			width: 100%;
		}

		.views-table td:nth-child(2) {
			width: 100%;
			text-align: left;
		}
	}
}


@layer media_query {
	@media(max-width: 992px) {
		.ans_group {

			grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
		}

	}

	@media(max-width: 767px) {
		.searching_row {
			flex-wrap: wrap;
		}

		.searching_row>* {
			width: 100%;
		}
	}
}

@layer media_query {
	@media screen and (max-width: 800px) {
		.return_table span {
			flex-direction: column;
			align-items: flex-start;
		}

		.return_table strong:last-child {
			margin-left: 0;
			text-align: left;
		}
	}
}

@layer media_query {
	@media (max-width: 1024px) {
		.hide-below-1024 {
			display: none;
		}
	}
}