.footer {
    background: #0f0f1a;
    padding: 2rem;
    border-top: 2px solid #6b5b95;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column h3 {
    color: #ffffff;
    margin-bottom: 10px;
}

.footer-column p {
    color: #e0e0e0;
    font-size: 0.9rem;
}

.footer-column a {
    color: #ffffff;
    text-decoration: none;
    display: block;
    margin: 0;
}

.footer-column a:hover {
    color: #b19cd9;
}

.footer-column img {
    max-width: 150px;
}

.copyright {
    text-align: center;
    margin-top: 20px;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.copyright a {
    color: #ffffff;
    text-decoration: none;
}

.copyright a:hover {
    color: #b19cd9;
}

@media (max-width: 768px) {
    .footer {
        padding: 1rem;
    }
    .footer-columns {
        grid-template-columns: 1fr 1fr; /* Two columns for mobile */
        gap: 10px;
        grid-template-rows: auto auto; /* Explicitly define two rows */
    }
    /* First Row: Logo + Content (Left), Account (Right) */
    .footer-column:nth-child(1) { /* Logo and content */
        grid-column: 1 / 2;
        grid-row: 1 / 2; /* First row, first column */
    }
    .footer-column:nth-child(1) img {
        max-width: 120px;
    }
    .footer-column:nth-child(1) p {
        font-size: 0.75rem;
        margin-top: 5px;
    }
    .footer-column:nth-child(4) { /* Account */
        grid-column: 2 / 3;
        grid-row: 1 / 2; /* First row, second column */
    }
    .footer-column:nth-child(4) h3 {
        margin-bottom: 5px;
    }
    .footer-column:nth-child(4) a {
        margin: 0;
        line-height: 1.2;
    }
    /* Second Row: Quick Links (Left), Features (Right) */
    .footer-column:nth-child(2) { /* Quick Links */
        grid-column: 1 / 2;
        grid-row: 2 / 3; /* Second row, first column */
        margin-top: 20px;
    }
    .footer-column:nth-child(2) h3 {
        margin-bottom: 5px;
    }
    .footer-column:nth-child(2) a {
        margin: 0;
        line-height: 1.2;
    }
    .footer-column:nth-child(3) { /* Features */
        grid-column: 2 / 3;
        grid-row: 2 / 3; /* Second row, second column */
        margin-top: 20px;
    }
    .footer-column:nth-child(3) h3 {
        margin-bottom: 5px;
    }
    .footer-column:nth-child(3) a {
        margin: 0;
        line-height: 1.2;
    }
    /* Copyright */
    .copyright {
        font-size: 0.6rem;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .footer-columns {
        grid-template-columns: 1fr 1fr;
    }
    .footer-column p, .footer-column a {
        font-size: 0.75rem;
    }
}