/* Reset & Variables */
:root {
    --primary-color: #d4af37; /* Gold */
    --bg-color: #333333; /* Lighter Black / Dark Grey */
    --card-bg: #404040; /* New variable for content cards */
    --header-bg: #2b2b2b; /* New variable for header */
    --text-color: #e0e0e0;
    --font-main: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --header-height: 80px;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Shared Header/Footer (Load via JS or copy-paste, we'll copy-paste for static simplicity) */

/* Header */
.site-header {
    background-color: var(--header-bg); /* Use variable */
    /* ... rest same ... */
}

/* Page Headers */
.page-header {
    height: 400px;
    background-color: var(--card-bg); /* Use variable */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('../images/film-pattern.png');
    background-size: cover;
    background-position: center;
    position: relative;
    margin-top: 80px; /* Offset fixed header */
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4); /* Lighter overlay (was 0.7) */
}

.page-title {
    position: relative;
    z-index: 1;
    font-size: 3rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Section Styling */
.content-section {
    padding: 80px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.content-block {
    margin-bottom: 60px;
}

.content-block h2 {
    color: #fff;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Figures Grid - 5 columns for desktop, responsive */
.figures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); /* Adjusted width to fit 5 cols on standard screens */
    gap: 20px;
}

/* Ensure figure items have proper aspect ratio and no overflow */
.figure-item {
    aspect-ratio: 3/4;
    overflow: hidden;
    position: relative;
    background: var(--card-bg);
}

.figure-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Removes bottom space */
}

/* Figure Name Overlay */
.figure-name {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Awards List Detail */
.award-category {
    margin-bottom: 40px;
}

.award-category h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.award-list-item {
    border-bottom: 1px solid #555;
    padding: 10px 0;
    color: #ccc;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.award-list-item span:first-child {
    white-space: nowrap;
}

.award-list-item span:last-child {
    text-align: right;
}

/* Anchor offset for fixed header */
.anchor-offset {
    scroll-margin-top: 100px;
}

/* News List Styling */
.news-list-container {
    max-width: 1000px; /* Widened for horizontal layout */
    margin: 0 auto;
    padding-top: 50px;
}

.news-article.horizontal-layout {
    display: flex;
    background: var(--card-bg);
    margin-bottom: 30px;
    border-left: 3px solid var(--primary-color);
    height: 200px;
    overflow: hidden;
    transition: transform 0.3s;
}

.news-article.horizontal-layout:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.news-img-col {
    width: 300px;
    min-width: 300px;
    height: 100%;
}

.news-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content-col {
    padding: 20px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.news-title {
    color: var(--primary-color);
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    line-height: 1.3;
}

.news-excerpt {
    color: #ccc;
    line-height: 1.6;
    font-size: 0.95rem;
    flex: 1;
    overflow: hidden;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: bold;
}

/* Pagination Buttons */
#pagination button {
    background: #333;
    color: #fff;
    border: none;
    padding: 8px 15px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 4px;
}
#pagination button:hover {
    background: var(--primary-color);
    color: #000;
}

/* Responsive News */
@media (max-width: 768px) {
    .news-article.horizontal-layout {
        flex-direction: column;
        height: auto;
    }
    .news-img-col {
        width: 100%;
        height: 200px;
    }
}
