/* Entrance Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

:root {
  --bg-color: #ffffff;
  --section-bg: #fcfbf7;
  --text-main: #1a1a1a;
  --text-secondary: #555;
  --card-bg: #ffffff;
  --border-color: #e2d1a8;
  --primary-gold: #b59d5c;
  --footer-bg: #ffffff;
}

/* Applying entrance animation to all cards */
.guide-list li, 
.pr-steps li, 
.practice-item, 
.mistakes-list li {
  animation: fadeInUp 0.6s ease backwards;
}

/* Staggering the entrance (delaying each item) */
.guide-list li:nth-child(1) { animation-delay: 0.1s; }
.guide-list li:nth-child(2) { animation-delay: 0.2s; }
.guide-list li:nth-child(3) { animation-delay: 0.3s; }
.guide-list li:nth-child(4) { animation-delay: 0.4s; }

html {
  scroll-behavior: smooth;
}

/* Scroll Top Button Hover */
#scrollTopBtn {
  transition: all 0.3s ease;
}

#scrollTopBtn:hover {
  background-color: var(--deep-navy);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* =========================================
   DARK MODE – FLOATING BUTTON FIX
========================================= */

body.dark-mode #scrollTopBtn {
  border: 2px solid rgba(228, 199, 106, 0.6);
  box-shadow:
    0 0 0 3px rgba(228, 199, 106, 0.15),
    0 18px 45px rgba(0, 0, 0, 0.85),
    0 0 18px rgba(228, 199, 106, 0.4);
}

/* Override the navy hover */
body.dark-mode #scrollTopBtn:hover {
  background: linear-gradient(135deg,
    var(--primary-gold),
    var(--secondary-gold));
    
  box-shadow:
    0 0 0 4px rgba(228, 199, 106, 0.25),
    0 25px 60px rgba(0, 0, 0, 0.95),
    0 0 28px rgba(228, 199, 106, 0.6);
}

/* =========================
   GUIDE LIST - TWO COLUMNS
========================= */
.guide-list {
  list-style: none;
  counter-reset: step-counter;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 2.5rem;
  align-items: stretch;
}

