/*
Theme Name: PMSG Solar Blog
Theme URI: https://pmsgcalculator.in/blog/
Author: PMSG Calculator
Description: Custom WordPress blog theme matching the PMSG Calculator HTML website.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: pmsg-solar-blog
*/

        /* ===== RESET & BASE STYLES ===== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            line-height: 1.6;
            color: #333;
            background: linear-gradient(135deg, #f8f9ff 0%, #f0f7ff 100%);
            min-height: 100vh;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* ===== HEADER ===== */
        .site-header {
            background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
            color: white;
            padding: 15px 0;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
        }
        
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            color: white;
        }
        
        .logo-icon {
            font-size: 32px;
        }
        
        .logo-text {
            font-size: 24px;
            font-weight: 700;
        }
        
        .logo-subtext {
            font-size: 12px;
            opacity: 0.8;
        }
        
        .nav-menu {
            display: flex;
            gap: 25px;
        }
        
        .nav-link {
            color: white;
            text-decoration: none;
            font-weight: 600;
            font-size: 16px;
            padding: 8px 12px;
            border-radius: 8px;
            transition: background 0.3s;
        }
        
        .nav-link:hover, .nav-link.active {
            background: rgba(255, 255, 255, 0.1);
        }
        
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
        }
        
        /* ===== MAIN HERO SECTION ===== */
        .hero-section {
            text-align: center;
            padding: 40px 0 20px;
        }
        
        .main-heading {
            font-size: 32px;
            font-weight: 800;
            margin: 25px auto;
            padding: 20px 40px;
            color: #fff;
            background: linear-gradient(135deg, #4299e1 0%, #3182ce 30%, #2c5282 70%, #1a365d 100%);
            display: inline-block;
            border-radius: 16px;
            box-shadow: 0 8px 25px rgba(66, 153, 225, 0.4);
            border: 3px solid rgba(255, 255, 255, 0.15);
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            line-height: 1.4;
            transition: all 0.3s ease;
        }
        
        .main-heading:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 30px rgba(66, 153, 225, 0.5);
        }
        
        .hero-emoji {
            font-size: 36px;
            margin: 0 10px;
        }
        
        .hero-subtitle {
            font-size: 18px;
            color: #4a5568;
            max-width: 800px;
            margin: 20px auto 40px;
            line-height: 1.6;
            padding: 0 20px;
        }
        
        /* ===== CALCULATOR SECTION ===== */
        .calculator-container {
            max-width: 1000px;
            margin: 0 auto 50px;
        }
        
        /* ===== ARTICLE SECTION ===== */
        .article-section {
            background: white;
            border-radius: 20px;
            padding: 40px;
            margin: 40px 0;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        }
        
        .article-title {
            font-size: 32px;
            color: #1a365d;
            margin-bottom: 30px;
            padding-bottom: 15px;
            border-bottom: 3px solid #4299e1;
        }
        
        .article-subtitle {
            font-size: 24px;
            color: #2c5282;
            margin: 30px 0 15px;
        }
        
        .article-text {
            font-size: 16px;
            line-height: 1.8;
            color: #2d3748;
            margin-bottom: 20px;
        }
        
        .article-highlight {
            background: #f0f9ff;
            padding: 25px;
            border-radius: 15px;
            border-left: 5px solid #4299e1;
            margin: 30px 0;
        }
        
        .article-list {
            margin: 20px 0;
            padding-left: 20px;
        }
        
        .article-list li {
            margin-bottom: 10px;
            color: #2d3748;
        }
        
        .article-table {
            width: 100%;
            border-collapse: collapse;
            margin: 25px 0;
        }
        
        .article-table th {
            background: #4299e1;
            color: white;
            padding: 12px;
            font-weight: 600;
        }
        
        .article-table td {
            padding: 12px;
            border: 1px solid #e2e8f0;
        }
        
        .article-table tr:nth-child(even) {
            background: #f7fafc;
        }
        
        /* ===== INFO SECTIONS ===== */
        .info-sections {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
            margin: 40px 0;
        }
        
        .info-card {
            background: white;
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s;
            border: 2px solid transparent;
        }
        
        .info-card:hover {
            transform: translateY(-5px);
            border-color: #4299e1;
        }
        
        .info-card h3 {
            color: #2c5282;
            margin-bottom: 15px;
            font-size: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .info-card-icon {
            font-size: 24px;
        }
        
        /* ===== FAQ SECTION ===== */
        .faq-section {
            margin: 50px 0;
        }
        
        .section-title {
            text-align: center;
            font-size: 32px;
            color: #2c5282;
            margin-bottom: 30px;
        }
        
        .faq-item {
            background: white;
            border-radius: 10px;
            margin-bottom: 15px;
            overflow: hidden;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
        }
        
        .faq-question {
            padding: 20px;
            background: #f7fafc;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: background 0.3s;
        }
        
        .faq-question:hover {
            background: #edf2f7;
        }
        
        .faq-answer {
            padding: 20px;
            display: none;
            background: white;
            line-height: 1.8;
        }
        
        .faq-answer.active {
            display: block;
        }
        
        /* ===== FOOTER ===== */
        .site-footer {
            background: #1a202c;
            color: white;
            padding: 50px 0 20px;
            margin-top: 50px;
        }
        
        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            margin-bottom: 30px;
        }
        
        .footer-column h4 {
            color: #4299e1;
            margin-bottom: 20px;
            font-size: 18px;
        }
        
        .footer-links {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 10px;
        }
        
        .footer-links a {
            color: #cbd5e0;
            text-decoration: none;
            transition: color 0.3s;
        }
        
        .footer-links a:hover {
            color: white;
        }
        
        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid #2d3748;
            color: #a0aec0;
            font-size: 14px;
        }
        
        /* ===== RESPONSIVE DESIGN ===== */
        @media (max-width: 768px) {
            .nav-menu {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                background: #2c5282;
                flex-direction: column;
                padding: 20px;
                gap: 15px;
            }
            
            .nav-menu.active {
                display: flex;
            }
            
            .mobile-menu-btn {
                display: block;
            }
            
            .main-heading {
                font-size: 24px;
                padding: 15px 25px;
                margin: 20px 10px;
            }
            
            .hero-emoji {
                font-size: 28px;
            }
            
            .hero-subtitle {
                font-size: 16px;
                margin: 15px auto 30px;
            }
            
            .info-sections {
                grid-template-columns: 1fr;
            }
            
            .article-section {
                padding: 25px;
            }
            
            .article-title {
                font-size: 24px;
            }
            
            .article-subtitle {
                font-size: 20px;
            }
        }
        
        /* ===== UTILITY CLASSES ===== */
        .text-center {
            text-align: center;
        }
        
        .mt-20 {
            margin-top: 20px;
        }
        
        .mb-20 {
            margin-bottom: 20px;
        }
        
        .mt-40 {
            margin-top: 40px;
        }
        
        .mb-40 {
            margin-bottom: 40px;
        }
        
        /* ===== CALCULATOR STYLES ===== */
        .pmsg-embed { all: initial; }
        .pmsg-embed * { box-sizing: border-box; font-family: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }

        .pmsg-embed { display:block; margin: 24px 0; }
        .pmsg-card{
            all: unset;
            display:block;
            border: 1px solid rgba(0,0,0,.08);
            border-radius: 14px;
            background: linear-gradient(180deg, rgba(250,250,255,.95), rgba(255,255,255,.95));
            box-shadow: 0 8px 24px rgba(0,0,0,.06);
            padding: 16px;
            max-width: 920px;
            margin: 0 auto;
        }

        .pmsg-header{
            display:flex;
            align-items:flex-start;
            justify-content:space-between;
            gap: 12px;
            margin-bottom: 12px;
        }
        .pmsg-title{
            font-size: 18px;
            font-weight: 800;
            color: #111;
            line-height: 1.2;
        }
        .pmsg-subtitle{ font-weight:700; color:#333; font-size: 13px; }
        .pmsg-note{ margin-top: 6px; font-size: 12px; color:#444; line-height:1.4; }
        .pmsg-badge{
            font-size: 12px;
            font-weight: 800;
            color:#0b3;
            background: rgba(0, 187, 102, .10);
            border: 1px solid rgba(0, 187, 102, .25);
            padding: 6px 10px;
            border-radius: 999px;
            white-space: nowrap;
        }

        .pmsg-grid{
            display:grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
        }
        @media (max-width: 720px){
            .pmsg-grid{ grid-template-columns: 1fr; }
        }

        .pmsg-field{ display:flex; flex-direction:column; gap: 6px; }
        .pmsg-label{ font-size: 13px; font-weight: 700; color:#111; }
        .pmsg-select{
            width: 100%;
            font-size: 14px;
            padding: 10px 10px;
            border-radius: 10px;
            border: 1px solid rgba(0,0,0,.14);
            background: #fff;
            color:#111;
            outline: none;
        }
        .pmsg-select:disabled{ opacity: .6; cursor:not-allowed; background: #f5f5f5; }
        .pmsg-help{ font-size: 11.5px; color:#555; line-height: 1.35; }

        .pmsg-actions{
            margin-top: 14px;
            display:flex;
            flex-wrap:wrap;
            align-items:flex-start;
            gap: 12px;
            justify-content:space-between;
        }
        .pmsg-btn{
            border: 0;
            border-radius: 12px;
            padding: 11px 14px;
            font-size: 14px;
            font-weight: 800;
            cursor:pointer;
            background: #111;
            color:#fff;
            min-width: 190px;
        }
        .pmsg-btn:hover{ filter: brightness(1.05); }
        .pmsg-btn:active{ transform: translateY(1px); }

        .pmsg-result{
            margin-top: 14px;
            border-radius: 12px;
            border: 1px solid rgba(0,0,0,.10);
            background: rgba(255,255,255,.9);
            padding: 12px;
        }
        .pmsg-result-title{ font-size: 14px; font-weight: 900; color:#111; margin-bottom: 6px; }
        .pmsg-muted{ font-size: 12.5px; color:#444; line-height:1.45; }

        .pmsg-kv{
            display:grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-top: 10px;
        }
        @media (max-width: 720px){
            .pmsg-kv{ grid-template-columns: 1fr; }
        }
        .pmsg-pill{
            border: 1px solid rgba(0,0,0,.10);
            border-radius: 12px;
            padding: 10px;
            background: rgba(250,250,255,.7);
        }
        .pmsg-pill .k{ font-size: 11.5px; color:#555; font-weight: 800; }
        .pmsg-pill .v{ margin-top: 4px; font-size: 14px; color:#111; font-weight: 900; }

        .pmsg-alert{
            margin-top: 10px;
            padding: 10px 10px;
            border-radius: 12px;
            font-size: 12.5px;
            line-height: 1.45;
            border: 1px solid rgba(0,0,0,.10);
            background: rgba(255, 248, 220, .9);
            color:#3a2b00;
        }
        .pmsg-alert.bad{
            background: rgba(255, 235, 238, .92);
            color:#6b0010;
            border-color: rgba(180,0,30,.25);
        }
        .pmsg-alert.good{
            background: rgba(232, 245, 233, .92);
            color:#0b3d1f;
            border-color: rgba(0,120,60,.22);
        }

        .pmsg-footer{ margin-top: 10px; }
        .pmsg-footnote{ font-size: 11px; color:#555; line-height: 1.4; }
    
/* WordPress blog additions */
.blog-wrap{max-width:1200px;margin:0 auto;padding:42px 20px 64px}.blog-hero{text-align:center;padding:42px 20px 30px}.blog-hero h1{font-size:clamp(30px,4vw,44px);color:#1a365d;margin-bottom:12px}.blog-hero p{color:#526174;font-size:17px}.blog-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:32px}.post-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.post-card,.sidebar-box,.article-content{background:#fff;border-radius:14px;box-shadow:0 5px 22px rgba(26,54,93,.08);overflow:hidden}.post-card{display:flex;flex-direction:column}.post-thumb img{width:100%;height:210px;object-fit:cover;display:block}.post-card-body{padding:22px}.post-card h2{font-size:22px;line-height:1.35;margin:8px 0 12px;color:#1a365d}.post-card h2 a{color:inherit;text-decoration:none}.post-meta{font-size:13px;color:#718096}.post-excerpt{color:#4a5568}.read-more{display:inline-block;margin-top:12px;color:#2c5282;font-weight:700;text-decoration:none}.sidebar-box{padding:22px;margin-bottom:22px}.sidebar-box h3{color:#1a365d;margin-bottom:14px}.sidebar-box ul{padding-left:20px}.sidebar-box li{margin:8px 0}.article-content{padding:clamp(22px,4vw,48px);line-height:1.85}.article-content h1{font-size:clamp(30px,4vw,42px);line-height:1.25;color:#1a365d;margin:12px 0 18px}.article-content h2,.article-content h3{color:#1a365d;margin:28px 0 12px}.article-content p{margin:0 0 18px}.article-content img{max-width:100%;height:auto;border-radius:10px}.article-content a{color:#2c5282}.pagination{margin-top:32px}.pagination .nav-links{display:flex;gap:8px;flex-wrap:wrap}.pagination a,.pagination span{padding:9px 14px;background:#fff;border-radius:8px;text-decoration:none;color:#1a365d}.pagination .current{background:#2c5282;color:#fff}.blog-breadcrumb{font-size:14px;color:#718096;margin-bottom:18px}.site-header .container{max-width:1200px}.site-header .logo{color:#fff}.site-header .nav-link{color:#fff}.site-header .nav-link:hover{opacity:.8}.site-footer a{color:inherit}.mobile-menu-btn{cursor:pointer}@media(max-width:850px){.blog-layout{grid-template-columns:1fr}.post-grid{grid-template-columns:1fr}.site-header .nav-menu{display:none}.site-header .nav-menu.active{display:flex;flex-direction:column;position:absolute;top:100%;left:0;right:0;background:#1a365d;padding:18px 24px;gap:14px}.blog-wrap{padding-top:26px}}
