  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Poppins', sans-serif;
      background-color: #f4f6fc;
      color: #222;
    }

    /* 🌐 Navbar */
    header.navbar {
      width: 100%;
      background: #bfe2dd;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
      padding: 16px 40px;
      position: fixed;
      top: 0;
      z-index: 1000;
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: all 0.3s ease-in-out;
    }

    .logo {
      font-size: 24px;
      font-weight: 600;
      color: #3f51b5;
      transition: 0.3s;
    }

    .nav-links {
      list-style: none;
      display: flex;
      gap: 30px;
    }

    .nav-links li {
      position: relative;
    }

    .nav-links a {
      text-decoration: none;
      font-weight: 500;
      color: black;
      padding: 6px 10px;
      transition: all 0.3s ease;
    }

    .nav-links a:hover {
      color: #3f51b5;
    }

    .nav-links a::after {
      content: '';
      display: block;
      width: 0%;
      height: 2px;
      background: #3f51b5;
      transition: 0.3s ease;
      position: absolute;
      bottom: -4px;
      left: 0;
    }

    .nav-links a:hover::after {
      width: 100%;
    }

    /* 🌟 Forum UI */
/* 🌟 Forum Container */
.forum-container {
  max-width: 1100px;
  margin: 140px auto 50px;
  padding: 20px;
  animation: fadeInUp 0.8s ease forwards;
  background: linear-gradient(135deg, #e6f9f7, #eef5ff);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.forum-container h1 {
  text-align: center;
  margin-bottom: 40px;
  color: #2c3e50;
  font-size: 36px;
  font-weight: 700;
}

.question-form label {
  font-weight: 600;
  margin-bottom: 5px;
  color: #444;
}

.question-form select {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.question-form select:hover,
.question-form select:focus {
  border-color: #4a90e2;
  outline: none;
  box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.2);
}

.question-form textarea,
.question-form input[type="text"] {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: #fff;
  resize: vertical;
  font-size: 1rem;
}

.question-form button {
  padding: 12px 20px;
  background: #4a90e2;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.question-form button:hover {
  background: #357ABD;
}

/* Optional: Mobile Responsiveness */
@media (max-width: 600px) {
  .forum-container {
    padding: 20px;
  }
}
/* 📋 Question Form & Cards */
.question-form,
.question-card {
  background: #ffffff;
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-left 0.3s ease;
  border-left: 6px solid transparent;
}

/* 🔁 Hover Styles */
.question-form:hover,
.question-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-left: 6px solid #008080; /* Teal border on hover */
}

/* 📝 Inputs & Selects */
.question-form textarea,
.question-form select,
.question-card textarea {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 10px;
  margin-top: 12px;
  resize: vertical;
  background-color: #fafbff;
  transition: border-color 0.3s ease;
}

.question-form textarea:focus,
.question-card textarea:focus,
.question-form select:focus {
  border-color: #3f51b5;
  outline: none;
}

/* 🔘 Buttons */
.question-form button,
.question-card button {
  margin-top: 18px;
  padding: 12px 24px;
  font-size: 15px;
  background-color: #008080; /* Teal */
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.question-form button:hover,
.question-card button:hover {
  background-color: #006666;
  transform: translateY(-2px);
}

/* 📝 Question Text */
.question-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #222;
}

.question-card p {
  margin: 8px 0;
  color: #444;
  font-size: 15px;
}

/* 🏷️ Category Badge */
.category-badge {
  display: inline-block;
  background-color: #ccf2ff;     /* Light blue */
  color: #0077b6;                /* Blue text */
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* ✅ Toast */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #323232;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
}

/* ✨ Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ✅ Footer */
footer {
  text-align: center;
  padding: 20px;
  background-color: #008d78;
  color: white;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
}

/* ✨ Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 📱 Responsive */
@media screen and (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 80px;
    right: 0;
    width: 200px;
    display: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px;
  }

  .nav-links.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
    cursor: pointer;
    font-size: 24px;
    color: #3f51b5;
  }
}

.menu-toggle {
  display: none;
}


    /* Beautiful Login Modal */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-box {
  background: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: scaleUp 0.3s ease forwards;
}

.popup-box h2 {
  margin-bottom: 10px;
  color: #008d78;
}

.popup-box p {
  color: #444;
  margin-bottom: 20px;
}

.popup-box button {
  padding: 10px 20px;
  background-color: #008d78;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s;
}

.popup-box button:hover {
  background-color: #2f3ea1;
}

@keyframes scaleUp {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.question-card p em {
  font-style: italic;
  color: #008080;
  font-weight: 500;
}
/* ✔️ Smooth Button Click Feedback */
button:active {
  transform: scale(0.97);
}

/* ✔️ Answer Block Styling (if showing answers) */
.answer-block {
  background-color: #f1f5ff;
  padding: 14px;
  border-left: 4px solid #3f51b5;
  border-radius: 10px;
  margin-top: 15px;
  font-size: 15px;
  color: #2c3e50;
}

/* ✔️ Responsive Textarea */
textarea {
  resize: vertical;
  min-height: 80px;
}

/* ✔️ Placeholder Styling */
textarea::placeholder {
  color: #aaa;
  font-style: italic;
}

/* ✔️ Transition on Navbar Scroll (optional) */
header.navbar.scrolled {
  background-color: #9ed4cb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 12px 30px;
}

/* ✔️ Improve input styles (optional consistency) */
input[type="text"],
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 16px;
  background-color: #fff;
}

/* ✔️ Custom Scrollbar (modern look) */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-thumb {
  background: #3f51b5;
  border-radius: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
 /* Custom Google Translate dropdown styling */
#customTranslate {
  background-color: #008080;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.95rem;
  cursor: pointer;
}
#customTranslate option {
  background-color: #fff;
  color: #000;
}
#customTranslate:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}