/* Blog Styles - Katil Hospital Malaysia */

/* Blog Main Container */
.blog-main {
  min-height: 100vh;
  background: #f8f9fa;
}

/* Breadcrumb */
.breadcrumb {
  background: #e9ecef;
  padding: 15px 0;
  font-size: 0.9rem;
}

.breadcrumb .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.breadcrumb a {
  color: #0052cc;
  text-decoration: none;
}

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

.breadcrumb .separator {
  color: #6c757d;
  margin: 0 5px;
}

.breadcrumb .current {
  color: #495057;
}

/* Blog Article */
.blog-article {
  padding: 40px 0 60px;
}

.blog-article .container {
  max-width: 900px;
}

/* Article Header */
.article-header {
  margin-bottom: 40px;
  text-align: center;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.article-meta span {
  font-size: 0.9rem;
  color: #6c757d;
}

.article-meta .category {
  background: #0052cc;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 500;
}

.article-header h1 {
  font-size: 2.2rem;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 20px;
}

.article-intro {
  font-size: 1.15rem;
  color: #4a4a4a;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
}

/* Table of Contents */
.article-toc {
  background: #f0f7ff;
  border: 1px solid #d0e3f7;
  border-radius: 10px;
  padding: 25px 30px;
  margin-bottom: 40px;
}

.article-toc h3 {
  font-size: 1.2rem;
  color: #1a365d;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0052cc;
}

.article-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 30px;
}

.article-toc li {
  margin-bottom: 10px;
  break-inside: avoid;
}

.article-toc a {
  color: #0052cc;
  text-decoration: none;
  font-size: 0.95rem;
  display: block;
  padding: 5px 0;
  transition: color 0.2s;
}

.article-toc a:hover {
  color: #003d99;
  text-decoration: underline;
}

/* Article Content */
.article-content {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.article-content section {
  margin-bottom: 50px;
}

.article-content h2 {
  font-size: 1.7rem;
  color: #1a365d;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid #0052cc;
}

.article-content h3 {
  font-size: 1.3rem;
  color: #2d3748;
  margin: 30px 0 15px;
}

.article-content h4 {
  font-size: 1.1rem;
  color: #4a5568;
  margin: 25px 0 12px;
}

.article-content p {
  margin-bottom: 18px;
  line-height: 1.8;
  color: #333;
  text-align: justify;
}

.article-content ul,
.article-content ol {
  margin-bottom: 20px;
  padding-left: 25px;
}

.article-content li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.article-content a {
  color: #0052cc;
  text-decoration: none;
}

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

/* Info Boxes */
.info-box {
  background: #e7f3ff;
  border-left: 4px solid #0052cc;
  padding: 20px 25px;
  margin: 25px 0;
  border-radius: 0 8px 8px 0;
}

.info-box h4 {
  color: #1a365d;
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.info-box p {
  margin-bottom: 10px;
}

.info-box ul {
  margin-bottom: 0;
}

.info-box.success {
  background: #e8f5e9;
  border-left-color: #28a745;
}

.info-box.success h4 {
  color: #1b5e20;
}

.info-box.warning {
  background: #fff8e1;
  border-left-color: #ff9800;
}

.info-box.warning h4 {
  color: #e65100;
}

.info-box.danger {
  background: #ffebee;
  border-left-color: #dc3545;
}

.info-box.danger h4 {
  color: #c62828;
}

/* Tables */
.comparison-table {
  overflow-x: auto;
  margin: 25px 0;
}

.comparison-table table,
.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td,
.article-content table th,
.article-content table td {
  padding: 12px 15px;
  text-align: left;
  border: 1px solid #dee2e6;
}

.comparison-table th,
.article-content table th {
  background: #1a365d;
  color: white;
  font-weight: 600;
}

.comparison-table tr:nth-child(even),
.article-content table tr:nth-child(even) {
  background: #f8f9fa;
}

.comparison-table tr:hover,
.article-content table tr:hover {
  background: #e7f3ff;
}

/* Step List */
.step-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.step-list li {
  position: relative;
  padding-left: 50px;
  margin-bottom: 25px;
}

.step-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 35px;
  height: 35px;
  background: #0052cc;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Document List */
.document-list {
  background: #f8f9fa;
  padding: 20px 25px;
  border-radius: 8px;
  margin: 20px 0;
}

.document-list h4 {
  margin-top: 0;
  color: #1a365d;
}

.document-list ul {
  margin-bottom: 0;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, #0052cc 0%, #0066ff 100%);
  color: white;
  padding: 35px;
  border-radius: 12px;
  text-align: center;
  margin: 40px 0;
}

.cta-box h3 {
  color: white;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.cta-box p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
  text-align: center;
}

.cta-box .btn {
  display: inline-block;
  background: white;
  color: #0052cc;
  padding: 14px 35px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: transform 0.3s;
}

.cta-box .btn:hover {
  transform: scale(1.05);
  text-decoration: none;
}

.cta-box.green {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.cta-box.green .btn {
  color: #28a745;
}

/* FAQ Section */
.faq-item {
  margin-bottom: 20px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  background: #f8f9fa;
  padding: 15px 20px;
  font-weight: 600;
  color: #1a365d;
  cursor: pointer;
}

.faq-answer {
  padding: 15px 20px;
  background: white;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Related Articles */
.related-articles {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid #e9ecef;
}

.related-articles h3 {
  color: #1a365d;
  margin-bottom: 20px;
}

.related-articles ul {
  list-style: none;
  padding: 0;
}

.related-articles li {
  margin-bottom: 12px;
}

.related-articles a {
  color: #0052cc;
  text-decoration: none;
  font-size: 1rem;
}

.related-articles a:hover {
  text-decoration: underline;
}

/* Blog Footer CTA */
.blog-footer-cta {
  background: #1a365d;
  color: white;
  padding: 50px 0;
  text-align: center;
}

.blog-footer-cta h3 {
  color: white;
  margin-bottom: 15px;
}

.blog-footer-cta p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 25px;
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
}

.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: bold;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .article-header h1 {
    font-size: 1.6rem;
  }

  .article-content {
    padding: 25px 20px;
  }

  .article-toc ul {
    columns: 1;
  }

  .article-meta {
    flex-direction: column;
    gap: 10px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px;
    font-size: 0.85rem;
  }

  .cta-box {
    padding: 25px 20px;
  }

  .info-box {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .article-header h1 {
    font-size: 1.4rem;
  }

  .article-intro {
    font-size: 1rem;
  }

  .article-content h2 {
    font-size: 1.4rem;
  }

  .article-content h3 {
    font-size: 1.15rem;
  }
}
