/*
Theme Name:     Escope
Theme URI:
Description:    Astra child theme.
Author:         Me
Author URI:
Template:       astra
Version:        0.1.0
*/


/*
 * ---------------------------------------------------------------------------------------------------------------------
 * Theme Overrides
 * =====================================================================================================================
 */

:root {
	--clr-blue-heading: #1B5889;
	--clr-ages-blue: #01a0e1;
	--clr-light-grey: #EDEDED;
	--clr-black: #000000;
	--clr-white: #ffffff;

	--fw-regular: 400;
	--fw-medium: 500;
	--fw-semibold: 600;
	--fw-bold: 700;

	--ff-font: "Montserrat", sans-serif;
	font-optical-sizing: auto;
}


h1,
h2,
h3,
h4,
h5,
h6,
p,
li {
	font-family: var(--ff-font) !important;
	font-optical-sizing: auto;
}

.menu-item {
	display: inline-block !important;
}

.ast-container {
	max-width: 1280px !important;
	width: 100%;
	margin: 0 auto;
}


/*.ast-container .escope-hero {
    background-image: url('https://escope.ages.com.au/wp-content/uploads/2025/05/escope-banner-001.avif');
    background-position: center;
    background-size: cover;
    !*min-height: 481px;*!
    min-height: 330px;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding-left: var(--ast-container-spacing);
    padding-right: var(--ast-container-spacing);
}

.escope-hero .ast-container {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: inherit;
}


img.escope-logo-img {
    width: 50%;
    height: auto;
}*/


.escope-hero {
	background-image: url('https://escope.ages.com.au/wp-content/uploads/2025/05/escope-banner-001.avif');
	background-position: center;
	background-size: cover;
	min-height: 330px;
	width: 100vw;
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);
	position: relative;
}

.escope-hero .ast-container {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: inherit;
	max-width: 1200px; /* or whatever your content width should be */
	margin: 0 auto;
}

img.escope-logo-img {
	width: 50%;
	height: auto;
}



.escope-container {
	display: flex;
	flex-direction: row;
	gap: 2rem;
}

.escope-sidebar {
	background-color: var(--clr-light-grey);
	padding: 1em;
}


.escope-site-title {
	color: var(--clr-black);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-weight: var(--fw-semibold);
	padding: 20px 20px 0 20px;
	font-size: 1.5rem;
	line-height: calc(2 / 1.5);
	margin-bottom: 0;
}

.fl-builder-content .uabb-button-center {
	text-align: left !important;
}

.uabb-heading,
.fl-heading-text {
	color: var(--clr-blue-heading);
	font-weight: var(--fw-bold);
	font-size: 3rem;
	line-height: 1.2;
}

.issues-dropdown-container label {
	font-family: var(--ff-font) !important;
	color: var(--clr-blue-heading);
	font-weight: var(--fw-medium);
	font-size: 1.125rem;
	line-height: calc(1.75 / 1.125);
}

.article-navigation hr {
	margin-top: 1em;
}

.article-navigation {
	text-align: center;
}
.article-navigation .article-title {
	color: var(--clr-black) !important;
	font-weight: var(--fw-semibold) !important;
	font-size: 1rem !important;
	line-height: calc(1.5 / 1) !important;
}


.uabb-infobox .uabb-infobox-title-prefix {
	color: var(--clr-blue-heading);
	font-weight: var(--fw-semibold);
	font-size: 2.25rem;
	line-height: calc(2.5 / 2.25);
}
.uabb-infobox .uabb-infobox-title {
	color: var(--clr-blue-heading);
	font-weight: var(--fw-semibold);
	font-size: 1.5rem;
	line-height: calc(2 / 1.5);
}
.uabb-infobox .uabb-infobox-text p,
.uabb-infobox .uabb-infobox-text li,
.fl-rich-text p,
.fl-rich-text li {
	color: var(--clr-black);
	font-size: 1.125rem !important;
	line-height: calc(1.75 / 1.125) !important;
	font-weight: var(--fw-regular) !important;
}

a.uabb-button {
	background-color: var(--clr-blue-heading) !important;
	padding: 0.5em 1em !important;

}
.uabb-button-text {
	color: var(--clr-white);
	font-weight: var(--fw-semibold);
	font-size: 1.25rem !important;
	line-height: calc(1.75 / 1.25) !important;
}




/*
 * ---------------------------------------------------------------------------------------------------------------------
 * Multisite Main site Front page
 * =====================================================================================================================
 */


.other-issues-section {
	margin-top: 3rem;
}

.issues-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.5rem;
	margin-top: 1rem;
}

.issue-card {
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	transition: transform 0.2s;
}

.issue-card:hover {
	transform: translateY(-2px);
}

.issue-image {
	height: 200px;
	background-size: cover;
	background-position: center;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.issue-image.no-image {
	background-color: #f0f0f0;
}

.issue-title-overlay h3 {
	color: white;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
	text-align: center;
	margin: 0;
}

.issue-meta {
	padding: 1rem;
	background: white;
	text-align: center;
}

.latest-issue-label {
	color: #666;
	font-style: italic;
	margin-bottom: 1rem;
}




/*
 * ---------------------------------------------------------------------------------------------------------------------
 * Newsletter sub-site homepage
 * =====================================================================================================================
 */

/* Featured Article Section */
.newsletter-featured-section {
	margin-bottom: 40px;
}

.newsletter-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	margin-bottom: 40px;
	margin-top: 2em
}

/* Left Column - Featured Image & Site Title */
.newsletter-featured-column {
	flex: 0 0 25%;
	max-width: 25%;
}

