/* Desktop */

/* ---KEYFRAMES--- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(10%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes rollDown {
  0% {
    transform: translateY(-0%) rotateX(-90deg);
    /* Starts from above and rotated */
    opacity: 1;
  }

  100% {
    transform: translateY(0) rotateX(0);
    /* Ends in place with no rotation */
    opacity: 1;
  }
}

.roll-down {
  animation: rollDown 0.1s ease-out forwards;
  /* Applies the rollDown animation */
  transform-origin: top;
  /* Sets the rotation origin at the top */
}

.slide-down {
  animation: slideDown 0.5s ease-in-out;
}

.fade {
  animation: fadeIn 0.5s ease-in-out;
  /* Apply the fadeIn animation */
}

/* --- END_KEYFRAMES --- */


/* --- NAVBAR --- */

.bg-brown {
  background-color: #254011ff !important;
}

.bg-white {
  background-color: #ffffff !important;

}

.dropdown-menu {
  display: none;
  /* Initially hide the dropdown */
  transform-origin: top;
  /* Sets the pivot point for the rotation at the top */
}

.dropdown:hover .dropdown-menu {
  display: block;
  /* Show the dropdown on hover */
  animation: rollDown 0.5s ease-out forwards;
  /* Apply the rollDown animation */
  z-index: 1000;
}

/* First Navbar: Initial styling */

.nav-font {
  font-weight: 500 !important;
  font-size: 20px !important;
}

.nav-link.f-small {
  font-size: 16px !important;
  font-weight: 400;
  color: #ffffff;
  transition: background-color 0.3s ease, color 0.3s ease;
  padding: 4px 8px;
  text-decoration: none;
}

.nav-link.f-small:hover,
.nav-link.f-small:focus {
  background-color: hsla(33, 21%, 92%, 0.3);
  color: #fff;
}

/* Second Navbar: Initial styling */
.first-navbar {
  position: sticky;
  top: 0;
  height: 40px;
}

.second-navbar {
  position: fixed;
  width: 100%;
  z-index: 4;
}


/* When the second navbar gets the fixed class, make it fixed at top 0 */
.second-navbar.fixed {
  position: fixed;
  top: 0;
  width: 100%;
}

/* --- END_NAVBAR --- */


/* --- HEADER --- */

.mt-top {
  margin-top: 10px;
}

.white {
  color: white;
}

.custom-list {
  --bs-list-group-border-radius: 0 !important;
}

.custom-card-1 {
  --bs-card-border-radius: 0 !important;
  background-color: #c2e699;
  border-color: #c2e699;
}

.custom-card-2 {
  --bs-card-border-radius: 0 !important;
  background-color: #73975fcc;
  border-color: #73975fcc;
}

.custom-card-3 {
  --bs-card-border-radius: 0 !important;
  background-color: #31a354;
  border-color: #31a354;
}

.custom-card-4 {
  --bs-card-border-radius: 0 !important;
  background-color: #006837;
  border-color: #006837;
}

.page-header {
  position: relative;
  display: block;
  padding: 124px 0 50px;
  overflow: hidden;
  z-index: 1;
}

.page-header-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  /* Remove properties here that are meant for background images */
  background: none;
  mix-blend-mode: normal;
  opacity: 1;
}

/* Apply styles to the actual image element */
.page-header-bg .pic-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Scales the image so the entire image is visible */
  object-position: center;
  filter: brightness(60%);
  /* Darkens the image; adjust the percentage as needed */
  display: block;
}

.page-header-shape-1 {
  position: absolute;
  top: 0;
  right: -30px;
  mix-blend-mode: hard-light;
}

.page-header-shape-1 img {
  width: auto;
}

.page-header-shape-2 {
  position: absolute;
  top: 0;
  right: 0;
  mix-blend-mode: soft-light;
  opacity: .40;
}

.page-header-shape-2 img {
  width: auto;
}

.page-header-shape-3 {
  position: absolute;
  bottom: 0;
  right: -29px;
  mix-blend-mode: color-dodge;
}

.page-header-shape-3 img {
  width: auto;
}

.page-header__inner {
  position: relative;
  display: block;
  z-index: 15;
}

.page-header__inner h2 {
  font-size: 50px;
  font-weight: 800;
  line-height: 59px;
}

/* --- END_HEADER --- */

/* --- CUSTOM_SIDE_MENU ---*/

/* Base styles for the list items */
.head-color {
  color: #9ab524 !important;
}

.header-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  /* optional space between items */
  text-align: center;
}


