/*
Theme Name: solar_energy-aust-sonnet4
Description: A modern, responsive WordPress theme for Solar Energy Australia directory website featuring solar panel suppliers across Australia.
Version: 1.0
Author: Custom Theme
*/

/* CSS Variables for Color Palette */
:root {
    --primary-color: #22577a;
    --secondary-color: #38a3a5;
    --accent-color: #57cc99;
    --neutral-color: #80ed99;
    --highlight-color: #c7f9cc;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
}

h2 {
    font-size: 2rem;
    color: var(--text-dark);
}

h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

h4 {
    font-size: 1.25rem;
    color: var(--text-dark);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
}

.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* Header Styles */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: relative;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    max-height: 130px;
    width: auto;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin-left: 2rem;
}

.main-navigation a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero-section {
    min-height: 450px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('http://solar-panels-au.com/wp-content/uploads/2025/07/hero-2.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--white);
}

/* Card Styles */
.card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
    text-align: center;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.card-text {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.card-meta {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-secondary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--highlight-color);
    color: var(--text-dark);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
}

select.form-control {
    background: var(--white);
    cursor: pointer;
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.section-alt {
    background: var(--light-gray);
}

/* Rating Styles */
.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.stars {
    color: #ffc107;
}

.rating-text {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Work Hours Styles */
.work-hours {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.work-hours h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.hours-list {
    list-style: none;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hours-list li:last-child {
    border-bottom: none;
}

/* Breadcrumb Styles */
.breadcrumb {
    background: var(--light-gray);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    margin-right: 0.5rem;
}

.breadcrumb-item:after {
    content: ">";
    margin-left: 0.5rem;
    color: var(--text-light);
}

.breadcrumb-item:last-child:after {
    display: none;
}

.breadcrumb-link {
    color: var(--accent-color);
}

.breadcrumb-current {
    color: var(--text-light);
}

/* Footer Styles */
.site-footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.footer-logo img {
    max-height: 50px;
    width: auto;
}

.footer-menu ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.footer-menu a {
    color: var(--white);
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: var(--highlight-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .col-3, .col-4, .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        text-align: center;
    }
    
    .main-navigation li {
        margin: 0.5rem 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-menu ul {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
}

/* Single Post Styles */
.single-post {
    max-width: 100%;
}

.post-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 3rem 0;
    margin-bottom: 3rem;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.post-hero-content {
    text-align: center;
    margin-bottom: 2rem;
}

.post-meta-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.post-category a {
    background: var(--accent-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s ease;
}

.post-category a:hover {
    background: var(--highlight-color);
    color: var(--text-dark);
}

.post-date, .reading-time {
    color: var(--text-dark);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-title {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.post-author-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.author-avatar img {
    border-radius: 50%;
    border: 3px solid var(--white);
}

.author-details {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.author-name {
    font-weight: 600;
    color: var(--text-dark);
}

.author-title {
    font-size: 0.9rem;
    color: var(--text-light);
}

.post-featured-image {
    text-align: center;
    margin-top: 2rem;
}

.featured-img {
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
    max-width: 100%;
    height: auto;
}

.post-content-wrapper {
    margin-bottom: 4rem;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.post-content h2, .post-content h3, .post-content h4 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.post-content h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.post-content h3 {
    font-size: 1.5rem;
}

.post-content h4 {
    font-size: 1.25rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img {
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

.page-links {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    margin: 2rem 0;
}

.page-links-title {
    font-weight: 600;
    margin-right: 1rem;
}

.page-number {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background: var(--white);
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.page-number:hover {
    background: var(--accent-color);
    color: var(--white);
}

.post-tags {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.post-tags h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    background: var(--white);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: var(--accent-color);
    color: var(--white);
}

.post-share {
    background: var(--primary-color);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.post-share h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.facebook {
    background: #3b5998;
    color: var(--white);
}

.share-btn.twitter {
    background: #1da1f2;
    color: var(--white);
}

.share-btn.linkedin {
    background: #0077b5;
    color: var(--white);
}

.share-btn.email {
    background: var(--text-dark);
    color: var(--white);
}

.post-sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-widget {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.sidebar-widget h4 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.toc-list {
    list-style: none;
    padding: 0;
}

.toc-item {
    margin-bottom: 0.5rem;
}

.toc-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 0;
    display: block;
    transition: color 0.3s ease;
}

.toc-link:hover {
    color: var(--accent-color);
}

.toc-h3 {
    padding-left: 1rem;
}

.toc-h4 {
    padding-left: 2rem;
}

.recent-posts-list {
    list-style: none;
    padding: 0;
}

.recent-post-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.recent-post-item:last-child {
    border-bottom: none;
}

.recent-post-link {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-dark);
}

.recent-post-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 5px;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-content h5 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.recent-post-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: var(--accent-color);
}

.post-count {
    color: var(--text-light);
    font-size: 0.9rem;
}

.author-bio-section {
    background: var(--light-gray);
    padding: 3rem 0;
    margin: 4rem 0;
    border-radius: 15px;
}

.author-bio-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.author-bio-avatar img {
    border-radius: 50%;
    border: 4px solid var(--white);
}

.author-bio-content h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.author-bio-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.author-link {
    background: var(--accent-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.author-link:hover {
    background: var(--secondary-color);
}

.related-posts-section {
    margin: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.related-post-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.related-post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-post-content {
    padding: 1.5rem;
}

.related-post-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.related-post-date {
    color: var(--text-light);
}

.related-post-category {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
}

.related-post-title {
    margin-bottom: 1rem;
}

.related-post-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-title a:hover {
    color: var(--accent-color);
}

.related-post-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more-btn {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more-btn:hover {
    color: var(--secondary-color);
}

.post-navigation-section {
    background: var(--light-gray);
    padding: 3rem 0;
    margin: 4rem 0;
    border-radius: 15px;
}

.nav-post {
    text-align: center;
    padding: 2rem;
}

.prev-post {
    text-align: left;
}

.next-post {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-title {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-title:hover {
    color: var(--accent-color);
}

.comments-section {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin: 4rem 0;
}

/* Responsive Design for Single Posts */
@media (max-width: 768px) {
    .post-title {
        font-size: 2rem;
    }
    
    .post-meta-top {
        flex-direction: column;
        gap: 1rem;
    }
    
    .post-content-wrapper .col-8,
    .post-content-wrapper .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .post-sidebar {
        position: static;
        margin-top: 2rem;
    }
    
    .author-bio-card {
        flex-direction: column;
        text-align: center;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 200px;
    }
    
    .nav-post {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .prev-post, .next-post {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .post-title {
        font-size: 1.5rem;
    }
    
    .post-hero {
        padding: 2rem 0;
    }
    
    .sidebar-widget {
        padding: 1.5rem;
    }
    
    .author-bio-card {
        padding: 0 1rem;
    }
    
    .section-header h3 {
        font-size: 2rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
