/* ===== PREMIUM FOOTER V2 - DARK & GOLD THEME ===== */
:root {
  --gold: #9A7B4F;
  --gold-light: #C9A456;
  --olive: #6B6E3D;
  --black: #0b0b0b;
  --cream: #fffdf8;
  --white: #FFFFFF;
}

/* Main Footer - Dark Theme */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--black) 0%, #1a1a1a 90%) !important;
  color: var(--cream);
  overflow: hidden;
  padding-top: 60px;
}

/* Decorative Overlay */
.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;
}

/* Pattern Background */
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239A7B4F' fill-opacity='0.03'%3E%3Cpath d='m36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
  z-index: 0;
}

/* Sponsor Logos */
.sponsors-mini {
  margin-bottom: 24px;
}

.sponsors-mini .gbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: all 0.4s ease;
}

.sponsors-mini .gbox:hover {
  background: rgba(154, 123, 79, 0.12);
  border-color: rgba(154, 123, 79, 0.3);
  transform: translateY(-4px);
}

.sponsors-mini a img {
  height: 50px;
  width: auto;
  filter: grayscale(100%) brightness(85%);
  opacity: 0.8;
  transition: all 0.4s ease;
}

.sponsors-mini a:hover img {
  filter: grayscale(0%) brightness(100%);
  opacity: 1;
  transform: scale(1.05);
}

/* Footer Title & Subtitle */
.site-footer .text-white-50 {
  color: rgba(255, 255, 255, 0.6) !important;
}

.site-footer .text-white-50>div:first-child {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 4px;
}

/* Footer Navigation Links */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.footer-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-bottom: 4px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.6) !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.footer-link:hover {
  color: var(--gold) !important;
  transform: translateX(-4px);
}

/* Golden Underline Effect */
.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;
}

@keyframes shimmer {
  from {
    background-position: 0% 0;
  }

  to {
    background-position: 200% 0;
  }
}

/* Dropdown in Footer */
.footer-dropdown .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-dropdown .dropdown-toggle::after {
  content: '▾';
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.footer-dropdown .active::after {
  transform: rotate(180deg);
  color: var(--gold);
}

.footer-dropdown-menu {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 8px;
  padding-right: 8px;
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.4s ease;
  border-left: 2px solid rgba(154, 123, 79, 0.3);
}

.footer-dropdown-menu.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.footer-dropdown-menu .dropdown-item {
  color: rgba(255, 255, 255, 0.55) !important;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 6px 12px;
  transition: all 0.3s ease;
  background: transparent !important;
}

.footer-dropdown-menu .dropdown-item:hover {
  color: var(--gold) !important;
  transform: translateX(-4px);
  background: transparent !important;
}

/* Copyright Text */
.site-footer .text-muted {
  color: rgba(255, 255, 255, 0.4) !important;
  font-size: 0.85rem;
}

/* Bottom Line - Gold Gradient */
.footer-line {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg,
      rgba(154, 123, 79, 0.15),
      rgba(107, 110, 61, 0.25),
      rgba(154, 123, 79, 0.15));
  opacity: 0.6;
  margin-top: 40px;
}

/* Animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-footer .container {
  animation: fadeUp 0.8s ease-out;
}

/* Responsive */
@media (max-width: 992px) {
  .site-footer {
    text-align: center;
    padding-top: 40px;
  }

  .sponsors-mini .gbox {
    padding: 8px;
  }

  .sponsors-mini a img {
    height: 28px;
  }

  .footer-heading {
    text-align: center;
    margin-top: 24px;
  }

  .footer-links {
    align-items: center !important;
    margin-top: 24px;
  }

  .footer-item {
    align-items: center;
  }

  .footer-link:hover {
    transform: translateY(-2px) translateX(0);
  }

  .footer-dropdown-menu {
    align-items: center;
    border-left: none;
    border-top: 2px solid rgba(154, 123, 79, 0.3);
    padding-right: 0;
    padding-top: 8px;
  }

  .footer-dropdown-menu .dropdown-item:hover {
    transform: translateY(-2px) translateX(0);
  }
}

/* Decorative Glow */
.site-footer::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(154, 123, 79, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-30px) rotate(180deg);
  }
}

/* Scroll To Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gold-light);
  /* Or gradient if preferred */
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--white) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: linear-gradient(135deg, var(--gold) 0%, #8B6B3D 100%);
  color: var(--white) !important;
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(201, 164, 86, 0.6);
}