* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  color: #1e1e1e;
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: inherit;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #3b82f6;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.nav-brand {
  font-size: 1.6rem;
  font-weight: bold;
  color: #fff;
}
.nav-menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.nav-menu li a {
  color: #fff;
  font-weight: 500;
  position: relative;
}
.nav-menu li a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: 0.3s;
}
.nav-menu li a:hover::after {
  width: 100%;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  position: absolute;
  left: 80%;
}
.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #fff;
  transition: 0.3s;
}

/* Wrapper */
.wrapper {
  width: 85%;
  max-width: 1200px;
  margin: 8rem auto 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Calculator Card */
.calculator {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}
.calculator h2 {
  margin-bottom: 1rem;
  color: #3b82f6;
  font-size: 1.5rem;
}
label {
  display: block;
  margin-top: 0.5rem;
  font-weight: 600;
}
input,
select {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.term {
  display: flex;
  gap: 1rem;
}
button {
  margin-top: 1rem;
  width: 100%;
  padding: 0.8rem;
  background: #3b82f6;
  color: #fff;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}
button:hover {
  background: #2563eb;
}
.result {
  margin-top: 1rem;
  background: #f1f1f1;
  padding: 1rem;
  border-radius: 5px;
}
.result p {
  margin: 0.3rem 0;
}

/* About Section */
.about-section {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}
.about-section h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: #1e40af;
  font-size: 1.8rem;
}
.about-section p,
.about-section ul {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.about-section ul {
  list-style: disc;
  padding-left: 20px;
}

/* FAQ */
.faq-section {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}
.faq-section h2 {
  color: #1e40af;
  margin-bottom: 1rem;
  text-align: center;
}
.faq-item {
  margin-bottom: 1rem;
}
.faq-question {
  font-weight: 600;
  cursor: pointer;
  background: #f3f4f6;
  padding: 0.8rem;
  border-radius: 5px;
}
.faq-answer {
  display: none;
  padding: 0.5rem 0.8rem;
  background: #f9fafb;
  border-left: 3px solid #3b82f6;
  border-radius: 0 5px 5px 0;
}

/* Footer */
.footer-bottom {
  background: #3b82f6;
  padding: 1rem;
  text-align: center;
  color: #fff;
  margin-top: 2rem;
}
.footer-bottom a {
  color: #fff;
  margin: 0 5px;
}
.footer-bottom a:hover {
  text-decoration: underline;
}

/* Media Queries */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    flex-direction: column;
    background: #3b82f6;
    padding: 2rem;
    gap: 1rem;
    transition: 0.3s;
  }
  .nav-menu.active {
    left: 0;
  }
  .nav-toggle {
    display: flex;
  }
  .wrapper {
    width: 95%;
    margin-top: 7rem;
  }
  .term {
    flex-direction: column;
  }
}
