/*

TemplateMo 570 Chain App Dev

https://templatemo.com/tm-570-chain-app-dev

*/

/* ---------------------------------------------
Table of contents
------------------------------------------------
01. font & reset css
02. reset
03. global styles
04. header
05. banner
06. features
07. testimonials
08. contact
09. footer
10. preloader
11. search
12. portfolio

--------------------------------------------- */
/* 
---------------------------------------------
font & reset css
--------------------------------------------- 
*/
/* 
---------------------------------------------
reset
--------------------------------------------- 
*/
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
div pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
figure,
header,
nav,
section,
article,
aside,
footer,
figcaption {
  margin: 0;
  padding: 0;
  border: 0;  
}

/* clear fix */
.grid:after {
  content: '';
  display: block;
  clear: both;
}

/* ---- .grid-item ---- */

.grid-sizer,
.grid-item {
  width: 50%;
}

.grid-item {
  float: left;
}

.grid-item img {
  display: block;
  max-width: 100%;
}

.clearfix:after {
  content: ".";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}

.clearfix {
  display: inline-block;
}

html[xmlns] .clearfix {
  display: block;
}

* html .clearfix {
  height: 1%;
}

ul,
li {
  padding: 0;
  margin: 0;
  /* list-style: none; */
}

#newsletter ul,
#newsletter li {
  list-style: none;
}

header,
nav,
section,
article,
aside,
footer,
hgroup {
  display: block;
}

* {
  box-sizing: border-box;
}

html,
body {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  background-color: #fff;
  -ms-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0px;
  margin-bottom: 0px;
}

ul {
  margin-bottom: 0px;
}

p {
  font-size: 0.9375rem;
  line-height: 30px;
  font-weight: 300;
  color: #afafaf;
}

img {
  width: 100%;
  overflow: hidden;
}

:root {
  --accent-color: #4b8ef1;
  /* 你想要的主色，可以改 */
  --test-color: #e7f1ff;
}


/* 
---------------------------------------------
outline styles
--------------------------------------------- 
*/

:focus-visible {
  outline: 4px solid #ffe54fea;
  border-radius: 6px;
}

.gradient-button :focus-visible,
.about-us .container .nav button:focus-visible,
.menu-item:focus-visible .thumb,
.portfolio .portfolio-filters li button:focus-visible,
.isotope-container .portfolio-item:focus-visible {
  outline: 8px solid #ffe54fea;
}

.menu-item:focus-visible {
  outline: none;
}

.skip-link {
  position: absolute;
  top: -10rem;
  left: 0.25rem;
  z-index: 100;
  background-color: #000000 !important;
  border: 3px solid #000000 !important;
  color: #fff;

  &:focus {
    top: 0.25rem;
  }
}

.access-key {
  background-color: transparent !important;
  position: absolute;
  top: 0rem;
  left: 0rem;
  color: #fff;
  border: none;

  &:hover,
  &:focus {
    background-color: transparent !important;
    color: #4b8ef1 !important;
  }
}



/* 
---------------------------------------------
global styles
--------------------------------------------- 
*/
html,
body {
  background: #fff;
  font-family: 'Roboto', sans-serif;
}

::selection {
  background: #4b8ef1;
  color: #fff !important;
}

::-moz-selection {
  background: #4b8ef1;
  color: #fff !important;
}

@media (max-width: 991px) {

  html,
  body {
    overflow-x: hidden;
  }

  .mobile-top-fix {
    margin-top: 30px;
    margin-bottom: 0px;
  }

  .mobile-bottom-fix {
    margin-bottom: 30px;
  }

  .mobile-bottom-fix-big {
    margin-bottom: 60px;
  }
}

.section-heading {
  position: relative;
  z-index: 2;
}

.section-heading h2 {
  color: #2a2a2a;
  font-size: 1.875rem;
  font-weight: 700;
  text-transform: capitalize;
  margin-bottom: 10px;
}

.section-heading h2 em {
  font-style: normal;
  color: #4b8ef1;
}

.section-heading img {
  width: 45px;
  height: 2px;
}

.section-heading p {
  margin-top: 10px;
}

.show-up {
  position: relative;
  z-index: 2;
}

.white-button a {
  display: inline-block !important;
  padding: 10px 20px !important;
  color: #4b8ef1 !important;
  text-transform: capitalize;
  font-size: 0.9375rem;
  background-color: #fff;
  border-radius: 23px;
  font-weight: 500 !important;
  letter-spacing: 0.3px !important;
  transition: all .5s;
}

.white-button a i {
  margin-left: 5px;
  font-size: 1.125rem;
}

.white-button a:hover {
  background-color: #4b8ef1;
  color: #fff !important;
}

.text-button a {
  font-size: 0.9375rem;
}

.text-button a i {
  margin-left: 5px;
  font-size: 0.875rem;
  transition: all .3s;
}

.text-button a:hover i {
  margin-left: 8px;
}

.gradient-button a {
  display: inline-block !important;
  padding: 10px 20px !important;
  color: #fff !important;
  text-transform: capitalize;
  font-size: 1.875rem;
  background: rgb(19, 175, 240);
  background: linear-gradient(105deg, rgba(91, 104, 235, 1) 0%, rgba(40, 225, 253, 1) 100%);
  border: 1px, solid, #fff !important;
  border-radius: 50px;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
  transition: all .5s;
}

.gradient-button a:hover {
  color: rgb(19, 175, 240) !important;
  background: #fff !important;
  background: linear-gradient(105deg, rgba(91, 104, 235, 1) 0%, rgba(40, 225, 253, 1) 100%);
  border: 1px, solid, rgb(19, 175, 240) !important;
}

.border-button a {
  display: inline-block !important;
  padding: 10px 20px !important;
  color: #4b8ef1 !important;
  border: 1px solid #4b8ef1;
  text-transform: capitalize;
  font-size: 0.9375rem;
  display: inline-block;
  background-color: #fff;
  border-radius: 23px;
  font-weight: 500 !important;
  letter-spacing: 0.3px !important;
  transition: all .5s;
}

.border-button a:hover {
  background-color: #4b8ef1;
  color: #fff !important;
}



/* 
---------------------------------------------
header
--------------------------------------------- 
*/

.header-area h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.background-header {
  background-color: #fff !important;
  height: 80px !important;
  border-bottom: none !important;
  position: fixed !important;
  top: 0px;
  left: 0px;
  right: 0px;
  box-shadow: 0px 5px 8px rgba(0, 0, 0, 0.03);
}

.background-header .logo,
.background-header .main-nav .nav li a {
  color: #fff;
}

.background-header .main-nav .nav li:hover a {
  color: #4b8ef1;
}

.background-header .nav li a.active {
  position: relative;
  color: #fff;
}

.background-header .nav li a.active:after {
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: #4b8ef1;
  content: '';
  left: 50%;
  bottom: -20px;
  transform: translateX(-50%);
}

.background-header .nav li:last-child a.active:after {
  background-color: transparent;
}

.header-area {
  background-color: white;
  border-bottom: 1px solid rgba(42, 42, 42, 0.2);
  position: absolute;
  left: 0px;
  right: 0px;
  z-index: 100;
  height: 100px;
  -webkit-transition: all .5s ease 0s;
  -moz-transition: all .5s ease 0s;
  -o-transition: all .5s ease 0s;
  transition: all .5s ease 0s;
}

.header-area .main-nav {
  min-height: 80px;
  background: transparent;
}

.header-area .main-nav .logo {
  float: left;
  -webkit-transition: all 0.3s ease 0s;
  -moz-transition: all 0.3s ease 0s;
  -o-transition: all 0.3s ease 0s;
  transition: all 0.3s ease 0s;
}

.header-area .main-nav .logo {
  line-height: 100px;
  float: left;
  -webkit-transition: all 0.3s ease 0s;
  -moz-transition: all 0.3s ease 0s;
  -o-transition: all 0.3s ease 0s;
  transition: all 0.3s ease 0s;
}

.background-header .main-nav .logo {
  line-height: 80px;
}

.background-header .main-nav .nav {
  margin-top: 20px !important;
}

.header-area .main-nav .nav {
  float: right;
  margin-top: 30px;
  margin-right: 0px;
  background-color: transparent;
  -webkit-transition: all 0.3s ease 0s;
  -moz-transition: all 0.3s ease 0s;
  -o-transition: all 0.3s ease 0s;
  transition: all 0.3s ease 0s;
  position: relative;
  z-index: 999;
}

.header-area .main-nav .nav li {
  padding-left: 20px;
  padding-right: 20px;
}

.header-area .main-nav .nav li:nth-child(7) {
  padding-right: 0px;
  padding-left: 40px;
}

.header-area .main-nav .nav li:last-child a,
.background-header .main-nav .nav li:last-child a,
.header-area .main-nav .nav li:nth-child(7) a,
.background-header .main-nav .nav li:nth-child(7) a {
  padding: 0px 20px !important;
  font-weight: 400;
}

