/* =====================================================
   COLOR CHEAT SHEET
=====================================================
1. Global Links (posts/pages):
   Normal: #de2f46 (red)
   Visited: #0c2544 (dark blue)
   Hover/Focus: #90DFFE (light blue)
   Active: #0c2544 (dark blue)

2. Sidebar Latest Posts Links:
   Normal: #0c2544
   Hover/Focus: #90DFFE
   Active: #0c2544

3. Sidebar Social Media Icons:
   Normal: #0c2544
   Hover/Focus: #90DFFE

4. Footer Links:
   Normal/Visited: #fff6d5
   Hover/Focus: #90DFFE
   Active: #fff6d5

5. Footer Social Media Icons:
   Normal: #fff6d5
   Hover/Focus: #90DFFE
===================================================== */
/* =====================================================
   SITE BRANDING & HEADER
===================================================== */
.site-branding {
	background: #0c2544;
	display: inline-block;
	padding: 1.7px em;
}

.site-title a,
.site-title a:visited,
#secondary button,
#secondary input[type="button"],
#secondary input[type="reset"],
#secondary input[type="submit"] {
	color: #fec96b;
}

.site-title a:hover,
.site-title a:focus {
	color: #555555;
}

.main-navigation {
	background: #00205A;
	clear: both;
	display: block;
	position: relative;
	width: 100%;
	z-index: 3;
}

.main-navigation a,
.main-navigation a:visited {
	color: #ffffff;
	display: block;
	font-size: 1.3rem;
	letter-spacing: 1px;
	padding: 1.25px em 1.7px;
	text-transform: uppercase;
}

.main-navigation li:hover > a,
.main-navigation li.focus > a {
	color: #90DFFE;
}

/* =====================================================
   1. GLOBAL LINK COLOR SCHEME (posts, pages, etc.)
===================================================== */
a {
	color: #de2f46;
	transition: color .3s ease;
}

a:visited {
	color: #0c2544;
}

a:hover,
a:focus {
	color: #90DFFE;
}

a:active {
	color: #0c2544;
}

/* =====================================================
   2. SIDEBAR WIDGET LINK SCHEME (Latest Posts)
===================================================== */
.wp-block-latest-posts__post-title,
.wp-block-latest-posts__post-title:visited {
	color: #0c2544;
	transition: color .3s ease;
}

.wp-block-latest-posts__post-title:hover,
.wp-block-latest-posts__post-title:focus {
	color: #90DFFE;
}

.wp-block-latest-posts__post-title:active {
	color: #0c2544;
}

/* =====================================================
   3. SIDEBAR SOCIAL MEDIA ICONS
===================================================== */
#secondary .wp-block-social-link-anchor svg path {
	fill: #0c2544;
	transition: fill .3s ease;
}

#secondary .wp-block-social-link-anchor:hover svg path,
#secondary .wp-block-social-link-anchor:focus svg path {
	fill: #90DFFE;
}

/* =====================================================
   4. FOOTER SOCIAL MEDIA ICONS
===================================================== */
.widget-areas .wp-block-social-link-anchor svg path {
	fill: #fff6d5;
	transition: fill .3s ease;
}

.widget-areas .wp-block-social-link-anchor:hover svg path,
.widget-areas .wp-block-social-link-anchor:focus svg path {
	fill: #90DFFE;
}

/* =====================================================
   5. FOOTER WIDGET LINK SCHEME
===================================================== */
.widget-areas .widget a,
.widget-areas .widget a:visited {
	color: #fff6d5;
	transition: color .3s ease;
}

.widget-areas .widget a:hover,
.widget-areas .widget a:focus {
	color: #90DFFE;
}

.widget-areas .widget a:active {
	color: #fff6d5;
}

