/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.image-loading {
    filter: blur(5px);
    transition: filter 0.3s;
}

.image-loaded {
    filter: blur(0);
}

/* Newsletter Styles */
.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    max-width: 400px;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.newsletter-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.benefit-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.benefit-item span {
    font-weight: 500;
    color: var(--dark-color);
}

.newsletter-success {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    display: none;
}

@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-form input {
        max-width: 100%;
        width: 100%;
    }
    
    .newsletter-benefits {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
}

:root {
    --primary-color: #2ecc71;
    --secondary-color: #27ae60;
    --accent-color: #3498db;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-alt: #f1f8e9;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    color: var(--dark-color);
}

h2 {
    font-size: 2.2rem;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Navigation */
.navbar {
    background-color: white;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-brand i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.nav-menu ul {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-link {
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

#search-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 25px;
    width: 200px;
    transition: all 0.3s ease;
}

#search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    width: 250px;
}

#search-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 8px;
    margin-left: -35px;
    z-index: 1;
}

.search-results {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
    z-index: 1000;
    display: none;
    margin-top: 10px;
}

.search-result-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: var(--bg-light);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 4px;
}

.search-result-category {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-result-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 4px;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-light);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(46, 204, 113, 0.8), rgba(39, 174, 96, 0.8)), url('../images/hero/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 0 80px;
    margin-top: 70px;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image i {
    font-size: 15rem;
    color: var(--primary-color);
    opacity: 0.8;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-alt {
    background-color: var(--bg-alt);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.article-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.article-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(46, 204, 113, 0.3), rgba(39, 174, 96, 0.3));
    z-index: 1;
}

.article-image i {
    position: relative;
    z-index: 2;
    font-size: 4rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.article-content {
    padding: 1.5rem;
}

.article-content h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.tool-icon {
    width: 80px;
    height: 80px;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    overflow: hidden;
}

.tool-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(46, 204, 113, 0.7), rgba(39, 174, 96, 0.7));
    z-index: 1;
}

