:root {
  --gold: #9A7B4F;
  --olive: #6B6E3D;
  --black: #0b0b0b;
  --cream: #fffdf8;
}

/* โครงสร้าง footer เดิม */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--black) 0%, #1a1a1a 90%);
  color: var(--cream);
  overflow: hidden;
  animation: fadeUp 1.2s ease;
}

.footer-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(154, 123, 79, 0.12), transparent 70%),
    linear-gradient(90deg, rgba(107, 110, 61, 0.08), rgba(154, 123, 79, 0.05));
  pointer-events: none;
  z-index: 1;
}

/* โลโก้ */
.sponsors-mini a img {
  height: 50px;
  width: auto;
  filter: grayscale(100%) brightness(85%);
  opacity: .8;
  transition: all .3s ease;
}

.sponsors-mini a:hover img {
  filter: grayscale(0%) brightness(100%);
  opacity: 1;
  transform: scale(1.05);
}

/* เมนู footer */
.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-weight: 400;
  font-size: .95rem;
  transition: all .25s ease;
  margin: 0.25rem 0;
}

.footer-links a:hover {
  color: var(--gold);
}

/* โครงสร้าง item */
.footer-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-bottom: .4rem;
}

/* เส้นทองทุกหัวข้อ */
.footer-underline {
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(255, 215, 160, 0.8), var(--gold));
  border-radius: 2px;
  opacity: 0.9;
  background-size: 200% 100%;
  background-position: 0 0;
  transition: width 0.6s ease;
}

.footer-item:hover .footer-underline,
.footer-item.active .footer-underline {
  width: 100%;
  animation: shimmer 1.8s linear infinite;
}

/* shimmer */
@keyframes shimmer {
  from {
    background-position: 0% 0;
  }

  to {
    background-position: 200% 0;
  }
}

/* Dropdown */
.footer-dropdown .dropdown-toggle::after {
  content: '▾';
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.6);
  transition: transform .25s ease, color .25s ease;
}

.footer-dropdown .active::after {
  transform: rotate(180deg);
  color: var(--gold);
}

/* Dropdown Menu */
.footer-dropdown-menu {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  margin-top: .3rem;
  padding-right: .5rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.35s ease;
}

.footer-dropdown-menu.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.footer-dropdown-menu .dropdown-item {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: .9rem;
  padding: .2rem 0;
  transition: color .25s ease;
}

.footer-dropdown-menu .dropdown-item:hover {
  color: var(--gold);
}

/* เส้นคั่นล่างสุด */
.footer-line {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, rgba(154, 123, 79, .15), rgba(107, 110, 61, .25), rgba(154, 123, 79, .15));
  opacity: 0.6;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 992px) {
  .sponsors-mini a img {
    height: 28px;
  }

  .footer-links {
    align-items: center !important;
  }

  .footer-item {
    align-items: center;
  }

  .footer-dropdown-menu {
    align-items: center;
  }
}