/* Tổng thể khung chứa slideshow */
.UIImageSlideShow {
    max-width: 800px;
    margin: 20px auto;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background: #ffffff;
    /* border-radius: 12px; */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    padding-bottom: 15px;
}

/* Phần tiêu đề */
.UIImageSlideShow .title {
    background: #3d91db;
    color: white;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Khung bọc slider */
.UIImageSlideShow .slider-wrapper {
    position: relative;
    padding: 10px;
}

/* Hình ảnh chính */
.UIImageSlideShow .nivoSlider {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.UIImageSlideShow .nivo-main-image {
    display: block;
    width: 100% !important;
    height: auto !important;
}

/* Nút điều hướng Prev/Next */
.UIImageSlideShow .nivo-directionNav a {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.9);
    color: transparent !important; /* Ẩn chữ Prev/Next gốc */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
}

/* Hiệu ứng Hover cho nút */
.UIImageSlideShow .nivo-directionNav a:hover {
    background: #007bff;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* Cấu hình Icon Font Awesome 5 Pro */
.UIImageSlideShow .nivo-directionNav a::before {
    font-family: "Font Awesome 5 Pro" !important;
    font-weight: 900; /* Dùng bản Solid */
    font-size: 18px;
    color: #333;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: color 0.3s;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

.UIImageSlideShow .nivo-directionNav a:hover::before {
    color: #ffffff;
}

/* Icon cụ thể cho từng nút */
.UIImageSlideShow .nivo-prevNav { left: 20px; }
.UIImageSlideShow .nivo-prevNav::before { content: "\f053"; } /* fa-chevron-left */

.UIImageSlideShow .nivo-nextNav { right: 20px; }
.UIImageSlideShow .nivo-nextNav::before { content: "\f054"; } /* fa-chevron-right */

/* Điều khiển chấm tròn (Control Nav) */
.UIImageSlideShow .nivo-controlNav {
    text-align: center;
    padding: 15px 0 5px 0;
}

.UIImageSlideShow .nivo-controlNav a {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #cbd5e0;
    text-indent: -9999px;
    border-radius: 50%;
    margin: 0 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.UIImageSlideShow .nivo-controlNav a.active {
    background: #3d91db;
    width: 28px; /* Hiệu ứng thanh dài active */
    border-radius: 10px;
}

/* Caption (Chú thích ảnh) */
.UIImageSlideShow .nivo-caption {
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    padding: 20px 15px 10px 15px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    font-size: 0.95rem;
    box-sizing: border-box;
    pointer-events: none;
}
.theme-default .nivoSlider {
	position:relative;
}
.theme-default .nivoSlider img {
	position:absolute;
	top:0px;
	left:0px;
	display:none;
}
.theme-default .nivoSlider a {
	border:0;
	display:block;
}

.theme-default .nivo-controlNav {
	text-align: center;
}

.theme-default:hover .nivo-directionNav a { opacity: 1; }
.theme-default a.nivo-nextNav {
	background-position:-30px 0;
	right:15px;
}
.theme-default a.nivo-prevNav {
	left:15px;
}

.theme-default .nivo-caption {
    font-family: Helvetica, Arial, sans-serif;
}
.theme-default .nivo-caption a {
    color:#fff;
    border-bottom:1px dotted #fff;
}
.theme-default .nivo-caption a:hover {
    color:#fff;
}

.theme-default .nivo-controlNav.nivo-thumbs-enabled {
	width: 100%;
}
.theme-default .nivo-controlNav.nivo-thumbs-enabled a {
	width: auto;
	height: auto;
	background: none;
	margin-bottom: 5px;
}
.theme-default .nivo-controlNav.nivo-thumbs-enabled img {
	display: block;
	width: 90px;
	height: 70px;
}

.nivoSlider {
	position:relative;
	width:100%;
	height:auto;
	overflow: hidden;
}
.nivoSlider img {
	position:absolute;
	top:0px;
	left:0px;
	max-width: none;
}
.nivo-main-image {
	display: block !important;
	position: relative !important; 
	width: 100% !important;
}

/* 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;
	background:white; 
	filter:alpha(opacity=0); 
	opacity:0;
}
/* The slices and boxes in the Slider */
.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;
	background:#000;
	color:#fff;
	width:100%;
	z-index:8;
	padding: 5px 10px;
	opacity: 0.8;
	overflow: hidden;
	display: none;
	-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+ */
}
.nivo-caption p {
	padding:5px;
	margin:0;
}
.nivo-caption a {
	display:inline !important;
}
.nivo-html-caption {
    display:none;
}
/* Direction nav styles (e.g. Next & Prev) */
.nivo-directionNav a {
	position:absolute;
	top:45%;
	z-index:9;
	cursor:pointer;
}
.nivo-prevNav {
	left:0px;
}
.nivo-nextNav {
	right:0px;
}
/* Control nav styles (e.g. 1,2,3...) */
.nivo-controlNav {
	padding: 0;
}
.nivo-controlNav a {
	cursor:pointer;
}
.nivo-controlNav a.active {
	font-weight:bold;
}
