
.service-box-wrapper-row {
	width: 90%;
	margin: auto;
	position: relative;
	z-index: 333;
	padding-top:20px;

}
.service-box-wrapper {
	position: relative;

}

.service-box-wrapper:hover {
	 filter: brightness(100%);
	transform: scale(1.1);
		 transition: transform 1s, filter 2s ease-in-out;

}
		 
.service-box-wrapper:hover >.service-box-text i {
	transform: scale(1.2);
	transition: transform 1s, filter 2s ease-in-out;
	
}

.service-box-wrapper:hover >.service-box-text span {
	transform: scale(1.2);
	transition: transform 1s, filter 2s ease-in-out;


}

.service-img {
	position: relative;
}


.service-img img {
	opacity: 25%;
	z-index: 1;
	position: relative;
	width: 100%;
}
.service-img::after {
	content: "";
	position: absolute;
	width: 100%;
	left: 0px;
	top: 0px;
	height: 100%;
	/* background-color: #e3474c;*/
}
.service-box-text {
	text-align: center;
	position: absolute;
	width: 100%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
}


.service-box-text .service-icon img {
	max-width: 80px;
}
.service-box-text span {
	color: #fff;
	font-size: 18px;
	width: 100%;
	display: inline-block;
	padding: 0px 45px;
	line-height: 21px;
	text-transform: uppercase;
	padding-top: 10px;
	font-weight: 600;
}

.service-box-text i {
	color:#FFF;
	font-size: 40px;
	width: 100%;
	display: inline-block;
	padding: 0px 45px;
	line-height: 21px;
	text-transform: uppercase;
	padding-top: 10px;
	font-weight: 600;
}


.service-img.one::after {
   background-color: #F44336; /* 多元專室 */
}

.service-img.two::after {
    background-color: #03A9F4;  /* 自主學習 */
}

.service-img.three::after {
    background-color: #8BC34A; /* 科技學習 */
}

.service-img.four::after {
    background-color: #FFEB3B; /* 正向教育 */
}

.service-img.five::after {
    background-color: #9C27B0; /* 放眼世界 */
}

.service-img.six::after {
    background-color: #009688; /* 英語學習 */
}

.service-img.seven::after {
    background-color: #FF9800; /* 中一適應 */
}

.service-img.eight::after {
    background-color: #3F51B5; /* 全方位閱讀 */
}

.service-img.nine::after {
    background-color: #FF5722; /* 價值教育 */
}

.service-img.ten::after {
    background-color: #e91e63e0; /* 中華文化 */
}

.service-img.eleven::after {
    background-color: #607d8bde; /* 中華文化 */
}

.service-img.twelve::after {
    background-color: #CDDC39; /* 中華文化 */
}



/*** Project ***/
.project-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.project-item .project-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    padding-top: 60px;
    transition: .5s;
}

.project-item:hover .project-overlay {
    opacity: 1;
    padding-top: 0;
}

.project-carousel .owl-nav {
    position: absolute;
    top: -100px;
    right: 0;
    display: flex;
}

.project-carousel .owl-nav .owl-prev,
.project-carousel .owl-nav .owl-next {
    margin-left: 15px;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    border-radius: 55px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .15);
    font-size: 25px;
    transition: .5s;
}

.project-carousel .owl-nav .owl-prev:hover,
.project-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: #FFFFFF;
}

@media (max-width: 768px) {
    .project-carousel .owl-nav {
        top: -70px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .project-carousel .owl-nav .owl-prev,
    .project-carousel .owl-nav .owl-next {
        margin: 0 7px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/*--------------------------------------------------------------
# specials Section
--------------------------------------------------------------*/
.specials {
  overflow: hidden;
}

.specials .nav-tabs {
  border: 0;
}

.specials .nav-link {
  border: 0;
  padding: 12px 15px 12px 0;
  transition: 0.3s;
  color: var(--default-color);
  border-radius: 0;
  border-right: 2px solid color-mix(in srgb, var(--default-color), transparent 90%);
  font-weight: 600;
  font-size: 15px;
}

.specials .nav-link:hover {
  color: var(--accent-color);
}

.specials .nav-link.active {
  color: var(--accent-color);
  border-color: var(--accent-color);
  background-color: var(--background-color);
}

.specials .tab-pane.active {
  animation: fadeIn 0.5s ease-out;
}

.specials .details h3 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 20px;
}

.specials .details p {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.specials .details p:last-child {
  margin-bottom: 0;
}

@media (max-width: 992px) {
  .specials .nav-link {
    border: 0;
    padding: 15px;
  }

  .specials .nav-link.active {
    color: var(--accent-color);
    background: var(--accent-color);
  }
}