.tool-icon i {
    position: relative;
    z-index: 2;
    font-size: 2rem;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.tool-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.tool-card p {
    margin-bottom: 1.5rem;
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.resource-category {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.resource-category h3 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
}

.resource-category h3 i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.resource-list {
    list-style: none;
}

.resource-list li {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--light-color);
}

.resource-list li:last-child {
    border-bottom: none;
}

.resource-list a {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.resource-list a:hover {
    color: var(--primary-color);
}

/* Ideas Grid */
.ideas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.idea-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.idea-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.idea-image {
    height: 150px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.idea-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(52, 152, 219, 0.4), rgba(41, 128, 185, 0.4));
    z-index: 1;
}

.idea-image i {
    position: relative;
    z-index: 2;
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.idea-card {
    padding: 2rem;
    text-align: center;
}

.idea-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.idea-card p {
    margin-bottom: 0;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--light-color);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom i {
    color: #e74c3c;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: modalopen 0.4s;
}

@keyframes modalopen {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-light);
}

.close:hover {
    color: var(--dark-color);
}

.calculator-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.checkbox-group input {
    width: auto;
    margin-right: 0.5rem;
}

.result {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: var(--bg-alt);
    border-radius: 5px;
    font-weight: 500;
    display: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image i {
        font-size: 10rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        padding: 1rem 0;
    }
    
    .nav-menu li {
        margin: 0;
    }
    
    .nav-link {
        display: block;
        padding: 0.5rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-image i {
        font-size: 8rem;
    }
    
    .articles-grid,
    .tools-grid,
    .resources-grid,
    .ideas-grid {
        grid-template-columns: 1fr;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
    }
    
    /* Enhanced mobile image responsiveness */
    .article-image,
    .idea-image {
        min-height: 120px;
    }
    
    .tool-icon {
        width: 50px;
        height: 50px;
    }
    
    .tool-icon i {
        font-size: 1.2rem;
    }
    
    .article-image i,
    .idea-image i {
        font-size: 2rem;
    }
    
    .hero-image i {
        font-size: 6rem;
    }
}
/* Quiz Styles */
.quiz-container {
    margin-top: 2rem;
}

.quiz-question {
    margin-bottom: 2rem;
}

.quiz-question h3 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-options label {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-options label:hover {
    background-color: var(--bg-light);
    border-color: var(--primary-color);
}

.quiz-options input[type="radio"] {
    margin-right: 1rem;
    width: auto;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.quiz-result {
    text-align: center;
}

.score-display {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

.score-category {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.recommendations {
    text-align: left;
    margin-top: 2rem;
}

.recommendations h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.recommendations ul {
    list-style: none;
    padding: 0;
}

.recommendations li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.recommendations li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Home Audit Tool Styles */
.audit-summary {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 5px;
    margin: 1.5rem 0;
}

.audit-summary h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.potential-savings {
    background-color: var(--bg-alt);
    padding: 1.5rem;
    border-radius: 5px;
    margin: 1.5rem 0;
    text-align: center;
}

.potential-savings h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Product Finder Tool Styles */
.product-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.product-result-item {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.product-result-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.product-info h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-tag {
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.eco-score {
    background-color: #d4edda;
    color: #155724;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.budget-tag {
    background-color: var(--accent-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.search-tips {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 5px;
    margin-top: 1.5rem;
}

.search-tips h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.search-tips ul {
    list-style: none;
    padding: 0;
}

.search-tips li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.search-tips li:last-child {
    border-bottom: none;
}

/* Tool Page Styles */
.tool-page {
    padding-top: 80px;
}

.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

.tool-content {
    padding: 4rem 0;
}

.tool-intro {
    background-color: var(--bg-alt);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 3rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.calculator-container {
    max-width: 800px;
    margin: 0 auto 4rem;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.2);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    border-color: var(--primary-color);
    background-color: rgba(46, 204, 113, 0.05);
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.75rem;
}

.result {
    margin-top: 2rem;
    padding: 2rem;
    background-color: var(--bg-alt);
    border-radius: 10px;
    display: none;
}

.result h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.simulation-summary,
.improvement-analysis,
.savings-projection,
.recommendations {
    margin-bottom: 2rem;
}

.simulation-summary h4,
.improvement-analysis h4,
.savings-projection h4,
.recommendations h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.simulation-summary ul,
.improvement-analysis ul,
.recommendations ul {
    list-style-type: none;
    padding-left: 0;
}

.simulation-summary li,
.improvement-analysis li,
.recommendations li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.simulation-summary li:last-child,
.improvement-analysis li:last-child,
.recommendations li:last-child {
    border-bottom: none;
}

.tool-info {
    max-width: 1000px;
    margin: 0 auto;
}

.info-section {
    margin-bottom: 3rem;
}

.info-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tip-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.tip-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tip-card h4 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.related-tools {
    margin-top: 4rem;
    text-align: center;
}

.related-tools h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.tool-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-tools .tool-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.related-tools .tool-card:hover {
    transform: translateY(-5px);
}

.related-tools .tool-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.related-tools .tool-card h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: var(--secondary-color);
}

/* Waste Reduction Tracker Styles */
.tracker-container {
    max-width: 1000px;
    margin: 0 auto 4rem;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.tracker-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tracker-form {
    margin-bottom: 2rem;
}

.waste-categories {
    margin-bottom: 2rem;
}

.category-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 10px;
}

.category-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.tracker-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

.weekly-summary {
    margin-bottom: 2rem;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.summary-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.summary-card h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.summary-card .value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.weekly-chart {
    text-align: center;
}

.weekly-chart h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.goals-container {
    margin-bottom: 2rem;
}

.goal-form {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.goal-form .form-group {
    display: inline-block;
    margin-right: 2rem;
    margin-bottom: 0;
}

.progress-tracker {
    margin-bottom: 2rem;
}

.progress-tracker h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.progress-bar-container {
    width: 100%;
    height: 20px;
    background-color: #eee;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.5s ease;
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
}

.milestones {
    margin-top: 2rem;
}

.milestones h4 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.milestone-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.milestone {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    background-color: var(--bg-light);
}

.milestone[data-achieved="true"] {
    background-color: rgba(46, 204, 113, 0.1);
}

.milestone i {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.milestone .achieved {
    color: var(--primary-color);
}

.milestone .not-achieved {
    color: #ccc;
}

.milestone-info h5 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.milestone-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.analytics-container {
    margin-bottom: 2rem;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.analytics-card {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
}

.analytics-card h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    text-align: center;
}

.chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.recommendations {
    margin-top: 2rem;
}

.recommendations h4 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.recommendation-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.recommendation {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.recommendation i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.recommendation-content h5 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.recommendation-content p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.instructions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-light);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .tracker-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 120px;
        text-align: center;
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .input-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .milestone-list {
        grid-template-columns: 1fr;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .impact-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .recommendation-list {
        grid-template-columns: 1fr;
    }
    
    .instructions {
        grid-template-columns: 1fr;
    }
    
    .goal-form .form-group {
        display: block;
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .product-results {
        grid-template-columns: 1fr;
    }
    
    .product-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .page-header {
        padding: 3rem 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .tool-content {
        padding: 2rem 0;
    }
    
    .calculator-container {
        padding: 1.5rem;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-cards {
        grid-template-columns: 1fr;
    }
}
/* Category cards (articles section) */
.article-card.expandable {
    cursor: pointer;
}
.article-card.expandable .card-image {
    background: linear-gradient(135deg, #2d5016, #4a7c28);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.article-card.expandable .card-image i {
    font-size: 2.5rem;
    color: white;
    opacity: 0.9;
}
.article-card.expandable .article-list {
    display: none;
    margin-top: 1rem;
}
.article-card.expandable .article-list ul {
    list-style: none;
    padding: 0;
}
.article-card.expandable .article-list li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #3a4a2e;
}
.article-card.expandable .article-list a {
    color: #a8c686;
    font-weight: 600;
    text-decoration: none;
}
.article-card.expandable .article-list a:hover {
    text-decoration: underline;
}
.article-card.expandable .article-list .article-desc {
    font-size: 0.85rem;
    color: #8b9a7d;
    margin: 0.25rem 0 0;
}

/* Newsletter section */
.newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 1.5rem auto 0;
}
.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #3a4a2e;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: white;
    font-size: 1rem;
}
.newsletter-form input::placeholder {
    color: #8b9a7d;
}
.newsletter-form button {
    padding: 12px 24px;
    background: #4a7c28;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}
.newsletter-form button:hover {
    background: #2d5016;
}

/* Fallback for missing images - gradient backgrounds */
.article-image {
    position: relative;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-image i {
    font-size: 3rem;
    color: white;
    opacity: 0.8;
    z-index: 1;
}

.tool-icon {
    position: relative;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-icon i {
    font-size: 2.5rem;
    color: white;
    opacity: 0.8;
    z-index: 1;
}

.resource-card {
    text-align: center;
}

.idea-card {
    text-align: center;
}
