/* --- General Reset & Body --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    color: #333;
}

/* --- Header & Masthead --- */
.main-header {
    text-align: center;
    padding: 20px 0;
    background-color: #fafafa;
    /* Ensuring the black line is very visible */
    border-bottom: 2px solid #000000; 
}

.masthead-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: center;
}

.masthead-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    max-height: 400px;
    object-fit: cover;
}

.dashboard-title {
    font-size: 3rem;
    margin: 20px 0;
    color: #222;
}

/* --- Dashboard Layout (Full Width Fix) --- */
.dashboard-container {
    display: flex; 
    width: 100%; /* Takes up the full width of the screen */
    min-height: 100vh;
    justify-content: flex-start; /* Anchors everything to the left margin */
}

/* --- Navigation Sidebar --- */
.nav-bar {
    width: 250px;
    flex-shrink: 0;
    background-color: #e6e6e6;
    padding: 30px 20px;
    border-right: 2px solid #000000; /* Anchors the divider to the sidebar */
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
}

.nav-bar h2 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: #333;
    text-align: left;
    border-bottom: 1px solid #000000;
    padding-bottom: 10px;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.nav-links li a {
    text-decoration: none;
    color: #0056b3 !important; /* Force the blue color */
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.nav-links li a:hover {
    color: #003d80 !important;
    text-decoration: underline;
}

/* --- Main Content Area --- */
main {
    flex: 1;
    padding: 30px;
    background-color: #f5f5f5;
}

/* --- Grid Container --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    max-width: 1200px; /* The news grid stays centered in the main area */
    margin: 0 auto;    /* Centers the grid within the main content space */
}

/* --- Card Styles --- */
.card {
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333333;
    border-bottom: 1px solid #000000; /* Black line for card titles */
    padding-bottom: 10px;
    font-size: 1.2rem;
}

.card p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.card p a {
    color: #0056b3 !important; /* Force the blue color */
    font-weight: bold;
    text-decoration: none;
}

.card p a:hover {
    color: #003d80 !important;
    text-decoration: underline;
}

/* --- Footer Styles --- */
.main-footer {
    padding: 20px 50px; 
    text-align: left; 
    border-top: 1px solid #000000;
    background-color: #e6e6e6;
    width: 100%; /* Ensures footer spans the full width */
}

.main-footer p {
    margin: 0;
    color: #333;
    font-weight: bold;
}