/*
Theme Name: MeroShare Nepal SEO
Theme URI: https://merosharenepal.com/
Author: MeroShare Nepal
Author URI: https://merosharenepal.com/
Description: Production-ready, responsive WordPress theme for MeroShare, NEPSE, Nepal share market, IPO, dividend and finance content.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: merosharenepal-seo
Tags: news, blog, finance, custom-logo, custom-menu, featured-images, responsive-layout, translation-ready
*/
/* CSS Reset & Base Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: #f4f6f9;
            color: #333;
            line-height: 1.6;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        .container {
            width: 92%;
            max-width: 1240px;
            margin: 0 auto;
        }

        /* Top Bar */
        .top-notice {
            background-color: #1a252f;
            color: #fff;
            font-size: 13px;
            padding: 8px 0;
        }

        .top-notice-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .date-badge {
            color: #00b4d8;
            font-weight: 500;
        }

        /* Header Navigation */
        .header {
            background-color: #ffffff;
            box-shadow: 0 2px 5px rgba(0,0,0,0.08);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
        }

        .logo h1 {
            font-size: 26px;
            color: #0d3b66;
        }

        .logo h1 span {
            color: #e63946;
        }

        .nav {
            display: flex;
            gap: 15px;
        }

        .nav a {
            font-weight: 600;
            color: #4a5568;
            font-size: 15px;
            transition: color 0.3s;
        }

        .nav a:hover, .nav a.active {
            color: #e63946;
        }

        /* Main Grid Layout */
        .main-layout {
            display: grid;
            grid-template-columns: 2.5fr 1fr;
            gap: 25px;
            margin-top: 25px;
            margin-bottom: 40px;
        }

        /* Featured News Section */
        .featured-news {
            background: #fff;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            margin-bottom: 25px;
        }

        .featured-news img {
            width: 100%;
            height: 300px;
            object-fit: cover;
        }

        .featured-text {
            padding: 20px;
        }

        .badge {
            background: #e63946;
            color: #fff;
            padding: 4px 10px;
            font-size: 12px;
            border-radius: 4px;
            font-weight: bold;
        }

        .featured-text h2 {
            margin: 10px 0;
            font-size: 22px;
            color: #0d3b66;
        }

        .featured-text p {
            color: #666;
        }

        /* News Cards Grid */
        .news-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 20px;
            margin-bottom: 35px;
        }

        .card {
            background: #fff;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 6px rgba(0,0,0,0.05);
        }

        .card img {
            width: 100%;
            height: 130px;
            object-fit: cover;
        }

        .card-body {
            padding: 15px;
        }

        .category {
            color: #1d3557;
            font-size: 11px;
            font-weight: bold;
            text-transform: uppercase;
        }

        .card-body h3 {
            font-size: 14px;
            margin: 8px 0;
            line-height: 1.4;
        }

        .date {
            font-size: 11px;
            color: #888;
        }

        /* 24 Tools Section */
        .tools-container {
            background: #fff;
            padding: 25px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            margin-top: 10px;
        }

        .main-section-title {
            font-size: 22px;
            color: #0d3b66;
            margin-bottom: 20px;
            border-left: 5px solid #e63946;
            padding-left: 12px;
        }

        .tool-category-title {
            font-size: 16px;
            color: #e63946;
            margin: 25px 0 12px 0;
            padding-bottom: 5px;
            border-bottom: 1px dashed #ccc;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .tools-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 15px;
        }

        .tool-card {
            border: 1px solid #e2e8f0;
            padding: 15px;
            border-radius: 8px;
            text-align: left;
            transition: all 0.2s ease-in-out;
            background: #f8fafc;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            cursor: pointer;
        }

        .tool-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
            border-color: #00b4d8;
            background: #ffffff;
        }

        .tool-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 8px;
        }

        .tool-card i {
            font-size: 20px;
            color: #0d3b66;
            background: #e2e8f0;
            padding: 10px;
            border-radius: 6px;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .tool-card h4 {
            font-size: 14px;
            color: #1e293b;
            font-weight: 600;
        }

        .tool-card p {
            font-size: 12px;
            color: #64748b;
            line-height: 1.4;
        }

        /* Sidebar Widgets */
        .widget {
            background: #fff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.05);
            margin-bottom: 25px;
        }

        .widget h3 {
            font-size: 17px;
            border-bottom: 2px solid #f0f0f0;
            padding-bottom: 10px;
            margin-bottom: 15px;
            color: #0d3b66;
        }

        .meroshare-widget {
            border-top: 4px solid #457b9d;
        }

        .meroshare-widget ul {
            list-style: none;
        }

        .meroshare-widget li {
            margin-bottom: 10px;
        }

        .meroshare-widget a {
            color: #1d3557;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 10px;
            background: #f8f9fa;
            border-radius: 5px;
            font-size: 13px;
            transition: background 0.3s;
        }

        .meroshare-widget a:hover {
            background: #e9ecef;
            color: #e63946;
        }

        .trending-list {
            list-style: none;
        }

        .trending-list li {
            padding: 8px 0;
            border-bottom: 1px solid #f0f0f0;
            font-size: 13px;
        }

        /* Footer */
        .footer {
            background: #1a252f;
            color: #aaa;
            padding: 20px 0;
        }

        .footer-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 13px;
        }

        .footer-links a {
            margin-left: 15px;
            color: #aaa;
        }

        .footer-links a:hover {
            color: #fff;
        }

        /* Modal / Calculator Popups */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            background-color: #fff;
            padding: 25px;
            border-radius: 8px;
            width: 90%;
            max-width: 500px;
            position: relative;
            box-shadow: 0 5px 20px rgba(0,0,0,0.2);
            max-height: 90vh;
            overflow-y: auto;
        }

        .close-modal {
            position: absolute;
            top: 15px;
            right: 20px;
            font-size: 22px;
            font-weight: bold;
            color: #aaa;
            cursor: pointer;
        }

        .close-modal:hover {
            color: #000;
        }

        .modal-header {
            margin-bottom: 15px;
            border-bottom: 1px solid #eee;
            padding-bottom: 10px;
        }

        .modal-header h3 {
            color: #0d3b66;
            font-size: 18px;
        }

        .form-group {
            margin-bottom: 12px;
        }

        .form-group label {
            display: block;
            font-size: 13px;
            font-weight: 600;
            margin-bottom: 5px;
            color: #475569;
        }

        .form-group input, .form-group select {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid #cbd5e1;
            border-radius: 5px;
            font-size: 14px;
        }

        .calc-btn {
            width: 100%;
            background-color: #0d3b66;
            color: #fff;
            border: none;
            padding: 10px;
            border-radius: 5px;
            font-weight: bold;
            cursor: pointer;
            margin-top: 10px;
            transition: background 0.3s;
        }

        .calc-btn:hover {
            background-color: #1d3557;
        }

        .result-box {
            margin-top: 15px;
            padding: 12px;
            background-color: #f1f5f9;
            border-radius: 5px;
            font-size: 13px;
        }

        .result-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 6px;
        }

        .result-row.total {
            font-weight: bold;
            border-top: 1px solid #cbd5e1;
            padding-top: 6px;
            color: #0d3b66;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .header-content, .top-notice-content {
                flex-direction: column;
                gap: 10px;
            }

            .nav {
                flex-wrap: wrap;
                justify-content: center;
            }

            .main-layout {
                grid-template-columns: 1fr;
            }

            .featured-news img {
                height: 200px;
            }

            .tools-grid {
                grid-template-columns: 1fr;
            }
        }