/* .header-area .main-nav .nav li:last-child a:hover ,
.background-header .main-nav .nav li:last-child a:hover,
.header-area .main-nav .nav li:nth-child(6) a:hover ,
.background-header .main-nav .nav li:nth-child(6) a:hover {
  color: #fff !important;
} */

.header-area .main-nav .nav li a {
  display: block;
  font-weight: 500;
  font-size: 0.9375rem;
  color: #2a2a2a;
  text-transform: capitalize;
  -webkit-transition: all 0.3s ease 0s;
  -moz-transition: all 0.3s ease 0s;
  -o-transition: all 0.3s ease 0s;
  transition: all 0.3s ease 0s;
  height: 40px;
  line-height: 40px;
  border: transparent;
  letter-spacing: 1px;
}

.header-area .main-nav .nav li:hover a,
.header-area .main-nav .nav li a.active {
  color: #0058ff !important;
}

.header-area .main-nav .nav li:last-child a.active {
  color: #fff !important;
}

.background-header .main-nav .nav li:hover a,
.background-header .main-nav .nav li a.active {
  color: #0058ff !important;
  opacity: 1;
}

.header-area .main-nav .nav li.submenu {
  position: relative;
  padding-right: 30px;
}

.header-area .main-nav .nav li.submenu:after {
  font-family: FontAwesome;
  content: "\f107";
  font-size: 0.75rem;
  color: #2a2a2a;
  position: absolute;
  right: 18px;
  top: 12px;
}

.background-header .main-nav .nav li.submenu:after {
  color: #2a2a2a;
}

.header-area .main-nav .nav li.submenu ul {
  position: absolute;
  width: 200px;
  box-shadow: 0 2px 28px 0 rgba(0, 0, 0, 0.06);
  overflow: hidden;
  top: 50px;
  opacity: 0;
  transform: translateY(+2em);
  visibility: hidden;
  z-index: -1;
  transition: all 0.3s ease-in-out 0s, visibility 0s linear 0.3s, z-index 0s linear 0.01s;
}

.header-area .main-nav .nav li.submenu ul li {
  margin-left: 0px;
  padding-left: 0px;
  padding-right: 0px;
}

.header-area .main-nav .nav li.submenu ul li a {
  opacity: 1;
  display: block;
  background: #f7f7f7;
  color: #2a2a2a !important;
  padding-left: 20px;
  height: 40px;
  line-height: 40px;
  -webkit-transition: all 0.3s ease 0s;
  -moz-transition: all 0.3s ease 0s;
  -o-transition: all 0.3s ease 0s;
  transition: all 0.3s ease 0s;
  position: relative;
  font-size: 0.8125rem;
  font-weight: 400;
  border-bottom: 1px solid #eee;
}

.header-area .main-nav .nav li.submenu ul li a:hover {
  background: #fff;
  color: #4b8ef1 !important;
  padding-left: 25px;
}

.header-area .main-nav .nav li.submenu ul li a:hover:before {
  width: 3px;
}

.header-area .main-nav .nav li.submenu:hover ul {
  visibility: visible;
  opacity: 1;
  z-index: 1;
  transform: translateY(0%);
  transition-delay: 0s, 0s, 0.3s;
}

.menu-trigger {
  border: none !important;
  background-color: #FFF !important;
}

.header-area .main-nav .menu-trigger {
  cursor: pointer;
  display: block;
  position: absolute;
  top: 33px;
  width: 32px;
  height: 40px;
  text-indent: -9999em;
  z-index: 99;
  right: 40px;
  display: none;
}

.background-header .main-nav .menu-trigger {
  top: 23px;
}

.header-area .main-nav .menu-trigger span,
.header-area .main-nav .menu-trigger span:before,
.header-area .main-nav .menu-trigger span:after {
  -moz-transition: all 0.4s;
  -o-transition: all 0.4s;
  -webkit-transition: all 0.4s;
  transition: all 0.4s;
  background-color: #2a2a2a;
  display: block;
  position: absolute;
  width: 30px;
  height: 2px;
  left: 0;
}

.background-header .main-nav .menu-trigger span,
.background-header .main-nav .menu-trigger span:before,
.background-header .main-nav .menu-trigger span:after {
  background-color: #2a2a2a;
}

.header-area .main-nav .menu-trigger span:before,
.header-area .main-nav .menu-trigger span:after {
  -moz-transition: all 0.4s;
  -o-transition: all 0.4s;
  -webkit-transition: all 0.4s;
  transition: all 0.4s;
  background-color: #2a2a2a;
  display: block;
  position: absolute;
  width: 30px;
  height: 2px;
  left: 0;
}

.background-header .main-nav .menu-trigger span:before,
.background-header .main-nav .menu-trigger span:after {
  background-color: #2a2a2a;
}

.header-area .main-nav .menu-trigger span:before,
.header-area .main-nav .menu-trigger span:after {
  content: "";
}

.header-area .main-nav .menu-trigger span {
  top: 16px;
}

.header-area .main-nav .menu-trigger span:before {
  -moz-transform-origin: 33% 100%;
  -ms-transform-origin: 33% 100%;
  -webkit-transform-origin: 33% 100%;
  transform-origin: 33% 100%;
  top: -10px;
  z-index: 10;
}

.header-area .main-nav .menu-trigger span:after {
  -moz-transform-origin: 33% 0;
  -ms-transform-origin: 33% 0;
  -webkit-transform-origin: 33% 0;
  transform-origin: 33% 0;
  top: 10px;
}

.header-area .main-nav .menu-trigger.active span,
.header-area .main-nav .menu-trigger.active span:before,
.header-area .main-nav .menu-trigger.active span:after {
  background-color: transparent;
  width: 100%;
}

.header-area .main-nav .menu-trigger.active span:before {
  -moz-transform: translateY(6px) translateX(1px) rotate(45deg);
  -ms-transform: translateY(6px) translateX(1px) rotate(45deg);
  -webkit-transform: translateY(6px) translateX(1px) rotate(45deg);
  transform: translateY(6px) translateX(1px) rotate(45deg);
  background-color: #2a2a2a;
}

.background-header .main-nav .menu-trigger.active span:before {
  background-color: #2a2a2a;
}

.header-area .main-nav .menu-trigger.active span:after {
  -moz-transform: translateY(-6px) translateX(1px) rotate(-45deg);
  -ms-transform: translateY(-6px) translateX(1px) rotate(-45deg);
  -webkit-transform: translateY(-6px) translateX(1px) rotate(-45deg);
  transform: translateY(-6px) translateX(1px) rotate(-45deg);
  background-color: #2a2a2a;
}

.background-header .main-nav .menu-trigger.active span:after {
  background-color: #2a2a2a;
}

.header-area.header-sticky {
  min-height: 80px;
}

.header-area .nav {
  margin-top: 30px;
}

.header-area.header-sticky .nav li a.active {
  color: #4b8ef1;
}

@media (max-width: 1200px) {
  .header-area .main-nav .nav li {
    padding-left: 12px;
    padding-right: 12px;
  }

  .header-area .main-nav:before {
    display: none;
  }
}

@media (max-width: 992px) {

  .header-area .main-nav .nav li:last-child,
  .background-header .main-nav .nav li:last-child {
    color: #069;
  }

  .header-area .main-nav .nav li:nth-child(7),
  .background-header .main-nav .nav li:nth-child(7) {
    padding-right: 0px;
  }

  .background-header .nav li a.active:after {
    display: none;
  }

  .background-header {
    height: 60px !important;
  }

  .background-header .main-nav .nav {
    margin-top: 60px !important;
  }

  .header-area {
    height: 60px !important;
  }

  .header-area .logo {
    line-height: 60px !important;
  }

  .header-area .main-nav .nav {
    margin-top: 10px;
  }

  .header-area.header-sticky {
    min-height: 60px !important;
  }

  .header-area .main-nav .nav {
    margin-top: 10px !important;
  }
}

