/*
 * jQuery Nivo Slider v3.2
 * http://nivo.dev7studios.com
 *
 * Copyright 2012, Dev7studios
 * Free to use and abuse under the MIT license.
 * http://www.opensource.org/licenses/mit-license.php
 */

/* The Nivo Slider styles */

.nivoSlider {
	position: relative;
	width: 100% !important; /* ADĂUGAT !important: Asigură că ia 100% din lățimea părintelui cu prioritate maximă */
	height: auto; /* Ajustează înălțimea automat */
	overflow: hidden;
	margin: 0 !important; /* ADĂUGAT !important: Elimină orice margini implicite rămase */
	padding: 0 !important; /* ADĂUGAT !important: Elimină orice padding implicit */
 /* Removed fixed dimensions. Slider will now adapt to its parent */
}

.nivoSlider img {
  position: absolute;
  top: 0px;
  left: 0px;
  max-width: 100%; /* Make images responsive */
  height: auto;
  display: none; /* Hide images until the slider initializes */
  margin: 0; /* Reset image margins */
}

.nivoSlider img, .theme-default .nivoSlider img {
	position: absolute; /* Păstrat din CSS-ul sliderului */
	top: 0px; /* Păstrat */
	left: 0px; /* Păstrat */
	max-width: 100% !important; /* Păstrat: Imaginea nu depășește lățimea sliderului */
	height: auto !important; /* Păstrat: Menține aspect ratio */
	display: none; /* Păstrat (este controlat de JS) */
	margin: 0 !important; /* ADĂUGAT !important: Elimină marginile imaginii */
  padding: 0 !important; /* ADĂUGAT !important: Elimină padding-ul imaginii */
}

.nivo-main-image {
	display: block !important; /* Păstrat */
	position: relative !important; /* Păstrat */
	width: 100% !important; /* Păstrat: Imaginea principală ia 100% */
	height: auto !important; /* Păstrat */
}

/* If an image is wrapped in a link */
.nivoSlider a.nivo-imageLink {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  z-index: 6;
  display: none;
  filter: alpha(opacity=0);
  opacity: 0;
}

/* The slices and boxes in the Slider (effect styles - these generally don't need changing) */
.nivo-slice {
  display: block;
  position: absolute;
  z-index: 5;
  height: 100%;
  top: 0;
}

.nivo-box {
  display: block;
  position: absolute;
  z-index: 5;
  overflow: hidden;
}

.nivo-box img {
  display: block;
}

/* Caption styles */
.nivo-caption {
  position: absolute;
  left: 0px;
  bottom: 0px;
  color: #fff;
  width: 100%;
  z-index: 8;
  padding: 5px 10px;
  opacity: 0.8;
  overflow: hidden;
  display: none; /* Hidden by default; controlled by Nivo Slider */
  -moz-opacity: 0.8;
  filter: alpha(opacity=8);
  -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
  -moz-box-sizing: border-box; /* Firefox, other Gecko */
  box-sizing: border-box; /* Opera/IE 8+ */
  background: rgba(0, 0, 0, 0.5); /* Add a background for better readability */
}

.nivo-caption p {
  padding: 5px;
  margin: 0;
}

.nivo-caption a {
  display: inline !important;
  color: #ffcc66; /* Match item title color */
  text-decoration: underline;
}

.nivo-html-caption {
  display: none;
}

/* Direction nav styles (e.g. Next & Prev) */
.nivo-directionNav a {
  position: absolute;
  top: 50%; /* Center vertically */
  z-index: 9;
  cursor: pointer;
  margin-top: -22px; /* Half the height of the navigation button for centering */
  background: rgba(0, 0, 0, 0.3); /* Add background for better visibility */
  color: #fff;
  border-radius: 3px;
  text-decoration: none;
  font-weight: bold;
}

.nivo-prevNav {
  left: 10px; /* Position from the left */
}

.nivo-nextNav {
  right: 10px; /* Position from the right */
}

/* Control nav styles (e.g. 1,2,3...) */
.nivo-controlNav {
  text-align: center;
  padding: 15px 0;
}

.nivo-controlNav a {
  cursor: pointer;
  display: inline-block; /* Display as inline block */
  width: 12px; /* Set width and height for circular dots */
  height: 12px;
  border-radius: 50%; /* Make them circles */
  background: #ddd; /* Light gray background */
  margin: 0 5px; /* Add spacing */
  text-indent: -9999px; /* Hide the number */
  overflow: hidden;
  border: 2px solid #ddd; /* Add a border */
}

.nivo-controlNav a.active {
  /* font-weight: bold; */ /* No longer needed as we're using circles */
  background: #ffcc66; /* Use item title color for active dot */
  border-color: #ffcc66;
}

/* Theme styles (adapt to new layout) */
.theme-default .nivoSlider {
	position: relative; /* Păstrat */
	background: #fff url('loading.gif') no-repeat 50% 50%; /* Păstrat */
	margin-bottom: 0 !important; /* ADĂUGAT !important: Elimină marginea de jos a temei */
	overflow: hidden; /* Păstrat */
  /* VERIFICĂ ȘI ELIMINĂ ORICE LATIME SAU ÎNĂLȚIME FIXĂ AICI DACĂ EXISTĂ */
  width: 100% !important; /* ADĂUGAT !important: Asigură și aici 100% */
  height: auto !important; /* ADĂUGAT !important: Asigură și aici auto */
}

.theme-default .nivoSlider img {
  position: absolute;
  top: 0px;
  left: 0px;
  display: none;
  width: 100% !important; /* Make images fill container */
  height: auto !important; /* Maintain aspect ratio */
}

.theme-default .nivoSlider a.nivo-imageLink {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  padding: 0;
  margin: 0;
  z-index: 6;
  display: none;
}

/* These should be adapted to the overall layout, not hardcoded */
/* Consider removing these and using the parent container for spacing and sizing */
/* .theme-default .nivo-controlNav { text-align: right; } */
/* .theme-default .nivo-directionNav a { display: none; } */