#logo {
  width: 200px;
  max-width: 100%;
  height: auto;
}

/* Cria um wrapper para alinhar input e botão corretamente */
.search-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid rgb(180, 171, 171);
  border-radius: 5px;
  padding: 3px 8px;
  min-width: 140px;
  height: 36px;
  margin-right: 8px;
  position: relative;
  max-width: 200px;
  overflow: visible;
}

.search-container {
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.search-input {
  font-size: 0.85em;
  border: none;
  outline: none;
  padding: 5px;
  width: 100%;
  height: 100%;
  padding-right: 30px;
  transition: width 0.3s ease-in-out, border-color 0.3s ease;
  min-width: 90px;
}

#search-outside-menu-button {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background-color: transparent;
  color: rgb(45, 164, 39);
  cursor: pointer;
  outline: none;
  padding: 0 10px;
  font-size: 1em;
  height: 100%;
  width: 30px;
  flex-shrink: 0;
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
}

#search-outside-menu-button i {
  font-size: 1em;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .search-wrapper {
    min-width: 120px;
    max-width: 160px;
  }

  .search-input {
    min-width: 80px;
  }

  .search-input:focus {
    width: 120px;
  }
}

#search-insede-menu {
  display: none;
}
#search-insede-menu-button {
  display: none;
  position: absolute;
  top: 50%;
  right: 1px;
  transform: translateY(-50%);
  border: none;
  background-color: transparent;
  color: #007bff;
  cursor: pointer;
  outline: none;
}

#acesso {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  min-height: 30px;
  min-width: 120px;
  border: 1px solid rgb(180, 171, 171);
  font-size: 1em;
  color: #373435;
  transition: all 0.2s ease-in-out;
}

#acesso:hover {
  background-color: #f8f5f6;
}

@media (max-width: 768px) {
  #acesso {
    min-width: 100px;
    font-size: 0.9em;
  }
}

#listMenu {
  gap: 15px;
  font-size: 1em;
}
.menuTop {
  color: #511026;
}
.nav-item:hover > .dropdown-menu {
  display: block;
}
.nav-item > a {
  color: black !important;
  font-size: 1.3em;
}
.nav-item:hover > a {
  color: #169e57 !important;
}
#itensInMenu {
  display: none;
}
.diminuir {
  font-size: 0.9em;
  background-color: transparent;
  border: none;
  padding-top: 2px;
  color: rgb(113, 109, 109);
}
.aumentar {
  font-size: 1.1em;
  background-color: transparent;
  border: none;
  margin-right: 10px;
  color: rgb(113, 109, 109);
}
.redesSociais {
  color: rgb(113, 109, 109);
}
.destaques {
  width: 100%;
}
.icons {
  width: 70%;
  border-radius: 153px 153px 153px 153px;
  -webkit-border-radius: 153px 153px 153px 153px;
  -moz-border-radius: 153px 153px 153px 153px;
}
.linkIcons {
  text-decoration: none;
  color: #000;
}
.linkIcons:hover {
  text-decoration: none;
  color: #169e57;
}
.icontitle {
  font-size: 1em;
}

/* videos e noticias - INICIO - */
.traco {
  width: 20vw;
  height: 5px;
  margin-left: 10px;
}
.tagDestaque {
  font-family: "Eastman Trial", serif;
  font-size: 30px;
}
.tagDestaque {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 30px;
}
/* noticias */
.cardNoticia {
  width: 100%;
  height: 310px;
  background-color: #287bab;
  -webkit-border-radius: 15px;
  -moz-border-radius: 15px;
  border-radius: 15px;
  color: aliceblue;
  padding: 0px 0px 0px 0px;
  margin-bottom: 10px;
  text-decoration: none;
  text-align: left;
  word-break: break-all;
}
.cardNoticia > img {
  width: 100%;
  -webkit-border-top-left-radius: 15px;
  -webkit-border-top-right-radius: 15px;
  -moz-border-radius-topleft: 15px;
  -moz-border-radius-topright: 15px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}
.cardNoticia > .cardNoticiaBody {
  padding: 10px 10px 10px 10px;
}
.cardNoticia > .cardNoticiaBody > h6 {
  font-size: 1em;
  padding: 0px 0px 0px 0px;
  margin-bottom: 0px;
}
.cardNoticia > .cardNoticiaBody > p {
  font-size: 0.8em;
  padding: 0px 0px 0px 0px;
  margin-bottom: 5px;
}