/* Guide list items */
.guide-list li {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem 2.2rem;
  background: linear-gradient(145deg, var(--light-parchment), var(--warm-cream));
  border-radius: 20px;
  box-shadow: var(--shadow-main);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.guide-list li, .mistakes-list li {
  transition: all 0.3s ease;
  border-left: 0px solid var(--primary-gold);
}

.guide-list li:hover, .mistakes-list li:hover {
  transform: translateX(10px);
  border-left: 6px solid var(--primary-gold);
  box-shadow: var(--shadow-hover);
}
/* ============================================================
   GLOBAL SECTION CENTERING
   ============================================================ */
   .github-guide-timeline,
   .contributing-best-practices {
     width: 100%;
     display: flex;
     flex-direction: column;
     align-items: center;      /* Centers headings & containers horizontally */
     justify-content: center;
     text-align: center;       /* Centers the text content */
     margin: 5rem auto;
     padding: 0 5%;
     box-sizing: border-box;
   }
   
   /* Constrain headers so they don't look lost on wide screens */
   .github-guide-timeline h3,
   .contributing-best-practices h3 {
     max-width: 800px;
     margin-bottom: 1.5rem;
   }
   /* Fix for the "left center" paragraph */
.github-guide-timeline p {
  text-align: left;       /* Keeps text readable */
  max-width: 800px;       /* Prevents the line from being too long */
  margin: 1rem auto 3rem; /* "auto" centers the block itself on the page */
  line-height: 1.6;
  color: var(--charcoal-dark);
}
   /* ============================================================
      1. GITHUB WORKFLOW TIMELINE (CENTERED)
      ============================================================ */
   .timeline-list {
     list-style: none;
     position: relative;
     max-width: 700px;         /* Prevents timeline from stretching too wide */
     width: 100%;
     margin: 3rem auto 0;      /* Auto margins center the whole list block */
     padding: 2rem 0 2rem 5rem;
     text-align: left;         /* Keeps text readable */
   }
   
   /* The Vertical Line */
   .timeline-list::before {
     content: "";
     position: absolute;
     left: 1.25rem;
     top: 0;
     bottom: 0;
     width: 4px;
     background: linear-gradient(to bottom, var(--primary-gold), var(--secondary-gold));
     border-radius: 10px;
   }
   
   .timeline-list li .icon {
     width: 2.8rem;
     height: 2.8rem;
     background: var(--primary-gold);
     color: var(--deep-navy);
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     position: absolute;
     left: -5.15rem;           /* Adjust this based on your padding to center on line */
     z-index: 10;
     box-shadow: 0 0 0 8px var(--warm-cream); /* Masks the line behind the icon */
     font-size: 1.3rem;
   }
   .timeline-list li {
      transition: all 0.3s ease;
    position: relative;
    overflow: visible !important; 
  }
  
  /* When you hover the list item, make the icon glow */
  .timeline-list li:hover .icon {
    animation: pulse-glow 1.5s infinite;
    background: var(--deep-navy);
    color: var(--primary-gold);
  }
  
  .timeline-list li .content {
    transition: transform 0.3s ease;
  }
  
  .timeline-list li:hover .content {
    transform: translateX(5px);
  }
   /* ============================================================
      2. BEST PRACTICES GRID (CENTERED)
      ============================================================ */
   .practices-grid {
     display: grid;
     /* repeat(auto-fit) can cause left-alignment if not centered */
     grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
     justify-content: center;   /* Centers the grid items if there is extra space */
     gap: 2.5rem;
     margin-top: 4rem;
     width: 100%;
     max-width: 1200px;         /* Limits the max width of the grid */
   }
   
   .practice-item {
     background: #ffffff;
     border: 1px solid rgba(0, 0, 0, 0.06);
     border-radius: 28px;
     padding: 3rem 2rem;
     display: flex;
     flex-direction: column;
     align-items: center;       /* Centers content inside the card */
     justify-content: center;
     transition: transform 0.4s ease, box-shadow 0.4s ease;
     height: 100%;              /* Ensures cards in a row are equal height */
     box-shadow: var(--shadow-main);
   }
   
   .practice-item:hover {
     transform: translateY(-12px);
     box-shadow: 0 20px 40px rgba(0,0,0,0.08);
   }
   .practice-item, .pr-steps li {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Professional easing */
  }
  
  .practice-item:hover, .pr-steps li:hover {
    transform: translateY(-10px) scale(1.02);
    background: #ffffff; /* Brighter on hover */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-gold);
  }
  
  /* Icon rotation on hover */
  .practice-item:hover .icon, .pr-steps li:hover .icon {
    transform: rotate(-5deg) scale(1.1);
    transition: transform 0.3s ease;
  }
   /* ============================================================
      RESPONSIVE OVERRIDES
      ============================================================ */
   @media (max-width: 768px) {
     .timeline-list {
       padding-left: 4rem;
       margin-left: 0;          /* Reset margin for small screens */
     }
     
     .timeline-list li .icon {
       left: -4rem;
       width: 2.2rem;
       height: 2.2rem;
     }
   }

.guide-list li:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* Step number */
.guide-list .step {
  counter-increment: step-counter;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.8rem;
  min-width: 3.2rem;
  height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--deep-navy);
  color: var(--warm-cream);
  flex-shrink: 0;
}

/* Guide titles */
.guide-list h4 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: var(--deep-navy);
  margin-bottom: 0.6rem;
}

/* Guide descriptions - improved readability */
.guide-list p {
  font-size: 1.1rem;       /* slightly bigger */
  color: var(--charcoal-dark); /* higher contrast */
  line-height: 1.75;       /* more spacing for readability */
  margin: 0;
}

