.container {
    width: 100%;
    margin: 0 auto;
}

/* HERO */
.category-hero {
    position: relative;
    width: 100%;
    height: 300px;
    background: url('https://londonbulletin.ca/wp-content/uploads/2025/04/HeaderLondon.jpg') center center / cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    color: white;
}

.category-hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.category-hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.category-hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.category-hero form.searchform {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.category-hero form input[type="text"] {
    padding: 10px;
    width: 250px;
    border-radius: 0px;
    border: none;
}

.category-hero form input[type="submit"] {
    padding: 10px 10px;
    background: var(--accent, #0073aa);
    border: none;
    color: white;
    border-radius: 0px;
}

/* MAIN CONTENT */
.category-content {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.content-main {
    flex: 1 1 65%;
}

.content-sidebar {
    flex: 1 1 30%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* GRID BLOCK (2-COL) */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 60px;
}

/* INFINITE SCROLL (3-COL) */
.infinite-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

/* POST BLOCK SHARED */
.grid-post-image img,
.sidebar-post-image img,
.main-post-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.main-post-title,
.sidebar-post-title,
.grid-post-title {
    font-size: 22px;
    margin: 0px 0;
	margin-bottom:10px;
}

.post-meta-line {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    LINE-HEIGHT: 11PX;
    MARGIN-TOP: 10PX;
    MARGIN-BOTTOM: 10PX;
}

	.post-category{
		font-size:16px;
		font-weight:bold;
		text-transform:uppercase;
	}
	
.post-category a {
    color: var(--accent, #0073aa);
    text-decoration: none;
	
}

.post-category a:hover {
    text-decoration: underline;
}



.grid-post-title a,
.sidebar-post-title a,
.main-post-title a {
    color: black;
    text-decoration: none;
}

.grid-post-title a:hover,
.sidebar-post-title a:hover,
.main-post-title a:hover {
    text-decoration: underline;
}

.grid-post-image img,
.sidebar-post-image img,
.main-post-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
}

.main-post-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}




#no-more-posts {
    font-size: 16px;
    color: #777;
}

/* RESPONSIVE FIXES */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: 1fr;
    }

    .infinite-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .category-hero {
        height: 200px;
    }

    .category-hero h1 {
        font-size: 30px;
    }

    .infinite-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .category-hero form input[type="text"] {
        width: 100%;
    }

    .category-hero form.searchform {
        flex-direction: column;
        align-items: center;
    }
}



@media (max-width: 768px) {
    .grid-post-image,
    .sidebar-post-image,
    .main-post-image {
        aspect-ratio: 1 / 1;
        overflow: hidden;
    }
	
	    .grid-post-image img,
    .sidebar-post-image img,
    .main-post-image img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: center;
    }
}

}

	@media (max-width: 768px) {
    /* Existing adjustments */
    .category-hero {
        height: 200px;
    }

    .category-hero h1 {
        font-size: 30px;
    }

    .infinite-grid {
        grid-template-columns: 1fr;
    }



    .main-post-title,
    .sidebar-post-title,
    .grid-post-title {
        margin-top: 0;
    }

    /* NEW: Sidebar posts inline layout */
    .sidebar-post {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .sidebar-post-image {
        flex: 0 0 90px; /* fixed width for image */
    }

    .sidebar-post-image img {
        width: 90px;
        height: 90px;
        object-fit: cover;
        border-radius: 0px; /* optional nice rounded corners */
    }

    .sidebar-post-content {
        flex: 1;
    }

    .sidebar-post-title {
        font-size: 16px;
        line-height: 1.2;
    }
}
	
	@media (max-width: 768px) {
    /* Existing mobile settings... */

    .main-post-title {
        line-height: 24px;
    }
		
		.grid-post-title{
			        line-height: 24px;
		}
}


.category-hero-inner {
    max-width: 1200px; /* Match your page container width */
    margin: 0 auto; /* Center this inside the page */
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
	 position: relative;
    z-index: 2;
}

.category-hero-inner h1 {
    font-size: 60px;
    margin-bottom: 20px;
}

.category-hero-inner .search-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-hero-inner .search-box input,
.category-hero-inner .search-box button {
    border-radius: 0;
}

.category-hero-inner .search-box input {
    width: 100px;
    max-width: 100%;
}

@media (max-width: 768px) {
    .category-hero-inner {
        align-items: center;
        text-align: center;
    }

    .category-hero-inner .search-box {
        flex-direction: row; /* 👈 STAY inline */
        justify-content: center; /* center them horizontally */
        align-items: center;
        flex-wrap: nowrap; /* 👈 prevent wrapping */
        width: 100%;
    }

    .category-hero-inner .search-box input[type="text"] {
        width: 65%; /* 👈 make input shrink to about 65% */
        min-width: 0; /* important for flexbox */
    }

    .category-hero-inner .search-box input[type="submit"],
    .category-hero-inner .search-box button {
        width: auto;
        flex-shrink: 0; /* prevent button from shrinking too much */
        padding: 8px 12px; /* a bit smaller padding for button */
    }
}


@media (max-width: 768px) {
    .category-hero-inner h1 {
        font-size: 32px; /* 👈 shrink it for mobile */
        line-height: 1.2; /* optional: tighter line spacing */
        margin-bottom: 15px; /* optional: slightly closer to search box */
    }
}

.site-footer {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background-color: #f9f9f9;
    padding: 0px 20px;
    text-align: center;
    font-size: 16px;
    color: #555;
    position: relative;
	max-width: none !important;
}

/* Break out the internal container inside the footer */
.site-footer .grid-container, 
.site-footer .grid-parent {

    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 auto !important;
}

/* Center footer content */
.inside-footer {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}
	
	


