/* ==========================================================
   DebtVault — Learn Page / 7-Day Vault Guide Styles
   Clean, readable, fintech-grade layout
========================================================== */

/* ------------------------------
   PAGE WRAPPER
------------------------------ */
.learn-container {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
  font-family: "Inter", sans-serif;
  color: var(--color-text);
}

/* ------------------------------
   PAGE TITLE
------------------------------ */
.learn-container h1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.learn-container p.subtitle {
  font-size: 1.15rem;
  color: var(--color-subtext);
  margin-bottom: 40px;
}

/* ------------------------------
   LESSON NAVIGATION LINKS
------------------------------ */
.lesson-nav {
  background: var(--color-card);
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 35px;
}

.lesson-nav a {
  margin-right: 12px;
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}

.lesson-nav a:hover {
  text-decoration: underline;
}

/* ------------------------------
   LESSON HEADINGS
------------------------------ */
.learn-container h2 {
  font-size: 1.9rem;
  margin-top: 50px;
  margin-bottom: 12px;
  font-weight: 700;
}

.learn-container h3 {
  font-size: 1.3rem;
  margin-top: 22px;
  margin-bottom: 8px;
  font-weight: 600;
}

/* ------------------------------
   PARAGRAPH STYLING
------------------------------ */
.learn-container p {
  line-height: 1.65;
  margin-bottom: 18px;
  font-size: 1.06rem;
}

/* ------------------------------
   BULLETS
------------------------------ */
.learn-container ul {
  margin-left: 20px;
  margin-bottom: 25px;
}

.learn-container li {
  margin-bottom: 8px;
  line-height: 1.55;
}

/* ------------------------------
   EMOJI CALLOUTS (VAULT FIX, HIGHLIGHTS)
------------------------------ */
.callout {
  background: #fff;
  border-left: 5px solid var(--color-accent);
  padding: 14px 18px;
  margin: 25px 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  font-size: 1.05rem;
}

.callout strong {
  font-weight: 700;
  color: var(--color-text);
}

/* ------------------------------
   MONEY HIGHLIGHTS
------------------------------ */
.money {
  font-size: 1.25rem;
  font-weight: 700;
}

/* ------------------------------
   RESPONSIVE
------------------------------ */
@media (max-width: 600px/* ================================
   VAULT COACH — MOBILE FIX
================================ */
#vaultCoachBtn,
.ask-vault-coach {
  position: fixed;
  bottom: 24px;
  right: 16px;
  z-index: 9999;

  background: #4f46e5;
  color: white;
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;

  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
) {
  .learn-container h1 {
    font-size: 2.1rem;
  }

  .lesson-nav {
    font-size: 0.95rem;
    padding: 14px 16px;
  }

  .learn-container h2 {
    font-size: 1.6rem;
  }
}

#vaultCoachBtn::before {
  content: "🧠";
  margin-right: 6px;
}

/* ================================
   FLOATING VAULT COACH BUTTON
================================ */
.coach-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 18px;
  background: #0e7c86;
  color: #ffffff;
  border: none;
  border-radius: 999px;

  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;

  box-shadow: 0 10px 30px rgba(14, 124, 134, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.coach-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(14, 124, 134, 0.45);
}

/* Mobile spacing adjustment */
@media (max-width: 768px) {
  .coach-btn {
    bottom: 90px; /* clears mobile browser UI */
    right: 16px;
    padding: 14px 18px;
  }
}

@media (max-width: 480px) {
  .coach-btn span {
    display: none;
  }
}

.coach-btn::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 2px solid rgba(14, 124, 134, 0.3);
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0% { opacity: 0.7; }
  50% { opacity: 0.2; }
  100% { opacity: 0.7; }
}

