/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat+Alternates:wght@400;500&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 2rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --white-color: hsl(0, 0%, 100%);
  --black-color: hsl(0, 0%, 0%);
  --main-blue:#244159;
  --sec-blue:#73c7e3;
  --gary-bg:#fcfcfc;
  --old-price-color:#878787;

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Noto Sans TC", sans-serif;
  --h1-font-size: 1.5rem;
  --nav-font-size: .938rem;
  --normal-font-size: 1rem;
   --old-price-size:1.1rem;
   --h2-font-size:2.5rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}



/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --nav-font-size: 1.1rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  letter-spacing: 0.1rem;

}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--nav-font-size);
  background-color: var(--white-color);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}


.teach__banner {
    width: 100%;
    height: auto;

}

.tab-container {
  width: 100%;
  max-width:80%;
  margin: 0 auto;
  padding: 5% 0 5% 0;
}

.tab-buttons {
  display: flex;
}

.tab-btn {
  flex: 1;
  padding: 15px;
  cursor: pointer;
  border: none;
  background-color: var(--sec-blue);
  font-size: var(--h1-font-size);
  transition: background-color 0.3s ease;
  color: var(--white-color);
}

.tab-btn.active {
  background-color: var(--main-blue);
  border-bottom: 2px solid var(--main-blue);
  font-weight: bold;
}

.tab-content {
  display: none;
  padding: 20px;
  background-color:var(--white-color);
  border-top: none;
  color: var(--black-color);
  font-size: var(--normal-font-size);
  text-align: center;
}

.tab-content.active {
  display: block;
}

h1 {
    font-size: var(--h1-font-size);
    color: var(--main-blue);
}

.tab__1__content {
    line-height: 1rem;
    padding: 10px 0 10px 0;
    text-align: center;
    width: 100%;
}

.tab__1__step {
  display: block;
  text-align: center;
  padding: 10px 0 50px 0;
}

.tab__1__icon {
  position: relative;
  width: 5rem;
  height: 5rem;
  background-color: var(--sec-blue);
  border-radius: 50%;
  overflow: hidden;
}

.tab__1__icon > div {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white-color);
  font-size: var(--h2-font-size);
}

.tab__1__page {
  background-color: var(--main-blue);
  font-size: var(--normal-font-size);
  color: var(--white-color);
  padding: 15px;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  text-align: center;

}



.tab__step__img {
    position: relative;
    padding: 5px 0 15px 0;
    display: inline-block;
    max-width: 500px;
    margin: 0 auto;
}

.tab__step__img img {
    max-width: 300px;
    height: auto;
    display: block;
}

.tab__step__btn {
    position: absolute;
    bottom: -5px;
    right: -30px;
    width: 50px;
    height: 50px;
}

.tab__step__btn a {
    display: inline-block;
    width: 100%;
    height: 100%;
    border: none;
    transition: transform 0.3s ease;
}

.tab__step__btn a:hover {
    transform: scale(1.15);
}

.tab__step__btn a img {
    max-width: 100%;
    height: 100%;
    object-fit: contain;
}

.tab__1__text h1{
    padding-bottom: 10px;

}


.tab__1__text a {
  color: var(--main-blue);
  text-decoration: none;
}





.tab__1__text {
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
  line-height: 2rem;
  font-size: var(--normal-font-size);
  padding-left: 50px;
}

.tab-container ul {
    text-align: left;
    list-style: disc;
    padding: 50px 0 50px 0;
    line-height: 2rem ;
}

.tab-container ul a{

text-decoration: underline;
color: var(--black-color);
}



@media screen and (max-width: 768px) {

    .teach__banner {
        padding: 50px 0 0 0;

}
    .tab__1__icon {

    width: 3rem;
    height: 3rem;

    }

    .tab__1__icon > div {
    font-size: var(--normal-font-size);
    }

    .tab__1__icon {

    margin: 0 auto 1rem;      /* ✅ 水平置中 + 下方間距 */
    }

    .tab__1__text {
    padding-left:10px;
    }

    .tab__1__step {
    padding: 50px 0 30px 0;
}


}

/*==================== Image Lightbox Styles ====================*/
.image-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  pointer-events: auto;
}

.image-lightbox-overlay.active {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  background-color: rgba(0, 0, 0, 0.9) !important;
}

.image-lightbox-content {
  position: relative;
  max-width: 70%;
  max-height: 70%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  padding: 20px;
}

.image-lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: block;
  width: auto;
  height: auto;
}

.image-lightbox-close {
  position: absolute;
  top: -103px;
  right: -27px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 100001;
}

.image-lightbox-close:hover {
  transform: scale(1.1);
  background: rgba(255, 107, 107, 0.8);
  color: white;
}

@media screen and (max-width: 768px) {
  .image-lightbox-content {
    max-width: 90%;
    max-height: 80%;
    padding: 10px;
  }

  .image-lightbox-close {
    top: -40px;
    right: -5px;
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
    padding: 6px;
  }

  .image-lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
  }
}

@media (max-width: 480px) {

  .tab-container{
    max-width: 100%;

  }

  .tab__1__text {
  font-size:10pt;
  max-width: 400px;
  padding-left: 5%;

}

}

/*=============== RESPONSIVE STEP IMAGES ===============*/
/* Desktop: Show desktop images, hide mobile images */
.step-img-desktop {
  display: block;
}

.step-img-mobile {
  display: none;
}

/* Desktop: Show desktop lightbox links, hide mobile lightbox links */
.desktop-lightbox {
  display: block;
}

.mobile-lightbox {
  display: none;
}

/* Mobile: Show mobile images, hide desktop images */
@media screen and (max-width: 768px) {
  .step-img-desktop {
    display: none;
  }

  .step-img-mobile {
    display: block;
  }

  /* Mobile: Show mobile lightbox links, hide desktop lightbox links */
  .desktop-lightbox {
    display: none;
  }

  .mobile-lightbox {
    display: block;
  }
}

/*=============== STEP COPY BUTTON ===============*/
.coupon-code-text {
  font-weight: bold;
  color: var(--main-blue);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  transition: all 0.2s ease;
  user-select: none;
  text-decoration: none;
  background: none;
}

.coupon-code-text:hover {
  background-color: var(--main-blue);
  color: white;
  transform: scale(1.05);
  text-decoration: none;
}

.coupon-code-text:active {
  transform: scale(0.95);
}

/* Mobile adjustments for step copy text */
@media screen and (max-width: 768px) {
  .coupon-code-text {
    padding: 1px 3px;
    background: none !important;
    text-decoration: none !important;
  }

  /* Ensure teach page main container accounts for mobile notice */
  body.mobile-notice-visible .main__container {
    margin-top: 60px; /* Space for mobile notice */
  }
}

