/* Footer Styles */
.footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 30px 0 15px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--white);
}

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

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.footer-bottom p:last-child {
    margin-bottom: 0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    border: 2px solid var(--white);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #d63d05;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border-color: #ff6b35;
}

.back-to-top:active {
    transform: translateY(-1px);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 20px 0 10px;
    }

    .footer-content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 15px;
    }

    .footer-section:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }

    .footer-section:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }

    .footer-section:nth-child(3) {
        grid-column: 1;
        grid-row: 2;
    }

    .footer-section:nth-child(4) {
        grid-column: 2;
        grid-row: 2;
    }
}

@media (max-width: 480px) {
    .footer-content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 15px;
    }

    .footer-section:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }

    .footer-section:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }

    .footer-section:nth-child(3) {
        grid-column: 1;
        grid-row: 2;
    }

    .footer-section:nth-child(4) {
        grid-column: 2;
        grid-row: 2;
    }

    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .footer-section ul li {
        margin-bottom: 6px;
    }

    .footer-section ul li a {
        font-size: 0.85rem;
    }

    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}
