/*
Theme Name: Twenty Twenty-Five
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Five emphasizes simplicity and adaptability. It offers flexible design options, supported by a variety of patterns for different page types, such as services and landing pages, making it ideal for building personal blogs, professional portfolios, online magazines, or business websites. Its templates cater to various blog styles, from text-focused to image-heavy layouts. Additionally, it supports international typography and diverse color palettes, ensuring accessibility and customization for users worldwide.
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/* Import external CSS libraries from external */
@import url("https://www.w3schools.com/w3css/5/w3.css");
@import url("https://fonts.googleapis.com/css?family=Raleway");

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
  text-decoration-thickness: 1px !important;
  text-underline-offset: 0.1em;
	text-decoration: none;
}

a:hover {
	text-decoration: none;
	transform: scale(1.08);
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
  outline-width: 2px;
  outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation
  .wp-block-navigation-submenu
  .wp-block-navigation-item:not(:last-child) {
  margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation
  .wp-block-navigation-item
  .wp-block-navigation-item__content {
  outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation
  .wp-block-navigation-item
  ul.wp-block-navigation__submenu-container
  .wp-block-navigation-item__content {
  outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1,
h2,
h3,
h4,
h5,
h6,
blockquote,
caption,
figcaption,
p {
  text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
  display: block;
}

.post-card-container {
  background-color: rgba(0,0,0,0.03);
		border-radius: 15px;
  width: 100%; /* ทำให้ child-container ขยายเต็มความกว้างของ parent */
  height: 100%; /* ทำให้ child-container ขยายเต็มความสูงของ parent */
  /*box-shadow: 0 2px 3px rgba(111, 111, 111, 0.8);*/ /* เพิ่มเงาให้กับ container */
}

.post-card-container:hover {
	background-color: rgba(0,0,0,0.1);
	border-radius: 30px;
}

.post-card-container div {
		border-radius: 30px;
}

.search-result-card {
	background-color: rgba(10,0,0,0.1);
	border-radius: 15px;
	border-color: white;
}

.stick-to-bottom {
  position: absolute; /* ใช้ตำแหน่งแบบ absolute */
  top: auto; /* ไม่ต้องการให้ติดที่ด้านบน */
  bottom: 1px; /* ติดอยู่ที่ด้านล่างของ parent */
  left: 0; /* ติดอยู่ที่ด้านซ้ายของ parent */
  width: 100%; /* ทำให้กว้างเต็ม parent */
  /*background-color: white;  เพื่อให้เห็นขอบเขต */
}

.stick-to-top {
  position: absolute; 
  top: 2px; 
  bottom: auto;
  left: 0;
  width: 100%;
  background-color:
}

.button-outstanding {
  /*background-color: #0073aa;*/ /* ปรับสีพื้นหลัง */
  color: white; /* ปรับสีตัวอักษร */
  border-radius: 4px; /* ปรับความโค้งของมุม */
  padding: 10px 15px; /* ปรับระยะห่างภายใน */
  text-decoration: none; /* ลบเส้นใต้ */
  font-weight: bold; /* ทำให้ตัวอักษรหนา */
}

.button-outstanding:hover {
  transform: scale(1.1); /* ขยายขนาดเมื่อ hover */
}

.page-title {
  font-family: "Raleway", sans-serif; /* ใช้ฟอนต์ Raleway */
  font-size: 3em; /* ขนาดตัวอักษร */
  font-weight: bold; /* ทำให้ตัวอักษรหนา */
}

.article-search-bar {
  width: 25vw;
}

.featured-image {
  width: 100%;
  height: 30vh;
  object-fit: cover; /* ทำให้ภาพเต็มพื้นที่โดยไม่เสียสัดส่วน */
}

.container-fit-horizontal {
  width: 100%;
}

.select-category-button {
  border: none !important;
  background: none !important;
  outline: none !important;
}

.categories-list {
  justify-content: space-evenly;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-direction: row;
  align-items: center !important;
}

.categories-list li {
  list-style: none;
}

/* Mobile responsive - vertical layout */
@media (max-width: 768px) {
  .categories-list {
    flex-direction: column; /* Change to vertical on mobile */
    justify-content: flex-start; /* Align items to top */
    align-items: stretch; /* Make items full width */
    gap: 8px; /* Reduce gap on mobile */
  }

  .categories-list li {
    width: 100%; /* Full width on mobile */
    text-align: center; /* Center text */
    padding: 12px; /* Add padding for better touch targets */
    list-style: none;
  }
}


.excerpt-box {
  overflow: hidden;
  /* background-color: white; */
  min-height: 120px;
  max-height: 120px; /* Set a maximum height */
}

.card-title {
  min-height: 50px; /* Set a minimum height */
  max-height: 70px;
  overflow: ellipsis;
}

@media (max-width: 768px) {
	.card-title {
  overflow: hidden;
  min-height: 50px; /* Set a minimum height */
  max-height: 50px;

}
}

.tranparent-bg {
	background-color: rgba(0, 0, 0, 0);
}

.fq-footer {
	background-color: rgba(0,0,0,0.2);
}

.footer-text:hover {
		text-decoration: none;
	transform: scale(1.08);
}

.home-page-button {
	border-radius: 20px;
	background: none;
	
	
}
.home-page-button:hover {
	background-color: white;
	color: #2C2F33;
}

.section-container {
	background-color: rgba(0,0,0,0.03);
	border-radius: 15px;
}

.contact-form-button {
	background-color:  #5865F2 !important;
	border-radius: 15px !important;
}

.contact-form-buttin:hover {
	background-color: #4E5D94 !important;
}
