footer {
    background-color: var(--footer-bg);
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}

.footer-section h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--red);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.25s ease;
    display: inline-block;
    position: relative;
}

.footer-section ul a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 1.5px;
    background-color: var(--red);
    transition: width 0.3s ease;
}

.footer-section a:hover {
    color: var(--red);
}

.footer-section ul a:hover::after {
    width: 100%;
}

.footer-section p {
    color: var(--gray);
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-section .footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    color: var(--gray);
}

.footer-section .footer-contact-item strong {
    color: white;
    margin-right: 8px;
    min-width: 80px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border: 2px solid var(--gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    text-decoration: none;
    transition: all 0.25s ease;
}

.footer-social a:hover {
    border-color: var(--red);
    color: var(--red);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    footer {
        padding: 40px 0 20px;
    }

    .footer-section {
        text-align: center;
        /* display: flex; */
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact-item {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-content: center;
        /* align-items: center;
        text-align: center; */
    }

    .footer-contact-item strong {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 4px;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-section {
        text-align: left;
    }

    .footer-section h3 {
        display: inline-block;
    }

    .footer-section ul {
        margin: 0;
    }
}