.page_announcements ul li article div p img {
  border-radius: 16px !important;
  -ms-transform-origin-x: 50% !important;
  width: 45% !important;
  height: 45% !important;
}


/* --- ส่วนปรับแต่ง tag a (ตัวครอบลิงก์) --- */
.pkp_structure_sidebar.left a {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    text-decoration: none !important;
    transition: all 0.4s ease !important;
    padding: 5px 0 !important; /* เพิ่มพื้นที่ว่างรอบรูป */
    background-color: transparent !important;
    border-radius: 12px !important;
}



/* --- ส่วนปรับแต่ง tag img (ตัวเหรียญ) --- */
.pkp_structure_sidebar.left a img {
    width: 80% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    
    /* หัวใจหลัก: ใช้ drop-shadow เพื่อให้เงาเกาะตามรูปทรงเหรียญจริง */
    /* filter: drop-shadow(0 10px 15px rgba(0, 51, 102, 0.15)) !important; */
    
    /* ใส่เส้นขอบบางๆ สีส้มทองรอบรูปเหรียญ */
    /* border: 1px solid rgba(242, 153, 74, 0.1) !important; */
    border-radius: 10px !important;
    /* padding: 10px !important; */
    box-sizing: border-box !important;
    
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

/* เอฟเฟกต์เมื่อ Hover ที่ลิงก์ ให้รูปเหรียญลอยขึ้นและนูนขึ้น */
.pkp_structure_sidebar.left a:hover img {
    transform: translateY(-8px) scale(1.03) !important;
    /* filter: drop-shadow(0 15px 25px rgba(242, 153, 74, 0.3)) !important; */
    /* border-color: #F2994A !important; */
}

/* ========= */

.pkp_site_name_wrapper {
  margin: 0 !important;
}

.cmp_breadcrumbs {
  display: none !important;
}

.indexed_in__div {
  /* display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
  gap: 20px; 
  align-items: stretch; */
}

.indexed_in__a {
  display: flex; 
  /* height: 140px;  */
  align-items: center; 
  justify-content: center; 
  background: #ffffff; 
  padding: 5px; 
  border-radius: 12px; 
  /* border: 1px solid #eee;  */
  box-shadow: 0 4px 10px rgba(0,0,0,0.03); 
  text-decoration: none;
}

.indexed_in__a__img {
  /* max-height: 90px;  */
  /* max-width: 100%;  */
  object-fit: contain;
}

.pkp_head_wrapper {
  width: 85% !important;
}

.pkp_structure_content {
  /* width: 85% !important; */
}

.pkp_structure_main {
  /* width: 80% !important; */
}

.pkp_structure_main:before, .pkp_structure_main:after {
  content: none !important;
}

.pkp_block {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.pkp_structure_sidebar {
  width: 25% !important;
}

.pkp_structure_main>.page h1 {
  display: none !important;
  /* color: #A47764 !important; */
  /* font-size: 1.714rem !important; */
  /* font-weight: bold !important; */
  /* text-decoration: underline !important; */
}

.pkp_structure_main>.page_issue_archive h1 {
  display: block !important;
}

.pkp_structure_main>.page_article h1 {
  display: block !important;
}

.pkp_structure_main:has(.page_article) {
  margin-left: 5% !important;
  width: 70% !important;
}

.pkp_structure_main>.page_issue h1 {
  display: block !important;
}

.pkp_structure_main>.page_about h1 {
  display: block !important;
}




.guidelines_page_menu {
  color: #A47764 !important;
  font-size: 20px !important;
  font-weight: bold !important;
  text-decoration: underline !important;
}

.about_page_menu {
  color: #A47764 !important;
  font-size: 20px !important;
  font-style: italic !important;
  font-weight: bold !important;
  text-decoration: underline !important;
}

#navigationPrimary {
  border-top: 5px solid #000000!important;
}

@media screen and (min-width:992px) {
  #navigationPrimary li a {
    color: #000000 !important;
    font-weight: bold !important;
  }

  #navigationPrimary li a:hover {
    color: #555555 !important;
  }

  .pkp_site_nav_menu {
    background-color: transparent !important;
  }
}

#navigationUser > li > a,
.pkp_navigation_search_wrapper a {
  color: #FFFFFF !important;
  font-weight: bold !important;
  text-shadow: -1px -1px 0 #000,
               1px -1px 0 #000,
              -1px 1px 0 #000,
               1px 1px 0 #000 !important;
}

