/* ===== Footer ===== */
.footer-contact {
  background: linear-gradient(135deg, #002a76, #004299);
  padding: 30px 0;
  text-align: center;
}

.footer-contact h4 {
  color: white;
  font-weight: 700;
  margin-right: 20px;
  display: inline-block;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: white;
  border: 2px solid white;
  border-radius: 50px;
  padding: 8px 25px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.footer-container {
  background: #001a4d;
  padding: 60px 0 30px;
  color: white;
}

.footer-logo {
  max-width: 200px;
  margin-bottom: 20px;
}

footer .container a img {
  width: 250px;
  height: 60px;
}

.footer-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 25px;
  color: rgba(255, 255, 255, 0.8);
}

.social-icons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--accent-blue);
  transform: translateY(-3px);
}

.footer-heading {
  font-size: 1.3rem;
  margin-bottom: 25px;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0px;
  padding-top: 0;
  padding-bottom: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
  text-decoration: underline;
}

.contact-info a {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin-bottom: 15px;
  transition: color 0.3s ease;
  justify-content: center;
}

.contact-info a:hover {
  color: white;
}

.contact-info i {
  width: 24px;
  margin-right: 12px;
  font-size: 1.1rem;
}

.copyright {
  text-align: center;
  padding-top: 5px;
  margin-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

#footer__content--container {
  max-width: 100%;
  padding-top: 45px;
  padding-bottom: 15px;
}

.footer-column3-mailto-span {
  padding-left: 5px;
}

/* ===== Mobile Responsive Styles - Two Columns with Logo Below ===== */
@media (max-width: 768px) {
  .footer-contact {
    padding: 20px 15px;
  }
  
  .footer-contact .d-flex {
    flex-direction: column;
    gap: 15px;
  }
  
  .footer-contact h4 {
    font-size: 1.1rem;
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  .contact-button {
    padding: 6px 20px;
    font-size: 0.9rem;
  }
  
  .footer-container {
    padding: 40px 0 20px;
  }
  
  #footer__content--container {
    padding-top: 30px;
    padding-bottom: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
 /* Replace the flex behaviour with a 2-column grid on small screens */
@media (max-width: 768px) {
  .footer-container .row {
    display: grid;
    grid-template-columns: 1fr 1fr; /* two equal columns */
    grid-auto-rows: auto;          /* rows size to content */
    gap: 0.75rem 1rem;             /* vertical / horizontal gap */
    align-items: start;
  }

  /* IMPORTANT: these target the exact order of your HTML:
     - first-child = Column 1 (Logo & social)
     - nth-child(2) = Column 2 (Important Links)
     - nth-child(3) = Column 3 (Contact Info)
     If your markup order changes, update selectors accordingly. */

  /* Make Important Links occupy the full left column and span both rows */
  .footer-container .row > div:nth-child(2) {
    grid-column: 1 / 2;
    grid-row: 1 / span 2;   /* span two rows (so it becomes taller, while right column stacks) */
    align-self: start;
    padding-left: 8px;      /* optional tuning */
    padding-right: 8px;
    line-height: 33px;
  }

  /* Put "Get In Touch" at top of the right column */
  .footer-container .row > div:nth-child(3) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    align-self: start;
    margin-bottom: 0;       /* remove extra space */
    margin-top: 0 !important;
    padding-left: 8px;
    padding-right: 8px;
  }

  /* Put Logo & Social under "Get In Touch" in the right column */
  .footer-container .row > div:first-child {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    align-self: start;
    margin-top: 0;          /* remove extra space */
    padding-left: 8px;
    padding-right: 8px;
  }

  /* Optional: reduce any extra vertical margins inside these columns */
  .footer-container .row > div > .logo-section,
  .footer-container .row > div > .contact-info,
  .footer-container .row > div > .footer-links {
    margin-top: 0;
    margin-bottom: 0;
  }
}
  .footer-logo {
    max-width: 120px;
    margin-bottom: 15px;
  }
  
  footer .container a img {
    width: 150px;
    height: 38px;
  }
  
  .footer-desc {
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
  }
  
  .footer-heading {
    font-size: 1rem;
    margin-bottom: 15px;
  }
  
  .footer-links li {
    padding-bottom: 8px;
  }
  
  .footer-links a {
    font-size: 0.85rem;
  }
  
  .contact-info a {
    margin-bottom: 10px;
    font-size: 0.85rem;
  }
  
  .contact-info i {
    width: 18px;
    margin-right: 8px;
    font-size: 0.95rem;
  }
  
  .social-icons {
    gap: 10px;
    margin-top: 15px;
  }
  
  .social-icon {
    width: 32px;
    height: 32px;
  }
  
  .copyright {
    font-size: 0.8rem;
    margin-top: 20px;
    padding-top: 15px;
  }
  .logo-section{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

