/* style.css */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f5f8fa;
    color: #1a2433;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    background: #29436a;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 18px 32px;
    flex-wrap: wrap;
}

.logo {
    height: 60px;
    margin-right: 32px;
    border-radius: 8px;
    background: #fff;
    padding: 6px 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    padding: 2px 6px;
    transition: background .15s;
    border-radius: 5px;
}

nav a:hover {
    background: #425f97;
}

.container {
    display: flex;
    max-width: 1250px;
    margin: 0 auto;
    gap: 28px;
}

main {
    flex: 2;
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 0 10px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(41, 67, 106, 0.06);
}

aside {
    flex: 1;
    margin-top: 38px;
    min-width: 270px;
}

h1, h2 {
    color: #29436a;
}

ul {
    padding-left: 18px;
}

.main-img, .article-img {
    width: 100%;
    max-width: 540px;
    margin: 22px 0 20px 0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(41, 67, 106, 0.10);
    display: block;
}

section {
    margin-bottom: 36px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
}

footer {
    background: #29436a;
    color: #fff;
    text-align: center;
    padding: 18px 0;
    margin-top: 36px;
    font-size: 0.98em;
    letter-spacing: 0.01em;
    border-radius: 0 0 10px 10px;
}

/* Sidebar, widgets, gallery */
.sidebar-widget {
    background: #e6eef8;
    border-radius: 10px;
    padding: 18px 15px 12px 15px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(41,67,106,0.06);
}
.sidebar-widget h3 {
    margin-top: 0;
    color: #29436a;
}
.gallery-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0 20px 0;
}
.gallery-row img {
    width: 110px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(41,67,106,0.09);
}
.widget, .match-widget {
    background: #f2f6fb;
    border-radius: 10px;
    padding: 14px 18px;
    margin: 20px 0;
    color: #29436a;
    font-size: 1.08em;
    box-shadow: 0 1px 4px rgba(41,67,106,0.05);
}
.readmore {
    color: #1a7ad9;
    font-weight: bold;
    text-decoration: none;
}
.readmore:hover {
    text-decoration: underline;
}
.meta {
    font-size: 0.92em;
    color: #506080;
    margin-bottom: 7px;
}
.tag {
    background: #dde4f3;
    color: #29436a;
    border-radius: 5px;
    padding: 2px 7px;
    margin-left: 7px;
    font-size: 0.86em;
}
/* Comments */
.comments {
    background: #f9fbfd;
    border-radius: 9px;
    padding: 13px;
    margin-top: 24px;
}
.comment {
    margin-bottom: 10px;
    font-size: 0.96em;
    padding-left: 4px;
}
.comments form {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 12px;
}
.comments input, .comments textarea {
    border: 1px solid #bfc9db;
    border-radius: 4px;
    padding: 5px;
    font-size: 1em;
}
.comments button {
    background: #29436a;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 16px;
    cursor: pointer;
}
.comments button:hover {
    background: #1a7ad9;
}
form input[type="email"] {
    border: 1px solid #bfc9db;
    border-radius: 4px;
    padding: 5px;
    font-size: 1em;
    margin-bottom: 7px;
    width: 90%;
}
form button {
    background: #29436a;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 14px;
    cursor: pointer;
    font-weight: bold;
}
form button:hover {
    background: #1a7ad9;
}
.small {
    font-size: 0.9em;
    color: #678;
    margin-top: 5px;
}
@media (max-width: 1050px) {
    .container {
        flex-direction: column;
        gap: 0;
    }
    main, aside {
        margin-top: 10px;
        margin-bottom: 0;
        border-radius: 10px;
    }
    aside {
        min-width: unset;
    }
    .gallery-row img {
        width: 28vw;
        height: 18vw;
        min-width: 75px;
        min-height: 48px;
    }
}

a {
    color: #29436a;
    transition: color .18s;
}
a:hover {
    color: #1a7ad9;
}
