/* ===== Mourning Mode ===== */
html {
    filter: grayscale(70%) brightness(0.95);
}


.lang-switch {
  display: inline-flex;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1px #433878; /* เส้นขอบนอก */
}

.lang-btn {
  flex: 1;
  padding: 5px 18px;
  border: none;
  cursor: pointer;
  font-weight: thin;
  font-size: 12px;
  color: #fff;
  transition: all 0.25s ease;
}

/* สีพื้นฐาน */
.lang-btn.th { background-color: #433878; }  /* TH ม่วงเข้ม */
.lang-btn.en { background-color: #7E60BF; }  /* EN ม่วงอ่อน */

/* สีเมื่อ active (สลับกัน) */
.lang-btn.th.active { background-color: #433878 !important; } /* TH กดยังคงม่วงเข้ม */
.lang-btn.en.active { background-color: #433878 !important; } /* EN กดเป็นม่วงเข้ม */

/* สีของปุ่มที่ไม่ active */
.lang-btn.th:not(.active) { background-color: #7E60BF !important; } /* TH ไม่ active = ม่วงอ่อน */
.lang-btn.en:not(.active) { background-color: #7E60BF !important; } /* EN ไม่ active = ม่วงอ่อน */

/* เส้นคั่นตรงกลาง */
.lang-btn + .lang-btn {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* hover effect */
.lang-btn:hover {
  filter: brightness(1.1);
}
/*---------------------------------*/
.box-show-person {
	background-image: url('../../assets/images/bg/bg-person2.png');
	background-size: cover;
	background-repeat: no-repeat;
	width: 100%;
	height: auto; /* หรือขนาดที่เหมาะสมกับภาพ */
	margin-top: 50px;
  padding-top: 50px;
  padding-bottom: 50px;
	margin-bottom: 30px;
	font-family: "Kanit", sans-serif;
	font-size: 20px;
	color: #363636;
}
.box-show-person h1{
  text-align: center;
	font-size: 50px;
  background: linear-gradient(to right, #433878 0%, #FFBF61 100%);

  /* แสดง background แค่บนตัวอักษร */
  -webkit-background-clip: text;
  background-clip: text;

  /* ทำให้ตัวอักษรโปร่งเพื่อเห็น background ที่อยู่ด้านหลัง */
  color: transparent;
}
.box-show-person p{
  font-size: 18px;
  padding-bottom: 8px;
}
.box-show-person a{
  font-size: 18px;
  padding-bottom: 8px;
  color: #363636;
}
.box-show-person a:hover{
	color: #FFBF61;
}
/*-------------------------------------*/
/* ส่วนหัวคณะ */
.blog-award {
  background-color: #e8e8e8;
  min-height: 400px;
  padding-top: 50px;
  padding-bottom: 50px;
  font-family: "Kanit", sans-serif;
}
.blog-award-content {
  background-image: url('../../assets/images/bg/bg-award.png');
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
  padding-bottom: 80px;
}
.blog-award-content h1 {
  font-size: 60px;
  font-weight: 300;
  color: #433878;
  text-align: right;
  padding-right: 100px;
  padding-top: 50px;
}
.blog-award-content h2 {
  font-size: 50px;
  font-weight: 200;
  text-align: right;
  padding-right: 100px;
  color: #005b59;
}
.blog-award-content p {
  color: #696969;
  font-size: 18px;
  text-align: right;
  padding-right: 100px;
}

/*-----------------------------------*/
/* ส่วนแสดงสถิติ */
.stats-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  padding: 30px 0;
  background-color: rgba(216, 218, 211, 0.9);
  margin-top: 30px;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -30px;
  top: 10%;
  height: 80%;
  width: 1px;
  background-color: #999;
}

.stat-number {
  font-size: 60px;
  font-weight: 700;
  color: #005b59;
  line-height: 1.2;
}

.stat-label {
  font-size: 18px;
  color: #555;
}
.stat-label-source {
  font-size: 16px;
  color: #555;
}

/* เอฟเฟกต์ตอน hover */
.stat-item:hover .stat-number {
  color: #007c78;
  transform: scale(1.05);
  transition: 0.3s;
}

/* Animation fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/*-------------------------------------*/
/* CSS สำหรับตาราง .public-aticle */
table.public-aticle {
  width: 100%;
  border-collapse: collapse;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  color: #222;             /* default text color (เข้ม) */
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  font-family: "Kanit", sans-serif;
}

/* หัวตาราง */
table.public-aticle thead th {
  background: #FFBF61;     /* สีตามที่ขอ */
  color: #1b1b1b;          /* ตัวหนังสือสีเข้ม */
  font-weight: 700;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 2px solid rgba(0,0,0,0.08);
  vertical-align: middle;
}

/* เซลล์เนื้อหา */
table.public-aticle tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  vertical-align: middle;
  color: #222;             /* ตัวหนังสือสีเข้ม */
}

/* สลับแถว: คี่ = ขาว, คู่ = เทาอ่อน */
table.public-aticle tbody tr:nth-child(odd) {
  background: #ffffff;
}
table.public-aticle tbody tr:nth-child(even) {
  background: #f5f5f5;     /* เทาอ่อน */
}

/* hover effect เพื่อให้ดู interactive */
table.public-aticle tbody tr:hover {
  background: #eef4ff;     /* สีจางเมื่อชี้เมาส์ */
}

/* ขนาดคอลัมน์เล็กๆ ให้ wrap สวย */
table.public-aticle td, table.public-aticle th {
  word-break: break-word;
}

/* responsive เบื้องต้น: บนหน้าจอเล็ก ให้เลื่อนแนวนอน */
@media (max-width: 700px) {
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.public-aticle { min-width: 700px; }
}
/*--------------------------------------------*/
.research-inno{
  font-family: "Kanit", sans-serif;
  padding-top: 50px;
  padding-bottom: 50px;
}
.research-inno-news{
  background-color: #f5f5f5;
  border-radius: 10px;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 30px;
  padding-bottom: 30px;
  font-size: 16px;
  color: #363636;
  font-family: "Kanit", sans-serif;
}
.research-inno-news a{
  font-size: 16px;
  color: #363636;
}
.research-inno-news a:hover{
  color: #FFBF61;
}
.research-data-count{
  background-color: #f5f5f5;
  padding-top: 50px;
  padding-bottom: 50px;
  font-family: "Kanit", sans-serif;
}
.research-blog-number{
  background-color: #fff;
  border-radius: 5px;
  padding: 5px;
  text-align: center;
  min-height: 150px;
}
.cover-news-research{
  border-radius: 5px;
}
/*------------------------------------------------*/
/* โครงสไลด์ */
.slider-sub {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 20px auto;
  overflow: hidden;
  border-radius: 10px;
}

/* กล่องครอบภาพ */
.slides-wrapper {
  display: flex;
  transition: transform 1s ease-in-out;
  width: 100%;
}
/* กล่องครอบภาพ research*/
.slides-wrapper-research {
  display: flex;
  transition: transform 1s ease-in-out;
  width: 100px;
}

/* รูปแต่ละภาพ */
.slide-image {
  width: 100%;
  flex-shrink: 0;
  border-radius: 10px;
}
/* รูปแต่ละภาพ research*/
.slide-image-research {
  width: 100%;
  flex-shrink: 0;
  border-radius: 50px;
}

/* ปุ่มเลื่อน */
.slide-under-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.6);
  border: none;
  padding: 10px 16px;
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  transition: 0.3s;
  z-index: 10;
}

.slide-under-btn:hover {
  background: rgba(255,255,255,0.9);
}

.slide-under-btn.prev { left: 15px; }
.slide-under-btn.next { right: 15px; }
/*---------------------------------------------*/
hr.sub-event-edu{
  border: 0;                     /* ปิด border เริ่มต้น */
  border-top: 1px dotted #FFBF61;/* ความหนา, รูปแบบจุด, สี */
  margin: 10px 0;                /* ปรับระยะบน-ล่าง */
  opacity: 0.95;
}
/*-------------Time Line กิจกรรมนืสิต---------------*/
/* ใช้คลาสเฉพาะ timeline-page เพื่อป้องกัน CSS ภายนอก */
.timeline-page .timeline {
  position: relative;
  max-width: 800px;
  margin: 40px auto;
  padding: 20px 0;
  font-family: "Kanit", sans-serif;
}

.timeline-page .timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background-color: #433878;
}

.timeline-page .timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
}

.timeline-page .timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-page .timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-page .timeline-item .content {
  background-color: #fff;
  padding: 15px 20px;
  border-radius: 12px;
  border: 1px solid #ccc;
  display: inline-block;
  max-width: 300px;
  z-index: 1; /* ป้องกันถูกซ้อน */
  position: relative;
}
.timeline-page .timeline-item .content span{
  color: #FFBF61;
}

.timeline-page .timeline-item .circle {
  position: absolute;
  top: 30px;
  width: 16px;
  height: 16px;
  background-color: #FFBF61;
  border-radius: 50%;
  border: 3px solid #433878;
  z-index: 2;
}

.timeline-page .timeline-item.left .circle {
  right: -8px;
}

.timeline-page .timeline-item.right .circle {
  left: -8px;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .timeline-page .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-left: 60px;
    padding-right: 20px;
  }

  .timeline-page .timeline-item.left .circle,
  .timeline-page .timeline-item.right .circle {
    left: 0;
  }
}

/*---------------------------------------*/
.info-grid {
  display: grid;
  grid-template-columns: 150px auto;   /* คอลัมน์ซ้ายกว้างเท่ากันเป๊ะ */
  row-gap: 8px;
  column-gap: 10px;
}

.info-grid .label {
  font-weight: bold;
  font-size: 16px;
  color: #333;
}

.info-grid .value {
  color: #444;
}
/*-------------------------------------*/
.blog-research-data{
  background-color: #f5f5f5;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 30px;
  margin-top: 20px;
  margin-bottom: 20px;
  border-radius: 10px;
  padding-bottom: 30px;
  font-family: "Kanit", sans-serif;
  overflow: auto;
}
.blog-research-data a{
  color: #363636;
}
.blog-research-data a:hover{
  color: #FFBF61;
}
/*-----------------------------------------*/
.tag-container a {
    display: inline-block;
    font-family: "Kanit", sans-serif;
    padding: 6px 10px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* คำทั่วไป */
.tag-cloud-normal {
    background-color: #ffffff;
    color: #363636;
    border: 1px solid #ccc;
}

/* คำเด่น */
.tag-cloud-badge {
    background-color: #433878;
    color: #ffffff !important;
}

/* hover สำหรับทุกคำ */
.tag-container a:hover {
    background-color: #FFBF61 !important;
    color: #ffffff !important;
}

/*---------------------------------------------*/
.research-blog-scopus{
  background-color: #fff;
  border-radius: 5px;
  padding-top: 20px;
  padding-bottom: 20px;
  padding-left: 10px;
  padding-right: 10px;
  min-height: 100px;
  margin-bottom: 10px;
}
.research-blog-scopus-title a {
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #363636 !important;
    text-decoration: none; /* ป้องกัน underline ถ้าไม่ต้องการ */
}
.research-blog-scopus-title a:hover {
    color: #FFBF61 !important;
}
.research-blog-scopus p{
  color: #999;
  font-size: 14px;
}
/*------------------------------------------*/
.research-blog-Relation{
  background-color: #fff;
  border-radius: 10px;
  padding-top: 20px;
  padding-bottom: 20px;
  padding: 10px;
  min-height: 100px;
  margin-bottom: 10px;
  text-align: center;
}
/*---------------------------------------*/
img.research {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease; /* ใส่ไว้ที่ตัวปกติ */
}
img.research:hover {
    transform: scale(1.03);
    transition: 0.3s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
/*-----------------------------------------*/
.sponsor-slider-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: auto;
    overflow: hidden;
}

.sponsor-slider {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

.slide-item {
    flex: 0 0 auto;
}

.circle-logo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;   /* วงกลม */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: 0.3s ease;
}

.circle-logo:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.slide-btn2 {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 26px;
    background: rgba(255,255,255,0.7);
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.slide-btn2:hover {
    background: white;
}

.left { left: 10px; }
.right { right: 10px; }

/*------------------------------------------*/
.black-ribbon-only {
    position: fixed;
    top: 0;
    right: 0;
    width: 95px;
    height: 95px;
    z-index: 9999;
}
/**********************************************/
/*-----------------------------------------------------*/
/*-----------------------------------------------------*/
/* Section */
.blog-section {
    background-color: #f6f7fb;
    padding: 40px 0 60px 0;
    font-family: "Kanit", sans-serif;
}

/* Card wrapper */
.blog-event2 {
    height: 100%;
}

/* Card */
.blog-event2-content {
    height: 100%;
    background-color: #ffffff;
    color: #363636;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
}

/* Hover */
.blog-event2-content:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.15);
}

/* Image */
.blog-event2-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

/* Meta */
.blog-event2-content span {
    display: block;
    padding: 10px 16px 0 16px;
    font-size: 1.3rem;
    color: #888;
}

/* ========================= */
/* Title (ตัดข้อความ + …) */
/* ========================= */
.blog-event2-content p {
    padding: 8px 16px;
    font-size: 1.6rem;
    line-height: 1.4;

    /* จำกัดความสูงให้เท่ากัน */
    min-height: calc(1.4em * 2);
    max-height: calc(1.4em * 2);

    overflow: hidden;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;   /* <<< แสดง 2 บรรทัด */
}

/* Link */
.blog-event2-content p a {
    color: #363636;
    font-weight: 500;
    text-decoration: none;

    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-event2-content p a:hover {
    color: #ff9800;
}

/* Button */
.blog-event2-button {
    margin: 20px 16px 16px 16px;
    padding: 10px 28px;

    background: linear-gradient(135deg, #433878, #6a5acd);
    color: #ffffff;

    border-radius: 30px;
    font-size: 1.2rem;

    border: 1px solid transparent;   /* 🔑 สำคัญ */
    box-sizing: border-box;           /* 🔑 กันเด้ง 100% */

    cursor: pointer;
    transition: all 0.5s ease-in-out;
}

/* Hover — เปลี่ยนแค่สี */
.blog-event2-button:hover {
    background: transparent;
    color: #433878;
    border-color: #433878;
}
/*-----------------------------------------------------*/
/* ================= Pagination 2 ================= */
.pagination2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 30px;
    font-family: "Kanit", sans-serif;
}

.pagination2 a,
.pagination2 span {
    min-width: 42px;               /* ล็อกความกว้างขั้นต่ำ */
    height: 42px;                  /* ล็อกความสูง */
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
    line-height: 1;
    text-decoration: none;

    color: #433878;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 20px;

    transition: background-color 0.25s ease,
                color 0.25s ease,
                box-shadow 0.25s ease;
}

/* Hover (ไม่เปลี่ยนขนาด ไม่สั่น) */
.pagination2 a:hover {
    background-color: #433878;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(67, 56, 120, 0.25);
}

/* Active page */
.pagination2 .active {
    background-color: #433878;
    color: #ffffff;
    border-color: #433878;
    cursor: default;
}

/* Disabled */
.pagination2 .disabled {
    color: #aaa;
    background-color: #f5f5f5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ปุ่มข้อความยาว เช่น หน้าแรก / หน้าสุดท้าย */
.pagination2 .text-btn {
    min-width: auto;        /* ให้ขยายตามข้อความ */
    padding: 0 18px;
}


/*-----------------------------------------------------*/
.footer-policy{
    text-align: right;
    padding-left: 50px;
}
.search-event{
	background-color: #433878;
	padding-left: 10px;
	padding-right: 10px;
	padding-top: 5px;
	padding-bottom: 5px;
	border: 1px solid #DDDDDD;
	border-radius: 50px;
  color: #fff;
  transition: all 0.35s ease-in-out;
}
.search-event:hover{
	background-color: #fff;
	padding-left: 10px;
	padding-right: 10px;
	padding-top: 5px;
	padding-bottom: 5px;
	border: 1px solid #DDDDDD;
	border-radius: 50px;
  color: #433878;
}
.text-form-faq{
  width: 100%;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
}
.textarea-form-faq{
  width: 100%;
  height: 120px;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
}
.blog-left a{
  color: #ff9800;
}
.btn-signin-header{
  background-color: #E8E8E8;
  padding: 3px 15px;
  border-radius: 3px;
  border: 1px solid #E8E8E8;
  color: #363636;
  font-size: 14px;
  margin-right: 15px;
  cursor: pointer;

  /* เอฟเฟกต์นุ่มนวล */
  transition: background-color 0.25s ease,
              color 0.25s ease,
              border-color 0.25s ease;
}

/* ตอนชี้เมาส์ */
.btn-signin-header:hover{
  background-color: #433878;
  border-color: #433878;
  color: #ffffff;
}
/*-------------------------------------*/
.user-dropdown {
    position: relative;
    display: inline-block;
}

/* ปุ่มชื่อผู้ใช้ */
.btn-user-info {
    background-color: #E8E8E8;
    border: 1px solid #E8E8E8;
    color: #363636;
    font-size: 14px;
    padding: 3px 15px;
    border-radius: 3px;
    margin-right: 15px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-user-info:hover {
    background-color: #433878;
    color: #fff;
}

/* dropdown */
.dropdown-menu-info {
    position: absolute;
    top: 115%;
    right: 0;
    min-width: 180px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    display: none;
    z-index: 99999;
    padding: 8px 0;
}

/* แสดง dropdown เมื่อ hover */
.user-dropdown:hover .dropdown-menu-info {
    display: block;
}

/* เมนูย่อย */
.dropdown-menu-info a {
    display: block;
    padding: 10px 15px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
}

.dropdown-menu-info a i {
    margin-right: 8px;
    width: 16px;
}

/* hover เมนู */
.dropdown-menu-info a:hover {
    background-color: #F2F2F7;
}

/* ปุ่ม logout เน้นนิดนึง */
.dropdown-menu-info a.logout {
    color: #C0392B;
}

.dropdown-menu-info a.logout:hover {
    background-color: #FDECEC;
}
.dropdown-menu-info::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}

/*---------------------------------------------*/
.user-profile{
  font-family: "Kanit", sans-serif;
  margin-bottom: 50px;
}
.label-info-edu {
    display: inline-block;
    width: 150px;       /* 👈 คุมระยะให้เท่ากันทุกบรรทัด */
    font-weight: 500;
    font-size: 16px;
}

.value-info-edu {
    display: inline-block;
    font-size: 16px;
}
/*----------------------------------------------*/
.event-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.event-image-wrap img {
    width: 100%;
    display: block;
    border-radius: 10px;
}

/* Date badge */
.event-date-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    text-align: center;
    line-height: 1.1;
}

.event-date-badge .day {
    font-size: 26px;
    font-weight: 700;
    color: #ff9800;
    display: block;
}

.event-date-badge .month {
    font-size: 13px;
    font-weight: 400;
}
.event-view-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    color: #fff;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-view-badge i {
    font-size: 14px;
}

/*----------------------------------------------*/
.header-text{
  color: #433878;
  font-family: "Kanit", sans-serif;
  font-size: 35px;
  font-weight: 400;
  margin-bottom: 50px;
}
.header-subtext{
  color: #433878;
  font-family: "Kanit", sans-serif;
  font-size: 25px;
  font-weight: 400;
}
.interrested p {
  font-size: 16px;
  color: #363636;
}
.indent {
  text-align: justify;
  text-indent: -1.5em;   /* ดันเลขข้อออกซ้าย */
  padding-left: 1.5em;   /* ระยะตัวหนังสือ */
}
/*-------------------------------------------*/
.blog-scolaship {
  background: #f5f5f5;
  padding: 30px;
  border-radius: 18px;
}

.blog-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

/* การ์ดแต่ละทุน */
.scholarship-item {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

/* Movement ตอนชี้เมาส์ */
.scholarship-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

/* หัวข้อทุน */
.scholarship-item h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2c3e50;
}

/* รายละเอียด */
.scholarship-item p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 10px;
  text-align: justify;
}