@media (max-width: 767.98px) {

  .header-area.header-sticky {
    min-height: 60px;
  }

  .pre-header ul.info li:last-child,
  .pre-header ul.info li:nth-child(7) {
    display: none !important;
  }

  .background-header .main-nav .nav {
    margin-top: 80px !important;
  }

  .header-area .main-nav .logo {
    color: #1e1e1e;
  }

  .header-area.header-sticky .nav li a:hover,
  .header-area.header-sticky .nav li a.active {
    color: #0067ff !important;
    opacity: 1;
  }

  .header-area.header-sticky .nav li.search-icon a {
    width: 100%;
  }

  .header-area {
    background-color: #fff;
    padding: 0px 15px;
    height: 60px;
    box-shadow: none;
    text-align: center;
    box-shadow: 0px 5px 8px rgba(0, 0, 0, 0.03);
  }

  .header-area .container {
    padding: 0px;
  }

  .header-area .logo {
    margin-left: 30px;
    line-height: 60px !important;
  }

  .header-area .menu-trigger {
    display: block !important;
    top: 12px !important;
  }

  .header-area .main-nav {
    overflow: hidden;
    min-height: 60px !important;
  }

  .header-area .main-nav .nav {
    float: none;
    width: 100%;
    display: none;
    -webkit-transition: all 0s ease 0s;
    -moz-transition: all 0s ease 0s;
    -o-transition: all 0s ease 0s;
    transition: all 0s ease 0s;
    margin-left: 0px;
  }

  .background-header .nav {
    margin-top: 80px;
  }

  .header-area .main-nav .nav li:first-child {
    border-top: 1px solid #eee;
  }

  .header-area.header-sticky .nav {
    /* margin-top: 100px; */
    margin-top: 60px;
  }

  .header-area .main-nav .nav li {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e7e7e7;
    padding-left: 0px !important;
    padding-right: 0px !important;
  }

  .header-area .main-nav .nav li a {
    height: 50px !important;
    line-height: 50px !important;
    padding: 0px !important;
    border: none !important;
    background: #f7f7f7 !important;
    color: #191a20 !important;
  }

  .header-area .main-nav .nav li a:hover {
    background: #eee !important;
    color: #0067ff !important;
  }

  .header-area .main-nav .nav li.submenu ul {
    position: relative;
    visibility: inherit;
    opacity: 1;
    z-index: 1;
    transform: translateY(0%);
    transition-delay: 0s, 0s, 0.3s;
    top: 0px;
    width: 100%;
    box-shadow: none;
    height: 0px;
  }

  .header-area .main-nav .nav li.submenu ul li a {
    font-size: 0.75rem;
    font-weight: 400;
  }

  .header-area .main-nav .nav li.submenu ul li a:hover:before {
    width: 0px;
  }

  .header-area .main-nav .nav li.submenu ul.active {
    height: auto !important;
  }

  .header-area .main-nav .nav li.submenu:after {
    color: #3B566E;
    right: 25px;
    font-size: 0.875rem;
    top: 15px;
  }

  .header-area .main-nav .nav {
    margin-top: 60px !important;
  }

  .header-area .main-nav .nav li.submenu:hover ul,
  .header-area .main-nav .nav li.submenu:focus ul {
    height: 0px;
  }

  .background-header {
    height: 60px !important;
  }

  .background-header .main-nav .nav {
    margin-top: 60px !important;
  }
}

@media (min-width: 767.98px) {
  .header-area .main-nav .nav {
    display: flex !important;
  }
}

.logo-title {
  color: #4b8ef1;
  font-weight: 600;
}

/* 
---------------------------------------------
preloader
--------------------------------------------- 
*/

.js-preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff;
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  z-index: 9999;
  -webkit-transition: opacity 0.25s ease;
  transition: opacity 0.25s ease;
}

.js-preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@-webkit-keyframes dot {
  50% {
    -webkit-transform: translateX(96px);
    transform: translateX(96px);
  }
}

@keyframes dot {
  50% {
    -webkit-transform: translateX(96px);
    transform: translateX(96px);
  }
}

@-webkit-keyframes dots {
  50% {
    -webkit-transform: translateX(-31px);
    transform: translateX(-31px);
  }
}

@keyframes dots {
  50% {
    -webkit-transform: translateX(-31px);
    transform: translateX(-31px);
  }
}

.preloader-inner {
  position: relative;
  width: 142px;
  height: 40px;
  background: #fff;
}

.preloader-inner .dot {
  position: absolute;
  width: 16px;
  height: 16px;
  top: 12px;
  left: 15px;
  background: #4b8ef1;
  border-radius: 50%;
  -webkit-transform: translateX(0);
  transform: translateX(0);
  -webkit-animation: dot 2.8s infinite;
  animation: dot 2.8s infinite;
}

.preloader-inner .dots {
  -webkit-transform: translateX(0);
  transform: translateX(0);
  margin-top: 12px;
  margin-left: 31px;
  -webkit-animation: dots 2.8s infinite;
  animation: dots 2.8s infinite;
}

.preloader-inner .dots span {
  display: block;
  float: left;
  width: 16px;
  height: 16px;
  margin-left: 16px;
  background: #4b8ef1;
  border-radius: 50%;
}



/* 
---------------------------------------------
Banner Style
--------------------------------------------- 
*/

.main-banner {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding: 250px 120px 150px 120px;
  position: relative;
  overflow: hidden;
}

.main-banner:after {
  content: '';
  background-image: linear-gradient(0, rgb(255, 255, 255) 5%, rgba(255, 255, 255, 0.5) 15%, rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0)), url(../images/logo2026.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: absolute;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.main-banner .left-content {
  margin-right: 15px;
}

.main-banner .left-content h2 {
  z-index: 2;
  position: relative;
  font-weight: 700;
  line-height: 70px;
  font-size: 3.125rem;
  margin-bottom: 20px;
}

.main-banner .left-content p {
  margin-bottom: 45px;
  color: #2a2a2a;
  font-weight: 400;
}

.main-banner .left-content .first-button {
  margin-right: 15px;
}

.main-banner .left-content .white-button {
  display: inline-block;
}

.main-banner .right-image {
  text-align: center;
  position: relative;
  z-index: 20;
}

.main-banner .right-image img {
  max-width: 710px;
}

.main-banner .left-content .white-button a {
  background-color: #4b8ef1;
  color: #fff !important;
}


.banner-text {
  color: #2d2d2d;
  text-shadow: -1px -1px 0 var(--test-color),
    1px -1px 0 var(--test-color),
    -1px 1px 0 var(--test-color),
    1px 1px 0 var(--test-color);

  &.sub {
    text-shadow: none;
  }
}

@media (max-width: 1200px) {
  .main-banner h2 {
    font-size: 1.875rem !important;
  }
}

@media (max-width: 600px) {
  .main-banner:after {
    content: '';
    background-image: linear-gradient(0, rgb(255, 255, 255) 5%, rgba(255, 255, 255, 0.5) 15%, rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0)), url(../images/logo2026.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: absolute;
    inset: 0;
    z-index: 1;
  }
}

/* 
---------------------------------------------
Services Style
--------------------------------------------- 
*/

.services {
  padding-top: 130px;
  position: relative;
}

.services .section-heading p {
  margin-top: 10px;
  margin-left: 18%;
  margin-right: 18%;
}

.services .container-fluid {
  padding-left: 65px;
  padding-right: 65px;
}

.services:after {
  content: '';
  background-image: url(../images/services-left-dec.png);
  background-repeat: no-repeat;
  position: absolute;
  left: 0;
  bottom: -300px;
  width: 261px;
  height: 368px;
  z-index: 0;
}

.services .section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.services .section-heading .line-dec {
  margin: 0 auto;
}

.service-item {
  position: relative;
  z-index: 1;
  padding: 30px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  border-radius: 10px;
  border-top-right-radius: 50px;
  transition: all .3s;
}

.service-item .icon {
  margin-left: 0px;
  margin-bottom: 30px;
  background-repeat: no-repeat;
  width: 50px;
  height: 50px;
  transition: all .3s;
}

.service-item h3 {
  transition: all .3s;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.service-item p {
  transition: all .3s;
  font-size: 0.9375rem;
  margin-bottom: 20px;
}

.service-item:hover h3,
.service-item:hover p,
.service-item:hover .text-button a {
  color: #fff;
}

.first-service .icon {
  background-image: url(../images/service-icon-01.png);
}

.first-service:hover .icon {
  background-image: url(../images/service-icon-hover-01.png);
}

.second-service .icon {
  background-image: url(../images/service-icon-02.png);
}

.second-service:hover .icon {
  background-image: url(../images/service-icon-hover-02.png);
}


.third-service .icon {
  background-image: url(../images/service-icon-03.png);
}

.third-service:hover .icon {
  background-image: url(../images/service-icon-hover-03.png);
}

.fourth-service .icon {
  background-image: url(../images/service-icon-04.png);
}

.fourth-service:hover .icon {
  background-image: url(../images/service-icon-hover-04.png);
}

.services a:focus-visible {
  outline: 8px solid #ffe54fea;
  .service-item {
    background-image: url(../images/service-bg.jpg);
  background-position: right top;
  background-repeat: no-repeat;
  background-size: 130%;
  };
}

.service-item:hover {
  background-image: url(../images/service-bg.jpg);
  background-position: right top;
  background-repeat: no-repeat;
  background-size: 130%;
}

.services .card-link i {
  margin: 0px 5px;
  font-size: 0.875rem;
  transition: all .3s;
  color: #4b8ef1;
}

/* 在 pricing-item-pro 容器內，恢復有序/無序清單的樣式與間距 */
.pricing-item-pro .list-reset {
  margin: 0;
  padding-left: 1.5rem;
  /* 讓項目符號不會貼邊 */
}

.pricing-item-pro-body {
  /* margin-bottom: 60px; */
}

.pricing-item-pro-body p {
  color: #2a2a2a;
  font-weight: 400;
  font-size: medium;
}

.pricing-item-pro ol.list-reset {
  list-style: decimal;
  /* 有序清單顯示數字 */
}

.pricing-item-pro ul.list-reset {
  list-style: disc;
  /* 無序清單顯示圓點 */
  padding-left: 1.25rem;
  margin-top: .25rem;
}

.pricing-item-pro .list-reset>li {
  line-height: 1.8;
  margin-bottom: .5rem;
  /* 項目之間呼吸 */
}

/* 主題群組的序號強調（第六屆競賽主題） */
#content-3 .theme-group {
  padding-left: 1.5rem;
}


/* 控制最大寬度的容器在手機保持內縮，避免滿版貼邊 */
@media (max-width: 767.98px) {
  .pricing-item-pro .container[style*="max-width"] {
    padding-left: .5rem;
    padding-right: .5rem;
  }
}



.card-link {
  text-decoration: none;
  /* 不要底線 */
  color: inherit;
  /* 保留原本文字顏色 */
  display: block;
}

.card-link:focus-visible .service-item ,
.card-link:hover .service-item {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.card-link {
  color: #4b8ef1;
}

.card-link:focus-visible ,
.card-link:hover {
  color: #fff;
}

.card-link:hover i {
  margin: 0px;
  color: #fff;
}

/*
---------------------------------------------
About Us
---------------------------------------------
*/

.about-us {
  padding-top: 3rem;
  position: relative;
  isolation: isolate;
}

.about-us .section-heading {
  margin-bottom: 45px;
}


/* 裝飾圖層不吃滑鼠事件，避免擋點擊 */
.about-us:before,
.about-us:after,
.about-us .right-image,
.about-us .right-image * {
  z-index: 0;
  pointer-events: none;
}

.about-us .box-item {
  display: block;
  width: 100%;
  border: 0;
  background-color: #fff;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.07);
  padding: 10px 30px;
  border-radius: 40px;
  margin-bottom: 30px;
  text-align: left;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.about-us .section-heading,
.about-us .box-item,
.about-us p,
.about-us .box-item .gradient-button,
.about-us .box-item span {
  position: relative;
  z-index: 2;
}

.about-us .box-item {
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.07);
  padding: 10px 30px;
  background-color: #fff;
  border-radius: 40px;
  margin-bottom: 30px;
}

.about-us .box-item h3{
  font-size: 1.25rem;
  font-weight: 700;
  color: #2a2a2a;
  transition: all .3s;
 
}

.about-us .box-item p {
  margin-bottom: 0px;
}

.about-us .box-item.active h3,
.about-us .box-item:hover h3 {
  color: #4b8ef1;
}

.about-us .gradient-button {
  margin-top: 30px;
  margin-bottom: 10px;
}

.about-us span {
  font-size: 0.875rem;
  color: #7a7a7a;
}

.about-us .right-image {
  position: relative;
  z-index: 1;
}

.about-us .right-image img {
  display: block;
  max-width: 100%;
  height: auto;
  pointer-events: none;
}

.about-us:after {
  background-image: url(../images/about-bg.jpg);
  width: 777px;
  height: 1132px;
  content: '';
  position: absolute;
  background-repeat: no-repeat;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
}

.about-us .container {
  position: relative;
  z-index: 999;
}

.about-us .box-item a {
  cursor: pointer;
}

/* 左側卡片群 */
#about-tablist .box-item {
  position: relative;
  /* 給 stretched-link 用，也建立疊層 */
  z-index: 2;
}

/* 右側內容（tab-pane 外層） */
#myTabContent,
#myTabContent .tab-pane {
  position: relative;
  z-index: 2;
}

