/* Solar Hub - custom styles */

/* Page template: no sidebar */
.no-sidebar #content {
	max-width: 100%;
    justify-content: center;
}

.no-sidebar .site-main {
	margin-left: 0;
	margin-right: 0;
	float: none;
	width: 100%;
}

/* Blog single post: entry header not sticky */
.single .entry-header {
	position: static !important;
	top: auto !important;
	float: none !important;
}

/* Blog single post: featured thumbnail centered, not sticky, not floated */
.single .featured-image,
.single .post-image,
.single .inside-article .featured-image,
.single .inside-article .post-image {
	position: static !important;
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	text-align: center !important;
	margin: 0 0 1.5em !important;
	display: block;
	top: auto !important;
}

.single .featured-image img,
.single .post-image img {
	display: inline-block;
	margin: 0 auto;
	max-width: 100%;
	height: auto;
	position: static !important;
	float: none !important;
}

/* Blog archive sidebar inside Bootstrap container */
.col-md-4 .widget-area {
	padding-top: 60px;
}

.is-right-sidebar {
	width: auto;
}

.col-md-4 .widget {
	margin-bottom: 30px;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
}

.col-md-4 .widget-title {
	font-size: 18px;
	font-weight: 800;
	margin-bottom: 15px;
	color: var(--ink);
}

:root {
    --g: #0d6b4f;
    --g2: #13a36f;
    --y: #f5b942;
    --bg: #f7faf8;
    --ink: #17231f;
    --muted: #65736d;
    --line: #e1e9e4;
    --max: 1180px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font: 16px/1.6 Inter, system-ui, -apple-system, Segoe UI, Arial;
    color: var(--ink);
    background: var(--bg)
}

a {
    text-decoration: none;
    color: inherit
}

.wrap {
    width: min(92%, var(--max));
    margin: auto
}

header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fffffff2;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line)
}

.nav {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--g)
}

.logo span {
    color: var(--y)
}

nav {
    display: flex;
    gap: 20px
}

nav a {
    font-size: 14px;
    font-weight: 700;
    color: #46554e
}

.hero {
    padding: 72px 0;
    background: linear-gradient(135deg, #eaf7f0, #fff 60%, #fff6df)
}

.heroGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    align-items: center
}

.eyebrow {
    background: #dff2e9;
    color: var(--g);
    border-radius: 99px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase
}

.hero h1 {
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.02;
    letter-spacing: -2.5px;
    margin: 18px 0
}

.hero p {
    font-size: 18px;
    color: var(--muted);
    max-width: 650px
}

.buttons {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    flex-wrap: wrap
}

.btn {
    display: inline-block;
    padding: 11px 17px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: #fff;
    font-weight: 800
}

.primary {
    background: var(--g);
    color: #fff;
    border-color: var(--g)
}

.heroImg {
    height: 410px;
    border-radius: 26px;
    background: url('https://images.unsplash.com/photo-1509391366360-2e959784a276?auto=format&fit=crop&w=1200&q=85') center/cover;
    box-shadow: 0 18px 50px #17372d1c
}

section {
    padding: 60px 0
}

.head {
    margin-bottom: 24px
}

.head h2 {
    font-size: 32px;
    line-height: 1.1;
    margin: 0 0 7px
}

.head p {
    margin: 0;
    color: var(--muted)
}

.topics {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 13px
}

.topic,
.card,
.stat,
.box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px
}

.topic:hover,
.card:hover {
    transform: translateY(-2px)
}

.ico {
    font-size: 22px;
    background: #eaf6f0;
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    margin-bottom: 10px
}

.topic strong {
    display: block
}

.topic small {
    color: var(--muted)
}

.featured {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px
}

.feature {
    min-height: 290px;
    border-radius: 22px;
    padding: 30px;
    color: #fff;
    background: linear-gradient(120deg, #0d6b4fee, #143129dd), url('https://images.unsplash.com/photo-1508514177221-188b1cf16e9d?auto=format&fit=crop&w=1200&q=80') center/cover
}

.feature h3 {
    font-size: 30px;
    max-width: 650px
}

.feature p {
    color: #dbe9e3;
    max-width: 620px
}

.miniGrid {
    display: grid;
    gap: 18px
}

.mini {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 25px
}

.articleSec {
    background: #fff;
    border-top: 1px solid var(--line)
}

.articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px
}

.card .num {
    font-size: 11px;
    color: var(--g);
    font-weight: 900
}

.card h3 {
    font-size: 18px;
    line-height: 1.3;
    margin: 7px 0
}

.card p {
    font-size: 14px;
    color: var(--muted);
    margin: 0
}

