@charset "UTF-8";

.info-footer {
    display: grid;
    grid-template-columns: repeat(4, 25%);
    grid-template-rows: auto auto;
    grid-template-areas: 
    "logo institute contact transparency"
    "logo institute contact transparency"
    "social social social social";
    padding: 50px;
    background-color: #fff;
    border-top: 2px solid #dee2e6;

    figure { grid-area: logo; }
    .institute { grid-area: institute; }
    .contact { grid-area: contact; }
    .transparency { grid-area: transparency; }
    footer { 
        grid-area: social;
        display: block;
        margin: 20px;
        padding: 10px;
    }

    img {
        width: 40px;
        height: 40px;
    }

    nav {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;

        a {
            text-decoration: none;
            font-weight: 500;
            color: #343a40;

            &:hover {
                text-decoration: underline;
            }
        }
    }
}

@media (max-width: 768px) {
    .info-footer {
        grid-template-columns: auto auto;
        grid-template-rows: auto auto auto;
        grid-template-areas: 
            "logo logo"
            "institute contact"
            "transparency social";
        padding: 30px;
        text-align: center;
        line-height: 1;

        figure {
            grid-area: logo;
            margin: 0 auto;

            img {
                margin: 0 auto;
            }
        }

        nav {
            margin-top: 20px;
        }

        .institute { grid-area: institute; }
        .contact { grid-area: contact; }
        .transparency { grid-area: transparency; }

        footer {
            grid-area: social;
        }
    }
}