/*---------------------------------------------
# Navigation Menu
---------------------------------------------*/
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: var(--primary);
  z-index: 100;
  padding: 0;
}

.navbar-container {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo{
  width: 120px;
  height: auto;
}
.nav-links {
  display: flex;
  list-style: none;
}
.nav-links li {
  margin-left: 24px;
}
.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  transition: opacity 0.3s;
}
.nav-links a:hover {
  opacity: 0.7;
}
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 200;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--white);
  margin: 3px 0;
  transition: 0.3s;
}
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 40%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 60px 20px;
  transition: 0.5s;
  z-index: 150;
  display: flex;
  flex-direction: column;
}
.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: var(--black);
}
.mobile-nav ul {
  list-style: none;
  margin-top: 20px;
}
.mobile-nav li {
  margin: 20px 0;
}
.mobile-nav a {
  color: var(--black);
  text-decoration: none;
  font-size: 18px;
  display: block;
}
.overlay-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 120;
}
  
@media (max-width: 768px) {
  .navbar{
    padding: 0 12px;
  }
  /* .nav-links {
    display: none;
  } */
  .hamburger {
    display: flex;
  }
  .mobile-nav.active {
    right: 0;
  }
  .overlay-nav.active {
    display: block;
  }
  .hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}
/*---------------------------------------------
# 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;
    }
}