/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  GeneratePress Child Theme
 Author:       Vimamsa
 Author URI:   https://vimamsatraining.com
 Template:     generatepress
 Version:      1.0.0
 Text Domain:  generatepress-child
*/

/* Phase 2: Tag Buttons Style Recovery */
.gb-container-7134d7c2 { margin-bottom: 15px; }
.gb-container-7134d7c2 > .gb-inside-container { padding: 0px; max-width: 1200px; margin-left: auto; margin-right: auto; }
.gb-button-wrapper-621d2c31 { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: flex-end; clear: both; }
.gb-button-wrapper a.gb-button-e378fc0b { 
    display: inline-flex; align-items: center; justify-content: center; 
    font-size: 12px; text-align: right; padding: 2px 5px; margin: 5px; 
    border-radius: 4px; border: 1px solid var(--global-color-7); 
    background-color: var(--base-3); color: var(--contrast-2); 
    text-decoration: none; 
}
.gb-button-wrapper a.gb-button-e378fc0b:hover, 
.gb-button-wrapper a.gb-button-e378fc0b:active, 
.gb-button-wrapper a.gb-button-e378fc0b:focus { 
    background-color: rgb(34, 34, 34); color: rgb(255, 255, 255); 
}

/* My Typography */ 
p {
	text-indent: 36px;}

.inst-p{
	margin:8px 0 5px 0 ;
}

.noid {
text-indent:0;}

strong {
  font-weight: 500;
}

b {
  font-weight: 500;
}

/*-- Some fix Layout --*/

.svg-icon {
	display:block;
 text-align:center;
}
.cls-hdr {
	text-align:center;
	background-color:#666666;
	color:white;
	padding:10px;
	margin-bottom:25px;
	font-size:12px;}
.cls-hdr p{
	text-indent:0px;
}
.cls-hdr h3 {
	color:white;
	margin-bottom:2px;
}

.btn-sm {
	border: 1px solid #ccc;
	padding: 5px 10px;
  line-height: 1.5;
  border-radius: 3px;
	font-size:12px;
	font-weight:400;}

.btn-sm-a{gap:12px;}

.btn-sm-a a{
	border: 1px solid #ccc;
	padding: 5px 10px !important;
	font: 12px kanit !important;
	border-radius: 5px;
}

.btn-sm-a a:hover {
  color: #ffffff!important;
  background-color: #00ea00!important;
}
.btn-md{gap:12px;}

.btn-md a{
	border: 1px solid #ccc;
	padding: 8px 10px !important;
	font: 14px kanit !important;
	border-radius: 5px;
}

.btn-md a:hover {
  color: #ffffff!important;
	background-color: #00ea00!important;
}

.btn-lg-green{
	border: 2px solid #00ea00;
	padding: 10px 10px;
	min-height: 30px;
	font-size: 16px;
	line-height: 1.5em;
	border-radius: 5px;
	display: inline-block;
	margin-bottom: 8px;
	width:100%;
	text-align:center;
}

/* =========================================
   ปุ่มขนาดใหญ่ (ดีไซน์เดิม + เพิ่มแสง Ambient โทน #00ea00)
   ========================================= */
.btn-lg-ambient {
  /* === 1. คุณสมบัติเดิมที่คงไว้ทั้งหมด === */
  padding: 10px 10px;
  min-height: 30px;
  font-size: 16px;
  line-height: 1.5em;
  border-radius: 5px; 
  display: inline-block;
  margin-bottom: 8px;
  width: 100%;
  text-align: center;

  /* === 2. คุณสมบัติที่ปรับเพื่อรองรับแสง Ambient === */
  position: relative;
  border: 2px solid transparent; /* ใช้ขอบใสแทนสีทึบ เพื่อกันพื้นที่ไว้ */
  background-color: transparent; 
  color: inherit; 
  cursor: pointer;
  z-index: 1;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-lg-ambient:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 234, 0, 0.15); /* ปรับสีเงาให้ล้อกับ #00ea00 */
}

