/* News Page Styles – AWT palette: off-white bg, charcoal/earth accents */

.news-page {
    min-height: calc(100vh - 80px);
    padding-top: 100px;
    padding-bottom: 4rem;
    background: var(--color-off-white);
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.page-description {
    font-size: 1.125rem;
    color: var(--color-muted);
    max-width: 600px;
    margin: 0 auto;
}

.news-posts {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.news-post {
    background: var(--background-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-medium);
    transition: box-shadow 0.3s ease;
}

.news-post:hover {
    box-shadow: var(--shadow-heavy);
}

.news-post-header {
    margin-bottom: 1.5rem;
}

.news-post-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.news-post-date {
    font-size: 0.9375rem;
    color: var(--color-muted);
}

.news-post-content {
    color: var(--text-on-light-soft);
    line-height: 1.8;
    font-size: 1.0625rem;
    margin-bottom: 1.5rem;
}

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

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

.news-post-media-container {
    margin: 2rem 0;
}

/* Single image: nice medium size */
.news-post-media-container:not(.scrollable) .news-post-media-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Multiple images: smaller gallery style */
.news-post-media-container.scrollable {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-olive) transparent;
}

.news-post-media-container.scrollable::-webkit-scrollbar {
    height: 8px;
}

.news-post-media-container.scrollable::-webkit-scrollbar-track {
    background: transparent;
}

.news-post-media-container.scrollable::-webkit-scrollbar-thumb {
    background: var(--color-olive);
    border-radius: 4px;
}

.news-post-media-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    flex: 0 0 auto;
    width: 100%;
    max-width: 800px;
}

.news-post-media-item {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-post-media-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.news-post-media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.news-post-media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

/* Single image - larger but constrained */
.news-post-media-container:not(.scrollable) .news-post-media-item {
    aspect-ratio: 4/3;
    max-width: 100%;
}

.news-post-media-container:not(.scrollable) .news-post-media-item img,
.news-post-media-container:not(.scrollable) .news-post-media-item video {
    object-fit: contain;
    background: var(--color-off-white);
}

/* Multiple images - smaller gallery thumbnails */
.news-post-media-container.scrollable .news-post-media-group {
    max-width: 800px;
}

/* Responsive: 2 columns on tablets, 1 on mobile */
@media (max-width: 768px) {
    .news-post-media-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .news-post-media-container:not(.scrollable) .news-post-media-group {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .news-post-media-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

.news-loading,
.news-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--color-muted);
    font-size: 1.125rem;
}

.news-empty {
    background: var(--background-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-medium);
}

/* Header – deep charcoal (AWT) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-charcoal);
    z-index: 1000;
    height: 80px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-logo .logo {
    height: 40px;
    width: auto;
}

.logo-text {
    color: var(--color-off-white);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-family);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--color-off-white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-earth);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: var(--color-off-white);
    transition: 0.3s;
}

/* Footer – charcoal */
.footer {
    background: var(--color-charcoal);
    color: var(--color-off-white);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-text {
    color: var(--color-muted);
    font-size: 0.9375rem;
}

/* Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .news-post {
        padding: 1.5rem;
    }
    
    .news-post-title {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--color-charcoal);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}
