/* Stylesheet for Personal Website
   Author: Oworinawe Saviour
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #FFFFFF;
    color: #333;
}

/* ===== HEADER SECTION ===== */
header {
    background-color: #800080;
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

header img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    border: 4px solid white;
}

header .profile {
    flex: 1;
    min-width: 250px;
}

header h1 {
    font-size: 1.8em;
    margin-bottom: 8px;
}

header h3 {
    font-size: 1.1em;
    font-weight: normal;
}

nav {
    width: 100%;
    text-align: center;
    margin-top: 15px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* ===== MAIN SECTIONS ===== */
section {
    padding: 20px;
    background-color: #87CEEB;
    margin: 20px auto;
    width: 90%;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h2, h3 {
    text-align: center;
    margin-bottom: 15px;
}

/* ===== SCHOOLS GRID ===== */
.schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.school {
    background-color: #87CEEB;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    border: 2px solid #b3d1ff;
}

/* ===== WORK EXPERIENCE & HOBBIES ===== */
ol, ul {
    margin-left: 40px;
}

ul li, ol li {
    margin-bottom: 8px;
}

/* ===== FOOTER ===== */
footer {
    font-style: italic;
    text-align: center;
    padding: 10px;
    background-color: #0000FF;
    color: white;
    margin-top: 20px;
    border-top: 3px solid #ccc;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    header img {
        margin: 0 0 15px 0;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 10px 0;
    }
}