.list-group-item {
  padding: 15px 20px;
  border: 1px solid #ddd;
  /* Optional: To show the border between items */
}

/* Base styles for the links */
.list-link {
  display: block;
  /* Makes the entire list item clickable */
  text-decoration: none;
  /* Removes the default underline */
  color: inherit;
  /* Inherit text color from parent */
  transition: background-color 0.3s ease, color 0.3s ease;
  /* Smooth transition */
}

/* Hover effect for list items */
.list-group-item:hover .list-link {
  /* background-color: #28a745; Green background */
  color: #fff;
  /* White text */
  border-radius: 4px;
  /* Optional: smooth corners */
}

/* Optional: Adds a slight padding to create a better hover effect */

.f-small {
  font-size: small !important;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.card-text {
  font-size: 0.9rem;
}

.card h5 {
  font-weight: bold;
}

.card-table:hover {
  background-color: #869b2a;
  transform: translateY(-5px);
  transition: all 0.2s ease-in-out;
  color: #fff;
  /* White text */
  border-radius: 4px;
  /* Optional: smooth corners */
}


.card a {
  text-decoration: none;
}

/* --- END_CUSTOM_CARD_TABLE ---*/

/* --- CUSTOM_TABLE ---*/



/* --- END_CUSTOM_CARD_TABLE ---*/

/* Mobile */

.navbar-scroll {
  --bs-scroll-height: 200px;
}

@media (max-width: 991.98px) {
  .second-navbar {
    top: 0px;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
}

/* Login navbar */
.no-underline {
  text-decoration: none;
  color: white;
  font-weight: 600;
}


/* Card pentru apel si pentru acordeon */
.card2 {
  margin-bottom: 20px;
  /* Spațiu între carduri */
  border: 1px solid #ddd;
  /* Margine subțire */
  padding: 15px;
  /* Spațiu intern */
  background: #f5f5f5;
}

/* Info Container Styling */
.info-container {
  display: flex;
  justify-content: space-around;
  /* Spațiu egal între secțiuni */
  align-items: center;
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 20px;
  /* Spațiu între secțiunea info și acordeon */
}

/* Info Item Styling */
.info-item {
  text-align: center;
  /* Text centrat */
  margin: 0 10px;
  /* Spațiu între elemente */
}

.info-text {
  font-size: 16px;
  line-height: 1.5;
}

.info-value {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  /* Text negru */
}

.info-label {
  font-size: 12px;
  color: #666;
  /* Text gri */
}

/* Accordion Item Styling */
.accordion-item {
  margin-bottom: 10px;
  /* Spațiu între fiecare acordion */
  border-radius: 5px;
  /* Colțuri rotunjite */
}

/* Accordion Button Styling */
.accordion-button {
  border: none;
  font-size: 14px;
  padding: 10px 15px;
  /* Padding pentru a ajusta înălțimea */
  background: #619969;
  /* Fundal verde */
  color: #fff;
  /* Text alb */
  border-radius: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
  /* Elimină decorarea implicită a link-urilor */
}

/* Styling for Active Accordion Button */
.accordion-button:not(.collapsed) {
  background: #4b784f;
  /* Fundal mai închis pentru buton activ */
  color: #fff;
  /* Text alb */
}

/* Accordion Body Styling */
.accordion-body {
  font-size: 14px;
  padding: 10px 15px;
  color: #333;
  /* Text negru */
  border-top: 1px solid #619969;
  /* Margine de sus pentru conținut */
}

/* Reset pentru link-uri din interiorul acordionului */
.accordion-body a {
  color: #333;
  /* Text negru pentru link-uri */
  text-decoration: none;
  /* Fără subliniere */
}

.accordion-body a:hover {
  color: #000;
  /* Culoare mai închisă pentru hover */
}



/* Card persoane de contact */
.card3 {
  border: none;
  /* Fără margine */
  border-radius: 5px;
  /* Colțuri rotunjite */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  /* Ușoară umbră */
}

.card-body3 {
  padding: 20px;
  /* Spațiu intern pentru card */
}

.info-value3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
  /* Spațiu între fiecare rând de informații */
}

.info-value4 {
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
  /* Spațiu între fiecare rând de informații */
}

.info-value3 b {
  font-size: 16px;
  color: #000;
}

.info-container3 {
  display: flex;
  justify-content: space-around;
  /* Spațiu egal între secțiuni */
  align-items: center;
  padding: 10px;
  background-color: #f5f5f5;
  /* Fundal neutru */
  border: none;
  /* Elimină orice margine */
  box-shadow: none;
  /* Elimină orice efect de umbră */
}

.info-text-akis {
  font-size: 26px;
}

/* Card persoane de contact_END */

.img-stire {
  height: 180px !important;
  max-width: auto;
  object-fit: cover;
}

.img-detail {
  height: 450px !important;
  object-fit: cover;
}

.stiri-pic {
  width: -webkit-fill-available;
  max-height: 300px;
  object-fit: cover;
}

.mt-stiri {
  margin-top: 100px;
}

.filter-stiri {
  mix-blend-mode: darken !important;
}

.icon-height {
  height: 50px !important;
}

.header-text {
  font-weight: lighter;
}

.logo-text {
  font-family: 'Open Sans', sans-serif;
}

.active-card:hover {
  background-color: rgb(235, 235, 235) !important;
  border-color: rgb(235, 235, 235) !important;
}

.black-font {
  color: black !important;
}

.accordion-color {
  color: #6199697c !important;
}

.icon-card {
  width: 15rem;
}

.news-card {
  width: 20rem;
}

.pic-news {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.img-cover {
  object-fit: cover;
  height: 100%;
}

@media (max-width: 991.98px) {
  .img-cover {
    height: auto;
  }
}

.text-red {
  color: #e30016 !important
}

.text-yellow {
  color: #ffcb00 !important
}

.text-blue {
  color: #00509d !important
}

.scroll {
  overflow-y: auto;
}

::-webkit-scrollbar {
  width: 6px;
  /* Slim width */
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  /* Background of the scrollbar track */
}

::-webkit-scrollbar-thumb {
  background-color: #888;
  /* Color of the scrollbar thumb */
  border-radius: 10px;
  /* Round corners of the scrollbar thumb */
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
  /* Darker color when hovering */
}

.alert-custom {
  width: 100% !important;
  animation: fadeOut 2s forwards;
  animation-delay: 3s
}

/* Keyframes for fade out */
@keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

.align-center {
  align-items: center !important;
}

.icon-margin {
  margin-right: 10px !important;
}

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  /* Distance from the bottom of the page */
  left: 30px;
  /* Move the button to the left */
  width: 60px;
  height: 60px;
  background-color: #333;
  display: none;
  /* Hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 2000;
  /* Keeps it above other content */
}

.scroll-to-top i {
  font-size: 18px;
}

/* CSS for the map container */
#jsmap {
  width: 100%;
  height: 100%;
  border: 1px solid #ccc;
}

