/*--------------------------------------------------------------
# Common css 
--------------------------------------------------------------*/

html, body {
	height: 100%;
}

#main {
	min-height: calc(100% - 25%);
	/*減去footer高度*/
	padding-bottom: 3%;
}
section {
	overflow: hidden;
	padding: 130px 0 0 0;
}
.text-scarlet{
	color:#ce1212;
}
.text-hollygreen{
	color:#0da07b;
}
.text-trueblue{
	color:#2D68C4;
}
.bg-hollygreen{
	background: #0da07b;
}

.page-current{
	border-color: #6c757d !important; 
	background-color: #6c757d !important;
}

.card-shadow{
	border-radius: 30px;
	border: 1px solid rgb(219, 219, 219);
	box-shadow:	5px 10px 4px rgb(219, 219, 219);
}
/*--------------------------------------------------------------
# buttons
--------------------------------------------------------------*/
.btn-goback {
	padding: 7px 30px;
	border-radius: 25px;
	background-color: #08a4a7;
	color: white;
	font-weight: 600;
}

.btn-goback:hover {
	background-color: rgb(6, 131, 134);
	color: white;
}

.btn-upload {
	padding: 7px 30px;
	border-radius: 25px;
	background-color: #2D68C4;
	border-color: #2D68C4;
	color: white;
}

.btn-upload:hover {
	background-color: #224f94;
	border-color: #224f94;
	color: white !important;
}

.btn-search{
	padding: 14px 60px;
	border-radius: 50px;
	background: linear-gradient(45deg, #ff8800e0, #ff4b23af, #ff004c8c, #ff2323cc) !important;
	color:white;
	font-weight: 600;
}

.btn-search:hover{
	color:white;
	background: linear-gradient(0deg, #B82B22 100%, #B82B22 100%)!important;
}	
/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.header {
	background: #fff;
	transition: all 0.5s;
	z-index: 997;
	height: 90px;
	border-bottom: 1px solid #f0f0f0;
}


.header a{
	text-decoration: none;
}

#header-logoImg {
	max-height: 40px;
	margin-right: 6px;
}

#header-logoName {
	font-size: 28px;
	font-weight: 700;
	color: #000;
	margin: 0;
}

#header-title{
	margin-left:46px;
	margin-bottom:0px;
    font-size: 1.25rem;
}
/*--------------------------------------------------------------
# Desktop Navigation
--------------------------------------------------------------*/
@media (min-width: 1280px) {
	.navbar {
		padding: 0;
	}

	.navbar ul {
		margin: 0;
		padding: 0;
		display: flex;
		list-style: none;
		align-items: center;
	}

	.navbar li {
		position: relative;
	}

	.navbar>ul>li {
		white-space: nowrap;
		padding: 10px 0 10px 28px;
	}

	.navbar a,
	.navbar a:focus {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0 3px;
		font-size: 16px;
		font-weight: 600;
		color: #7f7f90;
		white-space: nowrap;
		transition: 0.3s;
		position: relative;
		background-color: rgba(255, 255, 255, 0.9);
		border:0;

	}

	.navbar a i,
	.navbar a:focus i {
		font-size: 12px;
		line-height: 0;
		margin-left: 5px;
	}

	.navbar>ul>li>a:before{
		content: "";
		position: absolute;
		width: 100%;
		height: 2px;
		bottom: -6px;
		left: 0;
		background-color: #ce1212;
		visibility: hidden;
		width: 0px;
		transition: all 0.3s ease-in-out 0s;
	}

	.navbar a:hover:before,
	.navbar li:hover>a:before,
	.navbar .active:before {
		visibility: visible;
		width: 100%;
	}

	.navbar a:hover,
	.navbar .active,
	.navbar .active:focus,
	.navbar li:hover>a {
		color: #000;
	}

	.navbar .dropdown ul {
		display: block;
		position: absolute;
		left: 28px;
		top: calc(100% + 30px);
		margin: 0;
		padding: 10px 0;
		z-index: 99;
		opacity: 0;
		visibility: hidden;
		background: #fff;
		box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
		transition: 0.3s;
		border-radius: 4px;
	}

	.navbar .dropdown ul li {
		min-width: 200px;
	}

	.navbar .dropdown ul a {
		padding: 10px 20px;
		font-size: 15px;
		text-transform: none;
		font-weight: 600;
		
	}

	.navbar .dropdown ul a i {
		font-size: 12px;
	}

	.navbar .dropdown ul a:hover,
	.navbar .dropdown ul .active:hover,
	.navbar .dropdown ul li:hover>a {
		color: rgb(0, 0, 0);
		
	}

	.navbar .dropdown:hover>ul {
		opacity: 1;
		top: 100%;
		visibility: visible;
	}

	.navbar .dropdown .dropdown ul {
		top: 0;
		left: calc(100% - 30px);
		visibility: hidden;
	}

	.navbar .dropdown .dropdown:hover>ul {
		opacity: 1;
		top: 0;
		left: 100%;
		visibility: visible;
	}
}

