.slider-area{
	min-height: 950px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    /*background: url(../images/slider_bg.jfif) 50% 0 repeat-y;*/
	background:transparent;
    position: relative;
	margin-top:-152px;
	width: 100%;
	height: 100%;
}
.carousel-item.bg-slider {
    
    background-size: cover; /* hình nền phóng to vừa khít */
    background-position: center center; /* canh giữa hình nền */
    background-repeat: no-repeat;
}
.main_slider_overly {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.01);
}
.slider-area .carousel-inner .carousel-item .caption-1 {
  width:100%;
  height:100%;
  min-height: 950px;
}
.slider-area .carousel-inner .carousel-item .caption-2 {
  width:100%;
  height:100%;
  min-height: 950px;
}
.slider-area .carousel-inner .carousel-item .caption-3 {
  width:100%;
  height:100%;
  min-height: 950px;
}
.slider-area .carousel-inner .carousel-item .carousel-captions:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
}
.slider-area .carousel-inner .carousel-item .carousel-captions .content {
  display: block;
  position: relative;
  z-index: 999;
  overflow: hidden;
  vertical-align: middle;
  padding-top:570px;
  padding-bottom:30px;
  text-align:center;
}
.slider-area .carousel-inner .carousel-item .carousel-captions .content h2 {
  color: #fff;
  font-size: 70px;
  text-align:center;
  text-transform:uppercase;
  line-height:110px;
  -webkit-text-stroke-width: 2px;
  -webkit-text-stroke-color: #fff;
  font-weight:400;
  position:relative;
  z-index:1;
  animation-delay: 1.5s;
  font-family: "Roboto", cursive;
  /*text-transform:uppercase;*/
}
.slider-area .carousel-inner .carousel-item .carousel-captions .content .slider_border{
	position: absolute;
    width: 730px;
    height: 220px;
    overflow: hidden;
    left: 0;
    right: 0;
    margin: 0px auto;
    top: 69%;
    animation-delay: 2.6s;
    background:rgba(0, 0, 0, 0.2);
	
}
.slider-area .carousel-inner .carousel-item.active .carousel-captions .content .slider_border:before {
    width: 100%;
    height: 100%;
    -webkit-transition: width .25s ease-out, height .25s ease-out .25s;
    transition: width .25s ease-out, height .25s ease-out .25s;
    border-top-color: #172e58;
    border-right-color: #172e58;
	animation-delay: 2.6s;
	border-radius:8px;
	background:rgba(0, 0, 0, 0.03);
}
.slider-area .carousel-inner .carousel-item .carousel-captions .content .slider_border:before {
    top: 0;
    left: 0;
}
.slider-area .carousel-inner .carousel-item .carousel-captions .content .slider_border:before, .slider-area .carousel-inner .carousel-item  .carousel-captions .content .slider_border:after {
    position: absolute;
    width: 0;
    height: 0;
    content: '';
    border: 2px solid transparent;
	animation-delay: 2.6s;
	-webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
}
.slider-area .carousel-inner .carousel-item.active .carousel-captions .content .slider_border:after {
    width: 100%;
    height: 100%;
    -webkit-transition: border-color 0s ease-out .5s, width .25s ease-out .5s, height .25s ease-out .75s;
    transition: border-color 0s ease-out .5s, width .25s ease-out .5s, height .25s ease-out .75s;
    border-bottom-color: #172e58;
    border-left-color: #172e58;
	animation-delay: 2.6s;
	-webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
}
.slider-area .carousel-inner .carousel-item .carousel-captions .content .slider_border:after {
    right: 0;
    bottom: 0;
}
.slider-area .carousel-inner .carousel-item .carousel-captions .content .slider_border:before, .slider-area .carousel-inner .carousel-item .carousel-captions .content .slider_border:after {
	position: absolute;
    width: 0;
    height: 0;
    content: '';
    border: 2px solid transparent;
	-webkit-border-radius: 8px;
    -moz-border-radius:8px;
    border-radius: 8px;
}
.carousel-nevigation{
	position:absolute;
	top:50%;
	float:left;
	width:100%;	
}
.carousel-nevigation > .prev{
	left:50px;
	position:absolute;
	width:60px;
	height:60px;
	background:transparent;
	-webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
	line-height:60px;
	border:1px solid #fff;
	-webkit-transition: all 0.5s;
    -o-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -moz-transition: all 0.5s;
    transition: all 0.5s;
}
.carousel-nevigation > .next{
	right:50px;
	position:absolute;
	width:60px;
	height:60px;
	background:transparent;
	-webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
	line-height:60px;
	border:1px solid #fff;
	-webkit-transition: all 0.5s;
    -o-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -moz-transition: all 0.5s;
    transition: all 0.5s;
}
.carousel-nevigation > .next:hover, .carousel-nevigation > .prev:hover{
	border:1px solid #172e58;
	    -webkit-transition: all 0.5s;
    -o-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -moz-transition: all 0.5s;
    transition: all 0.5s;
}
.carousel-nevigation > .prev i{
	float:left;
	width:19px;
	text-align:right;
	color:#ffffff;
	font-size:16px;
	font-size: 28px;
    padding-right: 10px;
}
.carousel-nevigation > .prev i:before{
	 position: relative;
    left: -10px;
    background: #080707;
    top: -6px;
	-webkit-transition: all 0.5s;
    -o-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -moz-transition: all 0.5s;
    transition: all 0.5s;
}
.carousel-nevigation > .prev span{
	width:calc(100% - 19px);
	float:left;
	color:#ffffff;
	letter-spacing:3px;
	font-size:16px;
	line-height: 18px;
	padding-top:10px;
}
.carousel-nevigation > .next i{
	float:left;
	width:15px;
	text-align:left;
	color:#ffffff;
	font-size:16px;
	font-size: 28px;
    padding-left: 10px;
}
.carousel-nevigation > .next span{
	width:calc(100% - 15px);
	float:left;
	color:#ffffff;
	letter-spacing: 3px;
    font-size: 16px;
    line-height: 18px;
    padding-top: 10px;
	text-align:right;
}
.carousel-indicators{
	display:none;
}
.carousel-nevigation > .next i:before {
    position: relative;
    right: 0;
    background: #080707;
    top: -6px;
	-webkit-transition: all 0.5s;
    -o-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -moz-transition: all 0.5s;
    transition: all 0.5s;
}
.carousel-nevigation > .next:hover i:before, .carousel-nevigation > .prev:hover i:before{
	color:#172e58;
	-webkit-transition: all 0.5s;
    -o-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -moz-transition: all 0.5s;
    transition: all 0.5s;
}

