

/* --- สไตล์สำหรับเมนู (Navbar) --- */
.custom-navbar .navbar-brand,
.custom-navbar .nav-link {
    color: #C6208E !important;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active {
    color: #C6208E !important; 
}

.custom-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(198, 32, 142, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.custom-navbar .navbar-toggler {
    border-color: #C6208E;
}



/* กำหนดให้ Header เป็นเลเยอร์ที่ลอยอยู่ด้านบน */
.header-overlay {
    position: absolute;  /* ทำให้ลอยได้ */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;       /* กำหนดให้อยู่บนสุด */
}


/* --- สไตล์สำหรับช่องค้นหาแบบ Minimal --- */
.minimal-search-input {
  border-color: #C6208E; /* 1. กำหนดให้ขอบเป็นสีชมพู */
  text-align: right;     /* 2. กำหนดให้ข้อความชิดขวา */
  padding-right: 1.25rem; /* เพิ่มระยะห่างขอบขวาให้สวยงาม */
}

/* 3. เปลี่ยนสีกรอบและเงา "ตอนที่กำลังพิมพ์" ให้เป็นสีชมพู (สำคัญมาก) */
.minimal-search-input:focus {
  border-color: #C6208E;
  box-shadow: 0 0 0 0.25rem rgba(198, 32, 142, 0.25); /* สร้างเงาฟุ้งๆ สีชมพู */
}

/* 4. เปลี่ยนสีข้อความ "Search" ที่เป็น placeholder */
.minimal-search-input::placeholder {
  color: #a9a9a9; /* สีเทาอ่อนๆ */
  opacity: 1; /* ทำให้สีแสดงเต็มที่ */
}

.content-overlap-section {
  position: relative; /* ทำให้ z-index ทำงาน และซ้อนทับได้ถูกต้อง */
  background-color: white; /* ต้องมีสีพื้นหลังทึบเพื่อบังรูปสไลด์ */
  
  /* 1. ทำให้ขอบมนเฉพาะด้านบนซ้ายและบนขวา */
  border-top-left-radius: 4rem;
  border-top-right-radius: 4rem;

  /* 2. ดึง Section นี้ขึ้นไปทับสไลด์ (หัวใจสำคัญ) */
  margin-top: -100px; 

  /* 3. สร้างเงาให้ดูมีมิติ */
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
}

/* Media Query สำหรับหน้าจอขนาดเล็ก (มือถือ) */
@media (max-width: 767.98px) {
    .content-overlap-section {
        margin-top: -20px; /* ค่าใหม่สำหรับหน้าจอมือถือ */
        /* หรือจะใช้ค่าอื่นๆ ที่คุณต้องการ */
    }
}


/* --- สไตล์สำหรับ Section Article (v2) --- */
.featured-article-box {
  background-color: #C6208E; /* สีชมพูเดียวกับเมนู */
}


.article-card {
    position: relative;
    /* สำคัญมาก สำหรับการซ้อนทับของข้อความ */
    overflow: hidden;
    /* ทำให้มุมมนแสดงผลกับรูปภาพได้ถูกต้อง */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

    /* ไม่ใช้ aspect-ratio เพื่อไม่จำกัดอัตราส่วน */
    /* aspect-ratio: 4 / 3; */
}

.article-card img {
    width: 100%;
    height: auto;
    /* ให้ภาพแสดงเต็มความกว้างและปรับสูงอัตโนมัติ */
    object-fit: contain;
    /* ให้ภาพแสดงเต็มกรอบโดยไม่ครอบบางส่วน */
    transition: transform 0.3s ease;
    /* เพิ่ม animation ตอน hover */
}

.Interview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ทำให้รูปภาพเต็มกรอบโดยไม่เสียสัดส่วน */
  transition: transform 0.3s ease; /* เพิ่ม animation ตอน hover */
  border-radius: 30px; 

}

/* ทำให้รูปภาพซูมเล็กน้อยเมื่อเอาเมาส์ไปชี้ */
.article-card:hover img {
  transform: scale(1.05);
}

.card-caption {
  position: absolute; /* ทำให้ข้อความลอยทับรูปภาพ */
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); /* ไล่สีพื้นหลังให้ข้อความอ่านง่าย */
  color: white;
  padding: 1.5rem 1rem 1rem 1rem;
  text-align: right;
}

