/* ===== Footer ===== */
footer {
  background: #1c1f23;
  color: #e9ecef;
  padding: 3rem 1rem 2rem;
  font-size: 0.95rem;
  text-align: center;
}
footer h5 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: #fff;
  letter-spacing: 0.5px;
}
.social-icon {
  width: 42px;
  height: 42px;
  line-height: 42px;
  border-radius: 50%;
  background: #343a40;
  color: #fff;
  display: inline-block;
  margin: 0 6px;
  font-size: 18px;
  transition: background 0.3s, transform 0.3s;
}
.social-icon:hover {
  transform: scale(1.15);
}
.ig {
  background: linear-gradient(
    45deg,
    #ffdc7d 0%,
    #f46f30 27%,
    #c32aa3 58%,
    #5c58c9 98%
  );
}
.tt {
  background: linear-gradient(45deg, #010101 0%);
}
footer .accordion,
footer .accordion-item {
  background: none;
  border: none;
}
footer .accordion-item {
  margin-bottom: 0.5rem;
}
footer .accordion-button {
  background: #23272b;
  color: #e9ecef;
  border-radius: 0.5rem;
  box-shadow: none;
  font-size: 1.05rem;
  font-weight: 500;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  padding: 0.75rem 1rem;
}
footer .accordion-button:not(.collapsed) {
  background: #343a40;
  color: #ffd700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
footer .accordion-button:focus {
  box-shadow: 0 0 0 0.15rem #ffd70055;
}
footer .accordion-body {
  background: #23272b;
  color: #ced4da;
  border-radius: 0 0 0.5rem 0.5rem;
  padding: 1rem;
  font-size: 0.97rem;
  transition: background 0.3s, color 0.3s;
}
footer .accordion-button::after {
  filter: invert(1) brightness(0.8);
}

/* เพิ่มความเข้มของสีขาว */
footer,
footer h5,
.sidebar-nav .nav-link,
.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  color: #fff !important;
}
.sidebar-subnav a {
  color: #f8f9fa;
}
.sidebar-nav .nav-link {
  color: #fff;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  background: #e52020;
  color: #fff;
}

.sidebar-subnav a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  color: #c9d1d9;
  padding: 5px 15px;
  text-decoration: none;
  transition: color 0.3s;
}
.sidebar-subnav a:hover {
  color: #ffffff;
}
footer .copyright {
  font-size: 0.85rem;
  color: #adb5bd;
  margin-top: 0.5rem;
  letter-spacing: 0.3px;
}
@media (max-width: 1024px) {
  footer {
    padding: 2rem 0.5rem 1.5rem;
    font-size: 0.9rem;
  }
  footer h5 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  .social-icon {
    width: 36px;
    height: 36px;
    line-height: 36px;
    font-size: 16px;
    margin: 0 4px;
  }
  footer .accordion-button,
  footer .accordion-body {
    font-size: 0.92rem;
    padding: 0.6rem 0.7rem;
  }
}

@media (max-width: 480px) {
  footer {
    padding: 1.2rem 0.2rem 1rem;
    font-size: 0.85rem;
  }
  .social-icon {
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-size: 14px;
    margin: 0 2px;
  }
  footer h5 {
    font-size: 1rem;
    margin-bottom: 0.7rem;
  }
  footer .accordion-button,
  footer .accordion-body {
    font-size: 0.88rem;
    padding: 0.5rem 0.5rem;
  }
}
