/* ========================================
   FOOTER RESPONSIVE FIX
   Prevents email from breaking layout
   ======================================== */

/* Footer Email Fix */
.footer-box .footer-link li {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Ensure email doesn't overflow */
.footer-box .footer-link li:first-child {
    font-size: 14px;
    line-height: 1.6;
    color: #999;
    padding-right: 10px;
}

/* Better spacing for footer columns on mobile */
@media (max-width: 1199px) {
    .footer-section .footer-box {
        margin-bottom: 30px;
    }
    
    .footer-box .footer-link li {
        font-size: 13px;
    }
}

@media (max-width: 991px) {
    .footer-section .row.cus-mar {
        row-gap: 30px;
    }
    
    .footer-box .footer-link li:first-child {
        font-size: 13px;
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    /* Stack footer columns properly on mobile */
    .footer-section .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .footer-section .col-8 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 20px;
    }
    
    .footer-box .footer-link li {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .footer-box .footer-link li:first-child {
        font-size: 12px;
        word-break: break-all;
    }
}

@media (max-width: 575px) {
    /* Full width columns on very small screens */
    .footer-section .col-6,
    .footer-section .col-xl-3,
    .footer-section .col-xl-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .footer-box {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .footer-box .footer-link {
        text-align: center;
    }
    
    .footer-box .social-link {
        justify-content: center !important;
    }
    
    .footer-box .footer-link li:first-child {
        font-size: 13px;
        word-break: break-all;
        padding: 0 15px;
    }
}

/* Make email clickable and styled */
.footer-box .footer-link li:first-child {
    cursor: default;
    transition: color 0.3s ease;
}

/* Add hover effect if email becomes a link */
.footer-box .footer-link li a[href^="mailto"] {
    color: #999;
    transition: color 0.3s ease;
    word-break: break-word;
    display: inline-block;
    max-width: 100%;
}

.footer-box .footer-link li a[href^="mailto"]:hover {
    color: #1a4dbe;
}

/* Improve overall footer responsiveness */
.footer-section .container {
    padding-left: 20px;
    padding-right: 20px;
}

.footer-box h5 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
}

.footer-box p {
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Better alignment for office hours */
.footer-box p strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

@media (max-width: 991px) {
    .footer-box h5 {
        font-size: 16px;
        margin-bottom: 15px;
    }
}

@media (max-width: 575px) {
    .footer-box h5 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .footer-box p {
        font-size: 14px;
    }
}