:root {
  --main-font: 'Trebuchet MS', sans-serif;
  /* Aici setezi fontul global */
}

body {
  font-family: var(--main-font);
}

#basic tbody tr {
  cursor: pointer;
}


.mobile-icon {
  display: none;
}

.no-display {
  display: none !important;
}


@media (max-width: 991.98px) {
  .mobile-nav {
    display: none !important
  }

  .mobile-index {
    z-index: 3000;
  }

  .first-navbar {
    position: fixed;
    top: 0;
    height: auto;
    z-index: 4;
    width: 100%;
  }

}

.highlighted-event-date .datepicker-switch,
.highlighted-event-date span {
  background-color: #007bff !important;
  /* Bootstrap's primary blue */
  color: white !important;
  border-radius: 50%;
}

.highlighted-event-date {
  background-color: #007bff !important;
  /* Test color */
}



@media (min-width: 767px) {

  html,
  body {
    height: 100%;
    margin: 0;
    display: block;
    background-color: #f6f6f6;
  }

  /* Main wrapper spans full height */
  #main-wrapper {
    min-height: 100%;
    position: relative;
    /* Allows child positioning */
  }

  /* Main content pushes footer down */
  #main-content {
    padding-bottom: 440px;
    /* Reserve space for footer height */
    box-sizing: border-box;
  }

  /* Footer always at the bottom */
  footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
  }
}

.news-overlay {
  background: rgba(0, 0, 0, 0.1);
  /* Subtle black filter */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  /* Light text shadow */
  padding: 20px;
  /* Add spacing for alignment */
}

/* Sidebar Styling */
.other-news-list {
  border-left: 3px solid #ddd;
  /* Decorative border */
  padding-left: 15px;
}

/* Miniature Image Container */
.miniature-img-container {
  min-width: 60px;
  /* Ensures the container always has a fixed width */
  width: 60px;
  /* Fixed width */
  height: 60px;
  /* Fixed height */
  overflow: hidden;
  /* Ensures the image doesn't overflow the container */
  border-radius: 4px;
  /* Optional rounded corners */
  background-color: #f0f0f0;
  /* Fallback color for missing images */
  flex-shrink: 0;
  /* Prevent shrinking in a flex container */
}

