/* Blog Styles for Nepal Services Directory */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #c0392b;
  --primary-dark: #a93226;
  --text: #1e293b;
  --text-light: #64748b;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --success: #22c55e;
  --warning: #f59e0b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

/* Header */
.blog-header {
  background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.blog-header .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-header .logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-header .logo span {
  color: #ffeaa7;
}

.blog-header nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.blog-header nav a:hover {
  color: #ffeaa7;
}

/* Hero Section */
.blog-hero {
  background: linear-gradient(135deg, #c0392b 0%, #e74c3c 50%, #d35400 100%);
  color: white;
  padding: 3rem 1.5rem;
  text-align: center;
}

.blog-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  max-width: 800px;
  margin: 0 auto 1rem;
  line-height: 1.3;
}

.blog-hero .subtitle {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
}

.blog-hero .cta-btn {
  display: inline-block;
  margin-top: 1.5rem;
  background: white;
  color: #c0392b;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-hero .cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Breadcrumb */
.breadcrumb {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Main Content */
.blog-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.blog-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--text);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.blog-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.blog-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: var(--text);
}

.blog-content p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.blog-content ul, .blog-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-light);
}

.blog-content li {
  margin-bottom: 0.5rem;
}

.blog-content strong {
  color: var(--text);
  font-weight: 600;
}

.blog-content a {
  color: var(--primary);
  text-decoration: none;
}

.blog-content a:hover {
  text-decoration: underline;
}

/* Info Box */
.info-box {
  background: linear-gradient(135deg, #ffebee 0%, #fff3f3 100%);
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

.info-box h4 {
  margin-top: 0;
  color: var(--primary-dark);
}

/* Warning Box */
.warning-box {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
  border-left: 4px solid var(--warning);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

/* Success Box */
.success-box {
  background: linear-gradient(135deg, #dcfce7 0%, #f0fdf4 100%);
  border-left: 4px solid var(--success);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

/* Table */
.blog-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.blog-table th {
  background: #c0392b;
  color: white;
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}

.blog-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.blog-table tr:last-child td {
  border-bottom: none;
}

.blog-table tr:hover td {
  background: #f8fafc;
}

/* Test Cards */
.test-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.test-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.test-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.test-card h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.test-card p {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.test-card .test-link {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}

.test-card .test-link:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

/* FAQ */
.faq-section {
  margin: 2rem 0;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 1.25rem 1rem;
  color: var(--text-light);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Social Share */
.share-section {
  text-align: center;
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.share-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.share-buttons a, .share-buttons button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.share-fb { background: #1877f2; color: white; }
.share-tw { background: #1da1f2; color: white; }
.share-wa { background: #25d366; color: white; }
.share-copy { background: var(--border); color: var(--text); }

/* Related Posts */
.related-posts {
  margin: 2.5rem 0;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border);
}

/* Footer */
.blog-footer {
  background: #2c3e50;
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.blog-footer .container {
  max-width: 900px;
  margin: 0 auto;
}

.blog-footer a {
  color: #ffeaa7;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 640px) {
  .blog-hero h1 { font-size: 1.5rem; }
  .blog-header nav a { margin-left: 1rem; font-size: 0.8rem; }
  .test-cards { grid-template-columns: 1fr; }
}

/* Print */
@media print {
  .blog-header, .blog-hero .cta-btn, .blog-footer, .share-section { display: none; }
  .blog-content { padding: 0; }
}
