/* Footer styling for StarBound website */
.footer {
    background-color: #141e30;
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 0; /* Removed margin-top that was causing the gap */
    font-family: 'Poppins', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-section {
    flex: 1;
    margin: 0 20px 30px;
    min-width: 200px;
}

.footer-section.about-company {
    flex: 2;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(to right, #03a9f4, #34efdf);
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 20px;
    color: #b3b3b3;
    font-size: 14px;
}

.social-links {
    display: flex;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #03a9f4;
    transform: translateY(-3px);
}

.social-links img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.footer-links {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: #b3b3b3;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    display: inline-block;
}

.footer-links li a:hover {
    color: #34efdf;
    padding-left: 5px;
}

.contact-info {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-info i {
    margin-right: 10px;
    font-size: 16px;
    color: #34efdf;
}

.contact-info p {
    margin: 0;
    color: #b3b3b3;
    font-size: 14px;
}

/* Contact info boxes styling */
.contact-box-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
    width: 100%; /* Ensure container takes full width */
    max-width: 350px; /* Set a comfortable maximum width */
    align-items: flex-start; /* Align all boxes to the left */
}

.contact-box {
    display: grid;
    grid-template-columns: 40px 1fr;
    align-items: center;
    background-color: #172554;
    border-radius: 8px;
    padding: 18px;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%; /* Ensure box takes full width of container */
    min-width: 280px; /* Set minimum width for better appearance */
    box-sizing: border-box; /* Include padding in width calculation */
    gap: 10px;
}

.contact-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contact-box i {
    font-size: 18px;
    color: #4776E6;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    margin: 0;
    width: 100%;
    height: 24px;
}

.contact-box p, 
.contact-box a {
    margin: 0;
    font-size: 14px;
    color: white;
    word-break: break-word; /* Allow word breaking if needed */
    width: 100%; /* Take full remaining width */
}

/* Expand the blue box to extend through all the email */
.footer-section .contact-box:last-child {
    padding: 15px 20px; /* Increase padding for better fit */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px; /* Ensure the box height accommodates the email */
    word-break: break-word; /* Allow word breaking if needed */
}

/* Adjust the email box to fit the full email in a single line */
.footer-section .contact-box:last-child {
    font-size: 0.9rem; /* Slightly smaller font size */
    white-space: nowrap; /* Prevent text wrapping */
    overflow: visible; /* Ensure no text is cut off */
    text-overflow: unset; /* Remove ellipsis */
    text-align: center; /* Center-align the email text */
}

@media screen and (max-width: 768px) {
    .contact-box-container {
        margin-bottom: 20px;
    }
}

/* Specific styling for the footer contact link */
.footer-contact-link {
    display: inline-flex;
    align-items: center;
    color: #34efdf;
    margin-top: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    padding-bottom: 3px;
}

.footer-contact-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #34efdf, #03a9f4);
    transition: width 0.3s ease;
}

.footer-contact-link::after {
    content: '→';
    opacity: 0;
    margin-left: 4px;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.footer-contact-link:hover {
    color: #fff;
    transform: translateY(-2px);
    text-shadow: 0 0 8px rgba(52, 239, 223, 0.4);
}

.footer-contact-link:hover::before {
    width: 100%;
}

.footer-contact-link:hover::after {
    opacity: 1;
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #999;
    font-size: 13px;
    margin: 0;
}

/* Partner logos in footer */
.partner-logos-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    margin-top: 20px;
}

.partner-logo-footer {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease, background-color 0.3s ease;
    opacity: 0.9;
    background-color: #172554;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid rgba(3, 169, 244, 0.3);
}

.partner-logo-footer:hover {
    transform: translateY(-3px);
    opacity: 1;
    background-color: #1e3a8a;
    border-color: #03a9f4;
}

/* Make footer responsive */
@media (max-width: 992px) {
    .footer-section {
        flex: 1 1 40%;
    }
    
    .footer-section.about-company {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    .footer-section {
        flex: 1 1 100%;
        margin-bottom: 30px;
    }
    
    .footer-content {
        flex-direction: column;
    }
}