@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap");
:root {
  --white-color: #fff;
  --black-color: #000;
  --main-color: #005f00;
  --lighter-green: #00c503;
  --hover-color: #e5feeb;
}
* {
  margin: 0%;
  padding: 0%;
  box-sizing: border-box;
}
body {
  font-family: "DM Sans", sans-serif;
}
.faqs {
  background-color: #fafafa;
  overflow-x: hidden;
  width: 100%;
}
button {
  background: transparent;
  border: none;
}
nav {
  display: flex;
  align-items: center;
}
nav a,
.nav-btn {
  color: var(--lighter-green);
  text-decoration: none;
  font-size: 18px;
  margin: 0.5rem;
}
.nav-btn:hover,
nav a:hover {
  background: var(--main-color);
  color: var(--white-color);
  padding: 0.7rem;
  border-radius: 5px;
}
.service-content a,
.more-content a {
  display: block;
}
.service-content,
.more-content {
  position: absolute;
  display: none;
  min-width: 200px;
  background: var(--white-color);
}
.service-dropdown:hover .service-content,
.more-dropdown:hover .more-content {
  display: block;
}
.service-content a:hover,
.more-content a:hover {
  background: #00ab00;
  color: var(--white-color);
  padding: 5px;
  border-radius: 0px;
}
.header {
  max-width: 100%;
  width: 95%;
  margin: 0 auto;
  background: #fafafa;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.logo-icon {
  width: 40px;
  height: 32px;
}
.logo-parent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.logo-parent a {
  text-decoration: none;
  font-size: 24px;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: #1a1a1a;
}
.nav2 {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.dropdown,
.hamburger,
.more-dropdown,
.service-dropdown {
  position: relative;
  display: inline-block;
}
.dropdown img:nth-of-type(2) {
  position: absolute;
  top: 9px;
  left: 21px;
}
.dropdown img:nth-of-type(1) {
  border: 1.5px solid #e0e0e0;
  border-radius: 50px;
  padding: 3px;
}
.dropdown img {
  cursor: pointer;
}
/* Dropdown Box */
.notification {
  background: var(--white-color);
  width: 300px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: absolute;
  top: 70px;
  left: -140px;
  margin-top: 10px;
  /* Initially hidden */
  display: none;
  z-index: 100;
}
/* Notification items */
.notification .item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border-bottom: 2px solid #00ab00;
  border-radius: 0px 10px 10px 10px;
}
.item:hover {
  background: #bcfdbd;
}
.notification .item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.notification .item .info {
  flex: 1;
  margin-left: 10px;
}
.notification .item .info h5 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.notification .item .info p {
  margin: 3px 0;
  font-size: 12px;
  color: #4d4d4d;
}
.notification .item .info span {
  font-size: 11px;
  color: #999;
}
.notification .item a {
  text-decoration: none;
  font-size: 12px;
  color: #999;
  font-weight: 500;
  float: right;
}
.dropdown:hover .notification {
  display: block;
}
.dropdown-2 {
  position: relative;
}
.dropdown-content-1 a {
  display: block;
  text-decoration: none;
  color: #00c503;
  font-size: 18px;
  background-color: var(--white-color);
  flex: 1;
  letter-spacing: -0.03em;
  line-height: 28px;
  font-weight: 500;
}
.hamburger {
  display: none;
}
.dropdownbtn {
  background: transparent;
  border: none;
  cursor: pointer;
}
.dropdown-content-1 {
  display: none;
  position: absolute;
  top: 60px;
  right: -5px;
  background-color: #fff;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  width: 193px;
  height: 124px;
  text-align: right;
}
.link {
  padding: 5px 10px;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  padding: 5px 10px;
}
.dropdown-content-1 a:hover {
  background-color: #3e8e41;
  color: var(--white-color);
}
.dropdown-2:hover .dropdown-content-1 {
  display: block;
}
.dropdown:hover .dropbtn {
  background-color: #3e8e41;
}
.dropdown-content ul {
  display: none;
  width: 100%;
  position: absolute;
  right: -25px;
  top: 2rem;
  background-color: var(--white-color);
  min-width: 180px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}
