/* 
不包含學員專區，的所有內頁共用
NOTES: There is all content sharing
*/

.section-title {
  /* width: -webkit-fit-content;
  width: -moz-fit-content; */
  /* width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  margin-left: auto;
  margin-right: auto; */
  text-align: center;
  margin-bottom: 2%;
  font-size: var(--fz2);
  font-weight: 700;
}
.section-title .main{
  font-size: var(--fz2);
  font-weight: 700;
  /* display: flex;
  flex-direction: column; */
}
.section-title .main::after {
  content: '';
  display: block;
  margin: 1.2rem auto;
  width: 30px;
  height: 4px;
  background-color: var(--jgun-red);
}
.section-title .sub {
  margin-bottom: 1.5rem;
}

/* 小標 */
.head-left-line {
  font-size: var(--fz4);
  font-weight: 700;
  border-left: 5px solid var(--jgun-red);
  padding-left: 10px;
  margin: 1rem 0;
  line-height: 1;
}



.btn-read-more,
.readLessButton {
  display: block;
  position: relative;
  background: #4f4c43;
  color: #ffffff;
  -webkit-box-shadow: 0 0 10px #ffffff;
          box-shadow: 0 0 10px #ffffff;
  padding: 5px 20px;
  margin:-10px auto 20px;
  width: 100%;
  border-radius: 5px;
  z-index: 3;
}
.btn-read-more:hover,
.btn-read-more:focus,
.btn-read-more:active,
.btn-read-more:focus-within,
.btn-read-more:focus-visible {
  background: #5c5950 !important;
  -webkit-box-shadow: 0 0 10px #ffffff !important;
          box-shadow: 0 0 10px #ffffff !important; 
  color: #ffdede !important; 
  outline: none;
}
.readLessButton:hover,
.readLessButton:focus,
.readLessButton:active,
.readLessButton:focus-within,
.readLessButton:focus-visible {
  background: #5c5950 !important;
  -webkit-box-shadow: 0 0 10px #ffffff !important;
          box-shadow: 0 0 10px #ffffff !important;
  color: #ffdede !important; 
  outline: none;
}

/* .btn-read-more::before {
  content: "";
  position: absolute;
  top: -50%;
  right: 0;
  width: 100%;
  height: 35px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 100%);
  z-index: -1;
} */
.btn-read-more::after,
.readLessButton::after {
  line-height: 1;
  /* color: var(--link); */
  font-weight: 800;
  margin-left: 5px;
  font-size: 10px;
}
.btn-read-more::after {
  content: '∨';
}

.readLessButton::after {
  content: '∧';
}
.btn-read-more {}
.readLessButton {}


@media screen and (min-width: 992px) {
  .section-title {
      /* max-width: -webkit-fit-content;
      max-width: -moz-fit-content;
      max-width: fit-content; */
  }
  .section-title .main{
      font-size: var(--fzSecTitle);
  }
  .section-title .main::after {
      margin: 1rem auto;
  }
  .section-title .sub {
      margin-bottom: 2rem;
  }
}



