/**
 * @file
 * Dynamic footer column styles for responsive layout.
 */

/* Footer columns row styling */
#dept-footer .footer-columns-row {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  min-height: 100px; /* Ensure minimum height */
}

/* Ensure equal width columns using flexbox on desktop */
@media (min-width: 768px) {
  #dept-footer .footer-columns-row > .col {
    flex: 1 1 0;
    max-width: 100%;
  }
}

/* Mobile columns - full width */
@media (max-width: 767px) {
  #dept-footer .footer-columns-row {
    display: block;
  }
  
  #dept-footer .footer-columns-row > .col {
    flex: none;
    max-width: 100%;
    width: 100%;
    display: block;
  }
}

/* Footer column base styles */
#dept-footer .footer-column {
  margin-bottom: 30px;
}

/* Footer email contact styling */
#dept-footer .footer-email-contact {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

#dept-footer .footer-email-link {
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.5;
}

#dept-footer .footer-email-link:hover {
  text-decoration: underline;
  color: #63b3a2;
}

/* Responsive adjustments for mobile */
@media (max-width: 767px) {
  #dept-footer .footer-column {
    margin-bottom: 30px;
    text-align: left;
    padding: 0 15px;
  }
  
  #dept-footer .footer-column:last-child {
    margin-bottom: 0;
  }
  
  /* Center align titles on mobile */
  #dept-footer .footer-column h2,
  #dept-footer .footer-column h3,
  #dept-footer .footer-column h4,
  #dept-footer .footer-column h5 {
    text-align: center;
    margin-bottom: 20px;
  }
  
  /* Footer menu styling on mobile */
  #dept-footer .footer-col-menu ul.navbar-nav {
    align-items: flex-start;
  }
  
  #dept-footer .footer-col-menu ul.navbar-nav li.nav-item {
    width: 100%;
    margin-bottom: 4px; /* Reduced from 10px */
  }
  
  #dept-footer .footer-col-menu ul.navbar-nav li.nav-item:last-child {
    margin-bottom: 0;
  }
  
  #dept-footer .footer-col-menu ul.navbar-nav li.nav-item a {
    display: block;
    padding: 4px 0; /* Reduced from 8px */
    line-height: 1.4; /* Tighter line height */
  }
  
  /* Email contact on mobile */
  #dept-footer .footer-email-contact {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
  }
  
  #dept-footer .footer-email-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-top: 10px;
  }
}

/* Column width adjustments for better balance */
@media (min-width: 768px) {
  #dept-footer .footer-columns-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  /* Equal spacing between columns */
  #dept-footer .footer-column {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  #dept-footer .footer-column:first-child {
    padding-left: 0;
  }
  
  #dept-footer .footer-column:last-child {
    padding-right: 0;
  }
}

/* Footer titles consistent styling */
#dept-footer .footer-column h2,
#dept-footer .footer-column h3,
#dept-footer .footer-column h4,
#dept-footer .footer-column h5 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

/* List items in footer columns */
#dept-footer .footer-column ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

#dept-footer .footer-column ul li {
  margin-bottom: 8px;
}

#dept-footer .footer-column ul li:last-child {
  margin-bottom: 0;
}

/* Tighter spacing for footer links on mobile */
@media (max-width: 767px) {
  #dept-footer .footer-column ul li {
    margin-bottom: 4px;
  }
  
  #dept-footer .footer-column ul li a {
    line-height: 1.4;
  }
}

/* Social media section responsive */
@media (max-width: 767px) {
  #dept-footer .social-media {
    padding: 20px 0;
  }
  
  #dept-footer .social-media h5 {
    text-align: center;
    margin-bottom: 20px;
  }
  
  #dept-footer .social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
  }
  
  /* Footer logos on mobile */
  #dept-footer .footer-logo {
    text-align: center;
    margin-bottom: 20px;
  }
  
  #dept-footer .footer-logo img {
    max-width: 120px;
    height: auto;
  }
}