/**
Theme Name: Tripat School
Author: Sasipatr x Watchanon
Description: Custom theme for Tripat School
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: tripat
Template: astra
*/
/* Fonts */
/*
@font-face {
  font-family: "LINE Seed Sans TH";
  src: url("fonts/LINE_Seed_Sans_TH/LINESeedSansTH_W_Rg.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "LINE Seed Sans TH";
  src: url("fonts/LINE_Seed_Sans_TH/LINESeedSansTH_W_Bd.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
*/
@import url('https://fonts.googleapis.com/css2?family=Athiti:wght@200;300;400;500;600;700&display=swap');
@font-face {
  font-family: "Baar Philos";
  src: url("fonts/Baar_Philos/baarphilos.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Baar Philos";
  src: url("fonts/Baar_Philos/baarphilosbold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

body, button, input, select, textarea, .ast-button, .ast-custom-button {
    font-family: "Athiti", sans-serif;
    font-weight: 500;
}
h1, .entry-content h1, .entry-content h1 a, h2, .entry-content h2, .entry-content h2 a, h3, .entry-content h3, .entry-content h3 a, h4, .entry-content h4, .entry-content h4 a, h5, .entry-content h5, .entry-content h5 a, h6, .entry-content h6, .entry-content h6 a, .site-title, .site-title a {
    font-family: "Baar Philos", "Athiti", sans-serif;
    font-weight: 600;
}


/* Header */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

/* Post Loop Adjust */
.ekit-wid-con .elementskit-post-image-card:hover .elementskit-entry-thumb>img {
	transform: scale(1) !important;
}
.ekit-wid-con .elementskit-post-image-card {
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}
.ekit-wid-con .elementskit-post-image-card .elementskit-entry-thumb {
	border: none !important;
	border-radius: 0 !important;
}
.elementskit-post-body {
	border: none !important;
}

/* Remove margin-bottom in Elementor last paragraph */
.elementor-widget-text-editor p:last-child {
	margin-bottom: 0;
}

/* Header */
#masthead {
	background-image: url(/wp-content/uploads/2024/11/bg-head1-2.png);
	background-position: center bottom;
	background-size: 150% 100%;
	background-repeat: no-repeat;
	padding-bottom: 20px;
}
@media(min-width: 922px) {
	#masthead {
		background-size: 100% 100%;
		padding-bottom: 40px;
	}
}
.ast-builder-menu-1 {
  width: 100%;
}
.header-main-layout-1 .ast-main-header-bar-alignment {
  margin-left: 0;
  width: 100%;
}
.ast-builder-menu-1 .main-navigation {
  width: 100%;
}
.ast-builder-menu-1 .main-navigation > ul {
  width: 100%;
  justify-content: space-between;
}
.ast-builder-menu-1 ul.main-header-menu > li.menu-item:first-child > .menu-link {
  padding-left: 0;
}
.ast-builder-menu-1 ul.main-header-menu > li.menu-item:last-child > .menu-link {
  padding-right: 0;
}

#ast-hf-menu-2 .menu-item:last-child > .menu-link {
  padding-right: 0;
}

/* Content */
@media (min-width: 922px) {
	.ast-container {
		max-width: 1200px;
	}
}

#content {
	margin-top: -50px;
}

._modern {
	font-family: "Baar Philos", "Athiti", sans-serif;
}

/* Form */
.forminator-custom-form .forminator-label {
  font-weight: 600 !important;
}

.forminator-custom-form .forminator-button-submit {
	background-color: transparent !important;
	background-image: url(/wp-content/uploads/2024/12/button-green.png) !important;
	background-position: center;
	background-size: 100% 100% !important;
	background-repeat: no-repeat;
	font-size: 20px !important;
	font-weight: 600 !important;
	padding: 10px 50px !important;
	width: max-content !important;
}

.forminator-custom-form .forminator-button-submit:hover {
  box-shadow: none !important;
}

