
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #e0daca; 
    color: #3a2f2f; 
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #3a2f2f;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}


.story-link {
    display: block;
}


.top-bar {
    background-color: #f2d79d;
    color: #3a2f2f;
    padding: 10px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: bold;
    font-size: 24px;
    text-transform: uppercase;
    color: #3a2f2f;
}

.top-nav a {
    margin-left: 15px;
    font-size: 14px;
    color: #3a2f2f;
}


.header {
    background-color: #F0E4CC; 
    border-bottom: 1px solid #d7c49e;
    padding: 20px 0;
    margin-bottom: 15px;
}

.header h1 {
    font-size: 26px;
    margin-bottom: 5px;
}

.header p {
    font-size: 14px;
    color: #5b4a3a;
}


.main-layout {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.main-content {
    flex: 2;
}

.sidebar {
    flex: 1;
    background-color: #F5EEDC;
}


.lead-story {
    background-color: #FAF3E0;
    padding: 15px;
    border: 1px solid #d8c7a3;
    margin-bottom: 20px;
}

.lead-story .tag {
    font-size: 11px;
    letter-spacing: 1px;
    color: #a5672d;
    font-weight: bold;
    margin-bottom: 6px;
}

.lead-story h2 {
    font-size: 22px;
    margin-bottom: 8px;
}

.meta {
    font-size: 12px;
    color: #7b6a56;
    margin-bottom: 10px;
}

.summary {
    font-size: 14px;
}


.section-title {
    font-size: 18px;
    margin: 15px 0 10px;
}

.story-list {
    margin-bottom: 15px;
}

.story-card {
    background-color: #FAF3E0; 
    padding: 12px;
    border: 1px solid #d8c7a3;
    margin-bottom: 10px;
}

.story-card h4 {
    font-size: 16px;
    margin-bottom: 5px;
}


.sidebar-box {
    background-color: #FAF3E0;
    border: 1px solid #d8c7a3;
    padding: 12px;
    margin-bottom: 15px;
}

.sidebar-box h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.sidebar-box ul {
    list-style-type: none;
}

.sidebar-box li {
    margin-bottom: 6px;
}

.sidebar-box form {
    margin-top: 6px;
}


input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 6px;
    margin-bottom: 8px;
    border: 1px solid #d6c3a5;
    background-color: #FFF7E8; 
    font-size: 14px;
    font-family: inherit;
}

textarea {
    resize: vertical;
}

button {
    cursor: pointer;
}

.sidebar-box button,
.signin-submit {
    padding: 6px 10px;
    border: 1px solid #b59a6d;
    background-color: #CBB58D;
    color: #3a2f2f;
    font-size: 14px;
}

.sidebar-box button:hover,
.signin-submit:hover {
    background-color: #bfa67f;
}


.footer {
    background-color: #E8DCC3;
    color: #3a2f2f;
    padding: 15px 0;
    font-size: 13px;
    margin-top: 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-nav a {
    margin-left: 10px;
    color: #3a2f2f;
}


.hidden {
    display: none;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0; 
    right: 0;
    bottom: 0;
    background-color: rgba(200, 180, 150, 0.6);
}

.signin-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 300px;
    background-color: #FAF3E0;
    border: 1px solid #d8c7a3;
    padding: 15px;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(90, 70, 50, 0.3);
    font-size: 14px;
}

.signin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.close-btn {
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 14px;
    color: #3a2f2f;
}

#signinForm {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#signinForm label {
    font-size: 13px;
}

.error-message {
    color: red;
    font-size: 12px;
    min-height: 16px;
}

.success-message {
    color: green;
    font-size: 12px;
    min-height: 16px;
}


.full-news-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}


@media (max-width: 768px) {
    .top-bar .container,
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .main-layout {
        flex-direction: column;
    }

    .top-nav a {
        margin-left: 0;
        margin-right: 10px;
    }
}
