.news-container {
    width: 100%;
}

.ticker-header {
    background-color: #c0c0c0;
    border: 3px outset #ffffff;
    padding: 8px;
    margin: 0 auto 40px auto; /* Centers the header */
    width: 95%;      
    max-width: 800px; 
    box-sizing: border-box;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.ticker-display {
    background-color: #000;
    border: 4px inset #808080;
    padding: 12px 0;
    overflow: hidden; 
    position: relative;
    white-space: nowrap;
}

.ticker-text {
    display: inline-block;
    font-family: "Courier New", Courier, monospace;
    font-size: 16pt;
    font-weight: bold;
    color: #33ff33; /* Pure Terminal Green */
    padding-left: 100%; /* Starts off-screen to the right */
    animation: master-ticker 55s linear infinite;
}

.ticker-display::after {
    content: " ";
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

@keyframes master-ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); } /* Adjust to -200% if text cuts off too early */
}

.news-entry {
    margin: 0 auto 50px auto; 
    width: 95%;
    max-width: 800px; 
    
    background-color: #d0d0d0; 
    border: 3px inset #ffffff;
    overflow: hidden;
    box-sizing: border-box;
}

.news-header {
    background-color: #000080; /* Windows Navy */
    color: white;
    padding: 8px 15px;
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
    font-size: 1rem;
    border-bottom: 2px solid #fff;
    
    /* Flex to push date to the right */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-date {
    color: #ffff00;
}

.news-content {
    display: flex;
    flex-direction: column;
    padding: 15px;
    gap: 15px;
}

.news-hero-img {
    display: block;
    
    /* Width Controls */
    width: 100%;       /* Tries to fill the space... */
    max-width: 600px;  /* ...but stops growing at 600px */
    
    /* Height Controls */
    height: auto;      /* Maintains aspect ratio */
    max-height: 400px; /* Cuts off if taller than 400px */
    
    object-fit: cover; /* Ensures the image fills the box without stretching */
    margin: 0 auto;    /* CENTERS the image if it's smaller than the container */
    
    border: 4px inset #808080; 
    background-color: #000;    
    box-sizing: border-box;
}

.news-body {
    padding: 0 5px;
}

.news-body h3 {
    margin-top: 5px;
    margin-bottom: 10px;
    font-size: 1.4rem;
    font-family: Arial, sans-serif;
    color: #000;
    text-transform: uppercase;
    border-bottom: 1px solid #808080;
    padding-bottom: 5px;
}

.news-body p {
    font-size: 1rem;
    line-height: 1.6;
    color: #202020;
    margin-bottom: 0;
}

.layout-table {
    width: 95%;
    max-width: 1000px; /* This ensures the white area doesn't exceed the ticker */
    margin: 0 auto;  /* Centers the entire page on the screen */
    table-layout: fixed;
}

.main-content {
    background-color: #ffffff; /* This is the white area you're seeing */
    padding: 20px;
    border: 1px solid #808080; /* Optional: adds a slight border to define the edge */
    box-sizing: border-box;
}