/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
header {
    background-color: #333;
    color: #fff;
    padding: 1rem;
    position: relative;
    height: auto;
    min-height: 80px; /* Adjust as needed */
}

/* Logo */
.logo-wrapper {
    float: right;
    shape-outside: inset(0);
    width: 229px;
    height: 242px;
    margin-left: 1rem;
}

.logo {
    position: absolute;
    top: 0;
    right: 1rem;
    width: 229px;
    height: 242px;
    background-color: #fff;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 10;
}

.logo img {
    max-width: 100%;
    height: auto;
}

/* Navigation */
nav {
    background-color: #f4f4f4;
    padding: 1rem;
}

nav ul {
    list-style-type: none;
}

nav ul li {
    margin-bottom: 0.5rem;
}

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

/* Main content */
main {
    padding: 1rem;
    padding-top: 1rem; /* Adjust based on logo height */
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem;
    width: 100%;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    min-height: calc(100vh - 140px); /* Adjust for header and footer height */
}

nav {
    flex: 0 0 200px;
    min-width: 200px;
}

main {
    flex: 1;
    min-width: 0; /* Allow main to shrink below its content size if needed */
}

/* Responsive design */
@media (max-width: 768px) {
    .logo-wrapper {
        width: 57px;
        height: auto; 
    }

    header {
        padding-right: 67px;
        min-height: auto;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .container {
        flex-direction: column;
    }

    nav {
        order: 2;
        width: 100%;
    }

    main {
        order: 1;
        width: 100%;
        padding-right: 67px;
        padding-top: 1rem; /* Reset top padding for mobile */
    }

    .logo {
        width: 57px;
        height: auto;
        max-width: 57px;
        position: absolute;
        top: 5px;
        right: 5px;
    }
}