/* วันที่ */
.scholarship-date {
  font-size: 0.85rem;
  color: #888;
}
/*--------------------------------------*/
.blog-ebook{
  background-color: #E8E8E8;
  padding: 20px;
  border-radius: 10px;
  font-family: "Kanit", sans-serif;
}
.blog-ebook-title{
  background-color: #FEFEFE;
  padding: 10px;
  border-radius: 8px;
}
.blog-ebook-auther{
  font-size: 12px;
  font-weight: 300;
  text-align: center;
  padding-bottom: 10px;
}

.blog-ebook-cover{
  border-radius: 8px;
  margin-bottom: 15px;

  /* เงาหลัก (นุ่มๆ) */
  box-shadow: 
    0 4px 10px rgba(0, 0, 0, 0.15),
    0 8px 25px rgba(0, 0, 0, 0.10);

  /* ทำให้ภาพไม่ติดขอบเกินไป */
  overflow: hidden;

  /* เพิ่มความลื่นตอน hover */
  transition: all 0.3s ease;
}

/* ตอนเอาเมาส์ไปวาง */
.blog-ebook-cover:hover{
  transform: translateY(-5px);
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.2),
    0 15px 40px rgba(0, 0, 0, 0.15);
}
.status-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;

  font-size: 13px;
  font-weight: 500;

  padding: 4px 10px;
  border-radius: 999px;

  background-color: #e6f4ea;
  color: #1e7e34;

  /* เงานุ่มๆ */
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* จุดสีด้านหน้า */
.status-badge::before{
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #28a745;
}




