/* ============================================
   PUBLIC PAGES - UNIFIED STYLESHEET
   ============================================
   Modern CSS for Homepage, Pricing, Overview, Resources
   Uses CSS variables from layout.css
   Em-based spacing, 60rem responsive breakpoint
   ============================================ */

/* ============================================
   1. MODERN SECTION LAYOUT SYSTEM
   Replaces outdated div.sideBlocks pattern
   ============================================ */

div.modernSection {
	padding: 4em 0;
	width: 100%;
	clear: both;
}

div.modernSection.white {
	background: #fff;
}

div.modernSection.coloured {
	background: var(--color-light-grey, #f5f5f5);
}

div.modernSection.gradient {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
}

div.sectionContent {
	max-width: 70rem;
	margin: 0 auto;
	padding: 0 2em;
}

/* Grid Systems */
div.gridTwo {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3em;
	align-items: center;
}

div.gridThree {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2em;
}

div.gridFour {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2em;
}

/* Responsive stacking */
@media (max-width: 60rem) {
	div.gridTwo,
	div.gridThree,
	div.gridFour {
		grid-template-columns: 1fr;
		gap: 2em;
	}
}

/* Section typography */
div.modernSection h2 {
	font-size: 2.5em;
	margin-bottom: 0.5em;
	font-weight: 700;
	color: var(--color-dark-blue, #2c3e50);
}

div.modernSection.gradient h2 {
	color: #fff;
}

div.modernSection h3 {
	font-size: 1.8em;
	margin-bottom: 0.5em;
	font-weight: 600;
}

div.modernSection p {
	font-size: 1.1em;
	line-height: 1.6;
	margin-bottom: 1em;
	color: #555;
}

div.modernSection.gradient p {
	color: rgba(255, 255, 255, 0.95);
}

div.modernSection ul {
	list-style: none;
	padding: 0;
	margin: 1em 0;
}

div.modernSection ul li {
	padding: 0.5em 0;
	font-size: 1.1em;
	line-height: 1.6;
}

div.modernSection ul li:before {
	content: "✓ ";
	color: var(--color-blue, #3498db);
	font-weight: bold;
	margin-right: 0.5em;
}

div.modernSection img {
	max-width: 100%;
	height: auto;
	border-radius: 0.5em;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ============================================
   2. HIGHLIGHT CONTAINER
   3-icon feature highlights (existing pattern)
   ============================================ */

div.highlightContainer {
	display: flex;
	flex-wrap: wrap;
	gap: 2em;
	margin: 3em 0;
	justify-content: center;
}

div.highlightContainer.nomargin { margin: 0; }

div.hItem {
	flex: 0 1 33%;
	min-width: 15em;
	text-align: center;
	padding: 2em 1em;
}

div.hItem figure {
	width: 5em;
	height: 5em;
	margin: 0 auto 1em;
	background: var(--color-blue, #3498db);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

div.hItem figure i {
	font-size: 2.5em;
	color: #fff;
}

div.hItem h3 {
	font-size: 1.5em;
	margin-bottom: 0.5em;
	font-weight: 600;
	color: var(--color-dark-blue, #2c3e50);
}

div.hItem p {
	font-size: 1em;
	line-height: 1.5;
	color: #666;
}

@media (max-width: 60rem) {
	div.hItem {
		flex: 0 1 100%;
	}
}

/* ============================================
   3. FACT BLOCKS
   Feature bullet lists with icons
   ============================================ */

div.factBlocks {
	display: flex;
	flex-direction: column;
	gap: 1em;
}

div.factBlocks div {
	padding: 1em 0;
	border-bottom: 1px solid #eee;
}

div.factBlocks div:last-child {
	border-bottom: none;
}

div.factBlocks h4 {
	font-size: 1.3em;
	font-weight: 600;
	margin-bottom: 0.5em;
	color: var(--color-dark-blue, #2c3e50);
}

div.factBlocks h4 i {
	margin-right: 0.5em;
	color: var(--color-blue, #3498db);
}

div.factBlocks p {
	font-size: 1em;
	line-height: 1.5;
	color: #666;
	margin: 0;
}

/* ============================================
   4. COMMUNITY FORUM WIDGET
   Shows latest public forum posts
   ============================================ */

div.communityWidget {
	background: #fff;
	border-radius: 0.5em;
	padding: 1.5em;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

div.communityWidget h3 {
	font-size: 1.3em;
	font-weight: 700;
	margin-bottom: 1em;
	color: var(--color-dark-blue, #2c3e50);
}

div.communityWidget h3 i {
	margin-right: 0.5em;
	color: var(--color-blue, #3498db);
}

div.forumPost {
	padding: 1em 0;
	border-bottom: 1px solid #f0f0f0;
}

div.forumPost:last-child {
	border-bottom: none;
}

div.forumPostTitle {
	font-weight: 700;
	font-size: 1em;
	margin-bottom: 0.3em;
}

div.forumPostTitle a {
	color: var(--color-dark-blue, #2c3e50);
	text-decoration: none;
	transition: color 0.2s;
}

div.forumPostTitle a:hover {
	color: var(--color-blue, #3498db);
}

div.forumPostMeta {
	font-size: 0.85em;
	color: #888;
	display: flex;
	align-items: center;
	gap: 0.5em;
	flex-wrap: wrap;
}

div.forumPostMeta span {
	display: inline-block;
}

span.boardBadge {
	background: var(--color-light-blue, #e3f2fd);
	color: var(--color-blue, #3498db);
	padding: 0.2em 0.6em;
	border-radius: 0.3em;
	font-size: 0.9em;
	font-weight: 600;
}

div.communityWidget .viewAll {
	margin-top: 1em;
	text-align: center;
}

div.communityWidget .viewAll a {
	color: var(--color-blue, #3498db);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.2s;
}

div.communityWidget .viewAll a:hover {
	color: var(--color-dark-blue, #2c3e50);
}

/* ============================================
   5. SEARCH INTERFACE
   Resources page hero with search bar
   ============================================ */

div.searchHero {
	text-align: center;
	padding: 3em 2em;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	border-radius: 0.5em;
	margin-bottom: 3em;
}

div.searchHero h1 {
	font-size: 2.8em;
	font-weight: 700;
	margin-bottom: 0.5em;
}

div.searchHero p {
	font-size: 1.2em;
	margin-bottom: 2em;
	opacity: 0.95;
}

div.searchBarContainer {
	position: relative;
	max-width: 40em;
	margin: 0 auto;
}

input.searchBar {
	width: 100%;
	padding: 1em 4em 1em 1.5em;
	font-size: 1.1em;
	border: none;
	border-radius: 2em;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	outline: none;
}

input.searchBar::placeholder {
	color: #aaa;
}

button.searchButton {
	position: absolute;
	right: 0.5em;
	top: 50%;
	transform: translateY(-50%);
	background: var(--color-blue, #3498db);
	color: #fff;
	border: none;
	border-radius: 1.5em;
	padding: 0.7em 1.5em;
	font-size: 1em;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

button.searchButton:hover {
	background: var(--color-dark-blue, #2c3e50);
}

div.searchResults {
	display: none;
	margin-top: 2em;
}

div.searchResults.active {
	display: block;
}

div.searchResults h3 {
	font-size: 1.5em;
	margin-bottom: 1em;
	color: var(--color-dark-blue, #2c3e50);
}

@media (max-width: 60rem) {
	div.searchHero h1 {
		font-size: 2em;
	}

	div.searchHero p {
		font-size: 1em;
	}

	input.searchBar {
		font-size: 1em;
		padding: 0.9em 3.5em 0.9em 1.2em;
	}
}

/* ============================================
   6. UPDATES SECTION
   Homepage "What's New" with 3 columns
   ============================================ */

div.whatsNewSection {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
}

div.whatsNewSection h2 {
	text-align: center;
	color: #fff;
	font-size: 2.5em;
	margin-bottom: 1.5em;
}

div.updateCard {
	background: #fff;
	border-radius: 0.5em;
	padding: 2em;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	color: var(--color-dark-blue, #2c3e50);
}

div.updateCard h3 {
	font-size: 1.5em;
	font-weight: 700;
	margin-bottom: 1em;
	color: var(--color-dark-blue, #2c3e50);
}

div.updateCard h3 i {
	margin-right: 0.5em;
	color: var(--color-blue, #3498db);
}

div.updateCard ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

div.updateCard ul li {
	padding: 0.8em 0;
	border-bottom: 1px solid #f0f0f0;
	font-size: 1em;
}

div.updateCard ul li:last-child {
	border-bottom: none;
}

div.updateCard ul li a {
	color: var(--color-dark-blue, #2c3e50);
	text-decoration: none;
	transition: color 0.2s;
}

div.updateCard ul li a:hover {
	color: var(--color-blue, #3498db);
}

div.updateCard .cardFooter {
	margin-top: 1.5em;
	padding-top: 1em;
	border-top: 1px solid #f0f0f0;
	text-align: center;
}

div.updateCard .cardFooter a {
	color: var(--color-blue, #3498db);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.2s;
}

div.updateCard .cardFooter a:hover {
	color: var(--color-dark-blue, #2c3e50);
}

/* ============================================
   7. RESOURCE CATEGORY CARDS
   Resources page grid cards
   ============================================ */

div.resourceGrid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2em;
	margin: 3em 0;
}

div.resourceCard {
	background: #fff;
	border-radius: 0.5em;
	padding: 2em;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s, box-shadow 0.2s;
}

div.resourceCard:hover {
	transform: translateY(-4px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

div.resourceCard figure {
	width: 4em;
	height: 4em;
	margin: 0 auto 1em;
	background: var(--color-blue, #3498db);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

div.resourceCard figure i {
	font-size: 2em;
	color: #fff;
}

div.resourceCard h3 {
	font-size: 1.5em;
	font-weight: 700;
	margin-bottom: 0.5em;
	color: var(--color-dark-blue, #2c3e50);
}

div.resourceCard p {
	font-size: 1em;
	color: #666;
	margin-bottom: 1em;
	line-height: 1.5;
}

div.resourceCard ul {
	list-style: none;
	padding: 0;
	margin: 1.5em 0;
	text-align: left;
}

div.resourceCard ul li {
	padding: 0.5em 0;
	font-size: 0.95em;
}

div.resourceCard ul li a {
	color: var(--color-dark-blue, #2c3e50);
	text-decoration: none;
	transition: color 0.2s;
}

div.resourceCard ul li a:hover {
	color: var(--color-blue, #3498db);
}

div.resourceCard .footNote {
	margin-top: 1em;
	padding-top: 1em;
	border-top: 1px solid #f0f0f0;
}

div.resourceCard .footNote a {
	color: var(--color-blue, #3498db);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95em;
	transition: color 0.2s;
}

div.resourceCard .footNote a:hover {
	color: var(--color-dark-blue, #2c3e50);
}

@media (max-width: 60rem) {
	div.resourceGrid {
		grid-template-columns: 1fr;
		gap: 1.5em;
	}
}

/* ============================================
   8. ARTICLE LIST (SUGGESTED ARTICLES)
   Already exists in articles.css but adding override
   ============================================ */

div.articleList {
	margin: 3em 0;
}

div.articleList h3 {
	font-size: 1.8em;
	font-weight: 700;
	margin-bottom: 1.5em;
	color: var(--color-dark-blue, #2c3e50);
}

div.articleList h3 i {
	margin-right: 0.5em;
	color: var(--color-blue, #3498db);
}

div.articleListItems {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2em;
}

@media (max-width: 60rem) {
	div.articleListItems {
		grid-template-columns: 1fr;
	}
}

/* ============================================
   9. PRICING CARDS (KEEP EXISTING)
   Preserve existing pricing card styles
   ============================================ */

/* Existing pricing cards continue to use:
   article.pricing + div.priceGrouping
   No changes needed to pricing card structure */

/* ============================================
   10. TESTIMONIAL / IMAGE SKEW (KEEP EXISTING)
   Preserve existing testimonial styles
   ============================================ */

/* Existing testimonials continue to use:
   div.imgSkew + div.iskewText
   No changes needed to testimonial structure */

/* ============================================
   11. COVER IMAGE / HERO (KEEP EXISTING)
   Preserve existing hero styles
   ============================================ */

/* Existing heroes continue to use:
   div.coverImage
   No changes needed to hero structure */

/* ============================================
   12. UTILITY CLASSES
   ============================================ */

.textCenter {
	text-align: center;
}

.textLeft {
	text-align: left;
}

.textRight {
	text-align: right;
}

.marginTop2 {
	margin-top: 2em;
}

.marginTop3 {
	margin-top: 3em;
}

.marginBottom2 {
	margin-bottom: 2em;
}

.marginBottom3 {
	margin-bottom: 3em;
}

.paddingTop2 {
	padding-top: 2em;
}

.paddingTop3 {
	padding-top: 3em;
}

.paddingBottom2 {
	padding-bottom: 2em;
}

.paddingBottom3 {
	padding-bottom: 3em;
}


/* ============================================
   END PUBLIC PAGES CSS
   ============================================ */
