header {
    background-color: #c00;
    color: #fff;
    padding: 18px 0 10px 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(200,0,0,0.08);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
    gap: 12px;
}

.header-right {
    justify-content: space-between;
    align-items: flex-end;
    margin-right: 10px;
    gap: 12px;
}

.header-left {
    gap: 18px;
    justify-content: flex-start;
    margin-right: 50px;
}

nav {
    background-color: #ffffff;
    max-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center; /* <-- Add this line */
}


.logo {
    width: 56px;
    height: 56px;
    object-fit: cover;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

@media (max-width: 900px) {
    .header-container {
        flex-direction: column;
        gap: 12px;
    }
    .menu-toggle {
        display: block;
        position: absolute;
        top: 18px;
        left: 18px;
        background: #c00;
        padding: 8px 12px;
        border-radius: 5px;
        color: white;
        font-size: 2rem;
    }
}

.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;         /* Use normal width */
    margin: 0 auto;      /* Center in parent */
    background: #fff;
    box-shadow: 0 2px 8px rgba(200,0,0,0.04);
    padding: 0;
    border: none;        /* Remove debug border */
    position: static;    /* Remove left/transform */
}

.nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    margin: 0 auto; /* <-- Add this line */
    padding: 0;
    width: fit-content;
}

.nav-list li {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}


.nav-list li a {
    color: #c00;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.08rem;
    padding: 10px 18px;
    border-radius: 24px;
    height: 100%;
    transition: background 0.2s, color 0.2s;
}

.nav-list li a:hover,
.nav-list li a:focus {
    background: #c00;
    color: #fff;
    text-decoration: underline;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f7f7f7;
}

.page-layout {
    display: flex;
    gap: 32px;
    max-width: 1200px;
    margin: 36px auto;
    padding: 0 24px;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.main-container {
    justify-content: space-between;
    align-items: flex-start;
    display: flex;
    gap: 32px;
    max-width: 100%;
    margin: 36px auto;
    padding: 0 24px;
    box-sizing: border-box;
}

aside.main-left-bar,
aside.main-right-bar {
    flex: 1 ;
    justify-content: space-between;
    background: #fff;
    padding: 26px 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(200,0,0,0.07);
    min-width: 220px;
    font-size: 1.05rem;
}

.main-left-bar h2,
.main-right-bar h2 {
    color: #c00;
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

.main-left-bar ul,
.main-right-bar ul {
    padding-left: 0;
    list-style: none;
}

.main-left-bar li,
.main-right-bar li {
    margin-bottom: 10px;
}

.main-left-bar a,
.main-right-bar a {
    color: #222;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.main-left-bar a:hover,
.main-right-bar a:hover {
    color: #c00;
    text-decoration: underline;
}


main.main-content {
    flex: 2;
    gap: 24px;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 32px 24px;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    min-width: 320px;
}

.main-content h1 {
    color: #c00;
    font-size: 2.1rem;
    margin-bottom: 18px;
    font-weight: bold;
}

.main-content p {
    color: #222;
    font-size: 1.08rem;
    margin-bottom: 16px;
}

.news-image {
    width: 100%;
    max-width: 480px;
    border-radius: 10px;
    margin: 18px 0;
    box-shadow: 0 2px 8px rgba(200,0,0,0.06);
}

@media (max-width: 900px) {
    .main-container {
        flex-direction: column;
        gap: 18px;
    }
    .main-left-bar,
    .main-right-bar,
    .main-content {
        min-width: unset;
        padding: 18px 12px;
    }
    .news-image {
        max-width: 100%;
    }
}

@media (max-width: 900px) {
    .page-layout {
        flex-direction: column;
        gap: 18px;
    }

    aside,
    main.main-content {
        min-width: unset;
        padding: 18px 12px;
    }
}


footer {
    background-color: #c00;
    color: #fff;
    text-align: center;
    padding: 24px 0 16px 0;
    margin-top: 24px;
    box-shadow: 0 -2px 12px rgba(200,0,0,0.08);
    width: 100vw;
    position: relative;
}

.footer-container {
    width: 100%;
    padding: 0 32px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    box-sizing: border-box;
}

.footer-left,
.footer-center,
.footer-right {
    font-size: 1rem;
    font-weight: 500;
    padding: 55px 0;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: #fff;
    text-decoration: underline;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffd600;
}

@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 0 12px;
    }
    .footer-left,
    .footer-center,
    .footer-right {
        text-align: center;
        width: 100%;
    }
}