.the-clients .nacc .thumb .client-content {
  overflow: hidden;
  /* 確保圓角裁切生效 */
  backface-visibility: hidden;
  transform: translateZ(0);
  /* 促進到 GPU 合成，減少閃爍 */
  will-change: transform;
  /* 提前告知瀏覽器會動 */
}

.about-us .nav .active {
  filter: drop-shadow(0 0 15px #4b8ef1);
  top: -5px;
}

.about-us p {
  color: #2a2a2a;
}

.about-us .card-back {
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 30px;
}


.about-us .thumb .client-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  /* 內文間距更穩 */
  padding: 60px 30px;
  /* background: url(../images/client-bg.png) no-repeat center/cover; */
  background: #2368e7;
  border-radius: 50px;
  width: 100%;
  height: auto;
}

.about-us .thumb .client-content p {
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  font-style: italic;
  margin-top: 30px;
}

.about-us .thumb tbody {
  color: #fff;
}

@media (max-width: 767.98px) {
  .about-us p {
    text-align: left !important;
    padding: 0 1rem;
  }
}

@media (max-width: 991.98px) {

  /* 隱藏上方選項清單 */
  #about-tablist {
    display: none !important;
  }

  /* 讓每個 tab-pane 都像一般區塊一樣顯示 */
  #myTabContent .tab-pane {
    display: block !important;
    /* Bootstrap 預設 tab-pane 不是 active 會 display:none */
    opacity: 1 !important;
    /* 若有 .fade 的透明動畫，強制顯示 */
    visibility: visible !important;
  }

  /* 如果你想讓每張卡片之間留距離，可加這段（可調整） */
  #myTabContent .tab-pane+.tab-pane {
    margin-top: 1.5rem;
  }
}

.about-us .text-button {
  text-align: center;
}


/* -----------------------------------------------------
   Section: The Clients
----------------------------------------------------- */

.the-clients {
  margin-top: 130px;
}

.the-clients:before {
  content: '';
  background-image: url(../images/services-right-dec.png);
  background-repeat: no-repeat;
  position: absolute;
  right: 0;
  top: auto;
  width: 1136px;
  height: 244px;
  /* z-index: 0; */
}

/* 標題區塊 */
.the-clients .section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.the-clients .section-heading p {
  margin: 10px 18% 0;
}

/* -----------------------------------------------------
   Tabs (Naccs) 外層與選單
----------------------------------------------------- */

.the-clients .naccs {
  position: relative;
}

/* 左側切換按鈕本體 */
.menu-item {
  display: block;
  width: 100%;
  margin: 15px 0;
  padding: 0 15px;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  position: relative;
}

/* 按鈕裡面的卡片區塊 */
.menu-item .thumb {
  width: 100%;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  border-radius: 1.5rem;
  min-height: 6rem;
}

/* 主標文字 */
.menu .thumb .menu-title {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  color: #2a2a2a;
}

/* 次要文字 */
.menu .thumb .category,
.menu .thumb .date,
.menu .thumb .rating,
.menu .thumb i {
  color: #afafaf;
}

.menu .thumb .category,
.menu .thumb .rating {
  font-size: 1rem;
  font-weight: 700;
}

/* active 狀態 */
.the-clients .naccs .menu .menu-item.active .thumb,
.the-clients .naccs .menu .menu-item.active .menu-title,
.the-clients .naccs .menu .menu-item.active .category,
.the-clients .naccs .menu .menu-item.active .date,
.the-clients .naccs .menu .menu-item.active .rating,
.the-clients .naccs .menu .menu-item.active i {
  color: #fff;
}

.the-clients .menu .menu-item .thumb {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.the-clients .menu .menu-item.active .thumb {
  background: #2368e7;
  border-radius: 1.5rem;
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}


/* -----------------------------------------------------
   Tabs 內容區（ul.nacc / li）
----------------------------------------------------- */

.the-clients ul.nacc {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  min-height: 100%;
  transition: 0.5s all cubic-bezier(0.075, 0.82, 0.165, 1);
}

.the-clients ul.nacc>li {
  list-style: none;
  position: absolute;
  opacity: 0;
  transform: translateX(-50px);
  transition: 1s all cubic-bezier(0.075, 0.82, 0.165, 1);
}

.the-clients ul.nacc>li.active {
  position: relative;
  z-index: 2;
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.3s;
}

.the-clients ul.nacc>li {
  width: 100%;
}

/* -----------------------------------------------------
   客戶內容卡片（Client Content）
----------------------------------------------------- */

.the-clients .nacc .thumb .client-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  /* 內文間距更穩 */
  padding: 60px 30px;
  background: #2368e7;
  border-radius: 50px;
  width: 100%;
  height: auto;
}

/* 文字與排版 */
.the-clients .client-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 500;
}

.the-clients .nacc .thumb .client-content img {
  width: 76px;
  height: 62px;
}

.the-clients .nacc .thumb .client-content p {
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  font-style: italic;
  margin-top: 30px;
}

