:root {
    --primary-color: #1295d9;
    --secondary-color: #27f7c6;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --dark-bg: #1e293b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Enhanced Navbar */
.custom-navbar {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(18, 149, 217, 0.07);
    border-bottom: 1.5px solid #e2e8f0;
    z-index: 9999 !important;
    transition: all 0.3s ease;
}

.navbar-logo {
    height: 38px;
    width: auto;
    margin-right: 10px;
    display: inline-block;
}

.navbar-brand-text {
    font-weight: 800;
    font-size: 1.45rem;
    color: #1295d9 !important;
    letter-spacing: 0.5px;
}

.navbar-toggler {
    border: 2px solid #1295d9 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    background: rgba(18, 149, 217, 0.1) !important;
    z-index: 10000 !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(18, 149, 217, 0.25) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231295d9' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 20px !important;
    height: 20px !important;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: #1e293b !important;
    margin: 0 4px;
    font-size: 1.08rem;
    transition: color 0.3s, background 0.3s;
    border-radius: 8px;
    padding: 8px 18px !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #27f7c6 !important;
    background: #f0f9ff;
}

.btn-navbar-cta {
    background: linear-gradient(90deg, #1295d9 60%, #27f7c6 100%);
    color: #fff !important;
    font-weight: 700;
    font-size: 1.08rem;
    border: none;
    border-radius: 50px;
    padding: 12px 32px;
    box-shadow: 0 4px 18px rgba(18, 149, 217, 0.1);
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-navbar-cta:hover {
    background: #1295d9;
    color: #fff !important;
    transform: translateY(-2px) scale(1.04);
}

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, rgba(18, 149, 217, 0.9) 0%, rgba(39, 247, 198, 0.8) 100%),
                url('/placeholder.svg?height=600&width=1200&text=Solar+Energy+Savings');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="blog-pattern" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="12.5" cy="12.5" r="1.5" fill="rgba(255,255,255,0.1)"/><path d="M12.5,5 L12.5,20 M5,12.5 L20,12.5" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23blog-pattern)"/></svg>');
    opacity: 0.3;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
}

.blog-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: slideInUp 1s ease-out;
    line-height: 1.2;
}

.blog-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: slideInUp 1s ease-out 0.2s both;
    color: rgba(255, 255, 255, 0.95);
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 2rem;
    animation: slideInUp 1s ease-out 0.4s both;
    flex-wrap: wrap;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.blog-author i {
    color: var(--secondary-color);
}

.blog-date {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.blog-date i {
    color: var(--accent-color);
}

.blog-stats {
    display: flex;
    gap: 20px;
    animation: slideInUp 1s ease-out 0.6s both;
    flex-wrap: wrap;
}

.blog-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    font-size: 0.95rem;
}

.blog-stat i {
    color: var(--secondary-color);
}

/* Blog Content Section */
.blog-content-section {
    background: white;
    padding: 100px 0;
}

.blog-content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.blog-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 50px 0 25px 0;
    color: var(--primary-color);
    position: relative;
}

.blog-content h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.blog-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 40px 0 20px 0;
    color: var(--text-dark);
}

.blog-content p {
    margin-bottom: 25px;
}

.blog-content strong {
    color: var(--primary-color);
    font-weight: 700;
}

.blog-content ul, .blog-content ol {
    margin: 25px 0;
    padding-left: 30px;
}

.blog-content li {
    margin-bottom: 10px;
}

.blog-content blockquote {
    background: var(--bg-light);
    border-left: 5px solid var(--secondary-color);
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 0 15px 15px 0;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-light);
}

.blog-image {
    margin: 40px 0;
    text-align: center;
}

.blog-image img {
    width: 100%;
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-image img:hover {
    transform: scale(1.02);
}

.blog-image-caption {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 10px;
    font-style: italic;
}

.table-of-contents {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 20px;
    margin: 30px 0;
    border: 2px solid #e2e8f0;
}

.table-of-contents h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 10px;
}

.table-of-contents a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-of-contents a:hover {
    color: var(--primary-color);
}

.table-of-contents a i {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

/* Social Share Buttons */
.social-share {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 20px;
    margin: 40px 0;
    text-align: center;
    border: 2px solid #e2e8f0;
}

.social-share h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.social-share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    color: white;
}

.social-share-btn.facebook {
    background: #1877f2;
}

.social-share-btn.twitter {
    background: #1da1f2;
}

.social-share-btn.linkedin {
    background: #0077b5;
}

.social-share-btn.whatsapp {
    background: #25d366;
}

/* Tags Section */
.blog-tags {
    margin: 40px 0;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 20px;
    border: 2px solid #e2e8f0;
}

.blog-tags h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: white;
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.tag i {
    font-size: 0.8rem;
}

/* Related Articles Section */
.related-articles-section {
    background: var(--bg-light);
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.related-article-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    border: 2px solid #e2e8f0;
    margin-bottom: 30px;
}