/* Theme refinements */
html{scroll-behavior:smooth}body{overflow-x:hidden}
img{max-width:100%;height:auto}
.screen-reader-text{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.menu-toggle{display:none;border:0;background:#0d3b66;color:#fff;padding:10px 12px;border-radius:8px;cursor:pointer;font-size:18px}
.nav ul{list-style:none;display:flex;gap:15px;margin:0;padding:0}.nav li{margin:0}
.nav a{display:block}
.nav .current-menu-item>a,.nav .current_page_item>a{color:#e63946}
.custom-logo-link{display:flex;align-items:center}.custom-logo{max-height:52px;width:auto}
.post-meta{font-size:12px;color:#64748b;margin-top:8px}.entry-content{color:#334155}.entry-content p{margin:0 0 1em}
.card-placeholder{height:130px;background:linear-gradient(135deg,#e2e8f0,#f8fafc)}
.pagination{margin:20px 0}.pagination .nav-links{display:flex;gap:8px;flex-wrap:wrap}.pagination a,.pagination span{padding:8px 12px;background:#fff;border:1px solid #e2e8f0;border-radius:6px}
@media(max-width:768px){
 .header-content{flex-direction:row;flex-wrap:wrap}.menu-toggle{display:inline-flex;align-items:center;justify-content:center}
 .nav{display:none;width:100%}.nav.is-open{display:block}.nav ul{flex-direction:column;gap:0;padding:8px 0}
 .nav li a{display:block;padding:10px 4px}.logo h1{font-size:22px}.top-notice-content{flex-direction:column;align-items:flex-start}
}
@media(max-width:480px){.container{width:94%}.featured-text,.tools-container,.widget{padding:16px}.modal-content{padding:20px}}

/* Full SEO system UI */
.msnp-breadcrumbs{margin:18px 0;font-size:13px;color:#64748b;display:flex;gap:7px;flex-wrap:wrap;align-items:center}
.msnp-breadcrumbs a{color:#475569;text-decoration:none}.msnp-breadcrumbs a:hover{text-decoration:underline;color:#e63946}
.seo-topic-hubs{margin:30px auto}
.topic-hub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.topic-hub{display:flex;flex-direction:column;gap:6px;background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:18px;text-decoration:none;box-shadow:0 2px 7px rgba(0,0,0,.04)}
.topic-hub strong{color:#0d3b66;font-size:16px}.topic-hub span{color:#64748b;font-size:13px;line-height:1.5}
.topic-hub:hover{border-color:#457b9d;transform:translateY(-2px)}
.article-page{background:#fff;border-radius:10px;box-shadow:0 2px 8px rgba(0,0,0,.06);overflow:hidden}
.article-featured-image{width:100%;max-height:520px;object-fit:cover}
.article-header{padding:22px 24px 8px}.article-header h1{font-size:34px;line-height:1.2;color:#0f172a;margin:12px 0}
.article-topic{font-size:13px;color:#475569}.entry-content{padding:8px 24px 24px;font-size:16px;line-height:1.8}.entry-content h2,.entry-content h3{color:#0d3b66;margin-top:28px}
.entry-content a,.author-box a,.msnp-context-link{color:#0d3b66;font-weight:600}
.author-box{margin:8px 24px 28px;padding:18px;border-top:1px solid #e2e8f0;display:flex;gap:16px;align-items:flex-start}
.author-avatar img{border-radius:50%}.author-box h3{margin:0 0 7px;color:#0d3b66}.author-box p{margin:0 0 8px;color:#475569;font-size:14px}
.related-posts{margin-top:28px}.related-posts h2,.msnp-faq h2{font-size:22px;color:#0d3b66;border-left:5px solid #e63946;padding-left:12px}
.msnp-faq{margin:28px 24px;padding:20px;background:#f8fafc;border-radius:10px}.msnp-faq details{background:#fff;border:1px solid #e2e8f0;border-radius:7px;margin:9px 0;padding:12px 15px}.msnp-faq summary{font-weight:700;color:#1e293b;cursor:pointer}.msnp-faq details div{padding-top:9px;color:#475569;font-size:14px;line-height:1.6}
@media(max-width:900px){.topic-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.article-header h1{font-size:29px}}
@media(max-width:600px){.topic-hub-grid{grid-template-columns:1fr}.article-header{padding:18px 16px 6px}.entry-content{padding:8px 16px 18px;font-size:15px}.author-box{margin:8px 16px 22px;padding:15px}.msnp-faq{margin:20px 16px}}

body.modal-open{overflow:hidden}.close-modal{border:0;background:transparent}.modal[aria-hidden="true"]{display:none}

/* AI-search / citation-friendly content UI */
.ai-answer-summary{margin:0 24px 12px;padding:18px 20px;background:#f1f7fb;border-left:5px solid #0d3b66;border-radius:8px}
.ai-summary-label{font-weight:800;color:#0d3b66;font-size:14px;text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px}
.ai-summary-text{color:#1e293b;line-height:1.7}.ai-summary-text p{margin:0}
.msnp-sources{margin:24px 24px;padding:18px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px}
.msnp-sources h2{font-size:20px;color:#0d3b66;margin:0 0 10px}.msnp-sources ul{margin:0;padding-left:20px}.msnp-sources li{margin:6px 0}.msnp-sources a{color:#0d3b66;font-weight:600}
@media(max-width:600px){.ai-answer-summary,.msnp-sources{margin-left:16px;margin-right:16px}}