@media (max-width: 992px) {
  .the-clients .nacc .thumb .client-content p {
    margin-top: 0;
  }
}

/* -----------------------------------------------------
   下方人物 / 公司資訊
----------------------------------------------------- */

.the-clients .nacc .thumb .down-content {
  margin-top: 30px;
}

.the-clients .nacc .thumb .down-content img {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  display: inline;
}

.the-clients .nacc .thumb .down-content .right-content {
  display: inline-block;
  margin-left: 20px;
}

.the-clients .nacc .thumb .down-content .right-content h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.the-clients .nacc .thumb .down-content .right-content span {
  color: #2a2a2a;
}

/* -----------------------------------------------------
   內容區補強（表格、清單、連結、Bootstrap 修正）
----------------------------------------------------- */

/* 長連結防爆版 */
.the-clients .client-content a {
  word-break: break-all;
  overflow-wrap: break-word;
}

/* 清單符號與縮排恢復 */
.the-clients .client-content ul {
  list-style: disc outside !important;
  /* 圓點 + 外側 */
  padding-left: 1.25rem !important;
  /* 用 padding 才能穩定顯示圓點 */
  margin: .5rem 0 !important;
  /* 基本上下間距 */
}

.the-clients .client-content ul li {
  display: list-item !important;
  /* 確認是清單項目 */
  position: static !important;
  /* 解除動畫定位影響 */
  opacity: 1 !important;
  transform: none !important;
  width: auto !important;
  /* 解除寬度被設成 100% 的誤傷 */
  line-height: 1.6;
}

/* 表格與滾動容器 */
.the-clients .client-content .table {
  width: 100%;
  margin-bottom: 0.5rem;
}

.the-clients .client-content .table-wrap {
  width: 100%;
  overflow-x: auto;
}

/* Bootstrap row 修正，避免巢狀負邊距 */
.the-clients .client-content .row {
  margin-left: 0;
  margin-right: 0;
}

/* 表格文字顏色 */
.the-clients .client-content table {
  color: #fff;
}

/* 修正 client-content 內部 UL 被誤判為 nacc 導致跑版 */
.client-content .inner-list {
  list-style: disc !important;
  /* 顯示原生圓點符號 */
  margin-left: 1.5rem !important;
  /* 左縮排 */
  margin-top: 0.5rem !important;
  margin-bottom: 0.5rem !important;
  padding-left: 1rem !important;
  /* 補平 bootstrap reset */
}

.client-content .inner-list li {
  list-style-position: outside !important;
  /* 黑點在外側 */
  position: static !important;
  opacity: 1 !important;
  transform: none !important;
  line-height: 1.6 !important;
}


/* <= 991.98px：手機/平板 */
@media (max-width: 991.98px) {
  /* 左側選單整個藏起來 */
  #clients .naccs .menu {
    display: none !important;
  }

  /* 右側內容全部顯示，不再吃高度動畫 */
  #clients .naccs ul.nacc {
    height: auto !important;
    min-height: 0 !important;
  }

  /* 很多模板用 .active 才顯示，其餘 display:none/opacity:0；統一強制顯示 */
  #clients .naccs ul.nacc > li {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    position: relative !important; /* 有些模板用 absolute 疊放，改回正常流 */
  }

  /* 各卡片之間留距 */
  #clients .naccs ul.nacc > li + li {
    margin-top: 1.25rem;
  }
}



/* 
---------------------------------------------
The Clients
---------------------------------------------
*/

.pricing-tables {
  padding-top: 130px;
}

.pricing-tables .section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.pricing-tables .section-heading p {
  margin-top: 10px;
  margin-left: 18%;
  margin-right: 18%;
}

.pricing-item-regular {
  margin-top: 30px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.07);
  border-radius: 50px;
  padding: 90px 30px;
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.pricing-item-regular:before {
  position: absolute;
  top: 0;
  left: 0;
  background-image: url(../images/regular-table-top.png);
  z-index: 0;
  content: '';
  width: 274px;
  height: 221px;
}

.pricing-item-regular:after {
  position: absolute;
  bottom: 0;
  right: 0;
  background-image: url(../images/regular-table-bottom.png);
  z-index: 0;
  content: '';
  width: 370px;
  height: 171px;
}

.pricing-item-regular span.price {
  font-size: 2.5rem;
  color: #fff;
  position: absolute;
  font-weight: 700;
  z-index: 1;
  left: 30px;
  top: 30px;
}

.pricing-item-regular h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 30px;
}

.pricing-item-regular .icon img {
  width: 120px;
  height: 106px;
  margin-bottom: 30px;
}

.pricing-item-regular ul li {
  color: #4b8ef1;
  font-size: 0.9375rem;
  margin-bottom: 15px;
}

.pricing-item-regular ul li:last-child {
  margin-bottom: 0px;
}

.pricing-item-regular ul li.non-function {
  color: #afafaf;
  text-decoration: line-through;
}

.pricing-item-regular .border-button {
  position: relative;
  z-index: 1;
  margin-top: 40px;
}

.pricing-item-pro {
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.07);
  border-radius: 50px;
  /* padding: 60px 200px; */
  /* text-align: center; */
  position: relative;
  z-index: 2;
  overflow: hidden;
  background-color: #fff;
}

.pricing-item-pro:before {
  position: absolute;
  top: 0;
  left: 0;
  background-image: url(../images/pro-table-top.png);
  z-index: -1;
  content: '';
  width: 281px;
  height: 251px;
}

.pricing-item-pro:after {
  position: absolute;
  bottom: 0;
  right: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: url(../images/pro-table-bottom.png);
  z-index: -1;
  content: '';
  width: 416px;
  height: 200px;
}

.pricing-item-pro span.price {
  font-size: 2.5rem;
  color: #fff;
  position: absolute;
  font-weight: 700;
  z-index: 1;
  left: 30px;
  top: 30px;
}

.pricing-item-pro h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 30px;
}

.pricing-item-pro .icon img {
  width: 120px;
  height: 106px;
  margin-bottom: 30px;
}

.pricing-item-pro ul li {
  font-size: 0.9375rem;
  margin-bottom: 15px;
}

.pricing-item-pro ul li:last-child {
  margin-bottom: 0px;
}

.pricing-item-pro ul li.non-function {
  color: #afafaf;
  text-decoration: line-through;
}

.pricing-item-pro .border-button {
  position: relative;
  z-index: 1;
  margin-top: 40px;
}

#clients .td-vertical {
  writing-mode: vertical-rl;
  text-orientation: upright;
  white-space: nowrap;
}


/* 
---------------------------------------------
Free Quote
--------------------------------------------- 
*/

.free-quote {
  background-image: url(../images/quote-bg.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding: 120px 0px;
  text-align: center;
  position: relative;
  z-index: 2;
  margin-top: 130px;
}

.free-quote .section-heading {
  margin-bottom: 40px;
}

.free-quote .section-heading h6,
.free-quote .section-heading h2 {
  color: #fff;
}

.free-quote .section-heading .line-dec {
  margin: 0 auto;
  background-color: #fff;
}

.free-quote form {
  background-color: #fff;
  display: inline-block;
  width: 100%;
  min-height: 80px;
  border-radius: 40px;
  position: relative;
  z-index: 1;
}

.free-quote form input {
  width: 100%;
  margin-top: 20px;
  margin-left: 30px;
  color: #afafaf;
  font-weight: 400;
  font-size: 0.9375rem;
  height: 40px;
  background-color: transparent;
  border-bottom: 1px solid #eee;
  border-top: none;
  border-left: none;
  border-right: none;
  position: relative;
  z-index: 2;
}

.free-quote form button {
  width: 100%;
  height: 80px;
  border-top-right-radius: 40px;
  border-bottom-right-radius: 40px;
  border: none;
  margin-left: 30px;
  background-color: #726ae3;
  font-size: 0.9375rem;
  color: #fff;
}


/* 
---------------------------------------------
Footer Style
--------------------------------------------- 
*/

footer {
  background-image: url(../images/footer-bg.png);
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  margin-top: 0px;
  padding-top: 300px;
  padding-bottom: 60px;
}

footer .section-heading {
  margin-bottom: 40px;
}

footer .section-heading h2 {
  line-height: 45px;
  color: #000000;
  margin-left: 13%;
  margin-right: 13%;
  text-align: center;
}

footer #search {
  margin-bottom: 80px;
}

footer #search input::placeholder {
  color: #fff;
}

footer #search input {
  font-size: 0.9375rem;
  color: #fff;
  height: 46px;
  border: none;
  background-color: transparent;
  border-bottom: 1px solid #fff;
  width: 100%;
}

footer #search button {
  height: 46px;
  border-radius: 23px;
  border: 1px solid #fff;
  background-color: transparent;
  color: #fff;
  width: 100%;
  transition: all .5s;
}

footer #search button:hover {
  background-color: #fff;
  color: #4b8ef1;
}

