/*
Theme Name: Custom Newspaper Theme
Description: A newspaper-style layout with a hamburger menu.
Author: You
Version: 1.0
*/

/* --- Typography & Basics --- */
body {
    font-family: 'Merriweather', Georgia, serif;
    background-color: #f9f9f7; /* Slight off-white paper feel */
    color: #111;
    margin: 0;
    padding: 0;
}

img, video {
    max-width: 100%;
    height: auto;
}

/* --- Header & Hamburger Menu --- */
.site-header {
    border-bottom: 4px solid #111;
    border-top: 1px solid #111;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    text-align: center;
    flex-grow: 1;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1000;
}

/* Slide-out Menu */
.site-navigation {
    position: fixed;
    top: 0;
    left: -350px;
    width: 300px;
    height: 100vh;
    background: #111;
    color: #fff;
    padding: 80px 20px 20px;
    transition: left 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}

.site-navigation.toggled {
    left: 0;
}

.site-navigation ul {
    list-style: none;
    padding: 0;
}

.site-navigation a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

/* Expandable Submenus */
.menu-item-has-children > a::after {
    content: ' +';
    float: right;
}
.menu-item-has-children.open > a::after {
    content: ' -';
}
.sub-menu {
    display: none;
    padding-left: 20px !important;
}
.menu-item-has-children.open > .sub-menu {
    display: block;
}

/* --- Newspaper Grid Layout --- */
.site-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.newspaper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Make the newest/first post span multiple columns like a headline */
.newspaper-grid .article:first-child {
    grid-column: 1 / -1;
    border-bottom: 2px solid #111;
    padding-bottom: 20px;
    margin-bottom: 10px;
}

.article-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    line-height: 1.1;
    margin: 10px 0;
}

.article-content {
    font-size: 0.95rem;
    line-height: 1.6;
}
/* --- Text Wrapping & Size Fix for Latest Post --- */

/* Clear the float so the next row doesn't break */
.newspaper-grid .article:first-child::after {
    content: "";
    display: table;
    clear: both;
}

/* Float the image and restrict its size */
.newspaper-grid .article:first-child .article-media {
    float: left;            /* Pushes the image to the left so text wraps right */
    width: 45%;             /* Prevents the image from taking up the whole screen */
    max-width: 600px;       /* Puts a hard cap on the size on extra-large screens */
    margin-right: 30px;     /* Creates a gap between the image and the text */
    margin-bottom: 15px;    /* Prevents text from crowding the bottom */
}

/* Remove top margin from the header so it aligns neatly with the top of the image */
.newspaper-grid .article:first-child .article-header h2 {
    margin-top: 0;
}
/* --- Custom Logo Styling --- */
.site-logo-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-logo {
    max-height: 100px; /* Change this number to make the logo larger or smaller */
    width: auto;
}
/* --- Category Ticker --- */
.category-ticker {
    border-top: 1px solid #111;
    border-bottom: 2px solid #111; /* Thicker bottom border for a newspaper feel */
    margin-bottom: 30px;
    padding: 10px 0;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.category-list li a {
    text-decoration: none;
    color: #111;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    transition: color 0.2s ease;
}

.category-list li a:hover {
    color: #666;
}
/* --- Category Page Header --- */
.category-page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 4px double #111; /* Classic double line border */
}

.category-page-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 10px 0;
}

.category-page-description {
    font-style: italic;
    color: #444;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Style the pagination links */
.navigation.pagination {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid #ccc;
    padding-top: 20px;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    font-weight: bold;
}
/* --- Standard Page Layout --- */
.site-main-page {
    max-width: 800px; /* Keeps text at a comfortable reading width */
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

.page-header {
    text-align: center;
    border-bottom: 4px double #111; /* Classic newspaper double line */
    margin-bottom: 40px;
    padding-bottom: 20px;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Ensure any images placed inside pages don't break the layout */
.entry-content img, 
.entry-content figure {
    max-width: 100%;
    height: auto;
}