.card a {
    display: inline-block;
    color: var(--g);
    font-size: 13px;
    font-weight: 900;
    margin-top: 12px
}

.mapGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: center
}

.map {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 7px;
    padding: 22px;
    background: #edf7f2;
    border: 1px solid var(--line);
    border-radius: 22px
}

.state {
    background: #fff;
    border: 1px solid #dce8e2;
    border-radius: 7px;
    padding: 7px 4px;
    text-align: center;
    font-size: 10px;
    font-weight: 800
}

.state:hover {
    background: var(--g);
    color: #fff
}

.calc {
    background: #15392f;
    color: #fff;
    border-radius: 24px;
    padding: 30px
}

.calcGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px
}

.field {
    margin: 14px 0
}

.field label {
    display: block;
    font-size: 12px;
    color: #cfe1da;
    font-weight: 800
}

.field input {
    width: 100%;
    padding: 11px;
    border-radius: 9px;
    border: 1px solid #5a8175;
    background: #214b40;
    color: #fff
}

.result {
    background: #ffffff12;
    border: 1px solid #ffffff1f;
    border-radius: 18px;
    padding: 25px
}

.big {
    font-size: 42px;
    font-weight: 900
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px
}

.stat b {
    display: block;
    color: var(--g);
    font-size: 29px
}

.stat span {
    color: var(--muted);
    font-size: 13px
}

.boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px
}

.box {
    background: #eff7f3
}

.box h3 {
    margin-top: 0
}

.box p {
    color: var(--muted);
    font-size: 14px
}

.newsletter {
    background: #fff4db;
    border: 1px solid #efdfb9;
    border-radius: 22px;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center
}

.newsletter form {
    display: flex;
    gap: 8px;
    min-width: 410px
}

.newsletter input {
    flex: 1;
    padding: 12px;
    border: 1px solid #dbc88f;
    border-radius: 9px
}

.newsletter button {
    background: var(--g);
    color: #fff;
    border: 0;
    border-radius: 9px;
    padding: 12px 17px;
    font-weight: 800
}

footer {
    background: #122a23;
    color: #b9cec6;
    padding: 45px 0 25px
}

.foot {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 25px
}

.foot h4 {
    color: #fff
}

.foot a {
    display: block;
    font-size: 14px;
    margin: 7px 0
}

.copy {
    border-top: 1px solid #ffffff1a;
    margin-top: 25px;
    padding-top: 18px;
    font-size: 12px
}

@media(max-width:900px) {
    nav {
        display: none
    }

    .heroGrid,
    .featured,
    .mapGrid,
    .calcGrid {
        grid-template-columns: 1fr
    }

    .topics {
        grid-template-columns: repeat(3, 1fr)
    }

    .articles,
    .boxes {
        grid-template-columns: repeat(2, 1fr)
    }

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

    .newsletter {
        display: block
    }

    .newsletter form {
        min-width: 0;
        margin-top: 15px
    }
}

@media(max-width:600px) {

    .topics,
    .articles,
    .boxes,
    .stats {
        grid-template-columns: 1fr
    }

    .map {
        grid-template-columns: repeat(4, 1fr)
    }

    .newsletter form {
        display: block
    }

    .newsletter input,
    .newsletter button {
        width: 100%;
        margin-bottom: 8px
    }

    .foot {
        grid-template-columns: 1fr 1fr
    }

    .hero {
        padding: 45px 0
    }

    .heroImg {
        height: 300px
    }
}


/*--------------------------------------------------------------
# Site Header - Solar Hub Design Override
#
# Matches the header from solar_hub_website.html:
# - Sticky, translucent glass bar with blur
# - Bottom border, 70px height
# - Green bold logo left, bold menu links right
#
# Uses ID + class specificity to override GeneratePress
# inline dynamic CSS without !important.
--------------------------------------------------------------*/

/* 1. Header bar: sticky + glass background */
body #masthead.site-header {
	position: sticky;
	top: 0;
	left: 0;
	right: 0;
	z-index: 500;
	background-color: rgba(255, 255, 255, 0.95);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
	box-shadow: none;
}

/* 2. Header container: 70px flex bar */
body #masthead.site-header .inside-header.grid-container {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 70px;
	padding-top: 0;
	padding-bottom: 0;
}

/* 3. Logo / site title */
body #masthead.site-header .site-branding {
	margin-right: auto;
}

body #masthead.site-header .main-title {
	margin: 0;
	font-size: 24px;
	line-height: 1.2;
	font-weight: 900;
	letter-spacing: -0.5px;
}

body #masthead.site-header .main-title a {
	color: var(--g);
	text-decoration: none;
}