/* =====================================================
   INPUTS, BORDERS, AND OTHER ELEMENTS
===================================================== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea > article.comment,
.hentry,
.widget ul li,
.widget,
.site-main .comment-navigation,
.site-main .paging-navigation,
.site-main .post-navigation,
.comment-list > li:first-child > article.comment:first-child,
.page-title {
	border-color: #0c2544;
}

/* =====================================================
   SITE INFO
===================================================== */
.site-info {
	font-size: 1.4rem;
	max-width: 86%;
	margin: 0 auto;
	width: 1040px;
	padding: 1.7em 0;
	border-top: 2px solid #fff6d5;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* =====================================================
   SITE FOOTER
===================================================== */
.site-footer {
	background-image: url('https://goodnewstrition.com/wp-content/uploads/2025/10/gn-footer-bg.jpg');
	background-repeat: no-repeat;
	color: rgba(255,255,255,.4);
	background-size: cover;
}

/* =====================================================
   WIDGET AREAS
===================================================== */
.widget-areas .widget {
	border-bottom-color: #fff6d5;
	color: #fff6d5;
}

.widget-areas .widget:not(.widget_text,.jetpack_widget_social_icons) ul li {
	border-top-color: rgba(255, 255, 255, .90);
}

/* Remove margin/padding duplicates from widgets */
.widget:not(.widget_text,.jetpack_widget_social_icons) ul li {
	margin: .85em 0 0;
	padding: .85em 0 0;
	border-top: 0 solid #eee;
}

/* =====================================================
   SMOOTH HOVER TRANSITIONS
===================================================== */
a,
a:visited,
a:hover,
a:focus,
a:active,
.wp-block-latest-posts__post-title,
.wp-block-latest-posts__post-title:visited,
.wp-block-latest-posts__post-title:hover,
.wp-block-latest-posts__post-title:focus,
.wp-block-latest-posts__post-title:active,
.widget-areas .widget a,
.widget-areas .widget a:visited,
.widget-areas .widget a:hover,
.widget-areas .widget a:focus,
.widget-areas .widget a:active {
	transition: color .3s ease;
}

#secondary .wp-block-social-link-anchor svg path,
.widget-areas .wp-block-social-link-anchor svg path {
	transition: fill .3s ease;
}

/* =====================================================
   POST CARDS & GRID
===================================================== */
.wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wp-block-post {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.08);
	padding: 16px 20px;
	margin-bottom: 25px;
	transition: transform .2s ease, box-shadow .2s ease;
}

.wp-block-post:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.wp-block-post-featured-image img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	border-top-left-radius: 12px;
	border-top-right-radius: 12px;
}

.wp-block-post-title,
.wp-block-post-date,
.wp-block-post-excerpt {
	padding: 0 16px;
	margin: 12px 0;
}

.wp-block-post-title a,
.wp-block-post-title a:visited {
	font-family: "Josefin Sans", sans-serif;
	font-size: 2.75rem;
	font-weight: 700;
	line-height: 1.3;
	color: #00205a;
	text-decoration: none;
	display: inline-block;
	margin-bottom: 8px;
	transition: color .3s ease;
}

.wp-block-post-title a:hover,
.wp-block-post-title a:focus {
	color: #90DFFE;
	text-decoration: underline;
}

.wp-block-post-date {
	font-size: .85rem;
	color: #666;
}

.wp-block-post-excerpt__excerpt {
	margin-bottom: 12px;
}

.wp-block-post-excerpt__more-link,
.wp-block-post-excerpt__more-link:visited {
	color: #de2f46;
	font-weight: 600;
	text-decoration: none;
	transition: color .3s ease;
}

.wp-block-post-excerpt__more-link:hover,
.wp-block-post-excerpt__more-link:focus {
	color: #90DFFE;
	text-decoration: underline;
}

.wp-block-post-excerpt__more-link:active {
	color: #0c2544;
}

/* =====================================================
   SIDEBAR
===================================================== */
#secondary {
	background: #fff;
	border-radius: 10px;
	padding: 16px;
	margin-bottom: 24px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.03);
	border: none;
	max-width: 380px;
}

#secondary .widget {
	background: transparent;
	box-shadow: none;
	border: none;
	padding: 0;
	margin: 0 0 18px;
}

#secondary .wp-block-social-links {
	display: flex;
	justify-content: center;
	gap: 10px;
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	border-bottom: 2px solid #0c2544;
	padding-bottom: 10px;
	margin-bottom: 20px;
}

#secondary .wp-block-latest-posts {
	list-style: none;
	margin: 0;
	padding: 0;
}

#secondary .wp-block-latest-posts li {
	margin: 6px 0;
	padding: 0;
	border: none;
	white-space: nowrap;
	overflow: visible;
	text-overflow: clip;
}