.cardNoticia > img {
  height: 65%;
}
.noticiaSmall {
  width: 100%;
  padding: 0px 0px 10px 0px;
}
.noticiaSmall > .row > .col-6 > img {
  width: 100%;
  height: 90px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
}
.linkNoticiaSmall {
  text-decoration: none;
}
.noticiaSmall > .row > .col-6 > .title {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9em;
  color: #287bab;
  padding: 0px 0px 0px 6px;
  margin: 0px 0px 30px 0px;
  background-color: white;
}
/* botão noticias */
.ver {
  background-color: #287bab;
  font-size: 0.8em;
  color: white;
  text-decoration: none;
  padding: 9px 9px 9px 9px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
}
.ver:hover {
  background-color: #134d6e;
  color: white;
  text-decoration: none;
}

/* Videos */
.cardVideos {
  width: 100%;
  height: 310px;
  background-color: #1c242f;
  -webkit-border-radius: 15px;
  -moz-border-radius: 15px;
  border-radius: 15px;
  color: aliceblue;
  padding: 0px 0px 0px 0px;
  text-decoration: none;
  text-align: left;
  word-break: break-all;
  border-color: white;
}
.cardVideos > img {
  width: 100%;
  height: 220px;
  -webkit-border-top-left-radius: 15px;
  -webkit-border-top-right-radius: 15px;
  -moz-border-radius-topleft: 15px;
  -moz-border-radius-topright: 15px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}
.cardVideos > .cardVideosBody {
  padding: 20px 10px 10px 10px;
}
.cardVideos > .cardVideosBody > h6 {
  font-family: "Montserrat", sans-serif;
  font-size: 1em;
  padding: 0px 0px 0px 0px;
  margin-bottom: 0px;
}
.cardVideosSmall {
  width: 100%;
  height: 140px;
  background-color: #1c242f;
  -webkit-border-radius: 15px;
  -moz-border-radius: 15px;
  border-radius: 15px;
  color: aliceblue;
  padding: 0px 0px 0px 0px;
  margin-bottom: 10px;
  text-align: left;
  word-break: break-all;
  border-color: white;
}
.cardVideosSmall > img {
  width: 100%;
  height: 90px;
  -webkit-border-top-left-radius: 10px;
  -webkit-border-top-right-radius: 10px;
  -moz-border-radius-topleft: 10px;
  -moz-border-radius-topright: 10px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
.cardVideosSmall > .cardVideosBody {
  padding: 10px 10px 10px 10px;
}
.cardVideosSmall > .cardVideosBody > h6 {
  font-family: "Montserrat", sans-serif;
  font-size: 0.7em;
  padding: 0px 0px 0px 0px;
  margin-bottom: 0px;
}
/* botão videos */
.verVideos {
  background-color: #1c242f;
  font-size: 0.8em;
  color: white;
  text-decoration: none;
  padding: 9px 9px 9px 9px;
  margin-top: 100px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
}
.verVideos:hover {
  background-color: #0b0c0c;
  color: white;
  text-decoration: none;
}
/* videos e noticias - FIM - */

/* Defensoria em Números */
.tagDefensoria {
  font-family: "Calibri", serif;
  font-size: 35px;
  color: #f2f6f4;
  margin-right: 15px;
  font-weight: 900;
}
.tracoDefensoria {
  width: 45vw;
}
.defensoriaTitle {
  font-family: "Calibri", serif;
  font-size: 25px;
  color: #169e57;
}
.verDefensoria {
  margin-bottom: 50px;
  background-color: #169e57;
  font-size: 0.8em;
  color: white;
  text-decoration: none;
  padding: 9px 9px 9px 9px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
}
.verDefensoria:hover {
  color: white;
  text-decoration: none;
}

/* menu do rodapé */
.footer {
  background: linear-gradient(
    180deg,
    rgba(40, 123, 171, 1) 0%,
    rgba(114, 179, 147, 1) 94%
  );
}
.menuFooterTitle {
  font-size: 1em;
}
.menuFooterLinks {
  font-size: 0.8em;
  list-style: none;
  text-decoration: none;
}
.menuFooter {
  text-decoration: none;
}
.tracoFooter {
  padding: 0px;
  margin: 0px 0px 10px 0px;
}
.containerLogo {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.logoText {
  font-size: 0.8em;
  margin: 0px 0px 0px;
}
/* configorações de exibição do videos */

.card {
  cursor: pointer;
}

.loading {
  height: 100px;
  width: 100%;
  left: 50%;
  top: 50%;
  z-index: 1;
  font-weight: bold;
  font-family: sans-serif;
  font-size: 30px;
  animation: l1 1s linear infinite alternate;
  display: flex;
  justify-content: center;
}
.loading:before {
  content: "Carregando...";
}
@keyframes l1 {
  to {
    opacity: 0;
  }
}

/* loader */
/* Center the loader */
.loader {
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 50px;
  height: 50px;
  margin-left: 40%;
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid #128006;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Controle de midias */

@media (max-width: 644px) {
  #listMenu {
    gap: 10px;
  }
}
@media (max-width: 550px) {
  #acesso {
    display: none;
  }
  #itensInMenu {
    display: block;
  }
  #itensInMenu > a {
    height: 25px;
    width: 100px;
    margin-top: 1px;
    padding: 1px 5px 0px 7px;
    border-color: rgb(113, 109, 109);
    font-size: 0.9em;
    color: #373435;
  }
}
@media (max-width: 734px) {
  #search-insede-menu {
    display: block;
    width: 90px;
    margin-right: 0px;
  }
  #search-insede-menu-button {
    display: block;
    margin-right: 0px;
    padding: 0px;
  }
  #search-outside-menu,
  #search-outside-menu-button {
    display: none;
  }
  #logo {
    width: 210px;
  }
}
@media (max-width: 548px) {
  #logo {
    width: 210px;
  }
}
@media (max-width: 397px) {
  #search-insede-menu {
    display: block;
    width: 150px;
    margin-left: 49px;
  }
  #search-insede-menu-button {
    display: block;
  }
  #search-outside-menu,
  #search-outside-menu-button {
    display: none;
  }
  #logo {
    width: 150px;
  }
  .nav-item {
    font-size: 1em;
  }
}
@media (max-width: 360px) {
  #logo {
    width: 100px;
  }
  .nav-item {
    font-size: 0.8em;
  }
}
@media (min-width: 576px) and (max-width: 645px) {
  #listMenu {
    gap: 8px;
    font-size: 0.8em;
  }
}
/*noticias*/
@media (min-width: 1740px) {
  .cardNoticia {
    height: 310px;
  }
}
@media (min-width: 987px) and (max-width: 1199px) {
  .traco {
    width: 100%;
  }
}

