body {
  font-family: Arial, sans-serif;
  background: #f6f7fb;
  margin: 0;
}

/* NAVBAR */
.navbar {
  background: #1f2937;
  color: #fff;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links button {
  background: transparent;
  border: 1px solid #374151;
  color: #e5e7eb;
  padding: 6px 12px;
  margin-left: 6px;
  border-radius: 6px;
  cursor: pointer;
}

.nav-links button.active,
.nav-links button:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

/* APP */
.app-section {
  max-width: 1260px;   /* ✅ increased width to use more space */
  width: 100%;
  margin: 18px auto;  
  padding: 16px 20px;  /* ✅ little extra horizontal padding */
}

input, textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
}

.button-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.button-row button {
  flex: 1;
  padding: 10px;
  cursor: pointer;
}

/* CARD */
.card {
  background: #fff;
  padding: 16px;
  margin-top: 16px;
  border-radius: 8px;
}

.hidden {
  display: none;
}

.section {
  margin-top: 10px;
  line-height: 1.5;
}

.incorrect { color: #b91c1c; }
.correct { color: #15803d; }
.reason { color: #374151; }
.alt { color: #1f2937; }

/* PRONUNCIATION */
.pronounce-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.stress {
  color: #dc2626;
  font-weight: bold;
}

/* 🔊 SPEAKER BUTTON */
.speaker {
  all: unset;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #e5e7eb;
  border: 1px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
}

.speaker:hover {
  background: #2563eb;
  color: #fff;
}

/* ===============================
   TOOL SWITCH
================================ */
.tool-switch {
  margin-top: 40px;
  text-align: center;
}

.tool-switch h3 {
  margin-bottom: 16px;
  font-weight: 600;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  max-width: 700px;
  margin: 0 auto;
}

.tool-card {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s ease;
}

.tool-card:hover {
  background: #f0f5ff;
  border-color: #2c6bed;
}

.tool-card.active {
  background: #2c6bed;
  color: white;
  border-color: #2c6bed;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.action-grid button {
  padding: 14px;
  font-size: 14px;
}

/* HERO */
.hero {
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 28px;
  margin-bottom: 6px;
}

.hero-subtitle {
  font-size: 16px;
  color: #444;
  max-width: 1100px; /* ✅ increased so it spreads better */
}

/* Listen hint */
.listen-hint {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
  cursor: pointer;
  user-select: none;
}

.listen-hint:hover {
  text-decoration: underline;
  color: #2563eb;
}

/* ===============================
   ✅ Guided Navigation / User Activity
================================ */
#guidedWrap {
  margin-top: 18px;
}

.guided-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.guided-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.guided-toggle input {
  transform: scale(1.1);
}

.guided-steps {
  margin: 10px 0 12px;
  line-height: 1.55;
}

.guided-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.progress-wrap {
  margin-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 12px;
}

.progress-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.progress-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.progress-item {
  padding: 10px 12px;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  font-size: 14px;
}

.progress-item.done {
  background: rgba(0, 200, 120, 0.10);
  border-color: rgba(0, 200, 120, 0.25);
  font-weight: 600;
}

.tip-line {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(30, 120, 255, 0.08);
  border: 1px solid rgba(30, 120, 255, 0.18);
  font-size: 14px;
  font-weight: 600;
}

/* ✅ Button styling upgrade (recommended) */
.button-row button {
  flex: 1;
  padding: 10px;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
  transition: 0.2s;
  font-weight: 700;
  font-size: 14px;
}

.button-row button:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

/* ✅ Guided Mode note below toggle */
.guided-note {
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
}

.guided-toggle-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

/* ===============================
   ✅ Floating Ask LearnComms Chatbot
================================ */

/* Floating action button with text */
#askFab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;

  background: #2563eb;
  color: #fff;

  border-radius: 999px;
  padding: 12px 14px;

  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 14px;
  font-weight: 800;

  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  user-select: none;
}

#askFab:hover {
  background: #1d4ed8;
}

#askFab .fab-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.18);
  font-size: 18px;
}

/* Chat window */
.askbot {
  position: fixed;
  right: 18px;
  bottom: 86px;
  width: 360px;
  max-width: calc(100vw - 36px);
  height: 460px;
  max-height: calc(100vh - 120px);
  background: #fff;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.20);
  z-index: 9999;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.askbot.hidden {
  display: none;
}

.askbot-header {
  background: #1f2937;
  color: #fff;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.askbot-title {
  font-weight: 700;
  font-size: 14px;
}

.askbot-actions button {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  margin-left: 6px;
}

.askbot-actions button:hover {
  background: rgba(255,255,255,0.12);
}

.askbot-messages {
  padding: 12px;
  overflow-y: auto;
  flex: 1;
  background: #f6f7fb;
}

.askbot-msg {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 14px;
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.askbot-msg.user {
  margin-left: auto;
  background: #2563eb;
  color: #fff;
}

.askbot-msg.bot {
  margin-right: auto;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
}

.askbot-input {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-top: 1px solid rgba(0,0,0,0.1);
  background: #fff;
}

#askInput {
  flex: 1;
  resize: none;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.15);
  font-size: 14px;
}

#askSendBtn {
  width: 80px;
  border: none;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

#askSendBtn:hover {
  background: #1d4ed8;
}

/* Mobile fix */
@media (max-width: 480px) {
  .askbot {
    right: 10px;
    left: 10px;
    width: auto;
  }

  #askFab {
    right: 10px;
    bottom: 10px;
    font-size: 13px;
    padding: 11px 12px;
  }
}
/* =================================
   Homepage Action Buttons Grid
================================= */
.action-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

/* Make all buttons full width inside grid */
.action-grid button{
  width: 100%;
}

/* Tablet */
@media (max-width: 900px){
  .action-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 560px){
  .action-grid{
    grid-template-columns: 1fr;
  }
}
.action-grid button{
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