#secondary .wp-block-latest-posts__post-title {
	display: inline-block;
	text-decoration: none;
}

/* Hide welcome/newsletter content in main column */
.wp-block-column-is-layout-flow h2.wp-block-heading.has-medium-font-size,
.wp-block-column-is-layout-flow p.has-small-font-size,
.wp-block-column-is-layout-flow .has-primary-background-color,
.wp-block-column-is-layout-flow .wp-block-jetpack-subscriptions {
	display: none !important;
}

/* Sidebar widget styling */
.goodnewstrition-welcome,
.goodnewstrition-newsletter {
	background: #ffffff;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	border-radius: 6px;
	padding: 18px 20px;
	margin-bottom: 25px;
}

.goodnewstrition-welcome h2,
.goodnewstrition-newsletter h3 {
	font-family: "Josefin Sans", sans-serif;
	font-size: 20px;
	color: #00205a;
	margin-top: 0;
	margin-bottom: 10px;
}

.goodnewstrition-welcome p,
.goodnewstrition-newsletter p {
	font-family: Georgia, serif;
	font-size: 15px;
	color: #333;
	line-height: 1.6;
}

.goodnewstrition-newsletter .wp-block-jetpack-subscriptions {
	margin-top: 10px;
}

.goodnewstrition-newsletter a.wp-block-button__link {
	background: #fff;
	color: #00205a;
	text-decoration: none;
	display: inline-block;
	box-shadow: 0 1px 3px rgba(0,0,0,0.15);
	transition: all .2s ease;
}

.goodnewstrition-newsletter a.wp-block-button__link:hover {
	background: #f5f5f5;
	color: #000;
}

/* Columns layout adjustments */
.wp-block-columns.alignwide {
	gap: 2rem !important;
}

.wp-block-columns.alignwide > .wp-block-column:first-child {
	flex-basis: 80% !important;
	max-width: 80% !important;
}

.wp-block-columns.alignwide > .wp-block-column:last-child {
	flex-basis: 20% !important;
	max-width: 20% !important;
}

/* === Sidebar widget titles (ALL CAPS, not bold) === */
#secondary .widget .widget-title {
	font-family: "Josefin Sans", sans-serif;
	font-size: 20px;
	color: #00205a;
	font-weight: 400;
/* not bold */
	text-transform: uppercase;
/* keep ALL CAPS */
	margin: 0 0 12px;
	line-height: 1.3;
	text-align: left;
	border: none;
/* remove cream line */
}

/* === Add "Past Posts" heading when none exists === */
#secondary .widget_recent_entries > .wp-block-latest-posts::before {
	content: "Past Posts";
	display: block;
	font-family: "Josefin Sans", sans-serif;
	font-size: 20px;
	color: #00205a;
	font-weight: 400;
/* not bold */
	text-transform: uppercase;
	margin: 0 0 12px;
	line-height: 1.3;
	text-align: left;
}

/* Prevent duplicate heading if a real title ever appears */
#secondary .widget_recent_entries .widget-title + .wp-block-latest-posts::before,
#secondary .widget_recent_entries .widget-title ~ .wp-block-latest-posts::before {
	content: "";
	display: none;
}

/* === Light blue box around "Join the Fun" widget === */
#secondary .goodnewstrition-newsletter {
	margin-top: 16px !important;
	padding: 16px !important;
	border-radius: 8px !important;
	background: linear-gradient(90deg,
    rgba(144, 223, 254, 0.15),
    rgba(144, 223, 254, 0.08)) !important;
	border: 1px solid rgba(144, 223, 254, 0.25) !important;
	box-shadow: none !important;
}

/* Replace main page title text */
article#post-1458 .entry-title {
	position: relative;
	color: transparent;
/* hide original text */
	font-size: 0;
/* remove layout width caused by original text */
}

article#post-1458 .entry-title::before {
	content: "Latest Posts";
/* new title text */
	display: block;
	font-family: "Josefin Sans", sans-serif;
	font-size: 36px;
/* adjust to match your previous title size */
	font-weight: 400;
/* not bold */
	color: #00205a;
	text-transform: uppercase;
	letter-spacing: 1px;
	text-align: left;
	line-height: 1.2;
}