/* Logo image (if uploaded instead of text) fits the 70px bar */
body #masthead.site-header .header-image,
body #masthead.site-header .site-logo img {
	max-height: 44px;
	width: auto;
	height: auto;
}

/* Tagline is not part of the design */
body #masthead.site-header .site-description {
	display: none;
}

/* 4. Menu links */
body #masthead.site-header .main-navigation:not(.toggled) ul li a,
body #site-navigation:not(.toggled) ul li a {
	font-size: 14px;
	font-weight: 700;
	line-height: 70px;
	color: #46554e;
	text-decoration: none;
}

body #masthead.site-header .main-navigation:not(.toggled) ul li a:hover,
body #masthead.site-header .main-navigation:not(.toggled) ul li a:focus,
body #masthead.site-header .main-navigation:not(.toggled) ul li.current-menu-item > a,
body #site-navigation:not(.toggled) ul li.current-menu-item > a {
	color: var(--g);
}

/* Sub-menus keep readable line height inside dropdowns */
body #masthead.site-header .main-navigation:not(.toggled) ul li.menu-item-has-children ul li a {
	line-height: 1.5;
	padding: 8px 20px;
}

/* Search / cart icon buttons match the links */
body .menu-bar-items .menu-bar-item > button {
	font-size: 14px;
	color: #46554e;
}

body .menu-bar-items .menu-bar-item > button:hover {
	color: var(--g);
}

/* 5. Mobile menu toggle stays vertically centered */
@media (max-width: 768px) {
	body #masthead.site-header .main-navigation .menu-toggle {
		line-height: 1;
	}
}

/*===============================================================
# Single Post - Premium Article Card
# Professional ThemeForest-style read experience.
===============================================================*/

.single .col-md-8 .site-main .inside-article {
	position: relative;
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 18px;
	box-shadow: 0 10px 30px rgba(23, 35, 31, 0.06);
	padding: clamp(24px, 4vw, 48px);
	overflow: hidden;
}

/* Subtle top accent line */
.single .col-md-8 .site-main .inside-article::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--g), var(--g2), var(--y));
	border-radius: 18px 18px 0 0;
}

/* Entry header: title + meta */
.single .entry-header {
	text-align: center;
	margin-bottom: 28px;
	padding: 0 8px;
}

.single .entry-header .entry-title {
	font-size: clamp(26px, 4vw, 38px);
	font-weight: 900;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--ink);
	margin: 0 0 14px;
}

.single .entry-header .entry-title a {
	color: inherit;
}

.single .entry-header .entry-title a:hover {
	color: var(--g);
}

/* Post meta row - soft pill chips, light theme */
.single .entry-meta,
.single .post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 500;
	color: var(--muted);
	margin: 0;
}

.single .entry-meta > span,
.single .post-meta > span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #f2f7f4;
	color: var(--ink);
	padding: 6px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1;
}

.single .entry-meta .gp-icon,
.single .post-meta .gp-icon {
	color: var(--g);
	font-size: 14px;
}

.single .entry-meta a,
.single .post-meta a {
	color: var(--g);
	font-weight: 700;
}

.single .entry-meta a:hover,
.single .post-meta a:hover {
	color: var(--g2);
	text-decoration: underline;
}

/* Divider under the header */
.single .entry-header::after {
	content: "";
	display: block;
	width: 56px;
	height: 4px;
	margin: 26px auto 0;
	border-radius: 99px;
	background: linear-gradient(90deg, var(--g), var(--g2));
}

/* Featured image */
.single .featured-image img,
.single .post-image img {
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(23, 35, 31, 0.10);
}

/* Entry content typography */
.single .entry-content {
	color: #2a3630;
	line-height: 1.85;
	font-size: 16px;
}

.single .entry-content > * {
	margin-bottom: 1.4em;
}

.single .entry-content p {
	margin: 0 0 1.4em;
}

/* Headings */
.single .entry-content h1,
.single .entry-content h2,
.single .entry-content h3,
.single .entry-content h4,
.single .entry-content h5,
.single .entry-content h6 {
	color: var(--ink);
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.01em;
	margin: 1.6em 0 0.6em;
}