.footer-widget .logo img {
  max-width: 96px;
  margin-bottom: 30px;
}

.footer-widget h3 {
  font-size: 1.5rem;
  color: #000000;
  font-weight: 700;
  margin-bottom: 15px;
}

.footer-widget p {
  margin-bottom: 0px;
}

.footer-widget p,
.footer-widget p a {
  color: #000000;
}

.footer-widget ul {
  display: inline;
  max-width: 40%;
  float: left;
  margin-right: 10%;
}

.footer-widget ul li {
  margin-bottom: 10px;
}

.footer-widget ul li:last-child {
  margin-bottom: 0px;
}

.footer-widget ul li a {
  font-size: 0.9375rem;
  color: #fff;
  transition: all .3s;
  ;
}

.footer-widget a:hover {
  opacity: 0.75;
}

footer .copyright-text p {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 0px;
  color: #000000;
}

footer p a {
  color: #000000;
  transition: all .5s;
}

footer p a:hover {
  opacity: 0.75;
  color: #fff;
}


/*
---------------------------------------------
PopUp
---------------------------------------------
*/

#lean_overlay {
  position: fixed;
  z-index: 100;
  top: 0px;
  left: 0px;
  height: 100%;
  width: 100%;
  background: #000;
  display: none;
}

.popupContainer {
  position: absolute;
  width: 330px;
  height: auto;
  left: 45%;
  top: 60px;
  background: #FFF;
}

.btn {
  padding: 10px 20px;
  background: #4b8ef1;
  color: #fff;
  transition: all .3s;
}

.btn_red {
  background: #4b8ef1;
  color: #FFF;
}

.btn:hover {
  background: #E4E4E2;
}

.btn_red:hover {
  color: #2a2a2a;
  background: #E4E4E2;
}

a.btn {
  color: #fff;
  text-align: center;
  text-decoration: none;
}

a.btn_red {
  color: #FFF;
}

.one_half {
  width: 50%;
  display: block;
  float: left;
}

.one_half.last {
  width: 45%;
  margin-left: 5%;
}

/* Popup Styles*/

.popupHeader {
  font-size: 1rem;
  text-transform: uppercase;
}

.popupHeader {
  background: #F4F4F2;
  position: relative;
  padding: 10px 20px;
  border-bottom: 1px solid #DDD;
  font-weight: bold;
}

.popupHeader .modal_close {
  position: absolute;
  right: 0;
  top: 0;
  padding: 10px 15px;
  background: #4b8ef1;
  cursor: pointer;
  color: #fff;
  font-size: 1rem;
}

.popupBody {
  padding: 20px;
}

.social_login .social_box {
  display: block;
  clear: both;
  padding: 10px;
  margin-bottom: 10px;
  background: #F4F4F2;
  overflow: hidden;
}

.social_login .icon {
  display: inline-block;

  padding: 5px 10px;
  margin-right: 10px;
  float: left;
  color: #FFF;
  font-size: 1rem;
  text-align: center;
}

.social_login .fb .icon {
  background: #3B5998;
}

.social_login .google .icon {
  background: #DD4B39;
}

.social_login .icon_title {
  display: block;
  padding: 5px 0;
  float: left;
  font-weight: bold;
  font-size: 1rem;
  color: #777;
}

.social_login .social_box:hover {
  background: #E4E4E2;
}

.centeredText {
  color: #afafaf;
  text-align: center;
  margin: 20px 0;
  clear: both;
  overflow: hidden;
  text-transform: capitalize;
}

.user_login label {
  color: #afafaf;
}

.action_btns {
  clear: both;
  overflow: hidden;
}

.action_btns a {
  display: block;
}

/* User Login Form */

.user_login {
  display: none;
}

.user_login label {
  display: block;
  margin-bottom: 5px;
}

.user_login input[type="text"],
.user_login input[type="email"],
.user_login input[type="password"] {
  display: block;
  width: 90%;
  padding: 10px;
  border: 1px solid #DDD;
  color: #666;
}

.user_login input[type="checkbox"] {
  float: left;
  margin-right: 10px;
  width: 22px;
  height: 22px;
}

.user_login input[type="checkbox"]+label {
  float: left;
}

.user_login .checkbox {
  margin-bottom: 10px;
  clear: both;
  overflow: hidden;
}

.forgot_password {
  display: block;
  margin: 20px 0 10px;
  clear: both;
  overflow: hidden;
  text-decoration: none;
  color: #4b8ef1;
  transition: all .3s;
}

/* User Register Form */

.user_register {
  display: none;
}

.user_register label {
  color: #afafaf;
  display: block;
  margin-bottom: 5px;
}

.user_register input[type="text"],
.user_register input[type="email"],
.user_register input[type="password"] {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px solid #DDD;
  color: #666;
}

.user_register input[type="checkbox"] {
  width: 22px;
  height: 22px;
  float: left;
  margin-right: 8px;
}

.user_register input[type="checkbox"]+label {
  float: left;
  color: #afafaf;
}

.user_register .checkbox {
  margin-bottom: 10px;
  clear: both;
  overflow: hidden;
}

/* 
---------------------------------------------
services
--------------------------------------------- 
*/

#services h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

/* 
---------------------------------------------
responsive
--------------------------------------------- 
*/



@media (max-width: 1200px) {
  .header-area .main-nav .logo h4 {
    font-size: 1.5rem;
  }

  .header-area .main-nav .logo h4 img {
    max-width: 25px;
    margin-left: 0px;
  }

  .header-area .main-nav .nav li:last-child {
    padding-left: 20px;
  }

  .main-banner .left-content h2 {
    z-index: 2;
    position: relative;
    font-weight: 700;
    line-height: 70px;
    font-size: 3.125rem;
    margin-bottom: 20px;
  }

  .main-banner .left-content p {
    margin-bottom: 45px;
  }
}

@media (max-width: 992px) {
  .header-area {
    background-color: #fff;
  }

  .main-banner:after {
    background-image: linear-gradient(0, rgb(255, 255, 255) 5%, rgba(255, 255, 255, 0.5) 15%, rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0)), url(../images/logo2026.png);
    background-position: center;
    left: 0px;
    top: 0px;
    z-index: 1;
  }

  .main-banner .left-content h2 {
    color: #2a2a2a;
    margin-right: 0;
  }

  .main-banner .left-content p {
    color: #afafaf;
    margin-right: 0;
  }

  .main-banner .left-content .white-button a {
    background-color: #4b8ef1;
    color: #fff !important;
  }

  form#contact {
    overflow: hidden;
  }

  .header-area .main-nav .logo h4 {
    font-size: 1.25rem;
  }

  .main-banner .left-content {
    margin-right: 0px;
  }

  .main-banner {
    text-align: center;
    padding: 226px 0px 30px 0px;
  }

  .main-banner:before {
    display: none;
  }

  .main-banner .right-image {
    margin: 30px auto 0px auto;
    text-align: center;
  }

  .features-item {
    margin-bottom: 45px;
  }

  .last-features-item,
  .last-skill-item {
    margin-bottom: 0px !important;
  }

  .skill-item {
    margin-bottom: 30px;
  }

  .about-left-image img {
    margin-right: 0px;
    margin-bottom: 45px;
    ;
  }

  .services .naccs .menu div {
    font-size: 0.9375rem;
    font-weight: 500;
  }

  .service-item {
    text-align: center;
    margin-bottom: 30px;
  }

  .about-us .box-item {
    text-align: center;
  }

  .about-us:after {
    display: none;
  }

  .about-us .gradient-button,
  .about-us span {
    text-align: center;
    display: block;
  }

  .about-us .right-image {
    margin-top: 30px;
  }

  .service-item .icon {
    margin: 0 auto 30px auto;
  }

  .about-us .section-heading {
    text-align: center;
  }

  .about-us .left-image {
    margin-right: 30px;
    margin-left: 30px;
    margin-bottom: 45px;
  }

  .blog-posts {
    margin-left: 0px;
    margin-top: 30px;
  }

  .post-item {
    margin-bottom: 70px;
  }

  .pricing-item-regular {
    margin-bottom: 30px;
  }

  .our-portfolio .owl-nav {
    display: none !important;
  }

  .contact-info {
    margin-top: 60px;
  }

  form#contact {
    padding: 45px;
  }
}

