/* Base Styles */
:root {
    --primary-color: #2ecc71;
    --primary-dark: #27ae60;
    --secondary-color: #3498db;
    --text-color: #333;
    --text-light: #666;
    --text-lighter: #999;
    --bg-color: #fff;
    --bg-light: #f9f9f9;
    --bg-dark: #222;
    --border-color: #eee;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    margin-top: 15px;
    margin-bottom: 15px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #2980b9;
    color: white;
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo-text {
    color: var(--text-color);
}

.highlight {
    color: var(--primary-color);
}

nav .menu {
    display: flex;
}

nav .menu li {
    margin-left: 25px;
}

nav .menu li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

nav .menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav .menu li a:hover::after,
nav .menu li a.active::after {
    width: 100%;
}

.btn-contact {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 50px;
}

.btn-contact:hover {
    background-color: var(--primary-dark);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/solar-panels.png');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    margin-top: 0;
    padding-top: 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* AdSense Container */
.ad-container {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    text-align: center;
    padding: 20px 0;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
}

/* Intro Section */
.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.intro-text p {
    margin-bottom: 20px;
}

.intro-text ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.intro-text ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.intro-text ul li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Benefits Section */
.benefits {
    background-color: var(--bg-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.benefit-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Cost Overview Section */
.cost-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.cost-table {
    width: 100%;
    margin: 25px 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.table-row.header {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.cell {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.table-row:last-child .cell {
    border-bottom: none;
}

/* Latest Articles Section */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-10px);
}

.article-content {
    padding: 20px;
}

.article-date {
    color: var(--text-lighter);
    font-size: 0.9rem;
}

.article-content h3 {
    margin: 10px 0;
    font-size: 1.3rem;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    color: var(--primary-color);
}

.articles-footer {
    text-align: center;
    margin-top: 40px;
}

/* FAQ Section */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.faq-question {
    background-color: white;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 500;
}

.faq-toggle {
    color: var(--primary-color);
}

.faq-answer {
    background-color: var(--bg-light);
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px;
}

.faq-item.active .fa-plus {
    transform: rotate(45deg);
}

.faq-footer {
    text-align: center;
    margin-top: 40px;
}

/* Calculator Preview Section */
.calculator-preview {
    background-color: var(--bg-light);
}

.calculator-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.calculator-text h2 {
    margin-bottom: 20px;
}

.calculator-text ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.calculator-text ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.calculator-text ul li:before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Newsletter Section */

/* Image Generator Styles */
.controls {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-right: 10px;
}
button:hover {
    background-color: #2980b9;
}
.newsletter {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/newsletter-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.newsletter p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    margin-bottom: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 50px 0 0 50px;
    font-size: 1rem;
}

.newsletter-form button {
    border-radius: 0 50px 50px 0;
    padding: 0 30px;
}

.privacy-note {
    font-size: 0.9rem;
    opacity: 0.7;
}

.privacy-note a {
    color: white;
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.contact-email {
    display: inline-block;
    margin: 15px 0;
    color: var(--primary-color);
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #ccc;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .intro-content,
    .cost-content,
    .calculator-content {
        grid-template-columns: 1fr;
    }
    
    .intro-image,
    .cost-image,
    .calculator-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    nav .menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        flex-direction: column;
        background-color: white;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 40px 20px;
        transition: 0.3s;
        z-index: 999;
    }
    
    nav .menu.active {
        left: 0;
    }
    
    nav .menu li {
        margin: 15px 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 50px;
        margin-bottom: 15px;
    }
    
    .newsletter-form button {
        border-radius: 50px;
    }
    
    /* Page Banner */
    .page-banner {
        background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/page-banner.jpg');
        background-size: cover;
        background-position: center;
        height: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        text-align: center;
        margin-top: 70px;
    }
    
    .page-banner h1 {
        font-size: 3rem;
        margin-bottom: 15px;
        font-weight: 700;
    }
    
    .page-banner p {
        font-size: 1.2rem;
        opacity: 0.9;
    }
    
    /* Content Grid */
    .content-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: center;
        margin-bottom: 50px;
    }
    
    .content-text h3 {
        margin: 25px 0 15px;
        font-size: 1.5rem;
    }
    
    .content-text p {
        margin-bottom: 15px;
    }
    
    /* Types Grid */
    .types-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
    
    .type-card {
        background-color: white;
        border-radius: var(--border-radius);
        overflow: hidden;
        box-shadow: var(--box-shadow);
    }
    
    .type-content {
        padding: 20px;
    }
    
    .type-content h3 {
        margin-bottom: 15px;
        font-size: 1.3rem;
    }
    
    .type-content p {
        margin-bottom: 10px;
    }
    
    /* Components Grid */
    .components-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }
    
    .component-card {
        background-color: white;
        padding: 30px;
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
        text-align: center;
        transition: var(--transition);
    }
    
    .component-card:hover {
        transform: translateY(-10px);
    }
    
    .component-icon {
        font-size: 2.5rem;
        color: var(--primary-color);
        margin-bottom: 20px;
    }
    
    .component-card h3 {
        margin-bottom: 15px;
        font-size: 1.3rem;
    }
    
    /* Innovations Section */
    .innovations {
        background-color: var(--bg-light);
    }
    
    .innovations-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: center;
    }
    
    .innovations-text h3 {
        margin: 25px 0 15px;
        font-size: 1.5rem;
    }
    
    .innovations-text p {
        margin-bottom: 20px;
    }
    
    /* Responsive adjustments for subpages */
    @media (max-width: 992px) {
        .content-grid,
        .innovations-content {
            grid-template-columns: 1fr;
        }
        
        .content-image,
        .innovations-image {
            order: -1;
        }
        
        .page-banner {
            height: 250px;
        }
        
        .page-banner h1 {
            font-size: 2.5rem;
        }
    }
    
    @media (max-width: 768px) {
        .page-banner {
            height: 200px;
            margin-top: 60px;
        }
        
        .page-banner h1 {
            font-size: 2rem;
        }
        
        .page-banner p {
            font-size: 1rem;
        }
    }
    
    @media (max-width: 576px) {
        .page-banner {
            height: 180px;
        }
        
        .page-banner h1 {
            font-size: 1.8rem;
        }
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        margin-top: 15px;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .table-row {
        grid-template-columns: 1fr;
    }
    
    .cell {
        text-align: left;
    }
    
    .table-row.header .cell:not(:first-child) {
        display: none;
    }
    
    .table-row:not(.header) {
        padding: 15px;
    }
    
    .table-row:not(.header) .cell {
        padding: 5px 15px;
    }
    
    .table-row:not(.header) .cell:before {
        content: attr(data-label);
        font-weight: 600;
        display: inline-block;
        width: 50%;
    }
}

.faq-section {
    margin: 2rem 0;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.faq-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

th, td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    text-align: left;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
}

@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
    }
}

.blog-article h3 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
}

.blog-article .section-header h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 700;
}

.blog-article h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 600;
}

.blog-article p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}