.page_contact .contact {
  float: none !important;
  width: 100% !important;
}

div .address strong {
  font-size: 1.143rem !important;
}

div .address p strong a img {
  width: 50% !important;
  border-radius: 16px !important;
}

/* =========== */
/* =========== */
/* =========== */

.custom_block {
  /* ... โค้ดเดิมของคุณ ... */
  border-radius: 15px 15px 15px 15px !important;
  border: 1px solid #e0e0e0 !important;
  background-color: #ffffff !important;
  box-shadow: 0 10px 25px rgba(0, 51, 102, 0.05) !important;
  margin-bottom: 25px !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;

  /* เพิ่มส่วน Animation ตรงนี้ */
  animation: slideInTop 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both !important;
}

@keyframes slideInTop {
  0% {
    transform: translateY(100px); /* เริ่มต้นจากด้านขวา 100px */
    opacity: 0; /* เริ่มจากโปร่งใส */
  }
  100% {
    transform: translateY(0); /* เลื่อนกลับมาตำแหน่งปกติ */
    opacity: 1; /* แสดงผลชัดเจน */
  }
}

/* เอฟเฟกต์เมื่อ Hover ให้บล็อกลอยขึ้นเล็กน้อย */
.custom_block:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 15px 35px rgba(0, 51, 102, 0.1) !important;
  /* border-color: #F2994A !important; */
}

.custom_block_radius {
  border-radius: 0 0 15px 15px !important;
}

.custom_block .title {
  /* ใช้สีน้ำเงิน Midnight Blue เป็นพื้นหลังหัวข้อ */
  background-color: #003366 !important;
  text-align: center !important;
  padding: 12px 15px !important;
  /* เพิ่มเส้นขอบล่างสีส้มทองบางๆ เพื่อความหรูหรา */
  /* border-bottom: 3px solid #F2994A !important; */
}

.custom_block .title p {
  color: #FFFFFF !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  margin: 0 !important;
  font-size: 1rem !important;
  text-transform: uppercase !important;
  font-family: 'Segoe UI', sans-serif !important;
}

.custom_block .content {
  text-align: center !important;
  /* padding: 15px !important; */
  color: #2D3436 !important; /* สีเทาเข้มเกือบดำ ดูพรีเมียม */
  line-height: 1.5 !important;
  font-size: 14px !important;
}

/* ปรับแต่ง Link ภายใน Content ให้เป็นสีน้ำเงินและส้มทอง */
.custom_block .content a {
  color: #003366 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  border-bottom: 1px solid transparent !important;
}

.custom_block .content a:hover {
  color: #F2994A !important;
  /* border-bottom: 1px solid #F2994A !important; */
}

/* =========== */
/* =========== */
/* =========== */

.block_information {
  margin: 10% !important;
  text-align: center !important;
  border-radius: 15px 15px 15px 15px !important;
  /* border: 2px solid #A47764 !important; */
  padding: 0px !important;

  border: 1px solid #e0e0e0 !important;
  background-color: #ffffff !important;
  box-shadow: 0 10px 25px rgba(0, 51, 102, 0.05) !important;
  margin-bottom: 25px !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;

  /* เพิ่มส่วน Animation ตรงนี้ */
  animation: slideInTop 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both !important;
}

.block_information:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 15px 35px rgba(0, 51, 102, 0.1) !important;
  /* border-color: #F2994A !important; */
}

.block_information .content a {
  color: #003366 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  border-bottom: 1px solid transparent !important;
}

.block_information .content a:hover {
  color: #F2994A !important;
  /* border-bottom: 1px solid #F2994A !important; */
}

.block_information .title {
  background-color: #003366 !important;
  color: #FFFFFF !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.block_information .content {
  padding: 10px !important;
}

a.block_make_submission_link {
  width: 100% !important;
  margin: auto !important;
  text-align: center !important;
}

.block_make_submission_link {
  color: #A47764 !important;
  position: relative !important;
  font-size: 0 !important;
  animation: slideInTop 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both !important;
}

.block_make_submission_link:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 15px 35px rgba(0, 51, 102, 0.1) !important;
  border-color: #F2994A !important;
}

