/* --- Base Layout --- */
body {
  font-family: 'Poppins', sans-serif;
  color: #2b2b2b;
  background: #fefcf8;
  margin: 0;
  line-height: 1.6;
}

/* --- Header --- */
.navbar {
  background: #2d2a26;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-weight: 700;
  font-size: 1.4rem;
  color: #e67e22;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #f8f5f1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #e67e22;
}

/* --- Troubleshooter Layout --- */
.troubleshooter {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem 1rem;
  background: #fffaf2;
  min-height: 100vh;
}

.troubleshooter-wrapper {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 3rem 2rem;
  width: 100%;
  max-width: 700px;
  text-align: center;
  border: 1px solid #f2e6d9;
  animation: fadeIn 0.5s ease;
}

.troubleshooter-wrapper h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.troubleshooter-wrapper p {
  color: #555;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* --- Category Buttons --- */
.category-list {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.category-btn {
  background: #fffaf2;
  border: 1px solid #e4d7c8;
  color: #333;
  padding: 0.9rem 1.5rem;
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-btn:hover {
  background: #e67e22;
  color: #fff;
  border-color: #e67e22;
}

/* --- Question Box --- */
.question-box {
  background: #fff;
  margin-top: 1rem;
  padding: 2rem;
  border-radius: 14px;
  border: 1px solid #f1e7da;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  animation: fadeIn 0.4s ease;
}

.question-box h2 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: #2b2b2b;
}

/* --- Yes/No Buttons --- */
.options {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.options button {
  background: #fefcf8;
  color: #2b2b2b;
  border: 1px solid #ddd0be;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.options button:hover {
  background: #e67e22;
  color: #fff;
  border-color: #e67e22;
}

/* --- Results --- */
.result-box {
  background: #fffaf2;
  border-left: 4px solid #e67e22;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  color: #333;
  text-align: left;
  font-size: 0.98rem;
}

.directory-link {
  margin-top: 1.5rem;
}

.directory-link a {
  color: #e67e22;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.directory-link a:hover {
  border-color: #e67e22;
}

/* --- Footer --- */
footer {
  background: #2d2a26;
  color: #f8f5f1;
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

/* --- Animations --- */
.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Mobile Navigation --- */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: #f8f5f1;
  cursor: pointer;
}

.nav-menu {
  display: flex;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #2d2a26;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid #444;
    animation: slideDown 0.3s ease forwards;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links a {
    color: #f8f5f1;
    font-size: 1rem;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .troubleshooter-wrapper {
    padding: 2rem 1.2rem;
  }

  .category-list {
    flex-direction: column;
  }

  .options {
    flex-direction: column;
  }

  .options button {
    width: 100%;
  }
}
