/*
Theme Name:   Astra Child
Theme URI:    https://devdynamic.com.au
Description:  Diggers Club child theme for Astra.
Author:       DevDynamic
Author URI:   https://devdynamic.com.au
Template:     astra
Version:      1.0.0
Text Domain:  astra-child
*/

/* Header builder: give all flexible space to the centre (navigation) column.
   Default Astra uses 1fr auto 1fr, which allocates an equal 1fr to the right
   column even though it only holds a small icon, squeezing the navigation.
   Switching left and right to auto lets them shrink-wrap their content and
   gives the centre nav the full remaining width. */
/* .ast-primary-header-bar .ast-builder-grid-row.ast-grid-center-col-layout {
	grid-template-columns: auto 1fr auto;
} */

/* News page */
.club-news-container {
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* News page – Search */
.news-search-form {
	display: flex;
	gap: 0.5rem;
	margin: 1.5rem 0;
}

.news-search-input {
	flex: 1;
	padding: 0.6rem 0.75rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1rem;
}

.news-search-button {
	padding: 0.6rem 1.25rem;
	border: none;
	border-radius: 4px;
	background: #333;
	color: #fff;
	font-size: 1rem;
	cursor: pointer;
}

.news-search-button:hover {
	background: #555;
}

.news-search-results {
	margin-bottom: 1rem;
	color: #555;
}

/* News page – Read More link */
.news-read-more {
	display: inline-block;
	margin-top: 0.5em;
	font-weight: 600;
	text-decoration: none;
}

.news-read-more:hover {
	text-decoration: underline;
}

.news-year-heading {
    border-bottom: 2px solid #your-club-colour;
    padding-bottom: 0.5rem;
    margin-top: 2.5rem;
}

.news-year-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.news-post {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1.25rem;
}

.news-post-title a {
    text-decoration: none;
    color: inherit;
}

.news-post-date {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

/* News page – Pagination */
.news-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.news-pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    text-decoration: none;
    font-weight: 600;
    color: #333;
}

.news-pagination .page-numbers:hover {
    background: #f5f5f5;
}

.news-pagination .page-numbers.current {
    background: #333;
    color: #fff;
    border-color: #333;
}