/* Miniature Image */
.miniature-img {
  width: 100%;
  /* Ensure the image fills the container */
  height: 100%;
  /* Ensure the image fills the container */
  object-fit: cover;
  /* Crop the image to fit within the container */
}

/* Links in the Sidebar */
.other-news-item p {
  margin: 0;
  /* Reset margin for alignment */
  flex: 1;
  /* Allow the text to take remaining space */
}

.other-news-item {
  display: flex;
  /* Align image and text side by side */
  align-items: center;
  /* Vertically center the image and text */
  gap: 10px;
  /* Add spacing between image and text */
}

.other-news-item p a {
  font-size: 14px;
  /* Consistent font size */
  font-weight: bold;
  /* Emphasize the title */
  transition: color 0.3s ease;
  /* Smooth hover effect */
  text-decoration: none;
  /* Remove underline */
}

.other-news-item p a:hover {
  color: #007bff;
  /* Bootstrap primary color on hover */
}

/* Divider between news items */
.news-divider {
  border: 0;
  border-top: 1px solid #ddd;
  /* Light gray line */
  margin: 10px 0;
  /* Spacing above and below the divider */
}

/* Remove the last divider */
.other-news-list .news-divider:last-of-type {
  display: none;
}

/* Hover effect for news items */
.other-news-item {
  transition: background-color 0.3s ease;
  /* Smooth transition */
  border-radius: 4px;
  /* Optional rounded corners */
}

.other-news-item:hover {
  background-color: #e8e8e8;
  /* Light gray background on hover */
}

.fullscreen-map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.img-news-detail {
  max-width: 880px;
  max-height: 550px;
  object-fit: cover;
  width: 100%;
  height: auto;
}



.toast {
  --bs-toast-zindex: 1090;
  --bs-toast-padding-x: 0.75rem;
  --bs-toast-padding-y: 0.5rem;
  --bs-toast-spacing: 1.5rem;
  --bs-toast-max-width: 350px;
  --bs-toast-font-size: 0.875rem;
  --bs-toast-color: ;
  --bs-toast-bg: rgba(var(--bs-body-bg-rgb), 0.85);
  --bs-toast-border-width: var(--bs-border-width);
  --bs-toast-border-color: var(--bs-border-color-translucent);
  --bs-toast-border-radius: var(--bs-border-radius);
  --bs-toast-box-shadow: var(--bs-box-shadow);
  --bs-toast-header-color: var(--bs-secondary-color);
  --bs-toast-header-bg: rgba(var(--bs-body-bg-rgb), 0.85);
  --bs-toast-header-border-color: var(--bs-border-color-translucent);
  width: var(--bs-toast-max-width);
  max-width: 100%;
  font-size: var(--bs-toast-font-size);
  color: var(--bs-toast-color);
  pointer-events: auto;
  background-color: var(--bs-toast-bg);
  background-clip: padding-box;
  border: var(--bs-toast-border-width) solid var(--bs-toast-border-color);
  box-shadow: var(--bs-toast-box-shadow);
  border-radius: var(--bs-toast-border-radius);
}

.toast.showing {
  opacity: 0;
}

.toast:not(.show) {
  display: none;
}

.toast-container {
  --bs-toast-zindex: 1090;
  position: absolute;
  z-index: var(--bs-toast-zindex);
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  max-width: 100%;
  pointer-events: none;
}

.toast-container> :not(:last-child) {
  margin-bottom: var(--bs-toast-spacing);
}

.toast-header {
  display: flex;
  align-items: center;
  padding: var(--bs-toast-padding-y) var(--bs-toast-padding-x);
  color: var(--bs-toast-header-color);
  background-color: var(--bs-toast-header-bg);
  background-clip: padding-box;
  border-bottom: var(--bs-toast-border-width) solid var(--bs-toast-header-border-color);
  border-top-left-radius: calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width));
  border-top-right-radius: calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width));
}

.toast-header .btn-close {
  margin-right: calc(-0.5 * var(--bs-toast-padding-x));
  margin-left: var(--bs-toast-padding-x);
}

.toast-body {
  padding: var(--bs-toast-padding-x);
  word-wrap: break-word;
}


#scrollToTop {
  display: none;
  /* Ascuns implicit */
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  /* Alte stiluri pe care le dorești */
}