@media (min-width: 920px) and (max-width: 987px) {
  .traco {
    width: 700px;
  }
}
@media (min-width: 800px) and (max-width: 919px) {
  .traco {
    width: 500px;
  }
}
@media (min-width: 604px) and (max-width: 799px) {
  .traco {
    width: 300px;
  }
}
@media (min-width: 1146px) and (max-width: 1199px) {
  .cardNoticia {
    height: 400px;
  }
}
@media (min-width: 579px) and (max-width: 619px) {
  .cardNoticia > img {
    height: 50%;
  }
}
@media (min-width: 620px) and (max-width: 822px) {
  .cardNoticia > img {
    height: 60%;
  }
}

@media (min-width: 965px) and (max-width: 1146px) {
  .cardNoticia {
    height: 370px;
  }
}
@media (min-width: 900px) and (max-width: 965px) {
  .cardNoticia {
    height: 370px;
    margin-bottom: 15px;
  }
}
@media (min-width: 839px) and (max-width: 900px) {
  .cardNoticia {
    height: 350px;
    margin-bottom: 15px;
  }
}
@media (min-width: 610px) and (max-width: 747px) {
  .cardNoticia {
    height: 300px;
    margin-bottom: 15px;
  }
}
@media (min-width: 627px) and (max-width: 608px) {
  .cardNoticia {
    height: 350px;
    margin-bottom: 15px;
  }
}
@media (min-width: 579px) and (max-width: 623px) {
  .cardNoticia {
    height: 300px;
    margin-bottom: 15px;
  }
}
@media (min-width: 518px) and (max-width: 579px) {
  .cardNoticia {
    height: 350px;
    margin-bottom: 15px;
  }
}
@media (min-width: 457px) and (max-width: 518px) {
  .cardNoticia {
    height: 330px;
    margin-bottom: 15px;
  }
}
@media (min-width: 400px) and (max-width: 457px) {
  .cardNoticia {
    height: 300px;
    margin-bottom: 15px;
  }
}
@media (min-width: 361px) and (max-width: 400px) {
  .cardNoticia {
    height: 290px;
    margin-bottom: 15px;
  }
}
@media (min-width: 304px) and (max-width: 360px) {
  .cardNoticia {
    height: 260px;
    margin-bottom: 15px;
  }
}
@media (min-width: 260px) and (max-width: 304px) {
  .cardNoticia {
    height: 230px;
    margin-bottom: 15px;
  }
}
@media (max-width: 604px) {
  .traco {
    width: 350px;
    height: 15px;
  }
}
@media (max-width: 504px) {
  .traco {
    width: 300px;
    height: 15px;
  }
}
@media (max-width: 474px) {
  .traco {
    width: 270px;
    height: 15px;
  }
}
@media (max-width: 420px) {
  .traco {
    width: 250px;
    height: 15px;
  }
}
@media (max-width: 402px) {
  .traco {
    width: 200px;
    height: 15px;
  }
}
@media (max-width: 365px) {
  .traco {
    width: 100px;
    height: 15px;
  }
}

