/* ==========================
   NursingTip Blog Styles
   ========================== */

/* Base layout */
body {
  font-family: "Inter", "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #222;
  margin: 0;
  background: #fdfdfd;
}

.blog-header {
  background: linear-gradient(135deg, #e6f3ff, #f6fbff);
  text-align: center;
  padding: 3rem 1rem 2rem;
  border-bottom: 2px solid #eef2f7;
}

.blog-header h1 {
  font-size: 2rem;
  color: #0b355a;
  margin-bottom: 0.5rem;
}

.blog-header p {
  color: #444;
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.blog-container {
  max-width: 900px;
  margin: 2.5rem auto;
  padding: 0 1.25rem;
}

/* Headings */
h2 {
  margin-top: 2rem;
  color: #0b355a;
  font-size: 1.5rem;
}

h3 {
  color: #104f82;
}

/* Banner CTA */
.banner {
  background: #e8f4ff;
  border-left: 6px solid #0b68c0;
  margin: 1.5rem auto;
  padding: 1.5rem;
  text-align: center;
  max-width: 900px;
  border-radius: 8px;
}

.banner h2 {
  margin-top: 0;
  color: #0b68c0;
}

.banner p {
  margin-bottom: 1rem;
  color: #333;
}

.btn-primary {
  display: inline-block;
  background: #0b68c0;
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #094e91;
}

/* Card grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.card {
  background: white;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.card p, .card ul {
  margin: 0;
  color: #444;
  font-size: 0.95rem;
}

/* FAQ Section */
.faq-section {
  margin-top: 3rem;
  background: #f8fbff;
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid #e0e9f1;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.faq-item {
  margin-bottom: 1rem;
  border-bottom: 1px solid #d9e4ee;
  padding-bottom: 0.8rem;
}

.faq-question {
  background: none;
  border: none;
  outline: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0b355a;
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition: color 0.2s;
}

.faq-question:hover {
  color: #0b68c0;
}

.faq-question::after {
  content: "＋";
  float: right;
  font-weight: 700;
}

.faq-question.active::after {
  content: "−";
}

.faq-answer {
  display: none;
  padding-top: 0.5rem;
  color: #444;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Related articles */
.related-articles {
  margin-top: 3rem;
}

.related-articles h2 {
  text-align: center;
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  background: #f1f4f8;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
  color: #444;
  border-top: 1px solid #e0e6ed;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .blog-header h1 {
    font-size: 1.6rem;
  }
  .banner h2 {
    font-size: 1.3rem;
  }
}

/* ==========================
   Blog Add-ons
   ========================== */

/* Highlighted Quote / Tip Box */
.blockquote {
  background: #f1f8ff;
  border-left: 5px solid #0b68c0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #23445f;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.blockquote strong {
  display: block;
  font-style: normal;
  color: #0b355a;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

/* Tip or Alert Variations */
.blockquote.tip {
  border-left-color: #2e9d4d;
  background: #f4fff5;
}

.blockquote.warning {
  border-left-color: #d77a00;
  background: #fff9f2;
}

/* Example Usage:
   <div class="blockquote tip">
     <strong>Pro Tip:</strong>
     Always practice time management during mock exams.
   </div>
*/

/* Comparison Table */
.table-compare {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border-radius: 6px;
  overflow: hidden;
}

.table-compare thead {
  background: #0b68c0;
  color: #fff;
}

.table-compare th,
.table-compare td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e6edf4;
}

.table-compare th {
  font-weight: 600;
  font-size: 0.95rem;
}

.table-compare td {
  color: #333;
  font-size: 0.95rem;
}

.table-compare tbody tr:nth-child(even) {
  background: #f8fbff;
}

/* Highlight column */
.table-compare td.highlight {
  background: #e9f4ff;
  font-weight: 600;
  color: #0b355a;
}

/* Responsive table for mobile */
@media (max-width: 650px) {
  .table-compare,
  .table-compare thead,
  .table-compare tbody,
  .table-compare th,
  .table-compare td,
  .table-compare tr {
    display: block;
  }

  .table-compare thead tr {
    display: none;
  }

  .table-compare td {
    position: relative;
    padding-left: 50%;
    border: none;
    border-bottom: 1px solid #e6edf4;
  }

  .table-compare td::before {
    position: absolute;
    top: 0.8rem;
    left: 1rem;
    width: 45%;
    white-space: nowrap;
    font-weight: 600;
    color: #0b68c0;
    content: attr(data-label);
  }
}
/* === LAYOUT DIFFERENCES === */

/* Quiz pages are narrow and focused */
.quiz-page main,
.quiz-container {
  max-width: 750px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Blog pages should breathe more */
.blog-page main,
.blog-container {
  max-width: 1000px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Blog text styling */
.blog-container h1 {
  font-size: 1.8rem;
  color: #0b355a;
  margin-bottom: 1rem;
}

.blog-container h2 {
  color: #1e3a8a;
  margin-top: 2rem;
}

.blog-container p {
  line-height: 1.7;
  color: #333;
  margin-bottom: 1rem;
}

/* Optional: add spacing for featured image */
.blog-featured {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}