/* Button */
.elementor-button {
  -webkit-mask-image: url(/wp-content/uploads/2024/09/Asset-3@2x.png);
  mask-image: url(/wp-content/uploads/2024/09/Asset-3@2x.png);
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}
body .alm-btn-wrap .alm-load-more-btn {
	-webkit-mask-image: url(/wp-content/uploads/2024/09/Asset-3@2x.png);
	mask-image: url(/wp-content/uploads/2024/09/Asset-3@2x.png);
	mask-size: 100% 100%;
	mask-repeat: no-repeat;
	padding: 15px 40px;
	height: unset;
	font-size: 24px;
	font-weight: 600;
	background-color: #514ea1;
}
body .alm-btn-wrap .alm-load-more-btn.loading, 
body .alm-btn-wrap .alm-load-more-btn:hover,
body .alm-btn-wrap .alm-load-more-btn.done, 
body .alm-btn-wrap .alm-load-more-btn:disabled {
	background-color: #514ea1;
}
body .alm-btn-wrap .alm-load-more-btn.loading {
  padding-left: 60px;
}
body .alm-btn-wrap .alm-load-more-btn.loading:before {
  width: 20px;
  height: 20px;
  left: 28px;
  top: 5px;
}

/* Page */
body.page:not(.parent-pageid-5487) .tripat-page-content #primary {
	background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 20%) center top no-repeat, url(/wp-content/uploads/2020/02/0ac071542114c170ffacd4c7c36f94a4.png) center top no-repeat;
	background-size: 100%, cover;
	
}
body.page .tripat-banner {
	height: 600px;
	overflow: hidden;
	background-color: #000;
	position: relative;
	display: flex;
	align-items: center;
}
body.page .tripat-banner .banner-img {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0.7;
}
body.page .tripat-banner .ast-container {
	z-index: 1;
	width: 100%;
}
body.page .tripat-banner h1 {
	color: #fff;
}
body.page .tripat-banner .banner-bottom {
	width: 100%;
	position: absolute;
	bottom: -5px;
	left: 0;
	z-index: 1;
}

/* Post */
body.single-post .tripat-post-content {
	background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 20%) center top no-repeat, linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 20%) center bottom no-repeat, url(/wp-content/uploads/2020/02/0ac071542114c170ffacd4c7c36f94a4.png) center top no-repeat;
	background-size: 100%, 100%, cover;
	overflow: hidden;
	padding-bottom: 3px;
    margin-bottom: -3px;
}
body.single-post .content-area nav.post-navigation {
	display: none;
}
body.single-post .site-content .ast-container {
	padding-left: 0;
	padding-right: 0;
	max-width: 100% !important;
}
body.single-post .site-content .ast-container #primary {
	float: none;
	margin: 4em auto !important;
	max-width: 750px;
	padding-left: 20px;
	padding-right: 20px;
}
body.single-post .tripat-banner {
	height: 600px;
	overflow: hidden;
	background-color: #000;
	position: relative;
}
body.single-post .banner-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
body.single-post .banner-bottom {
	width: 100%;
	position: absolute;
	bottom: -5px;
	left: 0;
	z-index: 1;
}
body.single-post h1.entry-title {
	color: #554595;
	font-weight: 600;
	font-size: 36px;
}

body.single-post .ast-article-single {
	font-size: 24px;
}
body.single-post .ast-article-single .posted-on {
	display: none !important;
}



.tripat-related-content {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}
.related-posts-title {
	text-align: center;
	margin-bottom: 1em;
	color: #554595;
}

.content-item .entry-title {
	font-size: 24px;
	margin-bottom: 5px;
	color: #554595;
}
.content-item .entry-title a {
	font-weight: 600;
	color: #554595;
	font-size: 30px;
	display: -webkit-box;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
    overflow: hidden;
	min-height: 72px;
}
.content-item .entry-meta {
	color: var(--ast-global-color-3);
	margin-bottom: 10px;
}
.content-item .entry-excerpt {
	color: var(--ast-global-color-3);
}
.content-item .entry-excerpt p {
	display: -webkit-box;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3;
    text-overflow: ellipsis;
	overflow: hidden;
	font-size: 24px;
}
.content-item .entry-excerpt p.read-more {
	display: none;
}
.content-item img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	mask-image: url(/wp-content/uploads/2025/08/fung-v5-4x3-1.png);
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
}

