/* General Styles for Desktop (default behavior) */
body {
    font-family: Arial, sans-serif;
    padding: 0;
    background-color: #ffffff;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;      /* Center the container horizontally */
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 15px;
    color: #000000;
}

.header-logo-text {
    display: flex;
    align-items: center;
}

.logo {
    max-width: 50px;
    margin-right: 15px;
}

h1 {
    color: #0a0a82;
}

h2 {
    color: #0a0a82;
}

/* Navigation List Styling */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: #000000;
    text-decoration: none;
}

nav ul li a:hover {
    background-color: blue;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

/* Main Content Styles */
main {
    display: flex;
    margin: 20px;
}

article {
    flex: 3;
    background-color: #fff;
    padding: 20px;
    margin-right: 20px;
}

.contain-image {
    width: 750px;
    height: auto;
    padding: 20px;
}

.float-image {
    float: right;
    margin-right: 10px;
    width: auto;
    height: 100px;
    padding: 20px;
}

.float-image-left {
    float: left;
    margin-right: 10px;
    width: auto;
    height: 100px;
    padding: 20px;
}

aside {
    flex: 1;
    background-color: #f4f4f4;
    padding: 20px;
}

/* Footer Styles */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    color: #000000;
    padding: 20px;
}

.footer-column {
    flex: 1;
    text-align: center;
}

footer img {
    max-width: 100px;
}

footer p {
    margin: 0;
}

footer a {
    color: #000000;
    text-decoration: none;
}

/* --- Responsive Design for Tablets (768px or less) --- */
@media (max-width: 768px) {
    /* Adjust header for tablets */
    header {
        flex-direction: column; /* Stack header elements vertically */
        text-align: center;
    }

    .header-logo-text {
        justify-content: center; /* Center the logo and text */
    }

    /* Stack main content and aside vertically */
    main {
        flex-direction: column;
        margin: 10px;
    }

    article {
        margin-right: 0;
        padding: 15px;
    }

    aside {
        margin-top: 20px;
    }

    /* Navigation adjustments */
    nav ul {
        flex-direction: column; /* Stack nav items vertically */
        margin: 10px 0;
    }

    nav ul li {
        margin: 10px 0;
    }

    /* Footer adjustments */
    footer {
        flex-direction: column; /* Stack footer columns */
        text-align: center;
    }

    footer img {
        margin-bottom: 10px;
    }
}

/* --- Responsive Design for Phones (480px or less) --- */
@media (max-width: 480px) {
    /* Body padding for small screens */
    body {
        padding: 0 10px;
    }

    /* Font size for small screens */
    h2 {
        font-size: 18px;
    }

    /* Stack navigation links vertically */
    nav ul {
        padding: 0;
        margin: 0;
    }

    nav ul li {
        margin: 5px 0;
    }

    /* Stack article and aside vertically */
    main {
        margin: 5px;
    }

    article, aside {
        padding: 10px;
    }

    /* Image adjustments for smaller screens */
    .contain-image, .float-image {
        width: auto; /* Ensure images take up full width */
        height: 100px;
    }

    /* Footer adjustments */
    footer {
        padding: 10px;
        flex-direction: column;
        text-align: center;
    }

    footer img {
        margin-bottom: 5px;
    }
}