/* =========================
   RESPONSIVE
========================= */
@media (width <= 1024px) {
  .guide-list {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

@media (width <= 768px) {
  .guide-list {
    grid-template-columns: 1fr; /* single column on tablets */
  }
  .guide-list li {
    flex-direction: column;
    align-items: flex-start;
  }
  .guide-list .step {
    margin-bottom: 0.8rem;
  }
}

@media (width <= 480px) {
  .guide h3 {
    font-size: 2rem;
  }
  .guide-list h4 {
    font-size: 1.3rem;
  }
  .guide-list p {
    font-size: 1rem;
  }
  .guide-list li {
    padding: 1.6rem 1.5rem;
  }
  .guide-list .step {
    min-width: 2.8rem;
    height: 2.8rem;
    font-size: 1.5rem;
  }
}
.pull-request-guide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 6%;
  text-align: left;
}

.pull-request-guide h3 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 4vw, 2.9rem);
  font-weight: 700;
  color: var(--deep-navy);
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.pull-request-guide h3::after {
  content: "";
  display: block;
  width: 90px;
  height: 3px;
  margin: 1rem auto 0;
  background: linear-gradient(90deg, var(--primary-gold), var(--secondary-gold));
  border-radius: 2px;
}

/* =========================
   STEPS LIST - 3 PER ROW
========================= */
.pr-steps {
  list-style: none;
  counter-reset: step-counter;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.pr-steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1.8rem;
  background: linear-gradient(145deg, var(--light-parchment), var(--warm-cream));
  border-radius: 20px;
  box-shadow: var(--shadow-main);
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.pr-steps li:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* Step circle */
.pr-steps .step {
  counter-increment: step-counter;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.8rem;
  min-width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-gold);
  color: var(--deep-navy);
}

/* Step icon */
.pr-steps .icon {
  font-size: 2rem;
  color: var(--secondary-gold);
}

/* Step title */
.pr-steps h4 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: var(--deep-navy);
  margin: 0.3rem 0;
}

/* Step description */
.pr-steps p {
  font-size: 1.1rem;
  color: var(--charcoal-dark);
  line-height: 1.75;
  margin: 0;
}

/* =========================
   RESPONSIVE
========================= */
@media (width <= 1024px) {
  .pr-steps {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (width <= 768px) {
  .pr-steps {
    grid-template-columns: 1fr;
  }
}

@media (width <= 480px) {
  .pull-request-guide h3 {
    font-size: 2rem;
  }
  .pr-steps h4 {
    font-size: 1.3rem;
  }
  .pr-steps p {
    font-size: 1rem;
  }
  .pr-steps .step {
    min-width: 2.5rem;
    height: 2.5rem;
    font-size: 1.4rem;
  }
  .pr-steps .icon {
    font-size: 1.6rem;
  }
}
.github-guide-timeline {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 6%;
  text-align: center;
}

.github-guide-timeline h3 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 4vw, 2.9rem);
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: 1rem;
  position: relative;
}

.github-guide-timeline h3::after {
  content: "";
  display: block;
  width: 90px;
  height: 3px;
  margin: 1rem auto 0;
  background: linear-gradient(90deg, var(--primary-gold), var(--secondary-gold));
  border-radius: 2px;
}

.github-guide-timeline p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 1rem auto 3rem;
}

/* =========================
   TIMELINE LIST
========================= */
.timeline-list {
  list-style: none;
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  padding-left: 2rem;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary-gold), var(--secondary-gold));
  border-radius: 2px;
}

.timeline-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
}

.timeline-list li .content {
  text-align: left;
}

.timeline-list li h4 {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  color: var(--deep-navy);
  margin-bottom: 0.3rem;
}

.timeline-list li p {
  font-size: 1rem;
  color: var(--charcoal-dark);
  line-height: 1.6;
  margin: 0;
}

/* =========================
   RESPONSIVE
========================= */
@media (width <= 768px) {
  .timeline-list {
    padding-left: 1rem;
    gap: 1.5rem;
  }

  .timeline-list::before {
    left: 0.9rem;
  }

  .timeline-list li .icon {
    width: 2rem;
    height: 2rem;
    font-size: 1.2rem;
  }
}

@media (width <= 480px) {
  .github-guide-timeline h3 {
    font-size: 2rem;
  }
  .timeline-list li h4 {
    font-size: 1.2rem;
  }
  .timeline-list li p {
    font-size: 0.95rem;
  }
}
.contributing-best-practices {
  max-width: 1000px;
  margin: 0 auto;
  padding: 5rem 6%;
  text-align: center;
}