/* videos */
@media (max-width: 576px) {
  .cardVideosSmall {
    margin-top: 15px;
    height: 200px;
  }
  .cardVideosSmall > img {
    width: 100%;
    height: 150px;
  }
}

/* traço defensoria */
@media (max-width: 671px) {
  .tracoDefensoria {
    display: none;
  }
}
/* icons */
@media (max-width: 763px) {
  .icontitle {
    font-size: 0.8em;
  }
}
@media (max-width: 320px) {
  .icontitle {
    font-size: 0.6em;
  }
}

/******************************************************Novo Header*****************************************************/
:root {
  --primary-color: #2da427;
  --header-height: 70px;
}

.social-icons {
  display: flex;
  gap: 10px;
  margin-left: 5px;
}

.social-link {
  color: #716e6d !important;
  text-decoration: none;
  font-size: 20px;
  cursor: pointer;
  transition: opacity 0.2s;
  padding: 0 5px;
}

.social-link:hover {
  opacity: 0.8;
  color: #666 !important;
}

@media (max-width: 768px) {
  .social-icons {
    gap: 20px;
    margin-right: 20px;
  }
}

@media (min-width: 769px) {
  .nav-wrapper {
    background: #f8f9fa;
    border-bottom: none;
    width: 100%;
    margin-top: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }

  main {
    margin-top: 110px;
    padding-top: 5px;
  }

  .header {
    padding-bottom: 0;
  }
}

@media (max-width: 768px) {
  .nav-wrapper {
    background: #f8f9fa;
    border-bottom: none;
    width: 100%;
  }
}

.nav-content {
  justify-content: flex-start;
  max-width: 100%;
  padding: 0;
  background: #f8f8f8;
  margin: 0;
}

.main-menu {
  gap: 0;
  padding: 0 20px;
}

.menu-item > a {
  padding: 10px 25px;
  font-weight: 500;
}

.menu-item:hover > a {
  background: #e9e9e9;
}

.menu-item .dropdown-menu {
  background: #f8f8f8;
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 0;
  margin-top: 0;
}

.dropdown-menu a {
  padding: 12px 25px;
  border-bottom: 1px solid #eee;
}

.dropdown-menu a:hover {
  background: #e9e9e9;
  padding-left: 30px;
}

.top-bar {
  padding: 8px 20px;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.top-bar {
  background: #f8f9fa;
  padding: 5px 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  color: #333;
}
@media (min-width: 1200px) {
  .cardNoticia {
    height: 400px;
  }
}
@media (max-width: 768px) {
  .top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1010;
  }
  body {
    padding-top: 41px;
  }
}

.top-bar .btn:focus {
  outline: none !important;
  box-shadow: none !important;
}

.header {
  background: #f8f9fa !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 10px 0;
}

.header.shrink {
  padding: 13px 0;
  background: #f8f9fa;
}

.header-content {
  width: 100%;
  display: flex;
  justify-content: space-between; /* Changed to space-between */
  align-items: center;
  padding: 0 20px;
  margin: 0 auto;
}

.logo img {
  height: 60px;
  width: auto;
  transition: all 0.3s ease;
}

.header.shrink .logo img {
  height: 40px;
}

.search-wrapper {
  max-width: 300px;
  width: 100%;
  position: relative;
  transition: all 0.3s ease;
}

.search-input {
  width: 100%;
  padding: 10px 35px 10px 12px;
  border: 1px solid #999;
  border-radius: 5px;
  font-size: 14px;
  outline: none;
}

.header.shrink .search-wrapper {
  max-width: 180px;
}

.search-button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  outline: none;
}