#scrollToTop.visible {
  display: flex;
  /* Afișează butonul */
}


.bottom-center-modal .modal-dialog {
  position: fixed;
  /* Fixează modalul pe ecran */
  bottom: 0;
  /* Poziționează modalul la baza paginii */
  left: 28%;
  /* Centrare pe orizontală */
  transform: translateX(-50%);
  /* Ajustare pentru centrare perfectă */
  width: auto;
  /* Ajustează dimensiunea */
  max-width: 800px;
  /* Setează o dimensiune maximă */
  margin: 0;
  /* Elimină marginile implicite */
  z-index: 1050;
  /* Se asigură că modalul este deasupra altor elemente */
}

.modal-content {
  border-radius: 0;
}




.text-cookie {
  color: #362c1c;
}

/* Carduri cu imagini și text */
.news-cards .card {
  position: relative;
  /* Permite elementelor interne să fie plasate corect pe card */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 350px;
  /* Setează o înălțime fixă pentru toate cardurile */
  width: 100%;
  margin: 10px;
  border: 1px solid #ddd;
  padding: 15px;
  background-color: white;
}

/* Carduri cu imagini */
.news-cards .card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 350px;
  /* Înălțimea cardului */
  width: 100%;
  margin: 10px;
  border: 1px solid #ddd;
  padding: 15px;
  background-color: white;
}

/* Imagini */
.news-cards .card img {
  width: 100%;
  /* Asigură-te că imaginea nu depășește lățimea cardului */
  height: 200px;
  /* Înălțimea imaginii pentru a se încadra corespunzător */
  object-fit: cover;
  /* Permite redimensionarea imaginii fără a o deforma */
  object-position: center;
  /* Asigură-te că imaginea este centrată */
}

/* Corpul cardului */
.news-cards .card-body {
  flex-grow: 1;
  /* Permite cardului să ocupe spațiu complet */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Limitează textul prea lung cu puncte de suspensie */
.news-cards .card-body h5,
.news-cards .card-body p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  /* Previne înmulțirea pe mai multe linii */
}

/* Butoane */
.news-cards .card button {
  align-self: center;
  margin-top: auto;
}

.no-underline-policy {
  text-decoration: none;
  color: white;
}

.calendar-center {
  justify-items: center !important;
}

.datepicker table tr td.highlighted-event-date,
.datepicker table tr td.highlighted-event-date:hover {
  background-color: #0d6efd !important;
  /* Bootstrap primary blue */
  color: #fff !important;
}

.nav-link {
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #879c2b !important;
}

.square-grid {
  position: relative;
  max-height: 500px;
}

/* Ensure images fill their container */
.news-item img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  max-height: 500px;
  transition: filter 0.4s ease;
}

/* Styling for the overlay text */
.news-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 15px;
  background: rgba(0, 0, 0, 0.25);
  /* Semi-transparent black */
  color: #fff;
  font-family: 'Arial', sans-serif;
  /* Adjust font as desired */
}

/* Base styling for each news item */
.news-item {
  position: absolute;
  overflow: hidden;
}

/* Large news item: occupies 50% width and full height */
.news-item.img-large {
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  padding-right: 5px;
}

/* Medium news item: occupies 50% width (right half) and top half of container */
.news-item.img-medium {
  top: 0;
  left: 50%;
  width: 50%;
  height: 50%;
  padding-bottom: 5px;
}

/* Small news item 1: occupies 25% width in bottom row (left side) */
.news-item.img-small1 {
  top: 50%;
  left: 50%;
  width: 25%;
  height: 50%;
  padding-right: 5px;
}

/* Small news item 2: occupies 25% width in bottom row (right side) */
.news-item.img-small2 {
  top: 50%;
  left: 75%;
  width: 25%;
  height: 50%;
}

/* Hover effect: darken the image when hovering over a news item */
.news-item:hover img {
  filter: brightness(0.7);
  /* adjust value as needed for desired darkness */
}

/* Mobile Layout: basic squares, one under the other */
@media (max-width: 767px) {

  /* Remove the fixed square container */
  .square-grid {
    display: block;
    position: static;
    max-height: none;
  }

  /* Stack news items vertically and make them squares */
  .news-item {
    position: relative !important;
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1;
    /* Ensures each news item is a square */
    margin-bottom: 10px;
    padding: 0 !important;
  }

  /* Make images fill the reflowed container */
  .news-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  /* Adjust overlay if needed */
  .news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
  }

  .news-item.img-medium {
    left: 0px;
  }

  .news-item.img-small1 {
    left: 0px;
  }

  .news-item.img-small2 {
    left: 0px;
  }

  .ratio::before {
    padding-top: 0px;
  }
}

