/* Reset basic styles for consistency */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
  overflow-y: scroll;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #eef2f6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
header {
    background: #c0d0e0 url("img/bkgstars.jpg") repeat top left;
    color: #fff;
    padding: 0px;
}

header a {
  float: right;
  display: block;
  color: #ffffff;
  text-align: center;
  padding: 11px 16px 11px 16px;
  text-decoration: none;
}

header a:hover {
 background: rgba(140, 160, 180, 0.3);
 color: #ffffff; 
}


/* Container for the columns */
.container {
    display: flex;
    flex: 1; /* Pushes footer to the bottom if content is short */
    max-width: 1200px;
    width: 100%;
    margin: 20px auto;
    padding: 0 20px;
    gap: 20px; /* Space between columns */
}

/* News Sidebar (Smaller Column) */
.news-sidebar {
    flex: 1; /* Takes up 1 part of the space */
    background-color: #c4d4e4;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.news-sidebar h2 {
    color: #2c3e50;
    padding-bottom: 10px;
    margin-bottom: 15px;
    margin-top: 8px;
    font-size: 1.30rem;
    clear: both; text-align: left;  padding: 2px 0px 8px; border-bottom: 1px solid #90a0b0;
}

.news-item {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #9ab;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item h3 {
    font-size: 1.05rem;
    color: #3080d0;
}

.news-item p {
    font-size: 0.95rem;
}

/* Main Content (Bigger Column) */
.main-content {
    flex: 3; /* Takes up 3 parts of the space (3x wider than sidebar) */
    background-color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.main-content h2 {
    clear: both; 
    color: #3070c0;
    margin-bottom: 12px;
    margin-top: 8px;
    font-size: 1.30rem;
    text-align: left; padding: 2px 4px 2px; 
    border-bottom: 1px solid #cde;
}

.main-content p {
    margin-bottom: 35px;
}

.main-content h1 {
    font-size: 1.85rem;
    margin-bottom: 8px;
}

.main-content img {clear:both; float:left; margin:3px 10px 12px 0; padding:1px; }

/* Footer Styles */
footer {
    background: #c0d0e0 url("img/bkgstars.jpg") repeat;
    color: #ffffff;
    text-align: center;
    padding: 11px;
    margin-top: auto; /* Ensures footer stays at bottom */
    font-size: 0.9rem;
}

footer a {
  color: #ffffff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive Design for Mobile Devices */
@media (max-width: 768px) {
    .container {
        flex-direction: column; /* Stack columns vertically on small screens */
    }
    
    .news-sidebar {
        order: 2; /* Puts news below main content on mobile, or remove to keep it on top */
    }
}