/****************
  content - top banner strat
****************/
.content-bn {
    margin-top: 60px;
    padding: 2% 0 3%;
    background: #FFF5F3;
    background: -o-linear-gradient(top, #FFF5F3 0%, #ffffff 80%);
    background: -webkit-gradient(linear, left top, left bottom, from(#FFF5F3), color-stop(80%, #ffffff));
    background: linear-gradient(to bottom, #FFF5F3 0%, #ffffff 80%);
    background: url('../images/content/bg-content-bn.webp') no-repeat center bottom /cover;
  }
  .container-contentgroup {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  .content-bn-textgroup {
    text-align: justify;
    margin: auto;
  }
  .content-bn-title {
    /* color: #ffffff; */
    font-size: var(--fztSecContenTitle);
    text-align: center;
  }
  .content-bn-text {
    margin-bottom: 1.2rem;
  }
  .content-bn-btngroup {
}
  .content-bn-btngroup .btnbox {
    position: relative;
    max-width: 266px;
    height: 50px;
    padding: 0;
    margin: auto;
    border-radius: 10px;
    background-color: #aaa;
    overflow: hidden;
    -webkit-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease;
  }
  .content-bn-btngroup .btnbox .bg {
    -o-object-fit: cover;
       object-fit: cover;
    width: 100%;
    position: absolute;
  }
  .content-bn-btngroup .btnbox .link {
    background-color: #020c1fa1;
    color: #ffffff;
    position: absolute;
    bottom: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 8px;
    text-align: left;
    font-weight: 500;
    letter-spacing: 1px;
    -webkit-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease;
  }
  .content-bn-btngroup .btnbox:hover .link, .content-bn-btngroup .btnbox:focus .link {
    text-align: right;
  }
  .content-bn-btngroup .link i {
    height: 100%;
    line-height: 2;
  }


  @media screen and (min-width: 992px) {
    .content-bn {}
      .container-contentgroup {
      }
      .content-bn-textgroup {
      }
      .content-bn-title {
      }
      .content-bn-text {
      }
      .content-bn-btngroup {
    }
      .content-bn-btngroup .btnbox {
        height: 135px;
      }
      .content-bn-btngroup .btnbox .bg {
      }
      .content-bn-btngroup .btnbox .link {
        position: absolute;
        background-color: #020c1fbf;      
        height: -webkit-fit-content;      
        height: -moz-fit-content;      
        height: fit-content;
        top: auto;
      }
      .content-bn-btngroup .btnbox:hover .link, .content-bn-btngroup .btnbox:focus .link {
        height: 100%;
        top: 0;
        text-align: center;
        line-height: 8;
      }
      .content-bn-btngroup .link i {
      }
  }
  /****************
    content - top banner end
  ****************/




/****************
  form start  
****************/
/* 有用到頁：設計課程頁、資訊課程頁、政府職訓課程詳情 */
.form-contact {}

.form-contact input:not([type="checkbox"]),
.form-contact select {
  width: 100%;
  height: 40px;
  line-height: 1;
  max-height: 40px;
  font-size: 1rem;
  font-weight: 500;
  background-color: #fff;
  border: 1px solid #b1b1b1;
  color: var(--text-gray);
  border-radius: 5px;
  padding: 5px;
  -webkit-appearance: auto;
}

.form-contact input:not([type="checkbox"]):focus,
.form-contact select:focus {
  outline: 0;
  border-color: var(--link);
}

.form-contact input[type="checkbox"] {
  border: 1px solid;
}


/* layout rules: 
form-col, form-col-lg-6, form-col-12 
from bootstrap5's col, col-6 ...
*/
.form-contact .row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  margin-top: calc(-1* var(--bs-gutter-y));
  margin-right: calc(-0.5* var(--bs-gutter-x));
  margin-left: calc(-0.5* var(--bs-gutter-x));
}

.form-col {
  -webkit-box-flex: 1;
      -ms-flex: 1 0 0%;
          flex: 1 0 0%;
  padding-bottom: 1rem;
}

.form-col-lg-6 {
  padding-bottom: 1rem;
}

.form-col-lg-6:nth-of-type(1) {}

.form-col-lg-6:nth-of-type(2) {}

.form-col-12 {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  width: 100%;
  padding-bottom: 1rem;
}

.form-contact select {}

.form-contact option {}

/* custom */
.form-col.name {}

.form-col.phone {}

.form-col.email {}

.form-col.city {}

.form-col.district {}

.form-col.course {}

/* 已詳細閱讀... */
.read-group {}

.read-group .read-checkbox {}

.read-group .read-note {}

.read-group .btn-wrapper {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.read-group .btn-wrapper .btn {}

.read-link {
  font-weight: 400;
  color: var(--text-bk);
  text-decoration: underline;
}

@media screen and (min-width: 992px) {

  .form-contact {}

  .form-contact input:not([type="checkbox"]),
  .form-contact select {}

  .form-contact input:not([type="checkbox"]):focus,
  .form-contact select:focus {}

  .form-contact input[type="checkbox"] {}

  /* layout rules: 
  form-col, form-col-lg-6, form-col-12 
  from bootstrap5's col, col-6 ...
  */
  .form-contact .row {}

  .form-col {}

  .form-col-lg-6 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 auto;
            flex: 0 0 auto;
    width: 50%;
  }

  .form-col-lg-6:nth-of-type(1) {
    padding-right: 6px;
  }

  .form-col-lg-6:nth-of-type(2) {
    padding-left: 6px;
  }

  .form-col-12 {}

  .form-contact select {}

  .form-contact option {}

  /* custom */
  .form-col.name {}

  .form-col.phone {}

  .form-col.email {}

  .form-col.city {}

  .form-col.district {}

  .form-col.course {}

  /* 已詳細閱讀... */
  .read-group {}

  .read-group .read-checkbox {}

  .read-group .read-note {}

  .read-group .btn-wrapper {}

  .read-group .btn-wrapper .btn {}

  .read-link {}
}

/****************
  form end 
****************/






/****************
  accordion start
****************/
.card-accordion {
  margin-bottom: 0.8rem;
}

.card-accordion .card-header {
  background-color: #ebebeb;
  padding: 0;
  margin: 0;
}

.card-accordion .card-header .btn {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  position: relative;
  text-align: left;
  padding: 10px 32px 15px 15px;
  border-color: transparent;
}

.card-accordion .card-header .btn:hover,
.card-accordion .card-header .btn:focus {
  background-color: #f1f1f1;
}

.card-accordion .card-header .btn::after {
  content: '';
  width: 0px;
  height: 0px;
  border-style: solid;
  border-width: 11px 7px 0 7px;
  border-color: var(--jgun-red) transparent transparent transparent;
  -webkit-transform: rotate(0deg);
      -ms-transform: rotate(0deg);
          transform: rotate(0deg);
  position: absolute;
  right: 13px;
  top: 18px;
  opacity: 1;
  transform: rotate(0deg);
}

.card-accordion .card-header .btn:hover::after,
.card-accordion .card-header .btn:focus::after {}

.card-accordion .card-header .btn:not(.collapsed)::after {
  -webkit-transform: rotate(180deg);
      -ms-transform: rotate(180deg);
          transform: rotate(180deg);
}

.card-accordion .card-body {}


/****************
  accordion end
****************/