/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
header {
    transition: all 0.5s;
    z-index: 1000;
    padding: 24px 0;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header.header-transparent {
    background: transparent;
}

header.header-scrolled {
    background: rgba(255, 255, 255, 0.9);
    color: var(--gray-100); 
    padding: 12px;
}
header .logo img {
    padding: 0;
    margin: 0;
    max-height: 40px;
}
@media (max-width: 768px) {
    header.header-scrolled {
        padding: 8px 0;
    }
}

/*---------------------------------------------
# Sections General
---------------------------------------------*/


/* 滾動 */
section{
  scroll-margin-top: 68px;
}
/* 分享 */
.post-share {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 20px 0;
  flex-wrap: wrap;
}
.post-share a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0px 10px;
  border: 1px solid #333;
  border-radius: 8px;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}
.post-share a:hover { opacity: 0.8;}
.facebook i{ color: #0866FF; font-size: 24px;}
.line i{ color: #06C755; font-size: 24px;}
.ri-link{ font-size: 24px;}
.post-share a.facebook:hover { color: #3b5998;}
.post-share a.line:hover { color: #00b900;}

@media (max-width: 768px){
  .post-share {
    gap: 8px;
  }
  .post-share a {
    gap: 4px;
    font-size: 14px;
  }
}


/*---------------------------------------------
# Footer
---------------------------------------------*/
#footer {
  background: var(--logo-text); 
  padding: 0 0 30px 0;
  color: var(--white);
}
#footer .container{
  max-width: 960px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  margin: 0 auto;
}
.copyright {
  letter-spacing: 0.05rem;
}
#footer i{
  font-size: 1.5rem;
}
#footer li a:hover{
  color: var(--black);
}
@media (max-width: 768px){
  #footer .container{
      flex-direction: column;
  }
  .copyright{
    margin-bottom: 20px;
  }
}
/*---------------------------------------------
# Back to top button
---------------------------------------------*/
.back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: 15px;
    z-index: 998;
    background: var(--logo-text); 
    width: 40px;
    height: 40px;
    border-radius: 50px;
    transition: all 0.4s;
}
.back-to-top:hover {
    background: var(--logo-main);
    color: var(--white);
}
.back-to-top.active {
    visibility: visible;
    opacity: 1;
}
/*---------------------------------------------
# Disable aos animation delay on mobile devices
---------------------------------------------*/
@media screen and (max-width: 768px) {
    [data-aos-delay] {
      transition-delay: 0 !important;
    }
}