:root {
  --primary: #634fa1;
  --accent: #fdc620;
  --light-gray: #ebebeb;
  --white: #ffffff;
}
.nav-btn {
    background-color: #fdc620;
    color: #43413d;
    cursor: pointer !important;
    padding: 10px 25px;
    letter-spacing: .1em;
    user-select: none;
}
.nav-btn:hover {
    background-color: #ffd863;
    color: #43413d;
}

.donate-btn {
    background-color: #fdc620;
    color: #43413d;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    letter-spacing: .1em;
    user-select: none;
    cursor: pointer !important;
    font-size: 12px !important;
}
.donate-btn:hover {
    background-color: #ffd863;
    color: #43413d;
    text-decoration: none;
}

.next-btn {
    background-color: #fdc620;
    color: #43413d;
    cursor: pointer !important;
    padding: 10px 25px;
    letter-spacing: .1em;
    user-select: none;
}
.next-btn:hover {
    background-color: #ffd863;
    color: #43413d;
}

.btn-primary {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--primary);
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}
.btn-primary:hover {
  opacity: 0.9;
}

.features-main-title {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
}

@media (min-width: 320px) and (max-width: 500px) {
  .features-main-resize {
    font-size: 20px !important;
  }
}
@media (min-width: 501px) and (max-width: 769px) {
  .features-main-resize {
    font-size: 24px !important;
  }
}
@media (min-width: 992px) {
  .features-main-resize {
      font-size: 24px !important;
  }
}


/* Features */
.features {
  padding: 3rem 0;
  background: var(--white);
}
.features h3 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}
.feature-card h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Tools */
.tools {
  padding: unset;
}
.tools h3 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 1.5rem;
}
.tool-card {
  background: var(--white);
  padding: 25px;
  height: 200px;
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  text-align: center;
}
.tool-card:hover {
  margin-top: -20px;
  padding-top: 45px;
  height: 240px;
  animation: updown 1s infinite;
}

@keyframes updown {
	25% {background-color: #fff;}
	50% {background-color: #f3f3f3;}
  10% {background-color: #fff;}
 }

.tool-card h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.btn-secondary {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 4px;
  text-decoration: none;
}
.btn-secondary:hover {
  background: var(--accent);
  color: var(--primary);
}
.badge-icon {
  font-size: 0.7em;
  vertical-align: super;
  margin-left: 4px;
  position: relative;
  top: -0.3em;
  opacity: 0.8;
}

/* เพิ่มสีแยกตามหมวด */
.badge-icon.recommend {
  color: #fdc620; /* เหลืองทอง */
}

.badge-icon.hot {
  color: #ff5733; /* แดงส้ม */
}

.badge-icon.top-used {
  color: #634fa1; /* ม่วงเข้ม */
}