.related-article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.related-article-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.related-article-card:hover::before {
    transform: scaleX(1);
}

.related-article-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.related-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-article-card:hover .related-article-image img {
    transform: scale(1.1);
}

.related-article-content {
    padding: 25px;
}

.related-article-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
    line-height: 1.4;
}

.related-article-summary {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1rem;
}

.related-article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.read-more-btn {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(18, 149, 217, 0.3);
    color: white;
}

/* CTA Section */
.blog-cta-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #334155 100%);
    color: white;
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.blog-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="cta-pattern" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="1" fill="rgba(39,247,198,0.1)"/><path d="M15,5 L15,25 M5,15 L25,15" stroke="rgba(39,247,198,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23cta-pattern)"/></svg>');
    opacity: 0.3;
}

.blog-cta-content {
    position: relative;
    z-index: 2;
}

.blog-cta-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 15px 35px rgba(18, 149, 217, 0.3);
}

.blog-cta-section h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.blog-cta-section p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blog-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta {
    background: var(--secondary-color);
    color: var(--text-dark);
    border: none;
    padding: 18px 35px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(39, 247, 198, 0.3);
}

.btn-cta:hover {
    background: #1ee6b8;
    transform: translateY(-3px) scale(1.05);
    color: var(--text-dark);
}

.btn-cta.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-cta.secondary:hover {
    background: white;
    color: var(--text-dark);
}

/* WhatsApp Button */
.whatsapp-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background: #25d366;
    border-radius: 35px;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
    padding: 0 28px;
    min-width: 0;
    height: 56px;
    position: fixed;
    bottom: 30px;
    right: 30px;
    color: #fff;
    font-size: 1.15rem;
    text-decoration: none;
    z-index: 9998 !important;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-btn i {
    font-size: 2rem;
    margin-right: 14px;
    margin-left: 2px;
}

.whatsapp-btn-text {
    font-weight: 600;
    font-size: 1.13rem;
    color: #fff;
    white-space: nowrap;
    letter-spacing: 0.5px;
    margin: 0;
}

.whatsapp-btn:hover {
    background: #128c7e;
    transform: scale(1.08);
    color: #fff;
}

.whatsapp-btn::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: rgba(37, 211, 102, 0.3);
    border-radius: 40px;
    animation: ripple 2s infinite;
    z-index: -1;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 100px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.footer-section p,
.footer-section li {
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 12px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.newsletter-form {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #475569;
    border-radius: 12px;
    background: #334155;
    color: white;
}

.newsletter-form input::placeholder {
    color: #94a3b8;
}

.newsletter-form button {
    background: var(--secondary-color);
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    color: var(--text-dark);
    font-weight: 600;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #1ee6b8;
}

.footer-bottom {
    border-top: 1px solid #475569;
    padding-top: 40px;
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: #475569;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98) !important;
        border-radius: 15px !important;
        margin-top: 15px !important;
        padding: 20px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
        border: 1px solid #e2e8f0 !important;
    }

    .btn-navbar-cta {
        width: 100%;
        text-align: center;
        margin-top: 16px;
    }

    .navbar-nav .nav-link {
        margin: 0 0 8px 0;
        text-align: center;
    }

    .blog-meta {
        flex-direction: column;
        gap: 10px;
    }

    .blog-stats {
        justify-content: center;
    }

    .blog-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-cta {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2.8rem;
    }

    .blog-subtitle {
        font-size: 1.2rem;
    }

    .blog-content-section {
        padding: 60px 0;
    }

    .blog-content {
        font-size: 1.1rem;
    }

    .blog-content h2 {
        font-size: 1.8rem;
    }

    .blog-content h3 {
        font-size: 1.5rem;
    }

    .related-articles-section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .blog-cta-section {
        padding: 60px 0;
    }

    .blog-cta-section h2 {
        font-size: 2.2rem;
    }

    .blog-cta-section p {
        font-size: 1.1rem;
    }

    .whatsapp-btn {
        height: 48px;
        padding: 0 14px;
        right: 16px;
        bottom: 16px;
        border-radius: 24px;
    }

    .whatsapp-btn i {
        font-size: 1.3rem;
        margin-right: 8px;
    }

    .whatsapp-btn-text {
        font-size: 0.98rem;
    }

    .footer {
        padding: 60px 0 30px;
    }

    .footer-content {
        gap: 30px;
        margin-bottom: 30px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .blog-hero h1 {
        font-size: 2.2rem;
    }

    .blog-subtitle {
        font-size: 1.1rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .blog-cta-section h2 {
        font-size: 1.8rem;
    }

    .btn-cta {
        padding: 15px 25px;
        font-size: 1.1rem;
    }

    .social-share-buttons {
        gap: 10px;
    }

    .social-share-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}