/* Footer Mobile Responsive Styles */
/* Target: Mobile devices only (max-width: 480px) */

@media screen and (max-width: 480px) {
  /* Footer container ultra compact */
  footer {
    padding: 16px 0 8px 0 !important;
    margin-top: 16px !important;
  }
  
  footer .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  
  /* Main footer content */
  footer .row {
    margin: 0 -4px;
  }
  
  footer .col-md-4,
  footer .col-md-2,
  footer .col-md-6 {
    padding: 0 4px;
    margin-bottom: 8px;
  }
  
  /* Company info section */
  footer h5 {
    font-size: 14px;
    margin-bottom: 6px;
  }
  
  footer h5 i {
    font-size: 12px;
    margin-right: 4px;
  }
  
  footer p {
    font-size: 10px;
    line-height: 1.3;
    margin-bottom: 4px;
  }
  
  /* Social links */
  .social-links {
    margin-top: 6px;
  }
  
  .social-links a {
    font-size: 14px;
    margin-right: 8px;
  }
  
  .social-links a:last-child {
    margin-right: 0;
  }
  
  /* Section headers */
  footer h6 {
    font-size: 12px;
    margin-bottom: 6px;
  }
  
  /* Navigation lists */
  footer ul {
    margin-bottom: 0;
    padding-left: 0;
  }
  
  footer ul li {
    margin-bottom: 2px;
  }
  
  footer ul li a {
    font-size: 10px;
    line-height: 1.2;
    padding: 1px 0;
    display: inline-block;
  }
  
  /* Contact info icons */
  footer i {
    font-size: 10px;
    margin-right: 4px;
    width: 12px;
    text-align: center;
  }
  
  /* Horizontal divider */
  footer hr {
    margin: 8px 0;
    opacity: 0.3;
  }
  
  /* Bottom section */
  footer .row:last-child p {
    font-size: 9px;
    margin-bottom: 0;
  }
  
  footer .row:last-child a {
    font-size: 9px;
    margin-right: 8px;
  }
  
  /* Remove responsive text alignment */
  .text-md-end {
    text-align: left !important;
  }
  
  /* Override Bootstrap spacing */
  footer .mb-4 {
    margin-bottom: 8px !important;
  }
  
  footer .mb-3 {
    margin-bottom: 6px !important;
  }
  
  footer .my-4 {
    margin: 8px 0 !important;
  }
  
  /* Prevent horizontal scroll */
  footer {
    overflow-x: hidden;
  }
  
  /* Compact layout for small screens */
  footer .row:first-child {
    display: flex;
    flex-wrap: wrap;
  }
  
  footer .row:first-child .col-md-4:first-child {
    width: 100%;
    order: 1;
    margin-bottom: 8px;
  }
  
  footer .row:first-child .col-md-2 {
    width: 50%;
    order: 2;
    margin-bottom: 8px;
  }
  
  footer .row:first-child .col-md-4:last-child {
    width: 100%;
    order: 3;
    margin-bottom: 6px;
  }
  
  /* Truncate company description */
  footer .row:first-child .col-md-4:first-child p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Bottom row - hide extra links on mobile */
  footer .row:last-child .col-md-6:last-child {
    display: none;
  }
  
  footer .row:last-child .col-md-6:first-child {
    width: 100%;
    text-align: center;
  }
  
  /* Add space for bottom navigation if needed */
  footer {
    padding-bottom: 80px !important;
  }
}