/* ==========================
   Global Safety
========================== */

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* ==========================
   Base Styles
========================== */

body {
    margin: 0;
    font-family: "Georgia", "Times New Roman", serif;
    color: #222;
    background-color: #f8f9fa;
    line-height: 1.7;
}

/* Container */
.container {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

/* ==========================
   Header with Logo
========================== */

.site-header {
    background-color: #0f2a44;
    padding: 20px;
}

.header-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Logo */
.logo {
    flex: 0 0 auto;
}

.logo img {
    height: 64px;
    width: auto;
}

/* Header text */
.header-text {
    flex: 1 1 auto;
    min-width: 0; /* critical for flex text */
}

.header-text h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.5rem, 2.1vw, 1.95rem);
    line-height: 1.25;
}

.subtitle {
    margin: 4px 0 0;
    color: #e0e0e0;
    font-size: 1rem;
    font-weight: 300;
}

/* ==========================
   Language Switch
========================== */

.language-switch {
    margin-left: auto;          /* push to right on desktop */
    font-size: 0.9em;
    white-space: nowrap;
}

.language-switch a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    margin: 0 4px;
}

.language-switch a:hover {
    text-decoration: underline;
}

/* Desktop: force title one line */
@media (min-width: 1024px) {
    .header-text h1 {
        white-space: nowrap;
    }
}

/* Mobile header */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .logo img {
        height: 56px;
    }

    .header-text h1 {
        white-space: normal;
        font-size: 1.4rem;
    }

    .language-switch {
        margin-left: 0;
        margin-top: 10px;
        font-size: 0.95em;
    }
}

/* ==========================
   Navigation
========================== */

nav {
    background-color: #ffffff;
    border-bottom: 1px solid #ddd;
}

nav .container {
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #0f2a44;
    font-weight: 600;
    padding: 10px 0;
}

nav a:hover {
    border-bottom: 2px solid #0f2a44;
}

@media (max-width: 600px) {
    nav .container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* ==========================
   Sections
========================== */

section {
    margin: 50px 0;
}

section h2 {
    color: #0f2a44;
    border-bottom: 2px solid #0f2a44;
    display: inline-block;
    padding-bottom: 5px;
}

section a {
    color: #0f2a44;
    text-decoration: none;
    font-weight: 600;
}

section a:hover {
    text-decoration: underline;
}

/* Lists */
ul {
    padding-left: 20px;
}

ul li {
    margin-bottom: 8px;
}

/* ==========================
   Hero Image Slider (Single, Clean)
========================== */

.slider {
    width: 100%;
    height: 420px;
    overflow: hidden;
    position: relative;
    background-color: #000;
}

.slides {
    display: flex;
    height: 100%;
    transition: transform 1.6s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    background-size: cover;
    background-position: center;
}

/* Overlay */
.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

@media (max-width: 768px) {
    .slider {
        height: 280px;
    }
}

/* ==========================
   News Layout
========================== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.news-card {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.news-card:hover {
    transform: translateY(-4px);
}

.news-card img {
    width: 100%;
    height: auto;
    display: block;
}

.news-info {
    padding: 15px;
}

.news-info h3 {
    margin: 0 0 5px;
    font-size: 1.1em;
}

.news-info a {
    text-decoration: none;
    color: #0f2a44;
}

.news-date {
    font-size: 0.9em;
    color: #666;
}

/* Posters on full news page */
.poster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.poster-grid img {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
}

.poster-grid figcaption {
    text-align: center;
    margin-top: 8px;
    font-size: 0.9em;
    color: #555;
}

/* ==========================
   Footer
========================== */

footer {
    background-color: #0f2a44;
    color: #ffffff;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
}
