/* news.css — SEAS news listing page (news.php).
   Reuses the page-level layout vocabulary from pages.css and the
   SEAS red/navy palette. Avoids clashes with the homepage news
   section (.news-section in home.css) by scoping rules to
   `.news-listing-section` and `.news-grid`. */

/* News intro */
.news-intro-section {
    padding: 3rem 0 2rem;
    background-color: #ffffff;
}
.news-intro-text {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4b5563;
}

/* News listing */
.news-listing-section {
    padding: 2rem 0 4rem;
    background-color: #f9fafb;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    margin-bottom: 1rem;
}

/* Card — scoped to .news-grid so we don't override homepage .news-item */
.news-grid .news-item {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-grid .news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
}

.news-grid .news-image {
    height: 220px;
    overflow: hidden;
    aspect-ratio: auto; /* override the 16/10 from home.css for the listing */
}
.news-grid .news-image img,
.news-grid .news-image iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    border: 0;
}
.news-grid .news-item:hover .news-image img {
    transform: scale(1.04);
}

.news-grid .news-content {
    padding: 1.4rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-grid .news-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e2a6f; /* SEAS dark navy */
    margin: 0 0 0.75rem;
    line-height: 1.4;
}
.news-grid .news-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.news-grid .news-title a:hover {
    color: #C8102E; /* SEAS red */
}

.news-grid .news-text {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.65;
    margin: 0 0 1.25rem;
    flex-grow: 1;
}

.news-grid .read-more-link {
    display: inline-block;
    color: #C8102E;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 0.25rem 0;
    position: relative;
    transition: color 0.2s ease;
}
.news-grid .read-more-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #C8102E;
    transition: width 0.3s ease;
}
.news-grid .read-more-link:hover { color: #a61729; }
.news-grid .read-more-link:hover::after { width: 100%; }

/* News page banner — full-width hero image at the top */
.news-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.news-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive */
@media (min-width: 768px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid .news-image { height: 200px; }
}
@media (min-width: 1024px) {
    .news-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .news-grid .news-title { font-size: 1.05rem; }
    .news-grid .news-text  { font-size: 0.9rem; }
    .news-intro-text       { padding: 0 1rem; font-size: 1rem; }
}
@media (max-width: 480px) {
    .news-listing-section { padding: 1.5rem 0 3rem; }
    .news-grid { gap: 1.5rem; }
    .news-grid .news-content { padding: 1.1rem; }
    .news-grid .news-image   { height: 200px; }
}