.contributing-best-practices h3 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 4vw, 2.9rem);
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: 1rem;
  position: relative;
}

.contributing-best-practices h3::after {
  content: "";
  display: block;
  width: 90px;
  height: 3px;
  margin: 1rem auto 0;
  background: linear-gradient(90deg, var(--primary-gold), var(--secondary-gold));
  border-radius: 2px;
}

.contributing-best-practices p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 1rem auto 3rem;
}

.practices-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* force single row */
  gap:20px;
  width: 100%;   /* adjust if needed */
  margin: 0 auto;     /* center horizontally */
  align-items: stretch;
}


/* Responsive for tablets */
@media (width <= 1024px) {
  .practices-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 per row on medium screens */
  }
}

/* Responsive for mobile */
@media (width <= 768px) {
  .practices-grid {
    grid-template-columns: 1fr; /* 1 per row on small screens */
  }
}


.practice-item {
  background: linear-gradient(145deg, var(--light-parchment), var(--warm-cream));
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-main);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  gap: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* equal vertical spacing */
  text-align: center;
  align-items: center;
  padding: 2rem;

  /* 🔥 force equal size */
  height: 100%;
}

.practice-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.practice-item .icon {
  font-size: 2rem;
  background: var(--primary-gold);
  color: var(--deep-navy);
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.practice-item h4 {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  color: var(--deep-navy);
  margin: 0;
  text-align: center;
}

.practice-item p {
  font-size: 1rem;
  color: var(--charcoal-dark);
  line-height: 1.6;
  text-align: center;
  margin: 0;
}

/* =========================
   RESPONSIVE
========================= */
@media (width <= 768px) {
  .practices-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (width <= 480px) {
  .practice-item {
    padding: 1.5rem;
  }

  .practice-item .icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
  }

  .practice-item h4 {
    font-size: 1.25rem;
  }

  .practice-item p {
    font-size: 0.95rem;
  }
}
.common-mistakes {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 6%;
  text-align: center;
}

.common-mistakes h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  color: var(--deep-navy);
  margin-bottom: 2rem;
  position: relative;
}

.common-mistakes h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  margin: 1rem auto 0;
  background: linear-gradient(90deg, var(--primary-gold), var(--secondary-gold));
  border-radius: 2px;
}

/* =========================
   Mistakes List
========================= */
.mistakes-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 2rem;
  padding: 0;
  margin: 0;
}

.mistakes-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: linear-gradient(145deg, var(--light-parchment), var(--warm-cream));
  padding: 1.5rem 1.8rem;
  border-radius: 18px;
  box-shadow: var(--shadow-main);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.mistakes-list li:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* Icon circle */
