body {
    font-family: 'Source Sans 3', sans-serif;
    margin: 0;
    padding: 0;
    background: #f9f4f0; /* soft neutral */
    color: #333;
    padding-top: 0px; /* Push content down from header */
    padding-bottom: 0px; /* Push content away from footer */
    /*padding-left: 20px;*/
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to right, #a2d5c6, #d3edea); /* calming greens/blues */
    padding: 3px 3px;
    margin-bottom: 10px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo img {
    height: 50px;
    margin-left: 3px;
    border-radius: 5px;
}

nav {
    width: 100%;
    background: linear-gradient(to right, #a2d5c6, #d3edea); /* calming greens/blues */
    padding: 10px 0;
}


nav ul {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-evenly;
    gap: 5px; 
    /*background: #004d40;*/
    /*padding-left: 0px;*/
}

nav ul li {
    position: relative;
    padding: 10px 15px;
    text-align: center;
    white-space: nowrap;
    flex-grow: 1;
}

/* 📌 Menu Links */
nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
    display: block;
}

nav ul li a:hover {
    color: #ff9800;
}

@supports (-ms-ime-align: auto) { 
    nav ul {
        display: flex;
        justify-content: space-evenly;
    }
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown > a {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 5px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    z-index: 1000;
    text-align: center;
    transition: all 0.3s ease-in-out;
}

.dropdown-menu li {
    padding: 10px;
    text-align: center;
    white-space: nowrap;
}

.dropdown-menu li a {
    color: #004d40;
    font-weight: normal;
    display: block;
    padding: 10px;
    transition: background 0.3s;
}

.dropdown-menu li a:hover {
    background: #ff9800;
    color: white;
}

@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        display: block;
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: space-evenly;
        gap: 5px;
    }

    nav ul li {
        flex: 1 1 auto;
        text-align: center;
        padding: 8px 10px;
    }

    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        left: 50%;
        /*transform: translateX(-50%);*/
        /*min-width: 180px;*/
        text-align: center;
        box-shadow: none;
        background: white;
        padding: 10px;
    }
    
    .dropdown-menu li {
        padding: 10px;
        display: block;
    }
    
    .dropdown-menu li a {
        display: block;
        color: #004d40;
        font-weight: bold;
        padding: 10px;
        background: #f4f4f4;
        border-radius: 5px;
        transition: background 0.3s;
    }

    .dropdown-menu li a:hover{
        background: #ff9800;
        color: white;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.hero {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(to right, #e4f9f5, #c8e6e6);
    color: #4b4b4b;
    border-bottom-left-radius: 80px;
    border-bottom-right-radius: 80px;
}

.hero h1 {
    font-size: 2.8rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-top: 10px;
}

.cta-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: #f7b733; /* warm yellow-orange */
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease-in-out;
}

.cta-button:hover {
    background: #f79e02;
    transform: scale(1.05);
}

section {
    max-width: 1100px;
    margin: auto;
    padding: 50px 20px;
    text-align: center;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.card {
    background: #fffdfb;
    color: #444;
    border: 1px solid #f0eaea;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
    width: 300px;
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: scale(1.02);
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.1);
}

.card h3 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card p {
    font-size: 1rem;
    color: #666;
}

footer {
    text-align: center;
    background: linear-gradient(to right, #c1dfc4, #deecdd);
    color: #333;
    padding: 40px 20px;
    margin-top: 20px;
    border-top-left-radius: 80px;
    border-top-right-radius: 80px;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .card-container {
        flex-direction: column;
        align-items: center;
    }

    .dark-mode-toggle {
        top: 15px;
        right: 15px;
    }

    body {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    header, footer {
        padding: 3px 3px
    }

    .cta-button {
        font-size: 14px;
        padding: 10px 15px;
    }
}

body.dark-mode {
    background: #121212;
    color: #ffffff;
}
/*
body.dark-mode {
    background: var(--background-dark);
}*/

header.dark-mode {
    background: rgba(30, 30, 30, 0.9);
}

footer.dark-mode {
    background: #1a1a1a;
}

.card.dark-mode {
    background: #1e1e1e;
    color: #333;
    box-shadow: 0px 10px 30px rgba(255, 255, 255, 0.1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero, .card, canvas {
    animation: fadeIn 1s ease-in-out;
}

button {
    transition: transform 0.2s ease-in-out;
}

button:hover {
    transform: scale(1.05);
}

.dark-mode-toggle {
    position: fixed;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 5px;
    backdrop-filter: blur(2px);
    cursor: pointer;
    z-index: 9999;
}

@media (max-width: 768px) {
    .dark-mode-toggle {
        top: 10px;
        right: 10px;
        padding: 6px 8px;
        font-size: 14px;
    }
}

.dark-mode-toggle button {
    background: #ff9800;
    color: white;
    border: none;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
}

.dark-mode-toggle button:hover {
    background: #e68900;
}

.news-carousel {
    width: 100%;
    overflow: hidden;
    background: #004d40;
    color: #fff;
    padding: 10px;
    border-radius: 10px;
    position: relative;
}

body.dark-mode .news-carousel {
    background: #1a1a1a;
    color: #fff;
}

.news-carousel {
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 20px;
    animation: scrollNews 20s linear infinite;
}

.carousel-item {
    white-space: nowrap;
    padding: 10px;
    font-size: 1rem;
}

@keyframes scrollNews {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

body.dark-mode .carousel-item {
    background: #222;
}

.blog-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
    background: var(--background-light);
    color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

body.dark-mode .blog-container {
    background: var(--background-dark);
    color: var(--text-dark);
}

.blog-list {
    list-style: url;
    padding: 0;
}

.blog-list li {
    margin: 10px 0;
}

.blog-list a {
    text-decoration: none;
    font-size: 1.2em;
    color: var(--highlight);
}

.blog-list a:hover {
    text-decoration: underline;
}

.blog-content {
    max-width: 99%;
    width: 100%;
    text-align: left;
    font-size: 1em;
    line-height: 1.6;
    padding: 3px;
    border-radius: 8px;
    background: var(--background-light);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    overflow: visible; 
    margin-bottom: 20px;
}

.blog-list-container {
    padding: 20px;
    background: #fff8f1;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}


body.dark-mode .blog-content {
    background: var(--background-dark);
    color: var(--text-dark);
}

.blog-content img, .blog-content table {
    max-width: 100%;
    height: auto;
    margin: auto;
}

.blog-content pre {
    overflow-x: auto;
    word-wrap: normal;
    white-space: pre-wrap;
}

@media (max-width: 768px) {
    .blog-content {
        width: 99%;
        font-size: 1rem;
        padding: 3px;
        overflow: visible;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
}

.error {
    color: red;
    font-weight: bold;
}

@keyframes scroll-left {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

.energy-pricing-container {
    font-family: 'Quicksand', 'Source Sans 3', sans-serif;
    font-size: 1rem;
    max-width: 800px;
    margin: 120px auto 40px auto;
    padding: 25px;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
  
  .energy-pricing-container h2 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    text-align: center;
    color: #e67e22;
    margin-bottom: 25px;
  }
  
  .energy-pricing-container h3 {
    color: #3498db;
    margin-top: 30px;
  }
  
  .energy-pricing-container p {
    text-align: left;
    font-size: 16px;
    margin-top: 20px;
  }
  
  .energy-pricing-container ul {
    margin-bottom: 25px;
  }
  
  .energy-pricing-container ul li {
    margin-bottom: 15px;
  }
  
  .energy-pricing-btn {
    background-color: #e67e22;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    margin-top: 15px;
  }
  
/* Dark Mode triggered manually via button */
body.dark-mode .energy-pricing-container {
    background: var(--background-dark);
    color: var(--text-dark);
  }
  
  body.dark-mode .energy-pricing-container h2,
  body.dark-mode .energy-pricing-container h3 {
    color: #ffa726;
  }
  
  body.dark-mode .energy-pricing-btn {
    background-color: #ffa726;
    color: #2c2f36;
  }

.scroll-friendly {
    touch-action: manipulation;
    overflow-x: auto;
    max-width: 100%;
}