* {
    margin: 0;
    padding: 0;
    font-family: "Inter" , sans-serif;
    box-sizing: border-box;
    font-weight: 600;
}

body {
    background-color: #fff;
}

#main-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
#main-content > div:last-child {
    min-width: 19rem;
    min-height: 15rem;
    height: 100%;
    margin-right: 1.75rem;
}
.main-content {
    padding: 2rem 2rem;
}

@media screen and (max-width:850px) {
    .oftalmoscopio-title {
        padding-top: 1rem;
    }
}
.oftalmoscopio-title h1 {
    padding-bottom: 1rem;
    font-size: 1.6rem;
    color: #333;
}
.oftalmoscopio-title h2 {
    color: #999;
    padding-bottom: 1rem;
}
.oftalmoscopio-title p {
    color: #999;
    font-weight: 500;
}


.navegation-itens {
    background-color: #707070;
    padding: 1rem;
}
#navegation-title {
    color: #ffed00;
    padding: .5rem 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.navegation ul {
    list-style: none;
    padding: 1rem 0;
}
.navegation a {
    text-decoration: none;
    color: #fff;
}
.navegation a:hover {
    color: #ffed00;
}
.navegation li {
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.navegation i {
    margin-right: 0.5rem;
}
.navegation i.active {
    color: #ffed00;
    margin-right: 0.5rem;
}
@media screen and (max-width: 1200px) {
    .navegation {
        display: none;
    }
}


.image-header {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.image {
    width: 100%;
    height: 300px;
    border-left: 1.75rem solid #211f20;
    border-right: 1.75rem solid #211f20;
    margin-top: 1rem;
}
.image:last-child {
    margin-top: 0;
}

@media screen and (max-width: 1000px) {
    .image {
        height: 100%;
    }
}
@media screen and (max-width: 850px) {
    .image {
        margin-top: 0;
    }
}

@media screen and (max-width: 500px) { 
    .image {
        border-left: 1rem solid #211f20;
    border-right: 1rem solid #211f20;
    }
}
.image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center; 
}


.imagem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 2rem 2rem;
    justify-items: center;
    align-items: center; 
    width: 100%;
}
.imagem-grid-item {
    width: 100%;
    height: 100%;
    min-height: 20.5rem;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: space-between;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.imagem-grid-item img {
    max-width: 100%; 
    height: auto;
    display: block; 
    margin: 0 auto; 
    background-color: white;
    transition: transform 0.5s ease-in-out;
}

.imagem-grid-item p {
    margin-top: 1rem;
}
.imagem-grid-item a {
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    padding: .5rem;
}
.imagem-grid-item a:hover {
    text-decoration: underline;
}
.imagem-grid-item img:hover {
    transform: scale(0.8);
}


@media screen and (max-width: 1100px) {
    .imagem-grid {
        width: 100%;
    }
}
@media screen and (max-width: 768px) {
    .imagem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (max-width: 400px) {
    .imagem-grid {
       display: flex;
       flex-direction: column;
       align-items: center;
       justify-content: center;
       text-align: center;
    }
}