.nav-wrapper {
  background: #f8f9fa;
  top: 10px;
  width: 100%;
  border-top: none !important;
  border-bottom: none !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .nav-wrapper {
    display: none;
  }
}

.nav-content {
  background: #f8f9fa;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  max-width: 1200px;
  padding: 0 15px;
}

.main-menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  width: fit-content;
  justify-content: center;
}

.menu-item {
  position: relative;
}

.menu-item > a {
  color: #333;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  transition: all 0.3s;
  white-space: nowrap;
}

.menu-item > a::after {
  content: "\f0d7";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-left: 10px;
  font-size: 14px;
  transition: transform 0.3s;
}

.menu-item > a:hover {
  color: var(--primary-color);
  background: #e9e9e9;
}

.menu-item .dropdown-menu {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  background: white;
  min-width: 250px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 4px 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0);
  transition: all 0.3s;
  z-index: 1000;
  border: 1px solid #eee;
  border-top: none;
  display: none;
  margin-top: 0;
}

.menu-item:hover #main-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  display: block;
}

.menu-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  display: block;
  transition: all 0.2s;
  font-size: 14px;
}

.dropdown-menu a:hover {
  background: #f8f9fa;
  color: var(--primary-color);
  padding-left: 25px;
}

.mobile-menu-btn {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  .header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 10px 0 !important;
    z-index: 1000;
  }

  .header .container {
    flex-direction: column;
    gap: 10px;
    padding: 0 10px;
  }

  .header-right {
    flex-wrap: wrap;
    justify-content: space-between;
    width: 60%;
    gap: 10px;
  }

  .search-box:not(.mobile-search) {
    display: none;
  }
  .mobile-search {
    position: relative;
    width: auto;
    margin: 0;
  }
  .mobile-search input {
    height: 35px;
  }

  .social-icons,
  .font-controls {
    display: none !important;
  }

  .user-controls {
    margin: 0 !important;
    order: 1;
  }

  .nav-wrapper {
    position: fixed;
    top: 120px;
    width: 100%;
    z-index: 999;
  }

  .nav-content {
    padding: 0;
  }

  .main-menu {
    flex-direction: column;
    width: 100%;
    display: none;
  }

  .main-menu.active {
    display: block;
  }

  .menu-item {
    width: 100%;
  }

  .menu-item > a {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
  }

  .menu-item .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: #f8f9fa;
    display: none;
    padding: 0;
  }

  .menu-item.active .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    padding: 10px 25px;
    font-size: 14px;
    border-bottom: 1px solid #eee;
  }

  main {
    margin-top: 10px !important;
    padding: 15px !important;
  }

  .mobile-menu-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 15px;
    font-size: 16px;
    border-radius: 4px;
  }
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1030;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay.active {
  opacity: 1;
  display: block;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: #f8f9fa;
  z-index: 1035;
  transition: all 0.3s ease-in-out;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  padding: 20px 0;
  margin-top: 0;
}

.mobile-menu.active {
  left: 0;
}

.close-menu {
  position: absolute;
  top: 10px;
  right: 18px;
  background: none;
  border: none;
  font-size: 24px;
  color: #2da427;
  cursor: pointer;
  padding: 0;
  z-index: 1060;
  outline: none;
}
.close-menu:focus {
  outline: none;
}

.mobile-menu .main-menu {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 20px 0;
  align-items: center;
  justify-content: center;
}

.mobile-menu .menu-item {
  margin: 0;
  width: 100%;
}

.mobile-menu .menu-item > a {
  background: #fff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-bottom: 1px solid #eee;
  transition: all 0.3s;
}

.mobile-menu .dropdown-menu {
  background: #fff;
  width: 100%;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
  opacity: 0;
  position: static;
  transform: none;
}

.mobile-menu .menu-item.active #mobile-dropdown {
  max-height: 500px;
  opacity: 1;
  transition: max-height 0.3s ease-in-out;
}

.mobile-menu .menu-item > a {
  padding: 15px 20px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu .dropdown-menu {
  background: #f8f9fa;
  display: none;
  padding: 10px 0;
}

.mobile-menu .menu-item.active #mobile-dropdown {
  display: block;
}

.mobile-menu .dropdown-menu a {
  padding: 12px 30px;
  color: #666;
  font-size: 14px;
}

.mobile-menu .menu-item {
  display: block;
  width: 100%;
}

.mobile-menu .menu-item > a {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #333;
  text-decoration: none;
  font-size: 16px;
  position: relative;
  border-bottom: none;
}