@media (min-width: 1280px) and (max-width: 1366px) {
	.navbar .dropdown .dropdown ul {
		left: -90%;
	}

	.navbar .dropdown .dropdown:hover>ul {
		left: -100%;
	}
}

/* 隱藏手機板導覽列icon (頁面寬度超過1280px) */
@media (min-width: 1280px) {

	.mobile-nav-show,
	.mobile-nav-hide {
		display: none;
	}
}

/*--------------------------------------------------------------
# Mobile Navigation 手機板導覽列
--------------------------------------------------------------*/
@media (max-width: 1279px) {
	/* 手機板導覽列 寬度:400px 高度:貼齊瀏覽器頁面上下 靠右 左邊框 動畫*/
	.navbar {
		position: fixed;
		top: 0;
		bottom: 0;
		
		width: 100%;
		max-width: 400px;
		
		right: -100%;
		border-left: 1px solid #666;
		transition: 0.3s;
		z-index: 9997;
	}

	.navbar ul {
		position: absolute;
		inset: 0;
		padding: 50px 0 10px 0;
		margin: 0;
		background: rgba(255, 255, 255, 0.9);
		overflow-y: auto;
		transition: 0.3s;
		z-index: 9998;
	}

	.navbar a,
	.navbar a:focus {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 10px 20px;
		border-bottom: 2px solid rgba(255, 255, 255, 0.8);
		font-size: 16px;
		font-weight: 600;
		color: #7f7f90;
		white-space: nowrap;
		transition: 0.3s;
		background-color: rgba(255, 255, 255, 0.9);
		border:0;
	}

	.navbar a i,
	.navbar a:focus i {
		font-size: 12px;
		line-height: 0;
		margin-left: 5px;
	}

	.navbar a:hover,
	.navbar li:hover>a {
		color: #ce1212;

	}

	.navbar .active,
	.navbar .active:focus {
		color: #ce1212;
		border-color: #ce1212;
	}

	.navbar .dropdown ul,
	.navbar .dropdown .dropdown ul{
		
		position: static;
		display: none;
		padding: 10px 0;
		margin: 10px 20px;
		transition: all 0.5s ease-in-out;
		border-left:1px solid #eee;
	}

	.navbar .dropdown>.dropdown-active,
	.navbar .dropdown .dropdown>.dropdown-active {
		display: block;
	}

	.mobile-nav-show {
		color:  #37373f;
		font-size: 28px;
		cursor: pointer;
		line-height: 0;
		transition: 0.5s;
		z-index: 9999;
		margin: 0 10px 0 20px;
	}

	.mobile-nav-hide {
		color:  #37373f;
		font-size: 32px;
		cursor: pointer;
		line-height: 0;
		transition: 0.5s;
		position: fixed;
		right: 20px;
		top: 20px;
		z-index: 9999;
	}

	.mobile-nav-active {
		overflow: hidden;
	}

	.mobile-nav-active .navbar {
		right: 0;
	}

	.mobile-nav-active .navbar:before {
		content: "";
		position: fixed;
		inset: 0;
		background: rgba(255, 255, 255, 0.8);
		z-index: 9996;
	}
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
	font-size: 14px;
	min-height: 25%;
	background-color: #1f1f24;
	padding: 50px 0;
	color: rgba(255, 255, 255, 1);
}

.footer .icon {
	margin-right: 15px;
	font-size: 24px;
	line-height: 0;
}

.footer h4 {
	font-size: 16px;
	font-weight: bold;
	position: relative;
	padding-bottom: 5px;
	color: #fff;
}
.footer-text{
	color: rgba(255, 255, 255, 0.8);
}

/*--------------------------------------------------------------
# Scroll Top Button  回到頂部按鈕
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: #08a4a7;
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: aliceblue;
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, aliceblue, transparent 20%);
}
.scroll-top:hover  i {
  color: #08a4a7;
}
.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}


