body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #fff;
  color: #000;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
}

header {
  background: #e4e4e4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.logo img {
  height: 50px;
  object-fit: contain;
}

.header-right {
  display: flex;
  align-items: center;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  position: relative;
  margin-left: 20px;
  text-decoration: none;
  color: #000;
  font-size: 14px;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: 0;
  background-color: #000;
  transition: width 0.3s ease;
}

nav a:hover {
  color: #555;
}

nav a:hover::after {
  width: 100%;
}

.switch-container {
  margin-left: 30px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
  background-color: #ccc;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.switch::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  top: 3px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

input[type="checkbox"] {
  display: none;
}

input[type="checkbox"]:checked + .switch {
  background-color: #666;
}

input[type="checkbox"]:checked + .switch::before {
  transform: translateX(20px);
}

main {
  flex: 1;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  background: #fff;
  transition: background 0.3s ease;
}

.faq-container {
  max-width: 800px;
  width: 100%;
}

.faq-container h1 {
  font-size: 32px;
  margin-bottom: 30px;
  text-align: center;
  color: inherit;
}

.faq-item {
  background: #e4e4e4;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.faq-item h2 {
  font-size: 18px;
  margin-bottom: 8px;
  color: inherit;
}

.faq-item p {
  font-size: 14px;
  color: #333;
}

footer {
  padding: 20px;
  display: flex;
  justify-content: center;
  background: #e4e4e4;
  transition: background 0.3s ease;
}

.socials i {
  margin: 0 8px;
  font-size: 18px;
  cursor: pointer;
  color: #000;
  transition: color 0.3s ease;
}

.socials i:hover {
  color: #555;
}

.socials a {
  text-decoration: none;
}

body.dark-mode {
  background: #121212;
  color: #f5f5f5;
}

body.dark-mode header {
  background: #1e1e1e;
}

body.dark-mode nav a {
  color: #f5f5f5;
}

body.dark-mode nav a::after {
  background-color: #f5f5f5;
}

body.dark-mode .switch {
  background-color: #666;
}

body.dark-mode main {
  background: #121212;
}

body.dark-mode .faq-container h1 {
  color: #f5f5f5;
}

body.dark-mode .faq-item {
  background: #2a2a2a;
}

body.dark-mode .faq-item p {
  color: #ccc;
}

body.dark-mode footer {
  background: #1e1e1e;
}

body.dark-mode .socials i {
  color: #f5f5f5;
}

body.dark-mode .socials i:hover {
  color: #999;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .header-right {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  nav a {
    margin: 10px 0;
    font-size: 16px;
  }

  .switch-container {
    margin-left: 0;
    margin-top: 10px;
  }
}

.faq-item a {
  color: #000;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.faq-item a:hover {
  color: #555;
}

body.dark-mode .faq-item a {
  color: #f5f5f5;
}

body.dark-mode .faq-item a:hover {
  color: #aaa;
}

.switch::before {
  content: "\f186";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 11px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  top: 50%;
  transform: translateY(-48%);
  background-color: #2c3e50;
  border-radius: 50%;
  transition:
    transform 0.3s ease,
    content 0.3s ease,
    background-color 0.3s ease,
    color 0.3s ease;
}

input[type="checkbox"]:checked + .switch::before {
  content: "\f185";
  color: #f1c40f;
  background-color: #111;
  transform: translate(20px, -48%);
}