/* =====================================================================
   FOOTER
   - Multi-column footer layout
   - Social media icons
   - Responsive design
   ===================================================================== */

.custom-footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-hover) 100%);
  color: var(--light-color);
  padding: var(--space-3xl) 0 var(--space-xl);
  margin-top: auto;
}

/* === Footer Logo === */
.custom-footer .footer-logo {
  max-width: 160px;
  height: auto;
  transition: transform var(--transition-fast);
}

.custom-footer .footer-logo:hover {
  transform: scale(1.02);
}

.custom-footer .footer-desc {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-base);
  color: rgba(255, 255, 255, 0.8);
  margin-top: var(--space-md);
}

/* === Social Media Icons === */
.custom-footer .footer-social {
  margin-top: var(--space-lg);
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

@media (min-width: 992px) {
  .custom-footer .footer-social {
    justify-content: flex-start;
  }
}

.custom-footer .footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--light-color);
  border-radius: 50%;
  font-size: 1.25rem;
  transition: all var(--transition-fast);
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
}

.custom-footer .footer-social-icon:hover,
.custom-footer .footer-social-icon:focus {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--light-color);
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-md);
}

.custom-footer .footer-social-icon i {
  line-height: 1;
  width: auto;
  height: auto;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

/* Ensure Bootstrap Icons font loads properly */
.custom-footer .footer-social-icon i::before {
  font-family: "bootstrap-icons" !important;
  font-style: normal;
  font-weight: normal !important;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  vertical-align: -.125em;
  -webkit-font-smoothing: antialiased;
}

/* Fallback text for social icons if font doesn't load */


/* Hide fallback text when icons load properly */
.custom-footer .footer-social-icon i + *::after {
  display: none;
}

/* === Footer Headings === */
.custom-footer .footer-heading {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--light-color);
  margin-bottom: var(--space-lg);
  position: relative;
  padding-bottom: var(--space-sm);
}

.custom-footer .footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #3498db, #2980b9);
  border-radius: var(--radius-sm);
}

/* === Footer Links === */
.custom-footer .footer-links,
.custom-footer .footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.custom-footer .footer-links li,
.custom-footer .footer-contact li {
  margin-bottom: var(--space-md);
}

.custom-footer .footer-links a,
.custom-footer .footer-contact a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  font-weight: var(--font-weight-normal);
}

.custom-footer .footer-links a:hover,
.custom-footer .footer-links a:focus,
.custom-footer .footer-contact a:hover,
.custom-footer .footer-contact a:focus {
  color: var(--light-color);
  transform: translateX(4px);
  text-decoration: none;
}

/* === Footer Contact Info === */
.custom-footer .footer-contact li {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
}

.custom-footer .footer-contact i {
  color: #3498db;
  font-size: 1.1rem;
  margin-right: var(--space-md);
  width: 20px;
  text-align: center;
}

/* === Footer Divider === */
.custom-footer .footer-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  margin: var(--space-2xl) 0 var(--space-lg);
}

/* === Footer Bottom === */
.custom-footer .footer-bottom {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-size-sm);
  text-align: center;
}

.custom-footer .footer-legal-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.custom-footer .footer-legal-link:hover,
.custom-footer .footer-legal-link:focus {
  color: var(--light-color);
  text-decoration: underline;
}

/* === Footer Responsive Design === */
@media (max-width: 991.98px) {
  .custom-footer .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-col-center {
    text-align: left;
  }
  
  .custom-footer .footer-logo {
    margin: 0 auto;
    display: block;
  }
  
  .custom-footer .footer-social {
    justify-content: flex-start !important;
  }
}

@media (max-width: 767.98px) {
  .custom-footer {
    padding: var(--space-2xl) 0 var(--space-lg);
  }
  
  .custom-footer .footer-heading {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
  }
  
  .custom-footer .footer-logo {
    max-width: 140px;
  }
  
  .custom-footer .footer-desc {
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
  }
  
  .custom-footer .footer-social {
    gap: var(--space-md) !important;
    margin-bottom: var(--space-lg);
  }
  
  .custom-footer .footer-social-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  
  .custom-footer .footer-links li,
  .custom-footer .footer-contact li {
    margin-bottom: var(--space-sm);
    font-size: 1rem;
  }
  
  .custom-footer .footer-divider {
    margin: var(--space-xl) 0 var(--space-md);
  }
  
  .custom-footer .footer-bottom {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  footer .col-lg-3{
        max-width: 50%;
        flex: 0 0 50%;
    }
    footer .footer-heading{
        text-align: left;
    }
    .custom-footer .footer-heading::after {
        left: 10%;
        transform: translateX(-80%);
    }
}
@media(max-width: 580px){
  footer .col-lg-3{
        max-width: 100%;
        flex: 0 0 100%;
    }
    footer .footer-heading{
        text-align: left;
    }
    .custom-footer .footer-heading::after {
        left: 10%;
        transform: translateX(-80%);
    }
}