.overlay-right {
  width: calc(100% - 5px) !important;
}

.overlay-bottom {
  margin-bottom: 5px !important;
}

.news-overlay h2 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-overlay p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.organiser {
  position: absolute;
  bottom: 110px;
  left: 0;
  margin: 10px 15px;
  color: #fff;
  font-family: 'Arial', sans-serif;
  border: 1px solid #fff;
}

.data-eveniment {
  position: absolute;
  left: 0;
  margin: 15px 15px;
  color: #fff;
}

.text-left {
  text-align: left !important;
  font-size: 25px !important;
}

.sub-text {
  text-align: left !important;
  font-size: 18px !important;
}

.offcanvas-custom {
  width: 80% !important;
  background-color: #72935c !important;
}

.nav-item {
  display: block;
  color: #ffffff;
  text-decoration: none;
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-item:hover,
.nav-item:focus {
  background-color: rgba(255, 255, 255, 0.1);
  color: #f0f0f0;
  text-decoration: none;
}

/* Offcanvas Tabs Custom Styles */
.offcanvas .nav-tabs .nav-link,
.offcanvas .nav-tabs .nav-link:focus,
.offcanvas .nav-tabs .nav-link:active {
  color: #fff !important;
  /* White text */
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.offcanvas .nav-tabs .nav-link.active {
  color: #fff !important;
  /* Keep active text white */
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.pl-0 {
  padding-left: 0px !important;
}

.offcanvas .nav-tabs {
  width: 100%;
  margin: 0;
  padding: 0;
}

.offcanvas .nav-tabs .nav-item {
  flex: 1 1 50%;
  text-align: center;
  padding: 0;
  position: relative;
}

/* Add a vertical border on the right side of the first tab */
.offcanvas .nav-tabs .nav-item:first-child::after {
  content: "";
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  border-right: 1px solid #fff;
}

/* Ensure the tab buttons fill their container */
.offcanvas .nav-tabs .nav-link {
  width: 100%;
  padding: 0.5rem 0;
  background-color: transparent;
  border: none;
  color: #fff;
}

.button-canva {
  padding-top: 1.23em !important;
  padding-bottom: 1.23em !important;
}

/* NESTS */

/* Nested container holds multiple nested views */
.nested-container {
  position: relative;
  overflow: hidden;
  height: 100%;
}

/* The main-menu view (default) and each nested-menu view fill the container */
.nested-container .main-menu,
.nested-container .nested-menu {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: transform 0.3s ease;
}

/* Main view is visible by default */
.nested-container .main-menu {
  transform: translateX(0);
}

/* Hide nested views by default (shifted off-screen to right) */
.nested-container .nested-menu {
  transform: translateX(100%);
}

/* When the container has the class .show-nested and a data-view attribute, slide the main view out */
.nested-container.show-nested .main-menu {
  transform: translateX(-100%);
}

/* Slide in the nested view whose data-view matches the container’s data-view */
.nested-container.show-nested[data-view="roakis"] .nested-menu[data-view="roakis"],
.nested-container.show-nested[data-view="pspac"] .nested-menu[data-view="pspac"],
.nested-container.show-nested[data-view="pei"] .nested-menu[data-view="pei"],
.nested-container.show-nested[data-view="innovative"] .nested-menu[data-view="innovative"],
.nested-container.show-nested[data-view="media"] .nested-menu[data-view="media"],
.nested-container.show-nested[data-view="registre"] .nested-menu[data-view="registre"] {
  transform: translateX(0);
}

/* Arrow styling:  */
.arrow-icon {
  padding-left: 0.5rem;
  border-left: 1px solid #ccc;
}

.arrow-icon-left {
  padding-right: 0.5rem;
  border-right: 1px solid #ccc;
  margin-right: 1rem;
}

/* BTN_MOBIL */

.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-block;
  position: relative;
  z-index: 10;
}

/* Style each bar */
.menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  /* thin bars */
  margin: 5px 0;
  background-color: #000;
  /* change to desired color */
  transition: 0.4s;
}

/* Transformations for active state */
.menu-btn.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 5px);
}

.menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.menu-btn.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -5px);
}

.first-navbar {
  overflow: visible;
  z-index: 1050;
}

.dropdown-menu {
  z-index: 1100;
}

