/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: ธีมลูกสำหรับ Astra ใช้ปรับแต่งหน้าแสดงวารสารวิชาการ
Author: ajbeerwebsite
Author URI: https://example.com
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

/* นำเข้า font Google Anuphan */
@import url('https://fonts.googleapis.com/css2?family=Anuphan:wght@400;700&display=swap');

.journal-database-container {
  font-family: 'Anuphan', sans-serif;
  padding: 40px;
  max-width: 900px;
  margin: auto;
  text-align: center; /* จัดกลางเนื้อหาทั้งหมด */
}

.journal-title {
  font-size: 2.5rem;
  color: #336699; /* สีตามที่ระบุ */
  margin-bottom: 20px;
}

.journal-search-form {
  margin-bottom: 20px;
}

/* ช่องค้นหา */
.search-input {
  padding: 10px;
  width: 80%;
  font-size: 1rem;
  border: 1px solid #ccc;
  margin-bottom: 20px;
  text-align: center;
}

/* กลุ่มปุ่ม */
.button-group {
  display: flex;
  justify-content: center; /* จัดปุ่มให้อยู่กึ่งกลาง */
  gap: 10px;
}

/* ปุ่ม */
.search-button,
.reset-button {
  padding: 10px 20px;
  font-size: 1rem;
  background-color: #DCDCDC;
  color: #000;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-button:hover,
.reset-button:hover,
.search-button:active,
.reset-button:active {
  background-color: #336699;
  color: #fff;
}

/* เส้นแบ่ง */
.divider {
  border: 0;
  height: 1px;
  background-color: #3366CC;
  margin: 30px 0;
}

/* ตารางผลลัพธ์ */
.results-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  text-align: left;
}

.results-table th,
.results-table td {
  border: 1px solid #ddd;
  padding: 10px;
}

body {
    font-family: 'Anuphan', sans-serif;
}

table th, table td {
    padding: 10px;
    border: 1px solid #ccc;
}

table th {
    background-color: #e6e6e6;
    color: #000;
}

/* --------------------------------------------- */
/* ฟอนต์ TH Sarabun PSK สำหรับใบลา (Thin 100, Regular 400, Bold 700) */
@import url('https://fonts.googleapis.com/css2?family=TH+Sarabun+PSK:wght@100;400;700&display=swap');

/* สไตล์สำหรับเอกสารใบลา */
.leave-document {
    width: 21cm; /* ขนาด A4 จริง */
    min-height: 29.7cm;
    margin: 1cm auto;
    padding: 2cm;
    border: 1px solid #000;
    box-sizing: border-box;
    background: #fff;
    font-family: 'TH Sarabun PSK', serif;
    font-weight: 400;
    font-size: 16pt;
    color: #000;
}

.leave-document .title {
    font-size: 20pt;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}

.leave-document .subtitle {
    font-size: 16pt;
    font-weight: 100;
    text-align: right;
    margin-bottom: 20px;
}

.leave-document .date-line {
    font-size: 16pt;
    font-weight: 100;
    text-align: right;
    margin-bottom: 20px;
}

.leave-document .subject,
.leave-document .recipient {
    font-weight: 700;
    margin-bottom: 5px;
}

.leave-document .content {
    text-indent: 1.8cm;
    font-weight: 100;
    margin-bottom: 15px;
    line-height: 1.6;
}

.leave-document .contact {
    text-indent: 1.8cm;
    font-weight: 100;
    margin-bottom: 40px;
}

.leave-document .signature {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 100;
}

.leave-document .approval {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
}

.leave-document .approval .left,
.leave-document .approval .right {
    width: 48%;
    font-weight: 100;
    border-top: 1px solid #000;
    padding-top: 10px;
    min-height: 80px;
}

.leave-document .approval .title {
    font-weight: 700;
    margin-bottom: 5px;
    text-align: center;
}


