/* =========================================================
   GLOBAL RESET + MOBILE SAFETY
   ========================================================= */
* {
    box-sizing: border-box;
}

.layout > * {
    min-width: 0;
}

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

/* Prevent horizontal scroll from any element */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

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

/* =========================================================
   GLOBAL NEWSPAPER STYLE
   ========================================================= */
body {
    font-family: "Georgia", "Times New Roman", serif;
    background-color: #f4f1ea;
    color: #111;
    line-height: 1.6;
    font-size: clamp(16px, 1.2vw, 18px);   
}


/* =========================================================
   HEADER / MASTHEAD
   ========================================================= */
header {
    text-align: center;
    padding: 20px 10px 10px;
}

.masthead {
    font-family: "Playfair Display", serif;
    font-weight: 900;
    font-size: clamp(32px, 6vw, 60px);
    letter-spacing: 1px;
}

.signature {
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-size: 16px;
    margin-top: 5px;
}

/* Top bar (date / volume etc.) */
.top-bar {
    font-size: 14px;
    text-align: center;
    border-bottom: 1px solid #ccc;
    padding-bottom: 8px;
    margin-bottom: 10px;
}


/* =========================================================
   NAVIGATION BAR
   ========================================================= */
nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* KEY FIX for mobile */
    gap: 10px;
    padding: 10px;
    border-bottom: 2px solid #000;
}

nav a {
    text-decoration: none;
    color: #111;
    font-weight: bold;
    font-size: 14px;
    padding: 5px 10px;
    white-space: nowrap;
}

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


/* =========================================================
   MAIN LAYOUT / GRID
   ========================================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 10px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* RESPONSIVE GRID FIX */
@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.pdf-container {
    width: 100%;
    margin: 30px 0;
}

.pdf-viewer {
    width: 100%;
    height: 900px;
    border: 2px solid #111;
    background: #fff;
}

.pdf-controls {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.pdf-btn {
    display: inline-block;
    padding: 10px 18px;
    background: #111;
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
}

.pdf-btn:hover {
    background: #444;
}
/* =========================================================
   ARTICLE STYLING
   ========================================================= */
article {
    background: transparent;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

article h2 {
    font-family: "Playfair Display", serif;
    font-size: 22px;
    margin-bottom: 5px;
}

article p {
    margin: 0;
}

article .preview {
    margin-top: 6px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #222;
}


/* =========================================================
   IMAGES
   ========================================================= */

/* ARTICLE */
.article {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Scrollable image window */
.poll-window {
    width: 100%;
    max-width: 100%;
    height: 350px;
    overflow: auto;
    border: 2px solid #111;
    position: relative;
}

/* FORCE image to ignore responsive scaling */
.poll-window img {
    width: 3250px !important;
    max-width: none !important;
    height: auto !important;
    display: block;
}


.game-btn{
display:inline-block;
padding:10px 18px;
margin:15px 0;

background:#111;
color:#fff;

text-decoration:none;

border:2px solid #000;

font-family:'Libre Baskerville',serif;

transition:.2s;
}

.game-btn:hover{
transform:translateY(-2px);
}


/* =========================================================
   NEWSPAPER COLUMN LAYOUT
   ========================================================= */

.news-layout {
    column-count: 3;
    column-gap: 30px;
}

/* Keep articles together */
.article {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;

    margin-bottom: 25px;
    display: inline-block;
    width: 100%;
}

/* Responsive layout */
@media (max-width: 900px) {
    .news-layout {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .news-layout {
        column-count: 1;
    }
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    border-top: 1px solid #ccc;
    margin-top: 30px;
}

/* =========================================================
   EXTRA MOBILE TUNING
   ========================================================= */
@media (max-width: 600px) {

    nav {
        gap: 5px;
    }

    nav a {
        font-size: 12px;
        padding: 4px 6px;
    }

    .masthead {
        font-size: 34px;
    }

    article h2 {
        font-size: 18px;
    }
}