@media (max-width: 767.98px) {
  .the-clients .naccs .menu div {
    text-align: center;
  }

  footer .section-heading h2 {
    color: #2a2a2a;
  }

  footer #search {
    margin-bottom: 45px;
  }

  footer {
    padding-top: 80px;
    text-align: center;
  }

  .footer-widget ul {
    display: block;
    width: 100%;
    float: none;
    text-align: center;
    margin: 0 auto;
  }

  .footer-widget h4 {
    margin-top: 45px;
    margin-bottom: 20px;
  }

  footer #search input {
    border: 1px solid #eee;
    color: #afafaf;
    background-color: #fff;
    border-radius: 23px;
    margin-bottom: 15px;
    padding: 0px 30px;
  }

  footer #search button {
    background-color: #fff;
    color: #4b8ef1;
  }

  footer #search input::placeholder {
    color: #2a2a2a;
  }

  .header-area .main-nav .logo h4 {
    font-size: 1.875rem;
  }

  .header-area .main-nav .logo h4 img {
    max-width: 30px;
    margin-left: 5px;
  }

  .main-banner .info-stat {
    margin-bottom: 15px;
  }

  .menu .thumb span.date {
    margin-bottom: -20px;
    display: block;
  }

  .service-item {
    text-align: center;
    padding: 30px;
  }

  .menu .thumb span.category {
    display: none;
  }

  .about-us .right-image {
    margin-top: 30px;
  }

  .service-item .icon {
    float: none;
    margin-right: 0px;
    margin-bottom: 15px;
  }

  .service-item .right-content {
    display: inline-block;
  }

  .services .naccs .menu div .thumb {
    padding: 5px;
  }

  .services .icon img {
    margin: 0px;
  }

  .the-clients .nacc .thumb .down-content .right-content {
    margin-left: 0px;
    margin-top: 15px;
  }

  .services ul.nacc li.active {
    padding: 45px;
  }

  .services .naccs .menu div {
    font-size: 0rem;
  }

  .the-clients .nacc .thumb .down-content {
    text-align: center;
  }

  .services ul.nacc li .right-image img {
    float: none;
  }

  .our-portfolio .section-heading,
  .about-us .section-heading,
  .about-us .about-item,
  .about-us p,
  .about-us .main-green-button {
    text-align: center;
  }

  .our-portfolio .section-heading .line-dec {
    margin: 0 auto;
  }

  .our-services .section-heading {
    margin-left: 15px;
    margin-right: 15px;
  }

  .free-quote form input {
    margin-left: 0px;
    padding: 0px 30px;
  }

  .free-quote form button {
    margin-left: 0px;
    border-bottom-left-radius: 40px;
    border-top-right-radius: 0px;
  }

  .blog-posts {
    margin-left: 0px;
    margin-top: 30px;
  }

  .post-item {
    margin-bottom: 30px;
  }

  .post-item .thumb img {
    max-width: 140px;
  }

  .post-item .right-content p {
    display: none;
  }

  .about-us .about-item {
    margin-top: 15px;
  }

  form#contact {
    padding: 30px;
  }
}

#clients.the-clients .nacc>li .client-content ul,
#clients.the-clients .nacc>li .client-content ol {
  display: block !important;
  /* 確保不是 flex/inline */
  list-style: disc outside !important;
  /* 左邊縮排（比 margin 更保險） */
  margin: .5rem 0 !important;
  /* 基本上下間距 */
}

#clients.the-clients .nacc>li .client-content ul li,
#clients.the-clients .nacc>li .client-content ol li {
  display: list-item !important;
  /* 真的變成清單項目 */
  list-style-type: disc !important;
  /* 再保險一次 */
  list-style-position: outside !important;
  position: static !important;
  /* 解除被動畫/定位誤傷 */
  opacity: 1 !important;
  transform: none !important;
  width: auto !important;
  /* 解除被套 100% 的誤傷 */
  line-height: 1.6;
}

/* 只讓直層的 tab li 吃到寬度；避免誤傷內容清單 */
#clients.the-clients ul.nacc>li {
  width: 100%;
}

#clients.the-clients ul.nacc li li {
  width: auto !important;
}

/* 內層 li 還原 */
#clients.the-clients .inner-list {
  height: auto !important;
  color: #fff;
}

#clients.the-clients .nacc>li .client-content ol li {
  list-style: decimal !important;
  /* 數字編號 */
  margin-left: 1.5rem !important;
  color: #fff;
}


/* 
---------------------------------------------
apply
--------------------------------------------- 
*/

.apply {
  padding-top: 130px !important;
  position: relative;
  z-index: 1;
}

.apply .link-color {
  color: rgb(160 39 50);
}

.apply>.section-heading>p {
  font-size: 0.9375rem;
  line-height: 30px;
  font-weight: 300;
  color: #afafaf !important;
}


.apply .content-card p,
.apply .content-card span {
  color: #2a2a2a;
  font-weight: 400;
}

/* 外框卡片與標題風格 */
.apply .content-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
  z-index: 10;
}

.apply .section-title {
  position: relative;
  padding-left: 0.75rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.apply .section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2rem;
  bottom: .2rem;
  width: 4px;
  background: #4b8ef1;
  border-radius: 2px;
}

/* 條列行距與縮排 */
.apply .rule-list,
.apply .sub-list,
.apply .bullet-list {
  margin: 0;
  padding-left: 1.25rem;
}

.apply .rule-list>li,
.apply .sub-list>li,
.apply .bullet-list>li {
  margin-bottom: .5rem;
  line-height: 1.8;
}

.apply .bullet-list ul {
  margin-top: .25rem;
  padding-left: 1.25rem;
}

/* 第 1 層：一、二、三 */
.apply ol.bullet-list {
  list-style-type: cjk-ideographic;
}

/* 第 2 層：1、2、3 */
.apply ol.bullet-list>li>ol {
  list-style-type: decimal;
}

/* 第 3 層：(1)、(2)、(3) */
.apply ol.bullet-list>li>ol>li>ol {
  list-style-type: decimal;
}

.apply ol.bullet-list>li>ol>li>ol>li::marker {
  content: "(" counter(list-item) ") ";
}

/* 第 4 層：A、B、C */
.apply ol.bullet-list>li>ol>li>ol>li>ol {
  list-style-type: upper-alpha;
}

/* 文件區塊 */
.apply .doc-block {
  background: #fafafa;
  border: 1px dashed rgba(0, 0, 0, .08);
  border-radius: .75rem;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}

.apply .doc-label {
  font-weight: 700;
  margin-bottom: .25rem;
}