.single .entry-content h1 { font-size: 30px; }
.single .entry-content h2 { font-size: 26px; padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.single .entry-content h3 { font-size: 22px; }
.single .entry-content h4 { font-size: 19px; }
.single .entry-content h5 { font-size: 17px; }
.single .entry-content h6 { font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }

/* Links */
.single .entry-content a {
	color: var(--g);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: rgba(13, 107, 79, 0.25);
	text-underline-offset: 3px;
}

.single .entry-content a:hover {
	color: var(--g2);
	text-decoration-color: currentColor;
}

/* Lists */
.single .entry-content ul,
.single .entry-content ol {
	margin: 0 0 1.4em 1.4em;
}

.single .entry-content ul { list-style: disc; }
.single .entry-content ol { list-style: decimal; }

.single .entry-content li {
	margin-bottom: 0.5em;
}

.single .entry-content li ul,
.single .entry-content li ol {
	margin-bottom: 0;
}

/* Blockquote */
.single .entry-content blockquote {
	margin: 1.6em 0;
	padding: 18px 24px;
	border-left: 4px solid var(--g2);
	background: rgba(19, 163, 111, 0.06);
	border-radius: 0 14px 14px 0;
	color: #2a3630;
	font-style: italic;
}

.single .entry-content blockquote p {
	margin: 0;
}

/* Inline code */
.single .entry-content code,
.single .entry-content pre {
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
	background: rgba(13, 107, 79, 0.07);
	border-radius: 6px;
}

.single .entry-content code {
	padding: 2px 6px;
	font-size: 0.88em;
	color: var(--g);
}

/* Code blocks */
.single .entry-content pre {
	padding: 20px;
	margin: 1.6em 0;
	background: #12221c;
	color: #d6e6df;
	border-radius: 12px;
	overflow-x: auto;
	line-height: 1.6;
	font-size: 14px;
}

.single .entry-content pre code {
	background: transparent;
	color: inherit;
	padding: 0;
}

/* Images & media */
.single .entry-content img,
.single .entry-content figure img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.single .entry-content figure {
	margin: 0 0 1.6em;
}

.single .entry-content figcaption,
.single .entry-content .wp-caption-text {
	text-align: center;
	font-size: 13px;
	color: var(--muted);
	padding-top: 8px;
}

/* Tables */
.single .entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.6em;
	overflow: hidden;
	border-radius: 10px;
}

.single .entry-content th,
.single .entry-content td {
	padding: 12px 14px;
	border: 1px solid var(--line);
	text-align: left;
}

.single .entry-content thead th {
	background: var(--g);
	color: #ffffff;
	font-weight: 700;
}

.single .entry-content tbody tr:nth-child(even) {
	background: #f3f8f5;
}

/* Horizontal rule */
.single .entry-content hr {
	border: 0;
	height: 1px;
	background: var(--line);
	margin: 2em 0;
}

/* Buttons inside content */
.single .entry-content .wp-block-button__link,
.single .entry-content .button {
	display: inline-block;
	padding: 12px 22px;
	border-radius: 10px;
	background: var(--g);
	color: #ffffff !important;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.2s ease;
}

.single .entry-content .wp-block-button__link:hover,
.single .entry-content .button:hover {
	background: var(--g2);
	color: #ffffff !important;
	transform: translateY(-2px);
}

@media (max-width: 576px) {
	.single .col-md-8 .site-main .inside-article {
		padding: 22px;
		border-radius: 14px;
	}
}

/*===============================================================
# Single Post - Prev/Next Navigation with Thumbnails
===============================================================*/

.gp-post-nav {
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid var(--line);
}

.gp-post-nav__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.gp-post-nav__item {
	min-width: 0;
}

.gp-post-nav__next {
	text-align: right;
}

.gp-post-nav__link {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px;
	background: #f8fbf9;
	border: 1px solid var(--line);
	border-radius: 14px;
	text-decoration: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
	height: 100%;
}

.gp-post-nav__link:hover {
	border-color: var(--g2);
	box-shadow: 0 8px 20px rgba(19, 163, 111, 0.10);
	transform: translateY(-2px);
}

.gp-post-nav__thumb {
	flex: 0 0 76px;
	width: 76px;
	height: 76px;
	border-radius: 10px;
	overflow: hidden;
	background: #eef3f0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gp-post-nav__next .gp-post-nav__thumb {
	order: 2;
}

.gp-post-nav__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gp-post-nav__body {
	display: block;
	min-width: 0;
}

.gp-post-nav__label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--g);
	margin-bottom: 5px;
}

.gp-post-nav__next .gp-post-nav__label {
	color: var(--g2);
}

.gp-post-nav__title {
	display: block;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--ink);

	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gp-post-nav__title:hover {
	color: var(--g);
}

@media (max-width: 576px) {
	.gp-post-nav__inner {
		grid-template-columns: 1fr;
	}

	.gp-post-nav__next {
		text-align: left;
	}

	.gp-post-nav__next .gp-post-nav__thumb {
		order: 0;
	}
}