/* Update container cho nội dung */
.

/* Style cho khung Border bao quanh chữ */
.slider-area .carousel-inner .carousel-item .carousel-captions .content .slider_border {
    position: relative; /* Đổi từ absolute sang relative để h2 nằm bên trong */
    display: inline-block; /* Để khung ôm sát chiều dài chữ */
    width: auto;           /* Bỏ width cố định */
    height: auto;          /* Bỏ height cố định */
    padding: 20px 60px;    /* Tạo khoảng cách giữa chữ và khung border */
    margin: 0 auto;
    animation-delay: 2.6s;
    z-index: 10;
}

/* Style cho tiêu đề H2 */
.slider-area .carousel-inner .carousel-item .carousel-captions .content h2 {
    color: #fff;
    font-size: 60px;       /* Giảm nhẹ size nếu chữ quá dài */
    line-height: 1.2;      /* Đổi line-height cố định 110px sang tỉ lệ để cân đối */
    margin: 0;
    text-align: center;
    text-transform: uppercase;
    font-weight: 400;
    -webkit-text-stroke-width: 1px; /* Giảm độ dày stroke để chữ thanh thoát hơn */
    font-family: "Roboto", cursive;
}

/* Đảm bảo hiệu ứng Border Before/After bao phủ đúng */
.slider-area .carousel-inner .carousel-item.active .carousel-captions .content .slider_border:before,
.slider-area .carousel-inner .carousel-item.active .carousel-captions .content .slider_border:after {
    width: 100%;
    height: 100%;
}
/* 1. Push the content lower by increasing padding-top */
.slider-area .carousel-inner .carousel-item .carousel-captions .content {
    /* Increased from 450px to 650px to move it down */
    padding-top: 650px; 
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 2. Style the border box with logo color tone */
.slider-area .carousel-inner .carousel-item .carousel-captions .content .slider_border {
    position: relative;
    display: inline-block;
    width: auto;
    height: auto;
    padding: 30px 50px;
    margin: 0 auto;
    animation-delay: 2.6s;
    z-index: 10;
    
    /* Dark navy background matching the logo with transparency */
    background: rgba(23, 43, 80, 0.85); 
    border-radius: 8px;
}

/* 3. Ensure the animated borders use the same navy tone */
.slider-area .carousel-inner .carousel-item.active .carousel-captions .content .slider_border:before {
    border-top-color: #172B50;
    border-right-color: #172B50;
    background: transparent; /* Remove the old light background */
}

.slider-area .carousel-inner .carousel-item.active .carousel-captions .content .slider_border:after {
    border-bottom-color: #172B50;
    border-left-color: #172B50;
}

/* 4. Fine-tune the heading font size and line height */
.slider-area .carousel-inner .carousel-item .carousel-captions .content h2 {
    color: #fff;
    font-size: 55px; /* Slightly smaller for better fit */
    line-height: 1.3;
    margin: 0;
    text-transform: uppercase;
    /* Reduced stroke for a cleaner look on dark background */
    -webkit-text-stroke-width: 0.5px; 
    -webkit-text-stroke-color: #fff;
}
@media (max-width: 768px) {
   

    /* Remove desktop padding and ensure content is centered */
    .slider-area .carousel-inner .carousel-item .carousel-captions .content {
        display: block;
        position: relative;
        z-index: 999;
        overflow: hidden;
        vertical-align: middle;
        padding-top:350px;
        padding-bottom:30px;
        text-align:center;
        }

    /* Adjust font size and border spacing for mobile to avoid overflow */
    .slider-area .carousel-inner .carousel-item .carousel-captions .content h2 {
        font-size: 32px; 
        line-height: 1.4;
    }

    .slider-area .carousel-inner .carousel-item .carousel-captions .content .slider_border {
        padding: 15px 25px;
    }
}