/* Modern Reset and Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #5d5c61;         /* Softer dark gray */
    --secondary-color: #938e94;       /* Muted purple-gray */
    --accent-color: #b1a296;          /* Warm beige accent */
    --text-color: #333;
    --light-gray: #ffffff;            /* White background */
    --medium-gray: #d1d1d1;           /* Darker border color */
    --dark-gray: #666;                /* Darker gray for text */
    --white: #ffffff;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --card-bg: #fff;                  /* Card background */
    --header-bg: #f5f5f5;             /* Light header background */
    --link-color: #337ab7;            /* Bootstrap-style link blue */
}

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Summary label style */
.summary-label {
    font-weight: bold;
    color: var(--primary-color);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
    padding: 0;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.news-container {
    max-width: 920px;
    width: 100%;
    margin: 0 auto;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    border: 1px solid #c0c0c0; /* Added darker border for the main container */
    overflow: hidden;
    padding: 0;
}

.news-header {
    background: var(--header-bg);
    color: var(--primary-color);
    padding: 3px; /*2rem 1.5rem;*/
    text-align: center;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--medium-gray);
}

.news-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.news-header h1 {
    text-align: center;
    font-size: 24px; /*2.2em;*/
    margin-bottom: 8px;
    font-weight: 300;
    color: var(--link-color);
}

.news-header h1 span {
    font-weight: 600;
    color: var(--accent-color);
}

.news-subtitle {
    font-size: 12px; /*.4em;*/
    font-style: italic;
    letter-spacing: 0.5px;
    color: var(--primary-color);
    margin: 0.5rem 0 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.news-header p {
    font-size: 12px; /*1.1em;*/
    opacity: 0.9;
}

.news-date {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
    color: var(--dark-gray);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    width: 100%;
}

.news-item {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--medium-gray);
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-content {
    padding: 10px 1.5rem 1.5rem; /* Reduced top padding */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-title {
    font-size: 1.5em;
    margin-bottom: 12px;
    margin-top: 0px;
    line-height: 1.4;
    font-weight: 500;
    color: var(--link-color);
}

.news-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: var(--accent-color);
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--medium-gray);
    line-height: 1.4;
}

.news-summary {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex-grow: 1;
    font-size: 1.2rem;
}

.news-summary p {
    margin-bottom: 1rem;
}

.news-summary p:last-child {
    margin-bottom: 0;
}

.news-summary .summary-label {
    font-weight: bold;
    color: var(--primary-color);
}

.read-more {
    /* Style changed to be a simple hyperlink */
    color: var(--link-color); /* Standard blue, adjust if a specific blue from the header is intended */
    text-decoration: underline;
    font-size: 11px;
    font-weight: normal;
    background: none;
    padding: 0;
    border: none;
    box-shadow: none;
    cursor: pointer;
    margin-top: auto; /* This keeps it at the bottom of the card */
    text-align: left;
    justify-content: flex-start;
}

.read-more:hover {
    text-decoration: none; /* Common practice for links on hover */
    background: none;
    transform: none;
    box-shadow: none;
}

.leaving-site-notice {
    text-decoration: none;
    font-size: 11px;
    color: var(--text-color); /* Matches surrounding text color */
    margin-left: 5px;
    font-weight: normal;
    background: none;
    padding: 0;
    border: none;
}

.news-footer {
    text-align: center;
    padding: 15px 10px;
    color: #666;
    font-size: 1em;
    border-top: 1px solid var(--medium-gray);
    margin: 0px 0 0;
}

.news-footer .news-disclaimer {
    font-size: 1em;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Print styles */
@media print {
    .news-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .read-more {
        display: none;
    }
}

/* Responsive Design */
@media (max-width: 904px) {  /*1200px) {*/
    .news-container {
        border-radius: 0;
        max-width: 904px; /*100%;*/
    }
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        padding: 1.25rem;
    }
    
    .news-header {
        padding: 2rem 1.5rem;
    }
    
    .news-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1rem;
    }
    
    .news-header {
        padding: 1.75rem 1.25rem;
    }
    
    .news-header h1 {
        font-size: 1.75rem;
    }
    
    .news-content {
        padding: 1.25rem;
    }
    
    .news-footer {
        font-size: 1.5em;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .news-header {
        padding: 1.5rem 1rem;
    }
    
    .news-header h1 {
        font-size: 1.5rem;
    }
    
    .news-header p {
        font-size: 1rem;
    }
    
    .news-grid {
        padding: 0.75rem;
        gap: 1rem;
    }
    
    .news-item {
        border-radius: 8px;
    }
    
    .read-more {
        width: 100%;
        padding: 0; /* remove padding for mobile */
    }
    
    .news-footer {
        font-size: 1.2em;
        padding: 10px;
    }
}