/* === เลเยอร์ 1: เส้นแสง Ambient (ใช้ #00ea00 เป็นสีหลัก) === */
.btn-lg-ambient::before {
  content: "";
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px; 
  
  /* 🟢 ไล่สีใหม่: เริ่มต้นและจบที่ #00ea00 (rgba(0, 234, 0, 1)) */
  background: linear-gradient(90deg, 
      rgba(0, 234, 0, 1) 0%,           /* เข้มสุด: #00ea00 */
      rgba(100, 255, 100, 0.95) 30%,   /* สว่างขึ้นนิดนึงเพื่อเชื่อมสี */
      rgba(225, 255, 225, 0.95) 45%,   /* ช่วงเขียวอ่อนจางๆ (แหว่งขาว) */
      rgba(225, 255, 225, 0.95) 55%, 
      rgba(100, 255, 100, 0.95) 70%, 
      rgba(0, 234, 0, 1) 100%          /* เข้มสุด: #00ea00 */
  );
  background-size: 200% 100%;
  z-index: -2;
  border-radius: 6px; 
  animation: glowing-border 3.5s linear infinite; 
  filter: blur(1px); 
}

/* === เลเยอร์ 2: พื้นสีขาวทับด้านใน === */
.btn-lg-ambient::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0; 
  background-color: #ffffff; 
  z-index: -1;
  border-radius: 3px; 
}

/* คีย์เฟรมสำหรับแอนิเมชันวิ่ง */
@keyframes glowing-border {
  0% { background-position: 200% 0%; }
  100% { background-position: 0% 0%; }
}

.widget-title {
  color: #fff !important;
  background-color: #0e1015;
  padding: 12px 22px;
  display: inline-block;
  line-height: 1;
  margin-bottom: 15px;
	width:100%;
}
.breads{
	font-size:85%;
	line-height:1.5em;
}

.or2inst {
  display: flex;
  align-items: center;
  text-align: center;
	text-indent:0px;
	margin: -15px 0px 15px 0px;
	}

.or2inst::before,
.or2inst::after {
  content: '';
  flex: 1;
  border-bottom: 2px solid #00ea00;
}

.or2inst:not(:empty)::before {
  margin-right: .25em;
}

.or2inst:not(:empty)::after {
  margin-left: .25em;
}

@media (max-width: 768px) {
    .top-bar {
		display: none;
    }
}
.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
	margin:auto;
}

/* top bar only on home page */ 

body:not(.home) .top-bar {
	display: none;
}

/* center mobile menu text */ 

.main-navigation .main-nav ul li a, .menu-toggle, .main-navigation .mobile-bar-items a {
	text-align: center;
}

 /* End GeneratePress Site CSS */

/* =========================================
   Sticky Navigation & Footer Recovery
   ========================================= */

/* ทำ Sticky Navigation สำหรับทุกหน้า */
.header-wrap {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #ffffff;
}

/* กรณีหน้าแรก (Home): Sticky + โปร่งใส + ดัน Hero Section ขึ้นมาทับซ้อนแบบ Merge */
body.home .header-wrap {
    position: sticky;
    top: 0;
    z-index: 9999;
    margin-bottom: -105px;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* เมื่อสกรอลลงมา: เปลี่ยนพื้นหลังของหน้าแรกเป็นสีขาว */
body.home .header-wrap.is-stuck {
    background: #ffffff !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* กู้คืนสี Footer (พื้นหลังดำ, ลิงก์เขียว) */
.site-info {
    color: #ffffff !important;
    background-color: #000000 !important;
}

.site-info a {
    color: #00ea00 !important;
}

.site-info a:hover {
    color: #22aa00 !important;
}

/* =========================================
   Phase 3: Home Header (Merge with Content)
   ========================================= */

/* 1. ทำให้ Site Header ของหน้าแรกโปร่งใส */
body.home .site-header {
    background: transparent;
}

/* 2. ทำให้พื้นหลัง Navigation โปร่งใส */
body.home .main-navigation {
    background: transparent;
}

/* 3. ปรับสี Navigation Text เป็น #333333 (เฉพาะระดับบนสุด) */
body.home .main-navigation .main-nav > ul > li > a,
body.home .menu-toggle {
    color: #333333 !important;
}

/* 4. ปรับสี Navigation Text (Hover) เป็น #00ea00 (เฉพาะระดับบนสุด) */
body.home .main-navigation .main-nav > ul > li:hover > a,
body.home .main-navigation .main-nav > ul > li.sfHover > a {
    color: #00ea00 !important;
    background: transparent !important;
}

/* 5. ปรับสี Navigation Text (Current) เป็น #22aa00 (เฉพาะระดับบนสุด) */
body.home .main-navigation .main-nav > ul > li.current-menu-item > a,
body.home .main-navigation .main-nav > ul > li.current-menu-ancestor > a {
    color: #22aa00 !important;
    background: transparent !important;
}
