* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Arial, sans-serif; }
body { background-color: #f1f5f9; color: #1e293b; line-height: 1.6; padding: 20px 10px; }
a { text-decoration: none; color: #059669; }

/* Grid Layout for Main Content & Sidebar */
.app-wrapper { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 992px) {
    .app-wrapper { grid-template-columns: 7fr 3fr; }
}

/* Card Styles */
.main-content, .sidebar-widget, .seo-article-section { background: #ffffff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); overflow: hidden; margin-bottom: 20px; border-top: 3px solid #059669; }

/* Header */
.app-header { background: #0f172a; color: #ffffff; padding: 25px 20px; text-align: center; }
.app-header h1 { font-size: 20px; margin-bottom: 8px; color: #ecfdf5; }
.app-header p { color: #94a3b8; font-size: 13px; }

/* Ad Slot */
.ad-slot { min-height: 90px; background: #f8fafc; margin: 15px; text-align: center; border: 1px dashed #cbd5e1; display: flex; align-items: center; justify-content: center; position: relative; }
.ad-slot::before { content: "Advertisement"; color: #94a3b8; font-size: 11px; position: absolute; }

/* Search Area */
.search-section { padding: 20px; position: relative; z-index: 1000; }
#searchInput { width: 100%; padding: 12px 18px; font-size: 15px; border: 2px solid #059669; border-radius: 50px; outline: none; transition: 0.3s; box-shadow: 0 4px 6px rgba(5, 150, 105, 0.1); }
#searchInput:focus { box-shadow: 0 0 0 4px #ecfdf5; }

.results-container { position: absolute; top: 70px; left: 20px; right: 20px; background: #fff; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.15); max-height: 250px; overflow-y: auto; display: none; }
.result-item { padding: 12px 18px; border-bottom: 1px solid #f1f5f9; cursor: pointer; transition: 0.2s; font-size: 14px; }
.result-item:hover { background: #ecfdf5; color: #059669; }
.result-item mark { background: #fde047; padding: 0 4px; border-radius: 3px; font-weight: bold; }

/* Quick Answer */
.quick-answer-box { margin: 0 20px 20px; padding: 15px; background: #ecfdf5; border: 1px solid #059669; border-radius: 8px; }
.quick-answer-box h3 { color: #022c22; font-size: 15px; margin-bottom: 8px; }
.quick-answer-box p { font-size: 14px; color: #1e293b; }
.reference-badge { display: inline-block; background: #059669; color: #fff; padding: 4px 10px; border-radius: 20px; font-size: 12px; margin-top: 10px; }
.scroll-hint { display: block; margin-top: 10px; font-size: 12px; color: #b45309; font-weight: bold; }

/* PDF Viewer */
.pdf-viewer-section { border-top: 1px solid #e2e8f0; }
.viewer-controls { background: #f8fafc; padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e2e8f0; font-size: 14px; font-weight: 600; }
.viewer-controls button { padding: 6px 12px; background: #059669; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 13px; }
.viewer-controls button:hover { background: #047857; }

/* এখানে height: 500px এর জায়গায় 900px করা হয়েছে যাতে ফুল পেজ দেখা যায় */
.canvas-wrapper { width: 100%; height: 900px; overflow: auto; background: #cbd5e1; padding: 20px 0; text-align: center; }

.canvas-inner-container { position: relative; display: inline-block; background: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
canvas { max-width: 100%; height: auto; display: block; }
.rule-highlight-box { position: absolute; background: rgba(250, 204, 21, 0.3); border: 2px solid #ca8a04; border-radius: 4px; pointer-events: none; z-index: 20; animation: pulse 1.5s infinite alternate; }
@keyframes pulse { from { box-shadow: 0 0 0px rgba(202, 138, 4, 0); } to { box-shadow: 0 0 10px rgba(202, 138, 4, 0.8); } }
/* Sidebar Styles */
.sidebar-widget { padding: 20px; }
.widget-title { font-size: 16px; color: #0f172a; border-bottom: 2px solid #f1f5f9; padding-bottom: 10px; margin-bottom: 15px; }
.quick-links { list-style: none; }
.quick-links li { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed #e2e8f0; }
.quick-links li:last-child { border: none; margin-bottom: 0; padding-bottom: 0; }
.quick-links a { font-size: 14px; color: #334155; transition: 0.2s; display: block; }
.quick-links a:hover { color: #059669; padding-left: 5px; }

/* FAQ Item */
.faq-item { margin-bottom: 15px; background: #f8fafc; padding: 10px; border-radius: 6px; border: 1px solid #e2e8f0; }
.faq-item strong { display: block; font-size: 13px; color: #0f172a; margin-bottom: 5px; }
.faq-item p { font-size: 12px; color: #475569; }

/* SEO Article Section */
.seo-article-section { max-width: 1100px; margin: 0 auto; padding: 25px; }
.seo-article-section h2 { font-size: 18px; color: #0f172a; margin-bottom: 20px; }
.internal-link-box { background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 6px; margin-bottom: 20px; }
.internal-link-box h4 { padding: 10px 15px; background: #e2e8f0; font-size: 14px; color: #334155; border-radius: 6px 6px 0 0; }
.internal-link-box ul { list-style: none; }
.internal-link-box li { border-top: 1px solid #e2e8f0; }
.internal-link-box a { display: flex; justify-content: space-between; padding: 10px 15px; font-size: 14px; color: #475569; transition: 0.3s; }
.internal-link-box a:hover { background: #f1f5f9; color: #059669; }
.article-content h3 { font-size: 16px; color: #0f172a; margin: 20px 0 10px; }
.article-content p, .article-content li { font-size: 14px; color: #334155; margin-bottom: 10px; }
.article-content ul { margin-left: 20px; margin-bottom: 15px; }