/**
 * Global footer upgrade — visual + interaction polish only.
 * Does not change footer copy; icons/links are presentation helpers.
 */

/* ---------- Shell ---------- */
.main-footer.style-two.style-three,
.main-footer {
  background: linear-gradient(145deg, #0d7a6e 0%, #1a9e8f 42%, #25b7a7 100%) !important;
}

.main-footer .footer-top {
  border-bottom: 0 !important;
  padding-top: 52px !important;
  padding-bottom: 28px !important;
}

.main-footer .footer-top .widget-section .row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-left: -12px;
  margin-right: -12px;
}

.main-footer .footer-top .widget-section .row > [class*="col-"] {
  padding-left: 12px;
  padding-right: 12px;
  margin-bottom: 22px !important;
}

.main-footer .footer-top .widget-title {
  margin-bottom: 14px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.main-footer .footer-top .widget-title:before,
.main-footer .footer-top .widget-title:after {
  display: none !important;
}

.main-footer .footer-top .widget-title span {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.main-footer .footer-top .widget-title span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

/* Brand column */
.main-footer .about-widget .footer-logo {
  margin: 0 0 14px !important;
}

.main-footer .about-widget .footer-logo a {
  display: inline-block;
  line-height: 0;
}

.main-footer .about-widget .footer-logo img {
  max-height: 52px !important;
  width: auto !important;
  max-width: 220px !important;
}

.main-footer .about-widget .text {
  max-width: 28ch;
  margin-bottom: 16px !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: rgba(255, 255, 255, 0.82) !important;
}

/* Social */
.main-footer .about-widget .social-links {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.main-footer .about-widget .social-links li {
  margin: 0 !important;
  float: none !important;
}

.main-footer .about-widget .social-links li a {
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.main-footer .about-widget .social-links li a:hover {
  background: rgba(255, 255, 255, 0.24) !important;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* ---------- Link lists + icons ---------- */
.main-footer .links-widget .list {
  margin: 0 !important;
  padding: 0 !important;
}

.main-footer .links-widget .list li {
  margin: 0 0 8px !important;
  padding: 0 !important;
  list-style: none !important;
  float: none !important;
}

/* Kill theme chevron pseudo */
.main-footer .links-widget .list li a:before,
.main-footer.style-two .links-widget .list li a:before,
.main-footer.style-three .links-widget .list li a:before {
  content: none !important;
  display: none !important;
}

.main-footer .links-widget .list li a {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  padding: 2px 0 !important;
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 28px 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: color 0.2s ease, background-size 0.25s ease, transform 0.2s ease;
}

.main-footer .links-widget .list li a::before {
  content: "" !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands", "FontAwesome" !important;
  font-weight: 900 !important;
  font-size: 12px !important;
  line-height: 1 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  opacity: 0.92;
}

.main-footer .links-widget .list li a:hover {
  color: #ffffff !important;
  background-size: calc(100% - 28px) 1px;
  transform: translateX(2px);
}

/* More */
.main-footer .links-widget .list li a[href*="/pricing"]::before { content: "\f02b" !important; }
.main-footer .links-widget .list li a[href*="about-us"]::before { content: "\f0c0" !important; }
.main-footer .links-widget .list li a[href*="/contact"]::before { content: "\f0e0" !important; }
.main-footer .links-widget .list li a[href*="/blog"]::before { content: "\f15c" !important; }
.main-footer .links-widget .list li a[href*="policy"]::before { content: "\f3ed" !important; }

/* Essential Resources */
.main-footer .links-widget .list li a[href*="guide.caclouddesk"]::before,
.main-footer .links-widget .list li a[href*="utility.caclouddesk"]::before { content: "\f0ad" !important; }
.main-footer .links-widget .list li a[href*="problems-faced"]::before,
.main-footer .links-widget .list li a[href*="use-case"]::before { content: "\f542" !important; }
.main-footer .links-widget .list li a[href*="ca-cloud-desk-features"]::before,
.main-footer .links-widget .list li a[href*="/features"]::before { content: "\f0e7" !important; }
.main-footer .links-widget .list li a[href*="our-modules"]::before,
.main-footer .links-widget .list li a[href$="/features/"]::before { content: "\f00a" !important; }
.main-footer .links-widget .list li a[href*="partner-timeerp-benefits"]::before,
.main-footer .links-widget .list li a[href*="Benefits" i]::before { content: "\f06b" !important; }

/* Features vs Modules disambiguation: Features page slug ca-cloud-desk-features; Modules often /features/ */
.main-footer .links-widget .list li a[href*="ca-cloud-desk-features"]::before { content: "\f0e7" !important; }
.main-footer .links-widget .list li a[href*="/features/"]::before { content: "\f00a" !important; }

/* Contact column */
.main-footer .contact-widget .list li {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px !important;
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.main-footer .contact-widget .list li i {
  margin-top: 3px;
  color: #ffffff !important;
  opacity: 0.95;
}

.main-footer .contact-widget .list li a {
  color: rgba(255, 255, 255, 0.92) !important;
  text-decoration: none !important;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: color 0.2s ease, background-size 0.25s ease;
}

.main-footer .contact-widget .list li a:hover {
  color: #ffffff !important;
  background-size: 100% 1px;
}

/* ---------- Copyright: no boxed bar — thin divider only ---------- */
.main-footer .footer-bottom,
.main-footer.style-two .footer-bottom,
.main-footer.style-three .footer-bottom {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: none !important;
  margin-top: 4px !important;
  padding: 16px 0 20px !important;
  text-align: center !important;
}

.main-footer .footer-bottom .copyright,
.main-footer .footer-bottom .copyright a {
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em;
}

.main-footer .footer-bottom .copyright a {
  text-decoration: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.main-footer .footer-bottom .copyright a:hover {
  color: #ffffff !important;
  border-bottom-color: #ffffff;
}

/* ---------- Back to top ---------- */
.scroll-top.scroll-to-target {
  right: 22px !important;
  bottom: 22px !important;
  z-index: 999 !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  border: 0 !important;
  background: #083530 !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(8, 53, 48, 0.28) !important;
}

.scroll-top.scroll-to-target:hover {
  background: #0d7a6e !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .main-footer .footer-top {
    padding-top: 40px !important;
    padding-bottom: 18px !important;
  }

  .main-footer .footer-top .widget-section .row > [class*="col-"] {
    width: 50%;
    max-width: 50%;
    flex: 0 0 50%;
  }

  .main-footer .about-widget .text {
    max-width: none;
  }
}

@media (max-width: 767px) {
  .main-footer .footer-top .widget-section .row > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  .main-footer .footer-top {
    padding-top: 36px !important;
  }

  .scroll-top.scroll-to-target {
    right: 14px !important;
    bottom: 14px !important;
    width: 40px !important;
    height: 40px !important;
  }
}