.mobile-menu .menu-item > a::after {
  content: "\f0d7";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 14px;
  transition: transform 0.3s ease;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
}

.mobile-menu .menu-item.active > a::after {
  transform: translateY(-50%) rotate(180deg);
}

.mobile-menu .dropdown-menu {
  display: none;
  background: #f8f9fa;
  padding: 0;
}

.mobile-menu .menu-item.active #mobile-dropdown {
  display: block;
}

.mobile-menu .dropdown-menu a {
  padding: 12px 30px;
  color: #666;
  display: block;
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid #eee;
  transition: all 0.3s ease;
}

.mobile-menu .dropdown-menu a:hover {
  color: #2da427;
  background-color: #f0f0f0;
}

@media (max-width: 768px) {
  .hamburger-menu {
    display: block !important;
    z-index: 1020;
  }

  .nav-wrapper {
    display: none;
  }

  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .overlay.active {
    opacity: 1;
    display: block;
  }

  .mobile-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 1050;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 20px 0;
  }

  .mobile-menu.active {
    left: 0;
  }

  .mobile-menu .menu-item {
    width: 100%;
  }

  .mobile-menu .menu-item > a {
    padding: 15px 20px;
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 16px;
  }

  .mobile-menu #mobile-dropdown {
    position: static;
    box-shadow: none;
    padding: 0;
    border: none;
    display: none;
  }

  .mobile-menu .menu-item.active #mobile-dropdown {
    display: block;
  }

  .mobile-menu #mobile-dropdown a {
    padding: 12px 30px;
    color: #666;
    border-bottom: 1px solid #eee;
  }
}
.mobile-menu-footer {
  padding: 10px;
}

.mobile-user-controls {
  text-align: center;
  max-width: 126px;
  margin: 0 auto;
}

.mobile-user-btn {
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
}
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
    font-size: 24px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    margin-left: auto;
  }

  .mobile-menu-btn:focus {
    outline: none;
  }

  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #f8f9fa;
    z-index: 1005;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .header-content {
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    gap: 15px;
    position: relative;
  }

  .logo {
    margin: 15px 0 5px;
    text-align: left;
    margin-right: auto;
  }

  .user-controls {
    position: absolute !important;
    top: 10px;
    right: 10px;
    margin: 0 !important;
  }

  .search-box:not(.mobile-search) {
    display: none;
  }

  .header.shrink {
    padding: 25px 0;
  }

  .header.shrink .logo img {
    height: 60px;
  }

  .header.shrink .search-wrapper {
    max-width: 300px;
  }

  .search-wrapper {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .nav-content {
    display: none;
  }
}

.top-bar .user-controls {
  position: relative;
}

.top-bar .user-controls .dropdown-menu {
  position: absolute;
  top: 100%;
  right: 50%;
  transform: translateX(50%);
  margin-top: 5px;
  z-index: 1005;
  width: auto;
  padding: 0;
  border: none;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.top-bar .user-controls {
  display: inline-block;
  position: relative;
}

.top-bar .user-controls .dropdown-item {
  padding: 8px 12px;
  white-space: nowrap;
  transition: background-color 0.2s;
  text-align: left;
}

.top-bar .user-controls .dropdown-item:hover {
  background-color: #f8f9fa;
}

/* Added styles for desktop/mobile button visibility */
@media (min-width: 769px) {
  .top-bar .btn {
    color: #716e6d;
    border-color: #716e6d;
    opacity: 0.8;
    background-color: #f8f9fa;
  }
  .desktop-user-btn .fas.fa-user {
    color: #716e6d !important;
    opacity: 0.8;
  }
  .user-controls {
    display: block !important;
  }
  .mobile-user-controls {
    display: none !important;
  }
  .desktop-user-btn {
    margin: 0 !important;
  }
  .mobile-menu .menu-item:last-child,
  .mobile-menu .menu-item:last-child .dropdown-menu {
    display: none !important;
  }
}
@media (max-width: 768px) {
  .user-controls {
    display: none !important;
  }
  .mobile-user-controls {
    display: block !important;
    margin: 0 !important;
  }
  .menu-item > a .fa-user {
    display: none !important;
  }
  .menu-item .dropdown-menu .fa-user {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

.mobile-menu .menu-item > a {
  padding: 15px 20px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.mobile-menu .menu-item > a:hover,
.mobile-menu .menu-item.active > a {
  background-color: #2da427;
  color: white;
}

/* Added CSS to align logo to the left */
.header-content {
  justify-content: flex-start; /* Aligns items to the start (left) */
}
