/* ==========================================================================
   1. ISOLATION LAYER: Blocks external style inheritance
   ========================================================================== */
.footer-modern {
  /* Resets all inherited properties to browser defaults */
  all: revert; 
  
  /* Re-establishes the box model */
  box-sizing: border-box;
  display: block;
  
  /* Your original styles below */
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 60px 0 20px 0;
  font-family: 'Segoe UI','Times New Roman', Times, serif, Tahoma, Geneva, Verdana, sans-serif;
}

/* ==========================================================================
   2. SPECIFICITY BOOST: Ensure internal elements stay consistent
   ========================================================================== */
/* By prefixing with .footer-modern, we beat most global styles */
.footer-modern *, 
.footer-modern *::before, 
.footer-modern *::after {
  box-sizing: border-box;
}

/* --- Rest of your original code starts here --- */

/* 3-Column Grid (UPDATED FOR EQUAL WIDTH) */
.footer-modern .footer-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Forces all 3 classes to be perfectly equal */
  gap: 40px;
  margin-bottom: 40px;
}

/* Brand Section */
.footer-modern .footer-logo {
  color: #4CAF50;
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: bold;
}

.footer-modern .mission-text {
  color: #b0b0b0;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Contact & Address Sections */
.footer-modern .footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 25px;
  position: relative;
}

.footer-modern .footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 2px;
  background-color: #4CAF50;
}

.footer-modern .contact-list {
  list-style: none;
  padding: 0;
}

.footer-modern .contact-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-modern .contact-list a {
  color: #b0b0b0;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-modern .contact-list a:hover {
  color: #ffffff;
}

/* Social Icons */
.footer-modern .social-links-row {
  display: flex;
  gap: 15px;
}

.footer-modern .social-icon {
  font-size: 1.2rem;
  color: #ffffff;
  background: rgba(255,255,255,0.1);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.3s;
}

.footer-modern .social-icon:hover {
  background: #4CAF50;
  transform: translateY(-3px);
}

/* Bottom Bar */
.footer-modern .footer-legal {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #777;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .footer-modern .footer-grid-3 {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-modern .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-modern .contact-list li {
    justify-content: center;
  }
  
  .footer-modern .social-links-row {
    justify-content: center;
  }
}

/* Bootstrap Icons specific protection */
.footer-modern i[class^="bi-"] {
  display: inline-block;
  color: #4CAF50;
  font-size: 1.2rem;
  vertical-align: middle;
  margin-right: 10px;
  opacity: 1;
}

.footer-modern .footer-link:hover i {
  color: #ffffff;
  transform: scale(1.1);
  transition: 0.3s;
}

.footer-modern .footer-motto {
  width: 100%;
  text-align: center;
  margin: 20px 0;
}

.footer-modern .motto-text {
  font-family: "Times New Roman", Times, serif; 
  font-weight: bold;
  font-style: italic;
  font-size: 1.2rem;
  color: green; 
  -webkit-font-smoothing: antialiased;
}

/* Style the strong text wrapper */
.footer-col.section-address strong {
  font-weight: 600;
  color:#e0e0e0;          /* Slightly muted off-white for text readability */
}