.dropdown-content ul li {
  list-style-type: none;
}
.dropdown-content li a {
  text-decoration: none;
  color: var(--lighter-green);
  font-size: 18px;
}
.hamburger:hover .dropdown-content ul {
  display: block;
}
.menu a:hover {
  background: #007900;
  color: var(--white-color);
  width: 100%;
}
.menu {
  align-self: stretch;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding: 5px 10px;
}
.service {
  letter-spacing: -0.03em;
  line-height: 28px;
  font-weight: 500;
}
.hamburger img:hover,
.dropdown-content {
  display: block;
}
/*=======Backend profilePic, Bell, logout========*/
/* ✅ NEW ADDITION BELOW — keeps dropdown open even with gap */
/* Invisible hover bridge below the icon */
.dropdown::before {
  content: "";
  position: absolute;
  top: 100%; /* place directly under the dropdown trigger */
  left: 0;
  width: 100%;
  height: 100px; /* adjust this to match your gap size (e.g., 15–25px) */
  background: transparent;
}
/* Ensure the dropdown box appears above the hover bridge */
.dropdown:hover::before {
  z-index: 99;
}
#profilePic {
  width: 60px; /* fixed width */
  height: 60px; /* fixed height */
  object-fit: cover; /* crop instead of stretching */
  border-radius: 50%; /* makes it a circle */
  border: none; /* optional: add border */
}
/* hide by default */
.hidden {
  display: none;
}
/* last dropdown*/
/*Show dropdown on hover */
.dropdown-2:hover .dropdown-content-1 {
  display: block;
}
/* Hover bridge trick — invisible area keeps dropdown open */
.dropdown-2::after {
  content: "";
  position: absolute;
  top: 100%; /* directly below the dropdown button */
  left: 0;
  width: 100%;
  height: 100px; /* height of the invisible hover area */
  background: transparent;
}
/* Ensure hovering over the bridge area also keeps menu open */
.dropdown-2:hover::after {
  pointer-events: auto;
}
/* MAIN SECTION */
section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 12rem;
}
section .pics {
  border: 6px dashed rgb(198, 194, 194);
  border-radius: 50%;
  padding: 5px 5px 10px 3px;
  width: 50rem;
  margin-left: -13rem;
  box-shadow: 2px 2px 2px #8f8b8b;
  margin-bottom: 2rem;
}
section .pics img {
  width: 98%;
  border-radius: 50%;
}
section .content {
  width: 50%;
  height: 53rem;
  margin-bottom: 2rem;
}
section h3 {
  font-size: 31px;
  margin-bottom: 3rem;
  margin-left: 1rem;
  color: #424242;
}
section .big-question {
  color: red;
}
section .medcheck {
  margin-bottom: 1rem;
  padding: 15px;
  position: relative;
  font-size: 22px;
  background-color: #fff;
  width: 100%;
}
section input {
  display: none;
}
section p {
  width: 550px;
}
section .medcheck span {
  position: absolute;
  right: 20px;
}
section .medcheck .a-rrow {
  bottom: 5px;
  right: 1px;
  position: absolute;
}
.arrowdown {
  display: none;
}
section .medcheck ul {
  list-style: none;
}
section input:checked ~ .arrowdown {
  display: block;
}
section .medcheck:hover {
  background-color: #e5feeb;
  cursor: pointer;
}
section input:checked + label span {
  transform: rotate(180deg);
}
article {
  width: 50%;
  max-width: 100%;
  text-align: center;
  background-color: #005f00;
  color: #fafafa;
  padding: 20px;
  display: none;
}
/* ===== Footer Styling ===== */
.footer {
  max-width: 100%;
  background: #005f00;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 3rem 2rem;
}
.chevron-right {
  background: #99fcaf;
}
.logo a {
  text-decoration: none;
  font-size: 24px;
  color: #fff;
}
.divider {
  width: 90%;
  background-color: #fff;
  height: 1px;
  opacity: 0.1;
  mix-blend-mode: normal;
  margin: 0 auto;
}
.footer-links {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 0;
  padding-block: 3rem;
}
.newsletter {
  flex-grow: 0.5;
  flex-shrink: 1;
  margin: 1rem;
}
.newsletter p {
  font-size: 20px;
  color: #fff;
}
.input-container {
  width: 320px;
  max-width: 100%;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #4caf50;
  margin-top: 3.4rem;
}
.input-container input {
  width: 100%;
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px;
  color: black;
  font-size: 16px;
}
input::placeholder {
  color: white;
  opacity: 0.9;
}
.btn {
  background: #90ee90;
  border: none;
  padding: 12px 20px;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: background 0.3s;
}
.btn:hover {
  background: #76d976;
}
.btn svg {
  width: 16px;
  height: 16px;
  stroke: #025902;
  stroke-width: 2;
  fill: none;
}
.links h4 {
  color: #99fcaf;
  font-size: 18px;
}
.links ul li {
  list-style-type: none;
  margin-top: 1.5rem;
  width: 100%;
  font-size: 16px;
  letter-spacing: -0.03em;
  line-height: 24px;
  color: #fff;
  text-align: left;
  display: inline-block;
  cursor: pointer;
}
.links li a {
  text-decoration: none;
  color: #fff !important;
  font-size: 16px;
  white-space: nowrap;
  margin-inline-end: 10px;
}
.footer-more {
  order: 1;
}
.footer-more {
  order: 2;
}
.footer-services {
  order: 3;
}
.newsletter {
  order: 4;
}
.footer-bottom {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  justify-content: space-between;
  padding-block: 5rem;
}
.footer-bottom a {
  color: #fff;
  text-decoration: none;
}
.legal a {
  margin: 20px;
}
.socials a {
  margin: 10px;
}
.copyright {
  text-align: center;
  color: var(--white-color);
  font-size: 20px;
}