.block_make_submission_link:before {
  content: "Make a Submission";
  text-align: center !important;
  vertical-align: middle !important;
  font-size: 16px;
  animation: glow-soft 2s ease-in-out infinite, blinker 1s linear infinite !important;
  color: #A47764 !important;
}

/* Animation 1: ไล่เฉดสีขาว-ส้มทอง */
@keyframes glow-soft {
  0% { color: #FFFFFF; text-shadow: 0 0 0px #F2994A; }
  50% { color: #F2994A; text-shadow: 0 0 10px rgba(242, 153, 74, 0.5); }
  100% { color: #FFFFFF; text-shadow: 0 0 0px #F2994A; }
}

/* Animation 2: กะพริบ (Opacity) */
@keyframes blinker {
  50% {
    opacity: 0.3; /* ปรับเป็น 0.3 เพื่อไม่ให้หายวับไปเลย จะดูแพงกว่า 0 ครับ */
  }
}

/* ============= */

/* --- ส่วนปรับแต่งหน้า Archives --- */

/* 1. จัดการ Layout ของรายการวารสารให้เป็น Grid */

/* เลือกที่ลิงก์หัวข้อวารสารทั้งหมด */
a.title {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; /* ปรับให้ชื่ออยู่ตรงกลางตามตัว Card */
    text-align: center !important;
    text-decoration: none !important;
}

/* ปรับแต่งส่วนที่เป็นชื่อเดือน/ปี (ข้อความหลัก) */
.obj_issue_summary h2 a.title {
    color: #003366 !important; /* Midnight Blue */
    font-weight: 700 !important;
    font-size: 18px !important;
}

ul.issues_archive {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 30px !important;
    padding: 0 !important;
    list-style: none !important;
    margin-top: 30px !important;
}

/* 2. ปรับแต่งแต่ละ Card ของวารสาร (Issue Summary) */
.obj_issue_summary {
    text-align: center !important;
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    height: 95% !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
}

.obj_issue_summary:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 25px rgba(0, 51, 102, 0.1) !important;
    border-color: #F2994A !important; /* เปลี่ยนขอบเป็นสีส้มทองเมื่อ Hover */
}

/* 3. ปรับแต่งรูปภาพหน้าปก (Cover) */
.obj_issue_summary .cover {
    display: flex !important; /* ใช้ flex เพื่อจัดวางรูปกึ่งกลาง */
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 300px !important; /* เพิ่มความสูงเพื่อให้เห็นรูปแนวตั้งได้ชัดเจนขึ้น */
    overflow: hidden !important;
    background: #f8f9fa !important; /* สีพื้นหลังกรณีรูปไม่เต็มขอบ */
    padding: 15px !important; /* เพิ่มพื้นที่ว่างรอบรูปให้ดูแพงขึ้น */
    box-sizing: border-box !important;
}

.obj_issue_toc .sections:not(:first-child) {
  margin-top: -70px !important;
}

.obj_issue_summary .cover img {
    max-width: 100% !important;
    /* max-height: 100% !important; */
    width: auto !important; /* ปล่อยความกว้างอิสระ */
    height: auto !important; /* ปล่อยความสูงอิสระ */
    object-fit: contain !important; /* หัวใจหลัก: แสดงเต็มรูปโดยไม่ตัดส่วนใดออก */
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important; /* เพิ่มเงาให้ตัวรูปดูมีมิติ */
}

.obj_issue_summary:hover .cover img {
    transform: scale(1.03) !important; /* ขยายขึ้นเล็กน้อยแบบนุ่มนวล */
}

/* 4. ปรับแต่งส่วนหัวข้อและข้อมูลฉบับวารสาร */
.obj_issue_summary h2 {
    padding: 20px !important;
    margin: 0 !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

/* ชื่อเดือน/ปี */
.obj_issue_summary h2 a.title {
    color: #003366 !important; /* Midnight Blue */
    font-size: 12px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    margin-bottom: 10px !important;
    display: block !important;
}

/* Vol. No. (Series) */
.obj_issue_summary h2 .series {
    color: #F2994A !important; /* Golden Orange */
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

/* 5. ปรับแต่ง Pagination (การแบ่งหน้า) ด้านล่าง */
.cmp_pagination {
    margin-top: 50px !important;
    text-align: center !important;
    padding: 20px !important;
    border-top: 1px solid #eee !important;
    font-family: inherit !important;
}

.cmp_pagination .current {
    font-weight: bold !important;
    color: #003366 !important;
    margin-right: 15px !important;
}

.cmp_pagination a.next {
    display: inline-block !important;
    background: #003366 !important;
    color: #fff !important;
    padding: 8px 25px !important;
    border-radius: 20px !important;
    text-decoration: none !important;
    transition: background 0.3s !important;
}

.cmp_pagination a.next:hover {
    background: #F2994A !important;
}

/* 6. ปรับแต่งหัวข้อ Archives ของหน้า */
.page_issue_archive h1 {
    color: #003366 !important;
    font-size: 28px !important;
    border-bottom: 3px solid #F2994A !important;
    display: inline-block !important;
    padding-bottom: 10px !important;
    margin-bottom: 20px !important;
}

/* --- 1. ปรับแต่งส่วน About Journal --- */
.homepage_about {
    background: #f8f9fa !important;
    padding: 20px 25px !important; /* ลดจาก 40px */
    border-radius: 12px !important; /* ลดความโค้งลงให้รับกับพื้นที่ */
    border-left: 6px solid #003366 !important;
    margin-bottom: 30px !important; /* ลดระยะห่างด้านล่างจาก 50px */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
}

.homepage_about h2 {
    color: #003366 !important;
    font-size: 24px !important; /* ลดขนาดหัวข้อลงเล็กน้อย */
    margin-bottom: 10px !important; /* ลดระยะห่างใต้หัวข้อ */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- 2. ปรับแต่งส่วน Current Issue Header --- */
.current_issue h2 {
    color: #003366 !important;
    border-bottom: 3px solid #F2994A !important;
    display: inline-block !important;
    padding-bottom: 5px !important;
    margin-bottom: 15px !important; /* ลดลงจาก 25px */
}

.current_issue_title {
    font-size: 18px !important; /* กระชับขนาดตัวอักษร */
    color: #003366 !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important; /* ลดจาก 30px */
    background: #fff9f5 !important;
    padding: 10px 20px !important; /* ลดจาก 15px 25px */
    border-radius: 8px !important;
    border: 1px solid #ffe8d9 !important;
}

/* --- 3. จัดการส่วน TOC (Table of Contents) --- */
.obj_issue_toc {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important; /* ลดระยะห่างระหว่างองค์ประกอบจาก 30px */
}

/* ปรับแต่งหน้าปกวารสารในหน้าแรก */
.obj_issue_toc .heading .cover {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin-bottom: 25px !important;
}

.obj_issue_toc .heading .cover img {
    margin: 0 auto !important;
    max-height: 250px !important;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.15) !important;
}
/* --- 4. ปรับแต่งรายการบทความ (Article List) --- */
.obj_article_summary {
    padding: 15px 20px !important; /* ลดจาก 25px */
    margin-bottom: 12px !important; /* ลดระยะห่างระหว่าง Card จาก 20px */
    gap: 5px !important; /* ลดช่องว่างภายใน Card */
}

.obj_article_summary:hover {
    border-color: #F2994A !important;
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.08) !important;
    transform: translateY(-3px) !important;
}

.obj_article_summary .title {
    margin-bottom: 0 !important;
}

/* ชื่อบทความ */
.obj_article_summary .title a {
    font-size: 16px !important; /* ลดขนาดฟอนต์ลงเล็กน้อย */
    line-height: 1.3 !important;
}

.obj_article_summary .title a:hover {
    color: #F2994A !important;
}

/* ข้อมูลผู้แต่งและเลขหน้า */
.obj_article_summary .meta {
    font-size: 14px !important;
    color: #666 !important;
}

.obj_article_summary .authors {
    margin-bottom: 5px !important;
    font-weight: 500 !important;
}

/* --- 5. ปรับแต่งปุ่ม PDF --- */
.obj_galley_link.pdf {
    display: inline-block !important;
    background-color: #003366 !important;
    color: #ffffff !important;
    padding: 6px 20px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s !important;
}

.obj_galley_link.pdf:hover {
    background-color: #F2994A !important;
    box-shadow: 0 4px 10px rgba(242, 153, 74, 0.3) !important;
}

/* --- 6. ปรับแต่งส่วน Section Heading (เช่น Research Articles) --- */
.current_issue .section h3 {
    color: #003366 !important;
    font-size: 18px !important;
    border-bottom: 1px solid #f1f4f8 !important;
    padding-bottom: 8px !important;
    margin: 25px 0 15px 0 !important; /* ลดระยะห่างด้านบนจาก 40px */
}

/* --- 7. ปุ่ม View All Issues ด้านล่าง --- */
a.read_more {
    margin-top: 25px !important; /* ลดจาก 40px */
    padding: 8px 25px !important; /* ลดความหนาของปุ่ม */
    font-size: 14px !important;
}

.obj_galley_link.pdf {
    padding: 4px 15px !important; /* ลดขนาดปุ่ม PDF ให้กระชับ */
    font-size: 12px !important;
}

.cmp_article_list>li {
  margin-bottom: 0rem !important;
}

.cmp_article_list>li>div {
  background-color: #f1f4f8;
  padding: 12px 20px;
  border-radius: 6px;
}

/* ========== */

/* ปรับตัวครอบหลักให้เป็น Grid */
.row {
    display: grid !important;
    grid-template-columns: 3fr 1fr; /* สัดส่วนคอลัมน์เดิม 75% : 25% โดยประมาณ */
    gap: 20px;
}

/* ปรับให้ main_entry ยืดหยุ่น */
.main_entry {
    display: contents !important; /* สลายขอบเขตเพื่อให้ลูกๆ ตกไปอยู่ใน Grid หลัก */
}

/* สั่งให้ทุก section ใน main_entry ยกเว้น reference อยู่ฝั่งซ้าย */
.main_entry > section:not(.references),
.main_entry > div:not(.references) {
    grid-column: 1 / 2; /* คอลัมน์ที่ 1 */
}

/* ส่วนหัวใจ: สั่งให้ Reference เต็มแถว */
.item.references {
    grid-column: 1 / -1 !important; /* กินพื้นที่ตั้งแต่คอลัมน์แรกถึงสุดท้าย */
    width: 100% !important;
    background: #f8f9fa !important; /* ใส่สีพื้นหลังให้อ่านง่าย */
    padding: 30px !important;
    border-radius: 12px !important;
    margin-top: 40px !important;
}

/* ปรับให้ส่วนรายละเอียด (Side bar) อยู่ฝั่งขวา */
.entry_details {
    grid-column: 2 / 3;
    grid-row: 1 / 10; /* ให้ลอยขึ้นไปอยู่ด้านบนเคียงข้าง main content */
}

/* =========== */

/* --- 1. ปรับแต่งส่วนรายชื่อผู้แต่ง (item authors) --- */

.item.authors ul.authors {
    padding: 0 !important;
    list-style: none !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
}

.obj_article_details .authors li {
  margin-bottom: 0px !important;
}

.item.authors li {
    background: #f1f4f8 !important;
    padding: 6px 15px !important; /* ลดจาก 10px 20px */
    border-radius: 6px !important;
    /* border-left: 3px solid #003366 !important; */
}

.item.authors .name {
    font-size: 16px !important; /* ลดขนาดลงเล็กน้อย */
}

.item.authors .affiliation {
    display: block !important;
    font-size: 13px !important;
    color: #666 !important;
    font-style: italic !important;
    margin-top: 5px !important;
}

.item.authors .orcid a {
    font-size: 12px !important;
    color: #A2C12D !important; /* สีเขียว ORCID */
    text-decoration: none !important;
}

/* --- 2. ปรับแต่ง DOI และ Keywords --- */
.item.doi, .item.keywords {
    margin-bottom: 12px !important; /* ลดจาก 20px */
    padding: 10px 15px !important; /* ลดจาก 15px */
}

.item.doi {
  background: #f1f4f8 !important;
  border: 1px solid #003366 !important;
  color: #003366 !important;
  text-align: center !important;
}

.item.doi .label, .item.keywords .label {
    font-size: 12px !important; /* ลดขนาด label */
    margin-bottom: 2px !important;
}

.item.doi .value a {
    color: #003366 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* --- 3. ปรับแต่งบทคัดย่อ (item abstract) --- */
.item.abstract {
    background: #ffffff !important;
    padding: 30px !important;
    border-radius: 15px !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
}

.item.abstract .label {
    color: #003366 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    border-bottom: 3px solid #F2994A !important;
    display: inline-block !important;
}

.item.abstract p {
    text-align: justify !important;
    line-height: 1.8 !important;
    color: #444 !important;
    font-size: 12px !important;
}

/* --- 4. ปรับแต่งแถบด้านข้าง (entry_details) --- */
.entry_details {
    padding: 15px !important; /* ลดจาก 25px */
    border-radius: 10px !important;
}

/* กล่องหน้าปกในหน้าเนื้อหา */
.item.cover_image img {
    margin-bottom: 15px !important; /* ลดระยะห่างใต้รูปปก */
}

/* หัวข้อ Label ใน Sidebar */
.entry_details .label {
    font-size: 13px !important; /* ลดขนาดหัวข้อในแถบข้าง */
    margin-bottom: 8px !important;
    padding-bottom: 3px !important;
}

/* ปุ่ม PDF ใน Sidebar */
.obj_galley_link.pdf {
    padding: 8px 15px !important; /* ลดขนาดปุ่ม */
    font-size: 14px !important;
}

.obj_galley_link.pdf:hover {
    background: #F2994A !important;
    transform: translateY(-2px) !important;
}

/* ส่วนของ License และ Metadata อื่นๆ */
.item.published, .item.citation, .item.issue, .item.copyright {
    margin-bottom: 15px !important; /* ลดจาก 25px */
}

.item.issue a.title {
    color: #003366 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* ปรับแต่งส่วน How to Cite (Citation) */
.citation_display {
    background: #fff !important;
    padding: 15px !important;
    border-radius: 8px !important;
    border: 1px solid #eee !important;
    font-size: 13px !important;
}

.citation_formats_button {
    background: #f1f4f8 !important;
    border: 1px solid #003366 !important;
    color: #003366 !important;
    border-radius: 5px !important;
    padding: 5px 15px !important;
    margin-top: 10px !important;
    cursor: pointer !important;
}

.obj_article_details .citation_display .citation_formats {
  border: 0px !important;
}

div.item.galleys,
div.item.published {
  text-align: center !important;
}


/* =================== */

/* --- 1. ปรับแต่งหน้าหลัก Announcements --- */
.page_announcements h1 {
    color: #003366 !important;
    border-bottom: 3px solid #F2994A !important;
    display: inline-block !important;
    padding-bottom: 10px !important;
    margin-bottom: 30px !important;
    font-size: 28px !important;
}

.page_announcements p {
    color: #003366 !important;
    font-size: 28px !important;
    border-bottom: 3px solid #F2994A !important;
    display: inline-block !important;
    padding-bottom: 10px !important;
    margin-bottom: 20px !important;
}

/* ปรับแต่งรายการประกาศให้เป็น Card */
ul.cmp_announcements {
    list-style: none !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 25px !important;
}

.obj_announcement_summary {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 16px !important;
    padding: 25px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    transition: all 0.3s ease !important;
    border-left: 6px solid #003366 !important;
}

.obj_announcement_summary:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 25px rgba(0, 51, 102, 0.1) !important;
    border-left-color: #F2994A !important;
}

/* หัวข้อประกาศ */
.obj_announcement_summary h2 {
    margin: 0 0 10px 0 !important;
    font-size: 20px !important;
}

.obj_announcement_summary h2 a {
    color: #003366 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    transition: color 0.2s !important;
}

.obj_announcement_summary h2 a:hover {
    color: #F2994A !important;
}

/* วันที่ */
.obj_announcement_summary .date {
    color: #888 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 15px !important;
    display: flex !important;
    align-items: center !important;
}

.obj_announcement_summary .date:before {
    content: "📅" !important;
    margin-right: 8px !important;
}

.obj_announcement_summary .summary p {
    display: grid !important;
    /* สร้าง 2 คอลัมน์ที่ขนาดเท่ากัน และปรับเป็น 1 คอลัมน์บนมือถืออัตโนมัติ */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 15px !important; /* ระยะห่างระหว่างรูป */
    justify-items: center !important;
    align-items: center !important;
    margin: 20px 0 !important;
}

/* รูปภาพในประกาศ */
.obj_announcement_summary .summary img {
    display: block !important;
    width: 100% !important; /* ให้รูปขยายเต็มคอลัมน์ของ Grid */
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover !important; /* ป้องกันรูปเบี้ยว */
    border-radius: 12px !important;
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.08) !important;
    border: 1px solid #f1f4f8 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.obj_announcement_summary .summary img:hover {
    transform: scale(1.03) !important;
    box-shadow: 0 12px 25px rgba(242, 153, 74, 0.2) !important; /* เงาสีส้มทองจางๆ */
    border-color: #F2994A !important;
}

.obj_announcement_summary .summary p img:only-child {
    max-width: 75% !important;
    grid-column: 1 / -1 !important; /* บังคับให้อยู่กลาง Grid */
}

/* ปุ่ม Read More */
.obj_announcement_summary .read_more {
    display: inline-block !important;
    color: #F2994A !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    border-bottom: 2px solid transparent !important;
    transition: all 0.3s !important;
}

.obj_announcement_summary .read_more:hover {
    border-bottom-color: #F2994A !important;
    letter-spacing: 1px !important;
}

.center-img img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

/* ============== */

/* --- 1. ปรับแต่งหัวข้อหน้า Contact --- */
.page_contact h1 {
    color: #003366 !important;
    border-bottom: 3px solid #F2994A !important;
    display: inline-block !important;
    padding-bottom: 8px !important;
    margin-bottom: 30px !important;
    font-size: 28px !important;
}

/* --- 2. ปรับแต่งส่วนที่อยู่ (Address Section) --- */
.page_contact .address {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 15px !important;
    padding: 25px !important;
    margin-bottom: 30px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    line-height: 1.8 !important;
    border-left: 6px solid #003366 !important;
}

.page_contact .address strong {
    color: #003366 !important;
    font-size: 18px !important;
}

/* ปรับแต่งรูปภาพแผนที่ */
.page_contact .address img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    
    /* ปรับแต่งเพิ่มเติมให้ดูพรีเมียม */
    max-width: 100% !important; /* ป้องกันรูปล้นขอบ */
    height: auto !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #eee !important;
    transition: transform 0.3s ease !important;
}

.page_contact .address p {
    text-align: center !important;
}

.page_contact .address img:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(0, 51, 102, 0.15) !important;
}

/* --- 3. จัดการ Layout ส่วน Contact (Principal & Support) --- */
.contact_section {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.page_contact .contact {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 15px !important;
    padding: 20px 25px !important;
    transition: all 0.3s ease !important;
}

.page_contact .contact:hover {
    border-color: #F2994A !important;
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.08) !important;
}

/* หัวข้อภายใน Contact Card */
.page_contact .contact h3 {
    color: #003366 !important;
    font-size: 20px !important;
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    border-bottom: 1px solid #f1f4f8 !important;
    padding-bottom: 10px !important;
}

/* รายละเอียดภายใน */
.page_contact .contact .name {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin-bottom: 5px !important;
}

.page_contact .contact .affiliation {
    font-size: 14px !important;
    color: #666 !important;
    font-style: italic !important;
    margin-bottom: 15px !important;
    line-height: 1.5 !important;
}

/* ส่วน Phone และ Email */
.page_contact .contact .phone, 
.page_contact .contact .email {
    font-size: 15px !important;
    margin-bottom: 8px !important;
    display: flex !important;
    align-items: center !important;
}

.page_contact .contact .label {
    font-weight: 700 !important;
    color: #003366 !important;
    min-width: 70px !important;
    display: inline-block !important;
}

.page_contact .contact .value {
    color: #444 !important;
}

.page_contact .contact a {
    color: #F2994A !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    border-bottom: 1px solid transparent !important;
    transition: all 0.3s !important;
}

.page_contact .contact a:hover {
    border-bottom-color: #F2994A !important;
}

/* --- 4. ปรับแต่งสำหรับหน้าจอขนาดใหญ่ (Desktop) --- */
@media (min-width: 768px) {
    /* ให้ Principal และ Support เรียงต่อกัน 2 คอลัมน์ */
    .contact_section {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 25px !important;
    }
    
    .page_contact .address {
        grid-column: 1 / -1 !important; /* ที่อยู่ยาวเต็มแถวบน */
    }
}

/* เลือกไปที่ส่วนของ Support Contact */
.contact.support .name {
    font-size: 0 !important; /* ซ่อนข้อความเดิมที่เป็นก้อนยาวๆ */
    line-height: 0 !important;
}

/* สร้างชื่อใหม่ให้ตัวหนาและเด่นเหมือน Principal */
.contact.support .name:before {
    content: "Yaratchanee Mongnun"; /* ดึงชื่อออกมาสร้างใหม่ */
    display: block !important;
    font-size: 18px !important; /* ขนาดเท่ากับฝั่งซ้าย */
    font-weight: 700 !important;
    color: #333 !important;
    line-height: 1.5 !important;
    margin-bottom: 5px !important;
}

/* สร้างส่วน Affiliation ใหม่ให้อยู่บรรทัดล่างและเป็นตัวเอียง */
.contact.support .name:after {
    content: "Research and International Affairs, The Graduate School, Naresuan University, Maha Dhammaraja Building Zone A, Muang District, Phitsanulok Province 65000";
    display: block !important;
    font-size: 14px !important;
    color: #666 !important;
    font-style: italic !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    margin-bottom: 15px !important;
}

/* ปรับระยะห่างของ Phone และ Email ของฝั่ง Support ให้เท่ากัน */
.contact.support .phone {
    margin-top: 5px !important;
}

/* =================== */

/* --- 1. ปรับแต่งหัวข้อหน้า Submissions --- */
.page_submissions h1 {
    color: #003366 !important;
    border-bottom: 3px solid #F2994A !important;
    display: inline-block !important;
    padding-bottom: 8px !important;
    margin-bottom: 30px !important;
    font-size: 28px !important;
    text-transform: uppercase;
}

/* --- 2. ปรับแต่งกล่องแจ้งเตือน Login/Register --- */
.cmp_notification {
    background: #fff9f5 !important;
    border: 1px solid #ffe8d9 !important;
    padding: 15px 25px !important;
    border-radius: 10px !important;
    color: #003366 !important;
    /* font-weight: 600 !important; */
    margin-bottom: 35px !important;
    text-align: center !important;
    font-size: 20px !important;
}

.cmp_notification a {
    color: #F2994A !important;
    text-decoration: underline !important;
    font-weight: 700 !important;
}

/* --- 3. ปรับแต่งส่วน Submission Preparation Checklist --- */
.submission_checklist {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 15px !important;
    padding: 30px !important;
    margin-bottom: 40px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
}

.submission_checklist h2 {
    color: #003366 !important;
    font-size: 22px !important;
    margin-bottom: 15px !important;
    border-left: 5px solid #003366 !important;
    padding-left: 15px !important;
}

.submission_checklist ul {
    list-style: none !important;
    padding: 0 !important;
    margin-top: 20px !important;
}

.submission_checklist li {
    position: relative !important;
    padding: 12px 15px 12px 45px !important;
    border-bottom: 1px solid #f1f4f8 !important;
    line-height: 1.6 !important;
    color: #444 !important;
}

.submission_checklist li:last-child {
    border-bottom: none !important;
}

/* ปรับแต่งไอคอน Fa-check ให้เป็นสีส้มทอง */
.submission_checklist li .fa-check {
    position: absolute !important;
    left: 15px !important;
    top: 15px !important;
    color: #003366 !important;
    font-size: 16px !important;
}

/* ปรับแต่งลิงก์ดาวน์โหลด Template ใน Checklist */
.submission_checklist a {
    color: #003366 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-bottom: 1px dashed #003366 !important;
}

.submission_checklist a:hover {
    color: #003366 !important;
    border-bottom-color: #003366 !important;
}

/* --- 4. ปรับแต่งส่วน Section Policy / Copyright / Privacy --- */
.section_policy, .copyright_notice, .privacy_statement {
    background: #f8f9fa !important;
    padding: 25px !important;
    border-radius: 12px !important;
    margin-bottom: 25px !important;
    border: 1px solid #eee !important;
}

.section_policy h2, .copyright_notice h2, .privacy_statement h2 {
    color: #003366 !important;
    font-size: 20px !important;
    margin-top: 0 !important;
    margin-bottom: 15px !important;
}

.section_policy p, .copyright_notice p, .privacy_statement p {
    text-align: justify !important;
    color: #555 !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

/* เน้นข้อความตัวหนาในเนื้อหา */
.section_policy strong {
    color: #003366 !important;
}

/* --- 5. ปรับแต่งลิงก์ทั่วไปในหน้าเนื้อหา --- */
/* .page_submissions a {
    color: #003366 !important;
    transition: all 0.2s ease !important;
} */

.page_submissions a:hover {
    opacity: 0.8 !important;
}