* {
    margin: 0; padding: 0; box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Verdana, sans-serif;
    color: #28396c;
    background-color: #B5E18B;
    line-height: 1.6; 
    margin: 0;
    padding: 0;
}

main {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 10px;
    border-radius: 8px;
}

header {
    background: #28396c;
    color: #ffffff;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 10px solid #eae6bc;
}

h1 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 1000; 
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
}

section {
    margin-bottom: 40px;
    padding: 10px 0;
}

h2 {
    color: #454545;
    border-bottom: 2px solid #28396c;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 1.2rem;
}

h3 {
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
}

p {
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

ul {
    padding-left: 25px; 
}

nav {
    padding: 20px 0;
    text-align: center;
}

nav a {
    font-size: 14pt;
    text-decoration: none;
    color: #28396c;
    font-weight: bold;
    padding: 10px 20px;
    border: 2px solid #28396c;
    border-radius: 5px;
}
nav a:hover {
    background-color: #28396c;
    color: #ffffff;

}

.special-font {
    font-size: 14pt;
    font-family: "Playwrite NO", cursive;
    font-optical-sizing: auto;
    font-weight: 200;
    font-style: normal;
    text-decoration: none;
    color: #28396c;
    font-weight: bold;
    padding: 10px 20px;

}

footer {
    background: #F0FFC2;
    color: #454545;
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    font-size: 0.9rem;
    border-top: 5px solid #eae6bc;
}

aside {
    font-style: italic;
    margin-top: 15px;
    opacity: 0.8;
}
figure {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    display: table;
}

figure img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 8px black;
}

figcaption {
    text-align: center; 
    font-size: 0.9rem;
    margin-top: 8px;
    color: #454545;
}

.image-grid {
    display: flex;
    flex-wrap: wrap;    
    gap: 20px;          
    justify-content: center;
    align-items: flex-end;
}


.image-grid figure {
    flex: 1 1 20%; 
    min-width: 200px; 
    margin: 0;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #eae6bc;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover; 
}

.image-grid figcaption {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
}

/* New responsive */


@media (max-width: 1024px) {
    main {
        width: 95%;
    }
    
    .image-grid figure {
        flex: 1 1 45%;
    }


}


@media (max-width: 600px) {
    header {
        padding: 20px 10px;
    }

    h1 {
        font-size: 1.5rem;
    }

    nav {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    nav a {
        width: 100%;
        font-size: 12pt;
    }

    .image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    }

    .image-grid figure {
        flex: 0 0 calc(50% - 15px); 
        min-width: unset;
        margin: 0;
    }

    .image-grid img {
        width: 100%;
        height: auto;
    }
}
