body {
    margin: 0;
    font-family: sans-serif;
    background-color: #0a1f44;
    color: #ffffff;
}
/* Hero section repositioned slightly downward */
.header {
    display: flex;
    align-items: flex-start;
    padding-top: 1rem;
    justify-content: center;
    /*height: 40vh;*/
    background-size: cover;
    background-position: center;
    position: relative;
}
.header-content {
    position: relative;
    z-index: 1;
    margin: 1rem 0 0 0; /* hero text moved slightly down */
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}
.header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}
.header p {
    font-size: 1.25rem;
    margin: 0.25rem 0;
    color: #ffffff;
}
.header img.logo {
    width: 350px;
    margin-bottom: 10px;
}

@media (max-width: 450px) {
    .header img.logo {
        width: 100%;
    }
}

/* Cards positioned slightly higher */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    /*margin-top: -2rem;*/
}
.features:first-of-type {
    padding-top: 1rem;
}
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.card {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 2rem 1rem 1rem;
    text-align: center;
    backdrop-filter: blur(4px);
    transition: transform 0.3s;
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.card:hover {
    transform: translateY(-5px);
}
.card h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.1rem;
    color: #ffffff;
}
.card p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #ffffff;
}

.nav-item .card img {
    max-width: 160px;
    /* margin: 0 auto 1rem; */
    margin-top: -30px;
    margin-bottom: -30px;
}

@media (max-width: 380px) {
    .nav-item .card img {
        max-width: 130px;
    }
}

.page-section {
    display: none;
}

.page-section .page-head {
    text-align: center;
}

.page-section .card {
    width: fit-content;
    height: 100%;
    padding: 10px;
}

.page-section .card img {
    border-radius: 100%;
}

.page-section .card h3 {
    font-size: 1.0rem;
}

.page-section .item {
    width: fit-content;
    list-style: none;
    transition: opacity 0.2s linear;
}

.page-section .item img {
    width: 200px;
    border-radius: 10px;
}

.page-section .item:hover {
    opacity: 0.6;
}

.footer {
    display: block;
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.footer .logo-puc {
    display: block;
    max-width: 200px;
    margin: 0 auto;
}

.instagram-list {
    --instagram-block-size: 220px;
}

.instagram-list .features {
    grid-template-columns: repeat(auto-fit, minmax(var(--instagram-block-size), 1fr));
    justify-items: center;
}

.instagram-list .card {
    width: var(--instagram-block-size);
}

.instagram-list .card h3 {
    font-size: 0.9rem;
}

@media (max-width: 450px) {
    .features {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }

    .page-section .item img {
        width: 140px;
    }

    .instagram-list .card {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 350px) {
    .page-section .item {
        margin-left: auto;
        margin-right: auto;
    }

    .page-section .item img {
        width: 200px;
    }
}

@media (min-width: 700px) and (max-width: 800px) {
    .instagram-list {
        --instagram-block-size: 210px;
    }

    .instagram-list .features {
        padding: 2rem 0.5rem;
    }
}
