/* ==========================================================================
   Footer Styles - WhizWiser Theme
   ========================================================================== */

/* ====================================== Base Footer Styles ==========================*/
.footer {
  position: relative;
  padding-bottom: 30px;
  padding-left: 30px;
  padding-right: 30px;
  background-color: #000000;
}

.footer-main {
  padding-top: 15px;
  padding-bottom: 40px;
}

/* ====================================== Top Footer (Newsletter CTA) ==========================*/
.top-footer {
  position: relative;
  margin-bottom: -138px;
  z-index: 3;
}

.top-footer .container {
  position: relative;
  background: linear-gradient(135deg, #141414 0%, #0d0d0d 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 56px 52px;
  overflow: hidden;
}

/* Subtle ambient glow behind the newsletter box */
/* .top-footer .container::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -10%;
  width: 50%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
  pointer-events: none;
} */

.top-footer .sec-title {
  font-weight: 400;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.top-foot-right {
  max-width: 540px;
  margin-left: auto;
  position: relative;
}

/* ====================================== Newsletter Form ==========================*/
.newsletter-form {
  position: relative;
  margin-bottom: 24px;
}

.newsletter-form .emailInput {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  color: #ffffff;
  padding: 6px 195px 6px 28px;
  min-height: 52px;
  outline: none;
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.newsletter-form .emailInput::placeholder {
  color: #555555;
}

.newsletter-form .emailInput:focus {
  border-color: rgba(255, 255, 255, 0.18);
  background-color: rgba(255, 255, 255, 0.06);
}

.newsletter-form .primary-btn {
  position: absolute;
  width: auto;
  height: auto;
  top: 7px;
  inset-inline-end: 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-secondary);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  background-color: #ffffff;
  color: #0a0a0a;
  border: none;
  border-radius: 50px;
  padding: 13px 22px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.15s ease, box-shadow 0.3s ease;
}

.newsletter-form .primary-btn:hover {
  background-color: #e8e8e8;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.08);
}

.newsletter-form .primary-btn:active {
  transform: scale(0.97);
}

.newsletter-form .primary-btn .btn-icon {
  width: 42px;
  height: 42px;
  display: none;
}

/* ====================================== Social Links (in top-footer) ==========================*/
.social-links.cta-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.social-links.cta-social .title {
  color: #555555;
  font-size: 13px;
  font-family: var(--font-secondary);
  letter-spacing: 0.02em;
}

.social-links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.social-links.cta-social ul li a {
  background-color: rgba(255, 255, 255, 0.04);
  color: #888888;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.social-links ul li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #1a1a1a;
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  overflow: hidden;
  position: relative;
  z-index: 2;
  transition: all 0.25s ease;
  text-decoration: none;
}

.social-links.cta-social ul li a:hover {
  background-color: #ffffff;
  color: #0a0a0a;
  border-color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.social-links.cta-social ul li a::before {
  display: none;
}

/* ====================================== Bottom Footer ==========================*/
.btm-footer .container-lg {
  position: relative;
  padding-top: 138px;
  border-radius: 20px;
  background-color: #080808;
  overflow: hidden;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.04);
  max-width: 100%;
}

/* .btm-footer .container-lg::before {
  left: auto;
  top: -100px;
  right: -100px;
}

.btm-footer .container-lg::after,
.btm-footer .container-lg::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  -webkit-filter: blur(80px);
  filter: blur(80px);
  opacity: 0.8;
  pointer-events: none;
} */

.btm-footer .container-lg::after {
  bottom: -80px;
  left: -80px;
}

.footer-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  mix-blend-mode: luminosity;
  opacity: 0.15;
  z-index: -1;
}

.btm-footer .container {
  display: flex;
  align-items: start;
  justify-content: space-between;
}

/* ====================================== Footer Brand Column ==========================*/
.footer-brand {
  max-width: 280px;
}

.footer-logo {
  max-width: 170px;
  margin-bottom: 20px;
  display: block;
}

.footer-brand p {
  margin-bottom: 20px;
  max-width: 280px;
  color: #555555;
  font-size: 13px;
  line-height: 1.7;
}

.footer-contact {
  max-width: 230px;
}

.app-links a {
  display: block;
  max-width: 148px;
  margin-bottom: 15px;
}

.app-links a:hover {
  transform: translateY(-5px);
}

.app-links a:last-child {
  margin-bottom: 0;
}

/* ====================================== Footer Columns ==========================*/
.footer-title {
  color: rgba(255, 255, 255);
  font-size: 24px;
  font-weight: 600;
  font-family: var(--font-secondary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.4;
  display: block;
  margin-bottom: 22px;
}

.footer-col ul li:first-child {
  padding-top: 0;
}

.footer-col ul li {
  padding: 5px 0;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.5;
  font-size: 18px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col ul li a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-col ul li a .badge {
  font-size: 10px;
  text-transform: uppercase;
  color: #111111;
  background-color: #ffffff;
  border-radius: 50px;
  padding: 3px 6px 4px;
}

/* ====================================== Footer Contact Column ==========================*/
.footer-col.contact {
  max-width: 230px;
}

.footer-col {
  margin-top: 80px;
}

.footer-col.contact p {
  color: #555555;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 14px;
}

.footer-col.contact p a {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  display: inline-flex;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col.contact p a:hover {
  color: #ffffff;
}

.footer-col.contact p i {
  color: #ffffff;
}

/* ====================================== Panda Image Column ==========================*/
.footer-col.img {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  margin-top: 0;
}

.footer-col.img img {
  max-width: 500px;
  width: 100%;
}

/* ====================================== Footer Bottom ==========================*/
.footer .foot-end .container-lg,
.footer .foot-end .container {
  padding: 0;
  background-color: transparent;
  overflow: visible;
  border: none;
}

.footer .foot-end .container-lg {
  width: calc(100% + 30px);
  margin-left: -15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 0;
}

.copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.25);
  font-size: 13px;
  font-family: var(--font-secondary);
}

.copyright a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.copyright a:hover {
  color: #ffffff;
}

.footer .foot-end .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.footer .foot-end .container p,
.footer-legal li a {
  color: rgba(255, 255, 255, 0.25);
  font-size: 13px;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
}

.footer-legal li {
  position: relative;
  margin-right: 10px;
  padding-right: 14px;
  z-index: 1;
}

.footer-legal li::before {
  content: "";
  background-color: rgba(255, 255, 255, 0.1);
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.footer-legal li:last-child {
  margin: 0;
  padding: 0;
}

.footer-legal li:last-child:before {
  display: none;
}

.footer-legal li a {
  text-decoration: none;
  font-family: var(--font-secondary);
  transition: color 0.2s ease;
}

.footer-legal li a:hover {
  color: #ffffff;
}

/* fx-center helper */
.fx-center {
  display: flex;
  align-items: center;
}


/* ====================================== Responsive / Media Queries for Footer ==========================*/

@media (max-width: 1730px) {
  .footer {
    padding-bottom: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 1399px) {
  .footer .foot-end .container-lg {
    padding-left: 15px;
    padding-right: 15px;
  }

  .top-footer .sec-title {
    font-size: 62px;
  }
}

@media (max-width: 1199px) {
  .top-footer .container {
    padding: 40px 30px;
  }

  .top-footer .sec-title {
    font-size: 56px;
  }
}

@media (max-width: 991px) and (min-width: 768px) {
  .btm-footer .container .footer-col {
    max-width: 48%;
    width: 100%;
  }

  .btm-footer .container {
    flex-wrap: wrap;
    gap: 40px 20px;
  }
}

@media (max-width: 991px) {
  .footer-title {
    font-size: 20px;
    margin-bottom: 18px;
  }

  .top-footer .container {
    padding: 30px 20px;
  }

  .top-foot-right {
    max-width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  .btm-footer .container {
    flex-wrap: wrap;
    gap: 20px;
  }
  .footer-title{
    font-size: 16px;
    margin-bottom: 12px;
  }

  .btm-footer .container .footer-col {
    max-width: 100%;
  }

  .top-footer .sec-title {
    font-size: 44px;
  }

  .newsletter-form .emailInput {
    padding-right: 150px;
  }

  .footer .foot-end .container {
    gap: 10px;
    flex-direction: column-reverse;
  }

  .footer-col.img {
    justify-content: center;
  }
  .footer-col ul li a{
    font-size: 16px;
  }
  .footer{
    padding-top: 60px;
  }
}

@media (max-width: 575px) {
  .newsletter-form .primary-btn .btn-text {
    display: none;
  }

  .newsletter-form .primary-btn .btn-icon {
    display: inline-flex !important;
    width: auto;
    height: auto;
    align-items: center;
    justify-content: center;
  }

  .newsletter-form .primary-btn {
    padding: 10px 16px;
  }

  .newsletter-form .emailInput {
    padding-right: 60px;
  }

  .top-footer .sec-title {
    font-size: 36px;
  }
}

@media (max-width: 479px) {
  .footer-legal li {
    font-size: 13px;
  }
}