/*=======Backend profilePic, Bell, logout========*/
.awareness-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.awareness-bell {
  cursor: pointer;
}

.mobile-dashboard-notification.dropdown {
  position: absolute;
  top: 40px;
  right: 0;
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  padding: 10px;
}
.mobile-dashboard-notification.dropdown.hidden {
  display: none;
}
#profilePic {
  width: 75px; /* fixed width */
  height: 75px; /* fixed height */
  object-fit: cover; /* crop instead of stretching */
  border-radius: 50%; /* makes it a circle */
  border: 2px solid #ddd; /* optional: add border */
}
/* dropdown wrapper */
.mobile-dashboard-notification {
  position: absolute;
  top: 50px; /* adjust depending on your bell size */
  right: 0;
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 10px;
  z-index: 1000;
}
/* hide by default */
.hidden {
  display: none;
}
/* each notification */
.notification-default {
  display: flex;
  align-items: flex-start;
  padding: 8px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.2s;
}
.notification-default:hover {
  background: #f9f9f9;
}
@media (max-width: 900px) {
  .faqs {
    width: 100%;
  }
  nav {
    padding-top: 30px;
    display: flex;
    gap: 8rem;
  }
  nav .more ul {
    list-style: none;
    height: 3rem;
    padding: 10px;
    margin-left: 17rem;
    font-size: 18px;
    width: 80%;
    justify-content: center;
  }
  nav .icon {
    left: 10rem;
  }
  section .pics {
    margin-left: -2rem;
  }
}
@media (max-width: 768px) {
  .nav-btn {
    display: none;
  }
  .group-item,
  .dropdown-2 {
    display: none;
  }
  .hamburger {
    display: block;
  }
  footer {
    padding: 2rem;
  }
  .logo {
    padding: 0rem;
  }
  .divider {
    display: none;
  }
  .footer-links {
    display: block;
  }
  .links ul li {
    list-style-type: none;
    margin-top: 0.5rem;
  }
  .newsletter {
    margin: 0rem;
    padding-block: 2rem;
  }
  .newsletter p {
    width: 139.6px;
    line-height: 28px;
  }
  .input-container {
    margin-top: 2rem;
  }
  .links h4 {
    padding-top: 1rem;
  }
  .footer-bottom {
    display: block;
    padding-block: 1rem;
  }
  .socials {
    display: block;
  }
  .legal {
    display: flex;
    white-space: nowrap;
    gap: 3rem;
  }
}
@media (max-width: 450px) {
  .logo-parent a {
    font-size: 20px;
  }
  .faqs {
    width: 100% !important;
  }
  nav {
    gap: 2rem !important;
  }
  nav .logo {
    left: 20px;
  }
  nav .logo img {
    width: 40px;
  }
  nav .logo p {
    left: 3rem;
    bottom: 9px;
  }
  nav .icon {
    left: 18rem;
  }
  nav .more {
    display: none;
  }
  nav .anime,
  .expand {
    display: none;
  }
  nav .menuicon {
    display: block;
    position: absolute;
    top: 20px;
    left: -10px;
  }
  nav .icon .menui {
    display: block;
    width: 40px;
    height: 30px;
  }
  nav .menuicon:hover .options {
    display: block;
    top: 1.5rem;
    z-index: 999;
  }
  nav .menuicon a {
    text-decoration: none;
    color: #00c503;
    padding: 10px;
    display: block;
  }
  nav .menuicon a:hover {
    color: #fff;
    background-color: #00c503;
  }
  nav .notification .dropdown {
    left: -14rem;
    width: 18rem;
    top: 2rem;
    z-index: 999;
  }
  section {
    margin-top: 6rem;
    margin-inline: 1rem;
  }
  section .pics {
    display: none;
  }
  section .content {
    width: 100%;
    height: 47rem;
    margin-bottom: 5px;
  }
  section h3 {
    font-size: 16px;
    background-color: green;
    color: #fff;
    padding: 10px;
    margin-bottom: 1rem;
  }
  section .big-question {
    display: none;
  }
  section .medcheck {
    font-size: 15px;
    max-width: 100%;
  }
  section .medcheck p {
    width: 250px;
  }
  article {
    display: block;
    border-radius: 20px;
    width: 100%;
    height: 15rem;
    margin-bottom: 5rem;
  }
  article p {
    font-size: 20px;
    margin-block: 10px;
  }
  .question {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
  }
  article button {
    width: 69%;
    padding: 19px;
    margin-bottom: 4rem;
    border-radius: 10px;
    border: none;
    box-shadow: 2px 2px 10px #00c503;
    background-color: #fff;
  }
  article button a {
    text-decoration: none;
    color: #00c503;
    font-size: 18px;
  }
  article button:hover,
  article button a:hover {
    background-color: #c9f3c9;
    color: #495749;
  }
  .legal a {
    margin: 0px;
  }
}
@media (max-width: 390px) {
  nav .icon {
    left: 17rem;
  }
  article {
    width: 90%;
  }
  article p {
    font-size: 25px;

    margin-block: 10px;
    margin-left: -10px;
  }
  article button a {
    font-size: 15px;
  }
  footer .medlogo h3 {
    font-size: 25px;
    top: 4px;
  }
  footer .form,
  .service,
  .more,
  .help {
    font-size: 18px !important;
  }
  footer .mail {
    width: 320px;
  }
  footer .terms {
    font-size: 15px;
  }
  footer .privacy {
    position: relative;
    left: 2rem;
  }
  footer .rights {
    font-size: 20px;
    width: 80%;
    margin-left: 2rem;
  }
}
@media (max-width: 360px) {
  nav .icon {
    left: 17rem !important;
  }
  nav .notification .dropdown {
    left: -10rem;
  }
  article {
    width: 94%;
    height: 13rem;
  }
  article p {
    font-size: 23px;
    width: 19rem;
  }
  article button {
    padding: 22px;
  }
  footer .mail {
    width: 300px;
  }
  footer .form,
  .service,
  .more,
  .help {
    font-size: 16px !important;
  }
  footer .privacy {
    position: relative;
    left: 1rem;
  }
}
