@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300&display=swap');
body {
    background-color: #dcdcdd;
    font-size: 16px;

    /* เปลี่ยนสีพื้นหลังเป็น #ffcccb (สีแดงอ่อน) */
}
.navbar-brand img {
    max-width: 100px;
    /* ปรับขนาดภาพให้พอดีกับขนาดของ Navbar */
    height: auto;
    /* ทำให้ความสูงปรับตามอัตราส่วน */
}
.img1 {
    background-image: url('DJI_0097.jpg');
    background-size: cover;
    background-position: center;
    height: auto;
    /* กำหนดให้ความสูงของรูปภาพปรับตามสัดส่วน */
    width: 100%;
}
.content-container {
    max-width: 1300px;
    margin: 0 auto;
    /* ทำให้ container อยู่กึ่งกลาง */
}
@media (max-width: 768px) {
    .content-container {
        max-width: 1500px;
        margin: 0 auto;
        /* ทำให้ container อยู่กึ่งกลาง */
    }
}
@media (max-width: 576px) {
    .content-container {
        max-width: 30rem;
        /* ปรับความกว้างสูงสุดเมื่อหน้าจอเล็กกว่า 576px */
    }
}
.but {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* แนะนำให้ใช้ align-items: flex-start เพื่อให้ชิดด้านบน */
}
.fw-bolder {
    font-weight: bold;
}

#card {
    background-color: #fff;
    border: none;
    /* ลบขอบมนทั้งหมดของการ์ด */
}

/* หัวข้อลำดับแบบ [1] [2] [3] — ใช้ counter(list-item) ของเบราว์เซอร์เอง
   เพราะมันเคารพ attribute start="N" ของแต่ละ <ol> โดยอัตโนมัติ
   (ต่างจาก counter ที่ตั้งชื่อเอง ซึ่งจะ reset เป็น 1 ทุกครั้งที่เจอ <ol> ใหม่) */
ol {
    list-style: none;
    padding-left: 0;
}

ol li {
    /* ต้องประกาศ counter-increment เอง เพราะการตั้ง display: flex
       ทำให้ li ไม่ใช่ display: list-item อีกต่อไป เบราว์เซอร์เลยไม่บวกค่า
       list-item counter ให้อัตโนมัติ (ค่าจะค้างที่ start-1 กลายเป็นเริ่มนับ 0) */
    counter-increment: list-item;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

ol li::before {
    content: "[" counter(list-item) "] ";
    margin-right: 0.5em;
}

/* รองรับ <ol type="a">: counter() ไม่อ่านค่า type ของ HTML เอง
   ต้องกำหนดรูปแบบตัวอักษรตาม type ให้ตรงกันเอง
   หมายเหตุ: attribute [type=...] ของ <ol> เบราว์เซอร์จับคู่แบบไม่สนตัวพิมพ์เล็ก/ใหญ่
   ตามสเปก HTML ดังนั้นจะเขียนกฎแยกสำหรับ "A" ไม่ได้ (จะชนกับ "a" เสมอ) */
ol[type="a"] li::before {
    content: "[" counter(list-item, lower-alpha) "] ";
}

ol li>p {
    flex: 1 1 0%;
    min-width: 0;
    margin: 0;
    display: inline;
}

ol li>ol {
    flex: 1 1 100%;
    width: 100%;
    margin: 0.3em 0 0 1.5em;
}

/* ระยะห่างระหว่างบรรทัดของเนื้อหาบทความ ใช้ร่วมกันทุกเล่ม */
.box p {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.8;
}

.box p[style*="text-indent: -0.8cm"] {
    text-align: left;
}

/* เลขกำกับ footnote: สี ขนาด และความหนา ใช้ร่วมกันทุกเล่ม */
.box a.sdfootnoteanc,
.box a.sdfootnotesym {
    font-size: 0.85em;
    color: #0563C1;
    text-decoration: none;
    font-weight: bold;
}

/* ลดความสูงของเลขยกกำลัง ไม่ให้ลอยสูงเกินบรรทัด */
.box a.sdfootnoteanc sup,
.box a.sdfootnotesym sup {
    vertical-align: baseline;
    font-size: 100%;
}



/* .card {
    transition: box-shadow 0.3s ease-in-out;
}

.card:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    
} */