/* 1. ส่วนโหลดฟอนต์ */
@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  /* ตรวจสอบว่าชื่อไฟล์ตรงกับที่คุณเซฟไว้จริงๆ นะครับ */
  src: url('MaterialIcons-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Material Icons Outlined';
  font-style: normal;
  font-weight: 400;
  /* ใส่เส้นทางไฟล์ให้ถูก และแนะนำให้ใส่ format('woff2') */
  src: url('MaterialIconsOutlined-Regular.otf') format('woff2');
}

/* 2. ส่วนสำคัญมาก: ต้องมี Class นี้เพื่อให้ไอคอนแสดงผล */
.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;  /* ปรับขนาดไอคอนที่นี่ */
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;

  /* ส่วนช่วยให้ Render ไอคอนได้ถูกต้อง (Ligature support) */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga';
}

.material-icons-outlined {
  font-family: 'Material Icons Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;

  /* สำคัญมาก: ถ้าไม่มีสองบรรทัดนี้ ไอคอนจะไม่แสดงเป็นรูป */
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}