.dropdown-menu .dropdown-item:hover {
  background-color: transparent !important;
}

.nav-link.dropdown-toggle:hover {
  background-color: transparent !important;
}

#mobileOffcanvas {
  top: 70px !important;
}

/* Public map */

#popup {
  position: absolute;
  background: #fff;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  min-width: 250px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  display: none;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

/* Closer style */
#popup-closer {
  position: absolute;
  top: 5px;
  right: 10px;
  text-decoration: none;
  color: #aaa;
  font-size: 18px;
  font-weight: bold;
}

#popup-closer:hover {
  color: #000;
}

/* Bold category labels */
.popup-category {
  font-weight: bold;
}

.map-furnizori {
  height: 400px !important;
  width: 100% !important;
}

.map-furnizori {
  height: 400px;
  width: 100%;
}

/* Container for the map and popup overlay */
.modal-map-container {
  position: relative;
}

/* Popup overlay for details */
.ol-popup {
  display: none;
  position: absolute;
  background: #fff;
  padding: 10px;
  border: 1px solid #ccc;
  z-index: 1000;
}

/* Close button for the popup */
.ol-popup-closer {
  position: absolute;
  top: 2px;
  right: 2px;
  text-decoration: none;
  font-size: 16px;
  cursor: pointer;
}

.pdf-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.inheritance {
  width: inherit;
}

#pdfMobileContainer {
  width: inherit;
}

.mobile-pdf {
  width: inherit;
}

/* #legend-container {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    z-index: 1000;
  }
  

  #legend-button {
    background: #fff;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s, border 0.3s;
  }

  .legend-icon {
    border-radius: 4px;
    padding: 4px;
    display: inline-block;
  }
  

  #legend-panel {
    position: fixed;
    top: 50%;
    left: 0;
    width: 250px;           
    margin-left: -250px;     
    transform: translateY(-50%);
    background: #ffffff;
    padding: 15px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
    transition: margin-left 0.3s ease;
    z-index: 1000;
  }
  

  #legend-panel.open {
    margin-left: 0;
  }
  

  #legend-button {
    position: absolute;
    top: 0px;
    right: -80px;  
    background: #fff;
    padding: 10px 15px;
    cursor: pointer;
    transition: right 0.3s ease;
  }
  

  #legend-panel.open #legend-button {
    right: -46px; 
  }
   */


.checkbox-list ul {
  list-style: none;
  /* Remove default bullets */
  padding: 0;
  margin: 0;
}

.checkbox-list li {
  margin-bottom: 5px;
  /* Add spacing between checkboxes */
}


/************************************************************
  LEGEND STYLES
************************************************************/

/* Legend Container (wraps the legend button and panel) */
#legend-container {
  position: fixed;
  left: 0;
  top: 500px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  background: transparent;
  /* keep transparent so only button/panel show */
  z-index: 10;
}

/* Legend Panel: initially hidden off-screen (margin-left: negative width) */
#legend-panel {
  position: fixed;
  left: 0;
  width: 250px;
  margin-left: -250px;
  transform: translateY(-50%);
  background: #869fbbd6;
  color: #ffffff;
  padding: 15px;
  transition: margin-left 0.3s ease;
  z-index: 10;
}

/* When open, slide the panel into view (margin-left: 0) */
#legend-panel.open {
  margin-left: 0;
}

/* Legend Button (always visible). 
   Positioned relative to the panel so part of it remains clickable even when closed. */
#legend-button {
  position: fixed;
  top: 0;
  right: -58px;
  /* offset so the button peeks out when panel is closed */
  background: #869fbbd6;
  padding: 10px 15px;
  cursor: pointer;
  color: #ffffff;
  transition: right 0.3s ease;
}

/* Adjust the button position if needed when the panel is open */
#legend-panel.open #legend-button {
  right: -55px;
  /* keep it consistent, or shift if you prefer */
}

/* Legend pin icon sizing */
.legend-pin {
  width: 20px;
  vertical-align: middle;
}

/* Example responsive adjustments for smaller screens */
@media (max-width: 768px) {
  #legend-panel {
    width: 240px;
  }

  #legend-button {
    position: fixed;
    top: 0;
    left: 250px;
    /* offset so the button peeks out when panel is closed */
    background: #869fbbd6;
    padding: 10px 15px;
    cursor: pointer;
    color: #ffffff;
    transition: right 0.3s ease;
  }

  #legend-panel.open {
    margin-left: 0;
  }
}

