
.logo-txt{
    color: #303030;
    margin-top: 0;
    margin-bottom: 0;
    font-family: Red Hat Display, sans-serif;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.4;
}
/* ===========================
   HotelJob — Dept Browser
   =========================== */

/* ---- Section wrapper ---- */
.hj-dept-browser{
  width:100%;
  position:relative;
  z-index:0;
  margin-top: 40px;
}

/* ---- Heading ---- */
.hj-dept-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 12px;
}
.hj-dept-title{
  margin:0;
  font-size:20px;
  font-weight:700;
  color:#303030;
  display:flex;
  align-items:center;
  gap:8px;
}
.hj-dept-title-icon{
  font-size:20px;
  line-height:1;
}

/* ---- Grid Layout (3/2/1 columns) ---- */
.hj-dept-grid{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:16px;
  grid-template-columns:repeat(3,1fr);
}
@media (max-width:991px){
  .hj-dept-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:640px){
  .hj-dept-grid{ grid-template-columns:1fr; }
}

/* ---- Card base ---- */
.hj-dept-card{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  padding:16px;
  border:1px solid #E0E6EA;
  border-radius:14px;
  background:#FFF;
}
.hj-dept-card:hover{
  border-color:#C2E7FF;
  box-shadow:0 2px 12px rgba(0,0,0,.04);
}
.hj-dept-card:active{ transform:translateY(1px); }

.hj-dept-card-left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0; /* ให้ title truncate ได้ */
}
.hj-dept-card-text{ min-width:0; }
.hj-dept-card-title{
  font-size:16px;
  font-weight:700;
  color:#303030;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.hj-dept-card-sub{
  font-size:13px;
  color:#7A7A73;
}

/* คลิกได้ทั้งใบ */
.hj-dept-link{
  position:absolute;
  inset:0;
  border-radius:14px;
  text-indent:-9999px;
  overflow:hidden;
}

/* โฟกัสด้วยคีย์บอร์ด (ไม่กระทบเมาส์) */
.hj-dept-card:has(.hj-dept-link:focus-visible){
  outline:3px solid #C2E7FF;
  outline-offset:2px;
}

/* ---- Card: “ตำแหน่งงานทั้งหมด” (กว้างทั้งแถว) ---- */
.hj-dept-card.is-wide{
  grid-column:1 / -1;
}
.hj-dept-card.is-all{
  background:#F1F6FF;          /* ฟ้าอ่อนตามภาพ */
  
  padding-right:88px;           /* เผื่อพื้นที่เลขด้านขวา */
}
.hj-dept-card.is-all .hj-dept-card-icon{
  width:48px;
  height:48px;
  border-radius:12px;
  background:#2E6BFF;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
}
.hj-dept-all-count{
  position:absolute;
  right:18px;
  top:50%;
  transform:translateY(-50%);
  font-weight:800;
  font-size:24px;
  color:#303030;
  line-height:1;
  user-select:none;
}

/* ---- Badge ตัวเลขมุมขวาการ์ดทั่วไป ---- */
.hj-dept-card{ padding-right:68px; } /* กันพื้นที่ badge */
.hj-dept-badge{
  position:absolute;
  right:16px;
  top:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:32px;
  height:28px;
  padding:0 10px;
  border-radius:999px;
  background:#F3F5F7;
  border:1px solid #E0E6EA;
  color:#303030;
  font-size:13px;
  font-weight:700;
  line-height:1;
  user-select:none;
}

/* ---- Toggle button (ดูทั้งหมด / ซ่อนบางส่วน) ---- */
.hj-dept-toggle-wrap{
  display:flex;
  justify-content:center;
  margin-top:16px;
}
.hj-dept-toggle{
  appearance:none;
  border:1px solid #C2E7FF;
  background:#fff;
  color:#303030;
  font-weight:700;
  font-size:14px;
  padding:10px 16px;
  border-radius:999px;
  cursor:pointer;
  transition:background .2s, color .2s, border-color .2s, transform .02s;
}
.hj-dept-toggle:hover{ border-color:#FE7743; }
.hj-dept-toggle:active{ transform:translateY(1px); }
.hj-dept-toggle:focus-visible{
  outline:3px solid #C2E7FF;
  outline-offset:2px;
}

/* ---- ลด motion เมื่อตั้งค่า prefers-reduced-motion ---- */
@media (prefers-reduced-motion: reduce){
  .hj-dept-card,
  .hj-dept-toggle{ transition:none !important; }
}

/* ---- Utility (กันคลาส framework ทับค่า) ---- */
.hj-dept-grid{ display:grid !important; }          /* กันกรณี framework ตั้ง flex/column */
.hj-dept-card{ background:#fff; }                  /* กันสีพื้นโดนทับ */