.mistake-icon {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.5rem;
  background: var(--primary-gold);
  color: var(--deep-navy);
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Mistake text */
.mistakes-list p {
  font-size: 1.05rem;
  color: var(--charcoal-dark);
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

/* =========================
   RESPONSIVE
========================= */
@media (width <= 768px) {
  .mistakes-list {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   DARK MODE FIX — GUIDES PAGE READABILITY (Issue #860)
   ========================================================= */

/* Page background & base text */
body.dark-mode {
  background-color: #0f172a;
  color: #e5e7eb;
  --footer-bg: #1a1a1a;
}

/* Section headings */
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4 {
  color: #f9fafb !important;
}

/* Paragraph text readability */
body.dark-mode p,
body.dark-mode li {
  color: #cbd5e1 !important;
}

/* Guide cards (major issue: parchment background in dark mode) */
body.dark-mode .guide-list li,
body.dark-mode .pr-steps li,
body.dark-mode .practice-item,
body.dark-mode .mistakes-list li {
  background: #1e293b !important; /* replaces light parchment */
  color: #e5e7eb !important;
  border: 1px solid rgba(255,255,255,0.06);
}

/* Fix titles inside cards */
body.dark-mode .guide-list h4,
body.dark-mode .pr-steps h4,
body.dark-mode .timeline-list h4,
body.dark-mode .practice-item h4 {
  color: #ffffff !important;
}

/* Fix description text inside components */
body.dark-mode .guide-list p,
body.dark-mode .pr-steps p,
body.dark-mode .timeline-list p,
body.dark-mode .practice-item p,
body.dark-mode .mistakes-list p {
  color: #cbd5e1 !important;
}

/* Timeline line visibility */
body.dark-mode .timeline-list::before {
  background: linear-gradient(to bottom, #facc15, #eab308);
}

/* Icons contrast */
body.dark-mode .icon,
body.dark-mode .step,
body.dark-mode .mistake-icon {
  background: #facc15 !important;
  color: #0f172a !important;
}
/* =====================================================
   Dark Mode Refinement – Guides Page (Final Patch)
   Paste at the bottom of guides.css

/* Section surfaces */
.dark-mode .guides-hero,
.dark-mode .guides-section {
  background-color: #020617; /* deep slate for contrast */
}

/* Headings */
.dark-mode .guides-section h1,
.dark-mode .guides-section h2,
.dark-mode .guides-section h3 {
  color: #f8fafc;
}

/* Body text */
.dark-mode .guides-section p {
  color: #cbd5f5;
}

/* Guide cards */
.dark-mode .guide-card {
  background-color: #111827;
  border: 1px solid #1f2937;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.65);
}

/* Card titles & content */
.dark-mode .guide-card h3,
.dark-mode .guide-card p {
  color: #e5e7eb;
}

/* Number badge / icon */
.dark-mode .guide-card .number {
  background-color: #fbbf24;
  color: #111827;
}

/* Hover polish */
.dark-mode .guide-card:hover {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75);
  transform: translateY(-2px);
}

/* ===== Dark Mode Hover Readability Fix ===== */

.dark-mode .guide-card {
  transition: transform 0.25s ease, 
              box-shadow 0.25s ease, 
              background-color 0.25s ease, 
              border-color 0.25s ease;
}

/* Force proper contrast on hover */
.dark-mode .guide-card:hover {
  background-color: #1f2937 !important;  /* controlled lift */
  border-color: #374151 !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.75) !important;
  transform: translateY(-3px);
}

/* Lock text visibility */
.dark-mode .guide-card:hover h3,
.dark-mode .guide-card:hover p {
  color: #f9fafb !important;
  opacity: 1 !important;
}

/* Disable any glow overlay if present */
.dark-mode .guide-card::before,
.dark-mode .guide-card::after {
  display: none !important;
}

/* ===== Dark Mode Fix – Common Mistakes Hover ===== */

.dark-mode .mistakes-list li {
  background: #111827 !important;
  border-left: 0 !important;
  border: 1px solid #1f2937 !important;
}

.dark-mode .mistakes-list li:hover {
  background: #1f2937 !important;   /* stay dark */
  border-left: 6px solid #fbbf24 !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.75) !important;
  transform: translateY(-5px);
}

.dark-mode .mistakes-list p {
  color: #e5e7eb !important;
}

.dark-mode .mistakes-list li:hover p {
  color: #f9fafb !important;
}

/* =========================================
   DARK MODE – FIX WHITE HOVER BACKGROUND
   ========================================= */

body.dark-mode .practice-item,
body.dark-mode .pr-steps li,
body.dark-mode .guide-list li,
body.dark-mode .mistakes-list li {
  background: #111827; /* dark card base */
  border: 1px solid #1f2937;
}

/* Hover state stays dark */
body.dark-mode .practice-item:hover,
body.dark-mode .pr-steps li:hover,
body.dark-mode .guide-list li:hover,
body.dark-mode .mistakes-list li:hover {
  background: #1f2937; /* slightly lifted dark */
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.75);
  transform: translateY(-6px);
}

/* Ensure text stays visible */
body.dark-mode .practice-item h4,
body.dark-mode .pr-steps h4,
body.dark-mode .guide-list h4,
body.dark-mode .mistakes-list p {
  color: #f9fafb;
}