/* 強調底線（比 inline style 好控管） */
.apply .u-underline {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 注意事項 */
.apply .alert-note {
  background: #fff3f3;
  border: 2px solid #ffd6d6;
  color: #b00020;
  border-radius: .75rem;
  padding: .875rem 1rem;
  line-height: 1.7;
}

.apply h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

/* RWD 微調 */
@media (max-width: 767.98px) {
  .apply .content-card {
    padding: 1.25rem;
  }

  .apply .section-title {
    margin-top: 1.25rem;
  }
}

/* 
---------------------------------------------
source
--------------------------------------------- 
*/

.source {
  position: relative;
  z-index: 0;
  background-color: #fff;
  overflow: hidden;
  padding-top: 130px;
}

/* 標題 */
.source .section-heading p {
  font-size: 0.9375rem;
  line-height: 30px;
  font-weight: 300;
  color: #afafaf;
}

/* 內容標題與文字 */
.source h5 {
  font-weight: 700;
}

.source p,
.source a {
  color: #4b8ef1;
  font-weight: 600;
  line-height: 1.7;
}

.source a:hover {
  text-decoration: underline;
}

/* .source-card {
  position: relative;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
  z-index: 10;
  background-color: #fff;
  background-repeat: no-repeat;
  background-size:cover;
} */

.source-card {
  position: relative;
  background-color: #fff;
  border: 1px solid #e9ecef;
  /* 柔和邊框 */
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  /* 淡陰影 */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  /* 確保圓角與 ::after 不外溢 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 10;
}

.source-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* 亮面覆蓋層（保留） */
.source-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

/* 內文間距（維持） */
.source-card h3,
.source-card h4,
.source-card h5,
.source-card p {
  margin-bottom: 0.5rem;
}

/* 連結：初始就有主題藍，hover/focus 明顯 */
.source-card a {
  color: #3273d6;
  /* 初始藍（可與站台主色一致） */
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.source-card a:hover,
.source-card a:focus {
  color: #1e6dfb;
  /* hover 藍 */
  text-decoration: underline;
  text-decoration-color: currentColor;
}

/* 按下去時略深 */
.source-card a:active {
  color: #164db8;
}

/* 使用者偏好減少動效時，關閉動畫 */
@media (prefers-reduced-motion: reduce) {

  .source-card,
  .source-card a {
    transition: none !important;
  }
}


/* RWD 調整 */
@media (max-width: 767.98px) {
  .source .text-md-start {
    text-align: center !important;
  }
}

/* =============================
   背景裝飾圖
   ============================= */
.source::after {
  content: '';
  background-image: url(../images/services-left-dec.png);
  background-repeat: no-repeat;
  position: absolute;
  left: 0;
  bottom: -20px;
  width: 261px;
  height: 368px;
  z-index: 0;
}

.source::before {
  content: '';
  background-image: url(../images/services-right-dec.png);
  background-repeat: no-repeat;
  position: absolute;
  right: 0;
  top: 0;
  width: 1136px;
  height: 244px;
  z-index: 0;
}

/* 手機版縮小或關閉裝飾 */
@media (max-width: 991.98px) {
  .source::before {
    width: 650px;
    height: 180px;
    opacity: 0.15;
  }

  .source::after {
    width: 240px;
    height: 340px;
    bottom: -180px;
    opacity: 0.22;
  }
}

@media (max-width: 575.98px) {

  .source::before,
  .source::after {
    display: none;
  }
}


/* 
---------------------------------------------
Portfolio
--------------------------------------------- 
*/

/* ===== 整體區塊 ===== */
.portfolio {
  position: relative;
  background-color: #fff;
  overflow: hidden;
  padding-top: 3rem;
  margin-bottom: 2rem;
}

/* ===== 篩選 Pills ===== */
.portfolio .portfolio-filters {
  --pill-accent: rgb(19, 175, 240);

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  padding: 8px 0;
  margin: 0 0 24px;
  list-style: none;
  z-index: 1;
}

.portfolio .portfolio-filters li {
  margin: 0;
}

.portfolio .portfolio-filters li button {
  display: block;
  width: 100%;
  background: #fff;
  padding: 1rem 2.5rem;
  border: 1px solid var(--pill-accent);
  border-radius: 9999px;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
  text-transform: capitalize;
  letter-spacing: 0.3px;
  color: var(--pill-accent);
  cursor: pointer;
  user-select: none;
  background-size: 100%;
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.1s,
    transform 0.2s,
    background-size 0.8s;
}

.portfolio .portfolio-filters li button:hover,
.portfolio .portfolio-filters li button.filter-active,
.portfolio .portfolio-filters li button:focus-visible {
  color: #fff;
  border-color: #fff;
  background-image: url(../images/service-bg.jpg);
  background-position: right top;
  background-repeat: no-repeat;
  background-size: 170%;
}


.portfolio .portfolio-filters li button:active {
  transform: translateY(1px);
}

@media (max-width: 992px) {
  .portfolio .portfolio-filters {
    gap: 8px 12px;
  }

  .portfolio .portfolio-filters li button {
    font-size: 0.9375rem;
    padding: 0.45rem 0.8rem;
  }
}

@media (max-width: 575px) {
  .portfolio .portfolio-filters {
    gap: 8px 10px;
  }

  .portfolio .portfolio-filters li button {
    font-size: 0.875rem;
    padding: 0.4rem 0.75rem;
  }
}

/* ===== 卡片與縮圖容器 ===== */
.portfolio-item {
  position: relative;
}

.preview-link {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.photo-badge {
  pointer-events: none;
}

.portfolio .portfolio-link:focus-visible  img {
  transform: scale(1.1);
}

.portfolio .portfolio-link:focus-visible .photo-badge {
  background: rgba(19, 175, 240, 1);
  color: #fff;
}

.portfolio-item a:focus-visible .portfolio-info {
  opacity: 1;
  bottom: 20px;
}

.portfolio-item a:focus-visible .photo-badge {
  background: rgba(19, 175, 240, 1);
  color: #fff;
}

.portfolio-item a:focus-visible img {
  transform: scale(1.1);
}

a.pulsating-play-btn {
  outline: none;
}



.portfolio-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  /* 需要就改成 16/9 or 1/1 */
  overflow: hidden;
  /* 讓波紋被裁在縮圖內（符合 eNno 視覺） */
  border-radius: 12px;
  isolation: isolate;
  /* 穩定 z-index 疊層 */

  &:has(:focus-visible)  {
    outline: 8px solid #ffe54fea; 
  }
}

.portfolio-thumb>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== eNno 版播放按鈕（置中、波紋、爆炸） ===== */
/* 本體：改為絕對定位置中，避免擠壓布局 */
.pulsating-play-btn {
  position: absolute;
  /* 置中關鍵 */
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  width: 94px;
  height: 94px;
  border-radius: 50%;
  display: block;
  overflow: hidden;
  z-index: 4;
  /* 高於 .portfolio-info(3) */

  /* 先給 fallback，再用 color-mix 蓋掉（相容性更好） */
  background: radial-gradient(rgba(19, 175, 240, 1) 50%, rgba(19, 175, 240, .25) 52%);
  background: radial-gradient(rgba(19, 175, 240, 1) 50%, color-mix(in srgb, rgba(19, 175, 240, 1), transparent 75%) 52%);
}

/* 外圈波紋 */
.pulsating-play-btn:before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  animation-delay: 0s;
  animation: pulsate-play-btn 2s forwards infinite steps(30);
  opacity: 1;
  border-radius: 50%;

  /* fallback → 再用 color-mix 覆蓋 */
  border: 5px solid rgba(19, 175, 240, 1);
  border: 5px solid color-mix(in srgb, rgba(19, 175, 240, 1), transparent 30%);

  top: -15%;
  left: -15%;
  background: transparent;
}

/* 中心白色三角形 */
.pulsating-play-btn:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  z-index: 100;
  transition: all 400ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

/* hover：收掉波紋、三角放大且變主色（eNno 的原行為） */
.pulsating-play-btn:hover:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border: none;
  z-index: 200;
  animation: none;
  border-radius: 0;
}

.pulsating-play-btn:hover:after {
  border-left: 15px solid rgba(19, 175, 240, 0.5);
  transform: scale(20);
}

.pulsating-play-btn:focus-visible:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border: none;
  z-index: 200;
  animation: none;
  border-radius: 0;
}

.pulsating-play-btn:focus-visible:after {
  border-left: 15px solid rgba(19, 175, 240, 0.5);
  transform: scale(20);
}

/* 外圈動畫關鍵影格 */
@keyframes pulsate-play-btn {
  0% {
    transform: scale(0.6, 0.6);
    opacity: 1;
  }

  100% {
    transform: scale(1, 1);
    opacity: 0;
  }
}

/* ===== 覆蓋資訊層（確保在按鈕下層） ===== */
.portfolio .portfolio-item .portfolio-info {
  background-color: rgba(255, 255, 255, 0.8);
  opacity: 0;
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 0;
  z-index: 3;
  /* < 按鈕 4 */
  transition: all .3s ease-in-out;
  padding: 15px;
  border-radius: 12px;
  pointer-events: none;

  text-shadow: -1px -1px 0 var(--test-color),
    1px -1px 0 var(--test-color),
    -1px 1px 0 var(--test-color),
    1px 1px 0 var(--test-color);
}

.portfolio .portfolio-item:hover .portfolio-info {
  opacity: 1;
  bottom: 20px;
}

.portfolio .portfolio-item:focus-visible .portfolio-info {
  opacity: 1;
  bottom: 20px;
}

.portfolio .portfolio-item .portfolio-info h3,
.portfolio .portfolio-item .portfolio-info p {
  color: #0059ff;
  font-weight: 600;
}

@media (max-width: 576px) {
  .portfolio .portfolio-item .portfolio-info {
    left: 12px;
    right: 12px;
    padding: 12px;
  }
}

/* 可選：使用者偏好減少動效時停用波紋 */
@media (prefers-reduced-motion: reduce) {
  .pulsating-play-btn:before {
    animation: none;
    opacity: .35;
  }
}

/* ===== 照片卡片右上角 icon ===== */
.photo-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: rgba(19, 175, 240, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  z-index: 2;
  transition: all .3s ease;
  pointer-events: none;
}

.photo-link img {
  transition: transform 0.5s ease;
}

/* 小互動：滑過微縮放、角標反轉色 */
.photo-link:hover>img {
  transform: scale(1.1);
}

.portfolio-thumb:hover>img {
  transform: scale(1.1);
}

.portfolio-thumb img {
  transition: transform 0.5s ease;
}

.photo-link:hover .photo-badge {
  background: rgba(19, 175, 240, 1);
  color: #fff;
}

.portfolio .portfolio-item:focus-visible > .photo-link img {
  transform: scale(1.1);
}

.portfolio .portfolio-item:focus-visible .photo-badge {
  background: #13aff0;
  color: #fff;
}

/* 保證 .portfolio-thumb 容器有定位基準 */
.portfolio-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.portfolio:after {
  content: '';
  background-image: url(../images/services-left-dec.png);
  background-repeat: no-repeat;
  position: absolute;
  left: 0px;
  bottom: 0px;
  width: 261px;
  height: 368px;
  z-index: 0;
  pointer-events: none;
}

.portfolio:before {
  content: '';
  background-image: url(../images/services-right-dec.png);
  background-repeat: no-repeat;
  position: absolute;
  right: 0;
  top: 100px;
  width: 1136px;
  height: 244px;
  z-index: 0;
}

.portfolio .container {
  position: relative;
  z-index: 1;
}

.ul-auto-height {
  height: auto !important;
}  