.ast-row {
	display: grid;
	gap: 20px;
}
.ast-row:before,
.ast-row:after {
	display: none;
}
@media(min-width: 992px) {
	.ast-row {
		grid-template-columns: repeat(3, 1fr);
	}
	.ast-row.-news {
		grid-template-columns: repeat(2, 1fr);
	}
	.ast-row.-events {
		grid-template-columns: 1fr;
	}
}
.ast-row.-events .content-item .entry-meta {
	margin-bottom: 0;
}
.tripat-related-content .ast-row {
	margin-left: 0;
	margin-right: 0;
}

.article-menu .menu {
	padding: 0;
	margin: 0;
	list-style: none;
	display: flex;
	justify-content: end;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 22px;
}
/* .article-menu .menu li {
	padding: 0 20px;
	border-right: 1px solid var(--ast-global-color-0);
	font-weight: 500;
} */
.article-menu li.current_page_item {
  font-weight: 700;
}
/* .article-menu .menu li:first-of-type {
  padding-left: 0;
}
.article-menu .menu li:last-of-type {
  padding-right: 0;
  border-right: none;
} */
.article-menu .menu li a {
	display: block;
	padding: 10px 34px;
	background-color: var(--ast-global-color-0);
	color: #fff;
	mask-image: url(/wp-content/uploads/2024/09/Asset-3@2x.png);
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
}

body .fancybox__content>.f-button.is-close-btn {
  background-color: #514ea1;
  color: #fff;
  border-radius: 50%;
  opacity: 1;
}

/* Archived */
/*
body.category .site-content .ast-container {
	max-width: 100%;
	padding-left: 0;
	padding-right: 0;
}
body.category .tripat-banner .ast-container {
	max-width: 1200px;
	padding-left: 20px;
	padding-right: 20px;
}
body.category .tripat-archive-content main {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}
body.category .tripat-archive-content #primary {
	background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 20%) center top no-repeat, linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 20%) center bottom no-repeat, url(/wp-content/uploads/2020/02/0ac071542114c170ffacd4c7c36f94a4.png) center top no-repeat;
	background-size: 100%, 100%, cover;
	overflow: hidden;
	margin-top: 0 !important;
    margin-bottom: -3px;
	padding-top: 4em;
	padding-bottom: 4em;
}
body.category .tripat-banner {
	height: 600px;
	overflow: hidden;
	background-color: #000;
	position: relative;
	display: flex;
	align-items: center;
}
body.category .tripat-banner .banner-img {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0.7;
}
body.category .tripat-banner .ast-container {
	z-index: 1;
	width: 100%;
}
body.category .tripat-banner h1 {
	color: #fff;
}
body.category .tripat-banner .banner-bottom {
	width: 100%;
	position: absolute;
	bottom: -5px;
	left: 0;
	z-index: 1;
}
@media(min-width: 992px) {
	body.category .ast-row {
	  display: grid;
	  grid-template-columns: repeat(3, 1fr);
	}
}
body.category .ast-row:before,
body.category .ast-row:after {
  display: none;
}
body.category .ast-row .blog-layout-1 {
  border-bottom: none;
}
*/

/* Ajax Load More */
.alm-btn-wrap .alm-load-more-btn.done, 
.alm-btn-wrap .alm-load-more-btn:disabled {
	opacity: 0;
	display: none;
}

/* Footer */
@media(max-width: 767px) {
  .ekit-template-content-footer .elementor-image-box-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
  }
}

/* Footer Gradient Top */
.tripat-footer {
	position: relative;
}
.tripat-footer:before {
	content: " ";
	position: absolute;
	top: -60px;
	left: 0;
	width: 100%;
	height: 60px;
	z-index: 1;
	display: block;
	background: linear-gradient(180deg,rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
}

/* Helper */
.text-nowrap {
	white-space: nowrap !important;
}
._heading {
	font-family: "Baar Philos", "Athiti", sans-serif !important;
}

/* Modal */
.my-modal-close {
	padding: 5px 10px;
	margin-top: -5px;
	margin-right: -10px;
}
.my-modal-trigger {
  -webkit-mask-image: url(/wp-content/uploads/2024/09/Asset-3@2x.png);
  mask-image: url(/wp-content/uploads/2024/09/Asset-3@2x.png);
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}
.my-modal-content {
	width: 90vw;
	max-width: 750px;
    height: auto;
    max-height: 90vh;
    margin: 0;
	position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: auto;
	border: none;
	border-radius: 5px;
}