.sessions-list {
  list-style: none;
  padding-left: 20px;
}

#legend-panel ul,
#legend-panel li {
  list-style: none;

}

/************************************************************
  SEARCH BAR STYLES
************************************************************/

.search-container {
  position: fixed;
  /* Use a mix of relative units for a fluid approach */
  top: 124px;
  left: 5%;
  width: 25vw;
  /* takes 25% of the viewport width */
  max-width: 400px;
  /* cap the maximum width on large screens */
  min-width: 200px;
  /* ensure it’s not too small */
  z-index: 2;
  padding: 10px;
  box-sizing: border-box;
}

/* On smaller screens, let the container expand or shrink more flexibly */
@media (max-width: 768px) {
  .search-container {
    top: 74px;
    left: 5%;
    width: 90%;
    max-width: none;
    min-width: 0;
    margin-left: 20px;
  }
}

/* The text input */
#search-input {
  width: 100%;
  padding: 8px 50px 8px 8px;
  /* Extra right padding for clear & search icons */
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Clear button: inside the input, to the right */
#clear-button {
  position: absolute;
  right: 45px;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  border: none;
  padding: 3px;
  cursor: pointer;
  display: none;
  /* shown by JS when user types */
  font-size: 16px;
  color: #aaa;
}

#clear-button:hover {
  color: #4881c3d6;
}

/* Search button: also inside the input, on the far right */
#search-button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  padding: 5px 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
}

/************************************************************
  SUGGESTIONS DROPDOWN
************************************************************/

#suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border: 1px solid #ccc;
  background: #fff;
  max-height: 150px;
  overflow-y: auto;
  display: none;
  z-index: 9999;
}

#suggestions div {
  padding: 8px;
  cursor: pointer;
}

#suggestions div:hover {
  background-color: #f0f0f0;
}

.text-justify {
  text-align: justify !important;
}


.hidden {
  display: none;
}

/* Stiluri pentru rândul personalizat */
.custom-row {
  display: flex;
  gap: 16px; /* Spațiu între carduri */
}

/* Stiluri pentru cardurile personalizate */
.custom-card {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centrează conținutul pe verticală */
  align-items: flex-start; /* Aliniază conținutul la stânga */
  text-align: left; /* Text aliniat la stânga */
  height: 100%; /* Asigură înălțimea completă */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Opțional: adaugă o umbră */
  border-radius: 8px; /* Opțional: colțuri rotunjite */
  padding: 16px; /* Spațiu intern */
}

/* Stiluri pentru imagine */
.custom-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 16px; /* Spațiu între imagine și text */
}

/* Stiluri pentru text */
.custom-card h4 {
  font-size: 1.25rem;
  font-weight: bold;
  margin: 0;
}

/* custom.css (or in a <style> block) */

/* fixed-size thumbnail */
.project-thumb {
  width: 100px;
  height: 100px;
  object-fit: cover;
}

/* fallback container when no image */
.project-thumb-fallback {
  width: 100px;
  height: 100px;
  background-color: #6c757d; /* Bootstrap secondary */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* ensure flex item can shrink for text-truncate to work */
.project-content {
  flex-grow: 1;
  min-width: 0;
}

.badge {
  font-size: .75rem;
}

/* subtle lift + shadow on hover */
.card-link .card {
  transition: transform .2s, box-shadow .2s;
}
.card-link:hover .card {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.projects-img-h{
  max-height: 400px !important;
}

.mt-10-chestionar{
  margin-top: 10px;
}

.ml-auto {
  margin-left: auto;
}

.mr-auto {
  margin-right: auto;
}

.container-quill{
  margin-bottom: 80px !important;
}

/* no underline on our special links */
.no-decoration {
  text-decoration: none !important;
}
.no-decoration:hover,
.no-decoration:focus {
  text-decoration: none !important;
  opacity: 0.85; /* optional subtle hover effect */
}

.badge {
  white-space: normal !important;       /* allow wrapping */
  word-break: break-word !important;    /* break long words if needed */
  overflow-wrap: anywhere !important;   /* newer name for word-wrap */
  margin-top: 2px !important;
}

.btn-completeaza {
  font-weight: 600;
  padding: 0.2rem 1rem;
  border-radius: 999px; /* pastilă */
  box-shadow: 0 0.35rem 0.8rem rgba(0, 128, 0, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn-completeaza:hover,
.btn-completeaza:focus {
  transform: translateY(-1px);
  box-shadow: 0 0.5rem 1.1rem rgba(0, 128, 0, 0.45);
}