.featured-image-wrapper {
	position: relative;
	/*width: 353px;
	height: 483px;*/
	width: 100%;
	height: 320px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.featured-image-wrapper-more {
	position: relative;
	/*width: 353px;
	height: 483px;*/
	width: 100%;
	height: 420px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.featured-image-wrapper.no-image {
	background-color: #f0f0f0;
}

.site-title-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	/*background-color: rgba(0, 0, 0, 0.4);*/
	padding: 20px;
}

.site-title-overlay h1,
.site-title-overlay h3 {
	color: #ffffff;
	font-size: 28px;
	font-weight: 700;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
	margin: 0;
}


	/* Right Column - Article Details */
.newsletter-content-column {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.article-details {
	padding: 10px 0;
}

.article-title {
	font-size: 32px;
	margin-bottom: 15px;
	line-height: 1.2;
}

.article-excerpt {
	font-size: 16px;
	line-height: 1.6;
	margin-bottom: 20px;
}

.read-more-link {
	/*margin-top: 15px;*/
	margin-top: 0 !important;
}

.read-more-button {
	display: inline-block;
	padding: 8px 18px;
	background-color: #0073aa;
	color: #ffffff;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
	transition: background-color 0.3s ease;
}

.read-more-button:hover {
	background-color: #005d87;
	text-decoration: none;
}

/* All Articles Section */
.newsletter-all-articles-section {
	margin-top: 60px;
}

.section-title {
	font-size: 24px;
	margin-bottom: 25px;
	padding-bottom: 10px;
	border-bottom: 2px solid #eaeaea;
	position: relative;
}

.section-title:after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 60px;
	height: 2px;
	background-color: #0073aa;
}

.article-list {
	/*display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;*/
	display: block;
}

.article-item {
	padding: 20px;
	/*border-radius: 4px;
	background-color: #f9f9f9;
	border: 1px solid #eaeaea;
	transition: transform 0.2s ease, box-shadow 0.2s ease;*/
	margin-bottom: 1em;
	border-bottom: 1px solid var(--clr-light-grey);
}
.article-item p {
    margin-bottom: 0 !important;
}
.article-item-title {
    margin-bottom: 0 !important;
}
/*.article-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}*/

.article-item-title {
	/*font-size: 18px;
	margin-bottom: 10px;
	line-height: 1.3;*/
	font-size: 1.25rem;
	line-height: calc(1.75 / 1.25);
	font-weight: var(--fw-semibold);
}

.article-item-title a {
	color: var(--clr-blue-heading);
	text-decoration: none;
}

/*.article-item-title a:hover {
	color: #0073aa;
}*/

.article-item-meta {
	font-size: 14px;
	color: #666;
	margin-bottom: 10px;
}

.article-item-excerpt {
	font-size: 0.875rem;
	line-height: calc(1.25 / 0.875);
	margin-bottom: 15px;
	color: var(--clr-black);
}

.article-item .read-more-link,
a.read-more-link {
	display: block;
	font-size: 0.875rem;
	line-height: calc(1.25 / 0.875);
	font-weight: var(--fw-semibold);
	color: var(--clr-black);
	text-transform: uppercase;
	text-align: right;
	text-decoration: none;
}



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

footer .uabb-infobox .uabb-infobox-text p,
footer .uabb-infobox .uabb-infobox-text li,
footer .fl-rich-text p,
footer .fl-rich-text li {
	color: var(--clr-white);
	font-size: 0.75rem !important;
	line-height: calc(1 / 0.75) !important;
	font-weight: var(--fw-regular) !important;
}
footer .uabb-infobox .uabb-infobox-text p a,
footer .uabb-infobox .uabb-infobox-text li a,
footer .fl-rich-text p a,
footer .fl-rich-text li a {
    color: var(--clr-ages-blue) !important;
    font-weight: var(--fw-semibold) !important;
}



/*
 * ---------------------------------------------------------------------------------------------------------------------
 * ---------------------------------------------------------------------------------------------------------------------
 * Media Queries
 * =====================================================================================================================
 * =====================================================================================================================
 */

/* Small phone (~320px) */
@media only screen and (max-width: 20em)
{
	.escope-container {
		flex-direction: column;
	}

	.escope-content,
	.escope-sidebar {
		width: 100%;
	}

	.escope-content {
		order: 1; /* content on top */
	}

	.escope-sidebar {
		order: 2; /* sidebar below */
	}
}


/* Low DPI Laptop (~1280px) */
@media only screen and (max-width: 80em)
{
	.escope-sidebar {
		width: 25%;
	}
	.escope-content {
		width: 75%;
	}
}



@media screen and (max-width: 992px) {
	.newsletter-featured-column {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.featured-image-wrapper {
		width: 100%;
		max-width: 353px;
		margin: 0 auto 20px;
	}

	.newsletter-layout {
		flex-direction: column;
		margin-top: 1em;
	}

	.article-list {
		grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	}
}

@media screen and (max-width: 576px) {
	.article-list {
		grid-template-columns: 1fr;
	}
}

/* Handling existing escope layout compatibility */
.escope-container {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
}

.escope-sidebar {
	flex: 0 0 230px;
}

.escope-content {
	flex: 1;
	min-width: 0;
}

.escope-site-title-post {
	margin-left: 0.8em;
	margin-bottom: 0;
}

@media screen and (max-width: 768px) {
	.escope-container {
		flex-direction: column;
	}

	.escope-sidebar,
	.escope-content {
		flex: 0 0 100%;
		width: 100%;
	}
}
