/* ===== HOWTOPLAY SECTION CSS ===== */

/* Section wrapper */
.howtoSection {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* ---- Page Title ---- */
.howtoTitle {
 font-family: "Google Sans", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  letter-spacing: 0.02em;
}

/* ---- Step Numbers Row ---- */
/* ---- Step Numbers Row ---- */
.howtoStepNumbers {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;      /* สำคัญ: ห้ามตกบรรทัด */
  width: 80%;
  gap: 0;
}

.stepNumberItem {
  display: flex;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
}

.stepNumberItem:last-child {
  flex: 0 0 auto;
}

/* วงกลม */
.stepCircle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f5f0a8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Google Sans", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #111111;
  flex: 0 0 56px;         /* ล็อกขนาด */
  position: relative;
  z-index: 2;
  box-shadow:
    0 0 0 2px #dfe57a,
    0 0 10px rgba(232, 236, 111, 0.85),
    0 0 18px rgba(232, 236, 111, 0.5);
}

.stepCircle::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 4px solid #111111;
}

/* เส้น */
.stepLine {
  flex: 1 1 auto;
  min-width: 40px;        /* กันเส้นหาย */
  height: 2px;
  margin: 0 -2px 0 -2px;  /* ให้เส้นชนวงกลมเนียนขึ้น */
  background: linear-gradient(90deg, #f4f6a0 0%, #e5ea6b 100%);
  box-shadow:
    0 0 6px rgba(232, 236, 111, 0.8),
    0 0 12px rgba(232, 236, 111, 0.45);
  position: relative;
  z-index: 1;
}
/* ---- Cards Grid ---- */
.howtoCards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

/* ---- Individual Card ---- */
.howtoCard {
    background-image: url('../images/Frame322.png');
    background-repeat: no-repeat;
        background-size:100% 100%;
/*  background: linear-gradient(160deg, #0d2035 0%, #060e1a 100%);*/
/*  border: 1px solid rgba(0, 200, 220, 0.35);*/
/*  border-radius: 10px;*/
  padding: 25px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

/* top cyan glow line */
/*
.howtoCard::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00c8dc, transparent);
}
*/

/* ---- Card Header ---- */
.howtoCardHeader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.howtoCardTag {
 font-family: "Google Sans", sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: #8ab4c8;
  letter-spacing: 0.03em;
}

.howtoCardTitleTH {
 font-family: "Google Sans", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

/* ---- Card Icon ---- */
.howtoCardIcon {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0;
}

.howtoCardIcon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* placeholder box เมื่อยังไม่มีรูป */
.howtoCardIcon .iconPlaceholder {
  width: 80px;
  height: 80px;
  background: rgba(0, 200, 220, 0.08);
  border: 1px dashed rgba(0, 200, 220, 0.3);
  border-radius: 8px;
}

/* ---- Card Body Text ---- */
.howtoCardBody {
 font-family: "Google Sans", sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #c8dde8;
  line-height: 1.75;
}

/* ---- Divider

.howtoCard::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00c8dc, transparent);
}

---- */
.howtoCardDivider {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
}

/* ---- Sub Items (list with icon+text) ---- */
.howtoSubList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.howtoSubItem {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.howtoSubItemIcon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  object-fit: contain;
}

.box-itemimg{
    width: 60px;
    height: 60px;
    border-radius: 5px;
    background-color: #fff;
    border: solid 2px #0dcaf0;
        align-items: center;
    text-align: center;
    display: flex;
    justify-content: center;
}
.howtoSubItemIcon.placeholder {
  width: 50px;
  height: 50px;
  background: rgba(0, 200, 220, 0.08);
  border: 1px dashed rgba(0, 200, 220, 0.3);
  border-radius: 6px;
  flex-shrink: 0;
}

.howtoSubItemText {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.howtoSubItemName {
 font-family: "Google Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
}

.howtoSubItemDesc {
 font-family: "Google Sans", sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #8ab4c8;
  line-height: 1.4;
}

/* ---- Quest Label (Daily / Full Time) ---- */
.questLabel {
 font-family: "Google Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

/* ---- NPC Location list ---- */
.npcLocList {
 font-family: "Google Sans", sans-serif;
  font-size: 12.5px;
  font-weight: 400;
  color: #c8dde8;
  line-height: 2;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .howtoCards {
    grid-template-columns: repeat(2, 1fr);
  }
  .howtoStepNumbers {
    display: none;
  }
}

@media (max-width: 540px) {
  .howtoCards {
    grid-template-columns: 1fr;
  }
}