.radius
{
	  border-radius: 20px; 
}



/* ปุ่มปกติ (ขอบชมพู) */
    .btn-outline-custom-pink {
        --bs-btn-color: #C6208E;
        --bs-btn-border-color: #C6208E;
        --bs-btn-hover-color: #fff;
        --bs-btn-hover-bg: #C6208E;
        --bs-btn-hover-border-color: #C6208E;
        --bs-btn-focus-shadow-rgb: 198, 32, 142;
        padding: 0.5rem 1rem;
        font-weight: 500;
        
        /* --- เพิ่มตรงนี้เพื่อทำให้ขอบหนาขึ้น --- */
        border-width: 2px; /* หรือ 3px, 4px ตามความหนาที่ต้องการ */
    }

/* ปุ่มที่ถูกเลือก (Active) (พื้นหลังชมพู) */
.btn-custom-pink-active {
    background-color: #C6208E;
    border-color: #C6208E;
    color: #fff;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

/* ทำให้ปุ่ม Active มีสีเข้มขึ้นเล็กน้อยเมื่อ hover */
.btn-custom-pink-active:hover {
    background-color: #a31a75;
    border-color: #a31a75;
    color: #fff;
}




/* ================================================================ */
/* ===== สไตล์สำหรับ Section iMac และปุ่มซ้อนทับ (ฉบับสมบูรณ์) ===== */
/* ================================================================ */

/* --- สไตล์สำหรับ iMac Mockup --- */

/* กล่องควบคุมหลัก */
.imac-mockup-container {
    padding-top: 48px;
    position: relative;
}

/* ส่วนตัวเครื่อง (จอ + คาง) */
.imac-body {
    width: 100%;
    max-width: 1370px; /* <-- ค่าล่าสุดที่ขยายความกว้าง */
    margin: 0 auto;
    background-color: #0d0d0d;
    padding: 1.8rem;
    border-radius: 1.8rem;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3), 
                inset 0 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* ส่วนของหน้าจอ Iframe */
.imac-body iframe {
    width: 100%;
    aspect-ratio: 16 / 8; /* สัดส่วนจอที่ยาวขึ้น */
    display: block;
    border: none;
    border-radius: 0.25rem;
    background-color: white;
}

/* ส่วนคาง (Chin) */
.imac-body .imac-chin {
    height: 60px;
    margin-top: 1.8rem;
    border-radius: 0px 0px 12px 12px;
    background: linear-gradient(to bottom, #e0e1e2, #c7c8c9);
}


/* --- ส่วนขาตั้ง (Stand) --- */
.imac-stand {
    position: relative;
    z-index: -1; 
}

/* ส่วนขาที่ต่อกับเครื่อง */
.imac-stand .imac-stand-leg {
    width: 120px;
    height: 120px;
    background: linear-gradient(to bottom, #d6d7d8, #b2b3b4);
    margin: 0 auto;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* ส่วนฐานของขาตั้ง */
.imac-stand .imac-stand-foot {
    width: 500px; /* <-- ฐานที่กว้างขึ้นตามตัวเครื่อง */
    height: 12px;
    background: linear-gradient(to right, #d6d7d8, #b2b3b4);
    margin: 0 auto;
    margin-top: -6px;
    border-radius: 6px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}


/* --- สไตล์สำหรับ Layout แบบซ้อนทับ --- */

.media-overlap-row {
    position: relative;
}

.media-imac-col {
    position: relative;
    z-index: 2;
}

.media-button-col-left {
    position: relative;
    z-index: 1;
    margin-right: -85px; /* <-- ระยะซ้อนทับล่าสุด */
}

.media-button-col-right {
    position: relative;
    z-index: 1;
    margin-left: -85px; /* <-- ระยะซ้อนทับล่าสุด */
}

/* --- สไตล์สำหรับ Responsive บนจอมือถือ --- */
@media (max-width: 991.98px) {
    .media-button-col-left,
    .media-button-col-right {
        position: static;
        transform: none;
        width: auto;
        text-align: center !important;
        margin: 2rem 0;
        z-index: 1;
        /* ยกเลิกระยะซ้อนทับบนมือถือ */
        margin-left: 0;
        margin-right: 0;
    }

    .media-button-col-left {
        order: -1;
    }
}


/* --- สไตล์สำหรับ Footer (ฉบับสมบูรณ์) --- */

/* 1. สไตล์สำหรับเส้นคั่นแนวนอน */
.footer-divider {
    border-top: 2px solid #C6208E;
    opacity: 1; 
}

/* 2. สไตล์สำหรับไอคอน Social Media */

.social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    /* ขยายขนาดกล่องให้ใหญ่ขึ้นอย่างชัดเจน */
    width: 60px;  /* ใหญ่ขึ้น! (จาก 48px) */
    height: 60px; /* ใหญ่ขึ้น! (จาก 48px) */

    background-color: #C6208E;
    color: white;

    /* เพิ่มความโค้งมนให้สมส่วนกับขนาดใหม่ */
    border-radius: 12px; 

    /* ขยายไอคอนข้างในให้ใหญ่ตาม */
    font-size: 32px; /* ใหญ่ขึ้น! (จาก 26px) */

    margin-right: 0.75rem; /* เพิ่มระยะห่างระหว่างปุ่มเล็กน้อย */
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.social-icon:hover {
    opacity: 0.8;
    color: white;
}



 .footer-divider {
        border-top: 2px solid #C6208E;
        opacity: 1;
    }

    /* 2. สไตล์สำหรับไอคอน Social Media */
    .social-icon {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 60px;
        height: 60px;
        background-color: #C6208E;
        color: white;
        border-radius: 12px;
        font-size: 32px;
        margin-right: 0.75rem;
        text-decoration: none;
        transition: opacity 0.3s ease;
    }

    .social-icon:hover {
        opacity: 0.8;
        color: white;
    }

    /* 3. สไตล์สำหรับลิงก์ใน Footer (ปรับปรุงแล้ว) */
    .footer-links a {
        color: #C6208E; /* สีชมพูเหมือน nav-link */
        text-decoration: none; /* ไม่มีขีดเส้นใต้ */
        font-size: 0.9rem; /* ขนาดฟอนต์เดียวกับ nav-link */
        font-weight: bold; /* ตัวหนาเหมือน nav-link */
        transition: color 0.2s ease;
    }

    .footer-links a:hover {
        color: #a31a75; /* สีชมพูเข้มขึ้นตอนชี้ (ตาม custom-navbar .nav-link:hover) */
    }
	
    	/* กำหนดให้ขนาดฟอนต์พื้นฐานปรับตามขนาดจอ (Responsive) */
    	html {
    	    font-size: clamp(15px, 1.6vw, 17px);
    	}
    
    	/* ประกาศใช้ฟอนต์ IBM Plex Sans Thai กับทุกส่วนใน body */
    	body {
    	    font-family: 'IBM Plex Sans Thai', sans-serif;
    	    font-weight: 400;
    	    /* กำหนดน้ำหนักตัวอักษรปกติ */
    	}


        
	
/* 4. สไตล์สำหรับช่องค้นหา */
.minimal-search-input {
  border-color: #C6208E; 
  text-align: right;    
  padding-right: 1.25rem;
}

.minimal-search-input:focus {
  border-color: #C6208E;
  box-shadow: 0 0 0 0.25rem rgba(198, 32, 142, 0.25);
}

.minimal-search-input::placeholder {
  color: #a9a9a9;
  opacity: 1; 
}


/* --- การกำหนดฟอนต์และขนาดตัวอักษรสำหรับทั้งเว็บไซต์ --- */



    /* สำหรับหน้าจอทั่วไป */
    .navbar-nav .nav-link {
        font-size: 0.9rem; /* ปรับขนาดฟอนต์เมนูให้เล็กลง */
        font-weight: bold; /* ทำให้ตัวอักษรเมนูหนาขึ้น */
    }

    .minimal-search-input {
        font-size: 0.9rem; /* ปรับขนาดฟอนต์ในช่องค้นหา */
        font-weight: bold; /* ทำให้ตัวอักษรในช่องค้นหาหนาขึ้น */
        /* อาจเพิ่ม padding เพื่อให้มีพื้นที่มากขึ้น */
        /* padding: 0.375rem 0.75rem; */
    }

    /* สำหรับ Mobile Mode (ใช้ Bootstrap's breakpoint สำหรับขนาดหน้าจอเล็ก) */
    @media (max-width: 991.98px) { /* สำหรับอุปกรณ์ขนาดกลางและเล็ก (น้อยกว่า 992px) */
        .navbar-nav .nav-link {
            font-size: 0.9rem;
            font-weight: bold;
        }

        .minimal-search-input {
            font-size: 0.9rem;
            font-weight: bold;
        }
    }

    @media (max-width: 767.98px) { /* สำหรับอุปกรณ์ขนาดเล็ก (น้อยกว่า 768px - โทรศัพท์มือถือส่วนใหญ่) */
        .minimal-search-input {
            width: 100% !important; /* ทำให้ input search กว้างเต็มเมื่ออยู่บนมือถือ */
            margin-bottom: 10px; /* เพิ่มระยะห่างด้านล่าง */
        }
    }


  /* สำหรับหน้าจอทั่วไป */
    .navbar-nav .nav-link {
        font-size: 0.9rem; /* ปรับขนาดฟอนต์เมนูให้เล็กลง */
        font-weight: bold; /* ทำให้ตัวอักษรเมนูหนาขึ้น */
    }

    .minimal-search-input {
        font-size: 0.9rem; /* ปรับขนาดฟอนต์ในช่องค้นหา */
        font-weight: bold; /* ทำให้ตัวอักษรในช่องค้นหาหนาขึ้น */
    }

    /* สไตล์สำหรับปุ่ม .btn-custom-pink */
    .btn-custom-pink {
        color: #fff; /* สีข้อความปกติเป็นสีขาว */
        background-color: #C6208E; /* สีพื้นหลังปกติเป็นสีชมพูตามที่คุณต้องการ */
        border-color: #C6208E; /* สีกรอบปกติเป็นสีชมพู */
    }

    .btn-custom-pink:hover {
        color: #fff; /* สีข้อความเมื่อเมาส์ชี้เป็นสีชมพู */
        background-color:#911768; /* พื้นหลังเมื่อเมาส์ชี้เป็นโปร่งใส */
     
    }

    .btn-custom-pink:active,
    .btn-custom-pink:focus {
        color: #fff;
        background-color: #a31a74; /* สีเข้มขึ้นเล็กน้อยเมื่อคลิกหรือ focus */
        border-color: #a31a74;
        box-shadow: 0 0 0 0.25rem rgba(198, 32, 142, 0.25); /* เงาเมื่อ focus */
    }

    /* สำหรับ Mobile Mode (จากคำถามก่อนหน้า) */
    @media (max-width: 991.98px) { /* สำหรับอุปกรณ์ขนาดกลางและเล็ก (น้อยกว่า 992px) */
        .navbar-nav .nav-link {
            font-size: 0.9rem;
            font-weight: bold;
        }

        .minimal-search-input {
            font-size: 0.9rem;
            font-weight: bold;
        }
    }

    @media (max-width: 767.98px) { /* สำหรับอุปกรณ์ขนาดเล็ก (น้อยกว่า 768px - โทรศัพท์มือถือส่วนใหญ่) */
        .minimal-search-input {
            width: 100% !important; /* ทำให้ input search กว้างเต็มเมื่ออยู่บนมือถือ */
            margin-bottom: 10px; /* เพิ่มระยะห่างด้านล่าง */
        }
    }
	
	

	
	
   h1, h2, h3, h4, h5, h6 {
        font-family: 'IBM Plex Sans Thai', sans-serif;
        font-weight: 400; /* กำหนดน้ำหนักตัวอักษรปกติ (สำหรับส่วนอื่น ๆ ของ heading) */
      
    }
	
	.indent {
  text-indent: 2rem;
}

	 .font-srb{
	      font-family: 'Sarabun', sans-serif !important;
	}
	
	
  .font-bold {
        font-weight: 800; /* กำหนดให้ส่วนที่ต้องการเป็นตัวหนา */
    }
	
	.pink-font{
		  color: #C6208E;
	}
	
 .card-link-wrapper {
        text-decoration: none; /* <-- ตรงนี้คือคำสั่งที่ลบเส้นขีดใต้ */
        color: inherit; /* ให้สีข้อความเป็นสีปกติของ parent */
        display: block; /* ทำให้ลิงก์ครอบคลุมพื้นที่ทั้งหมดของ col-md-3 */
        height: 100%; /* สำคัญมากเพื่อให้ลิงก์ครอบคลุมความสูงของ card ได้เต็มที่ */
        position: relative; /* สำหรับ Pseudo-element เพื่อให้คลิกได้ทั้ง card */
    }


   .learn-more-text {
        font-size: 0.9rem;
        font-weight: bold;
        color: #C6208E;
        margin-top: 1rem;
        text-align: right;
        padding-right: 0.5rem;
        z-index: 2;
        position: relative;
        text-decoration: none; /* <-- เพิ่มตรงนี้ด้วย เผื่อมีผล */
    }
	
	
	/******************************** ตาราง Ref ***********************************/
        /* New styles for the main container and table */
        .main-container {
            border-radius: 30px;
            overflow: hidden;
            background-color: transparent;
            max-width: 1100px;
            margin-left: auto;
            margin-right: auto;
        }
		
        /* Responsive padding for mobile devices */
        @media (max-width: 768px) {
            .main-container {
			border-radius: 30px;
            overflow: hidden;
            background-color: transparent;
            max-width: 90%;
            margin-left: auto;
            margin-right: auto;
            }
        }
        
        /* New styles for the icon container for black color and pink hover */
        .icon-link {
            color: black; /* Default black color */
            text-decoration: none; /* Remove underline */
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        .icon-link:hover {
            color: #C6208E; /* Pink on hover */
        }
        
        /* Table body styling for borders and alternating rows */
        .table-body-row td {
            border-right: 3px solid #C6208E; /* Increased pink vertical border size */
            padding: 1rem;
        }
        .table-body-row:nth-child(odd) td {
            background-color: #cacaca; /* Darker gray for odd rows */
        }
        .table-body-row:nth-child(even) td {
            background-color: #E5E5E5; /* Light gray for even rows */
        }
        .table-body-row td:last-child {
            border-right: none; /* Remove vertical border for the last column */
        }
        
        /* Added style for specific padding for the first column */
        td:first-child {
            padding-left: 2rem; /* Adjusted to 2rem */
        }
        /* Adjusted header padding and border */
        .header-bg {
            padding: 1.5rem 2rem; /* Reduced padding for the header */
            border-bottom: 3px solid #C6208E; /* Increased pink border under the header */
            background-color: #E5E5E5; /* Match with the first row color */
        }
		
		
        		.table {
        		    font-size: 0.9rem;
        		    /* ลดขนาดฟอนต์ */
        		}
        
        		
        
        		
        
        		.table td a {
        		    font-size: 0.8rem;
        		    /* ปรับขนาดลิงก์ให้เล็กลง */
        		}
	

/*----------------- msc 2 ---------------*/
.section-title {
    color: #C6208E;
    font-weight: 800;
}
.text-justified {
    text-align: justify;
}
.card-custom {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}
.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.card-custom .card-body {
    flex-grow: 1;
}
.icon-box {
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #C6208E;
    border-radius: 50%;
    margin-bottom: 1rem;
    color: white;
}

/*---------------------- ICON SHERE ----------------------------*/
 .share-icons {
     display: flex;
     justify-content: flex-end;
     gap: 10px;
 }

 .btn-share {
     display: inline-flex;
     justify-content: center;
     align-items: center;
     width: 30px;
     height: 30px;
     border-radius: 50%;
     background-color: #d3d3d3;
     /* สีเทาอ่อน */
     color: white;
     text-decoration: none;
     font-size: 20px;
     transition: background-color 0.3s;
 }

 .btn-share:hover {
     background-color: #C6208E;
     /* สีเทาเข้มเมื่อ hover */
 }

 .btn-share i {
     margin: 0;
 }

 .facebook {
     background-color: #a9a9a9;
     /* สีพื้นหลัง Facebook */
 }

 .twitter {
     background-color: #a9a9a9;
     /* สีพื้นหลัง Twitter */
 }

 .line {
     background-color: #a9a9a9;
     /* สีพื้นหลัง Line */
 }

