.taiwan-kv {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: #285e5a;
  background-size: cover !important;
  background: url(../img/ctp_bg.png) no-repeat center center scroll;
  height: 80vh;
}

.taiwan-kv .ctp-logo {
  margin: 2rem;
  max-width: 650px;
}

.taiwan-kv .ctp-logo img {
  width: 100%;
}

.taiwan-nav {
  top: 70px;
  background-color: #283e57;
}

.taiwan-nav .navbar-nav li.nav-item {
  position: relative;
}

.taiwan-nav .navbar-nav li.nav-item::before {
  content: "|";
  color: #ffffff;
  position: absolute;
  top: 0.4rem;
}

.navbar-nav li:first-child::before {
  display: none;
}

.taiwan-nav .navbar-nav .nav-link {
  color: #ffffff;
  padding: 0.5rem 1.5rem;
  transition: all 0.2s;
}

.taiwan-nav .navbar-nav .nav-link:hover,
.taiwan-nav .navbar-nav .nav-link:focus {
  color: var(--subnav-color);
}

@media (max-width: 926px) {
  .taiwan-nav {
    top: 46px;
  }
}

@media (max-width: 576px) {
  .taiwan-nav .navbar-nav li.nav-item::before {
    content: "";
  }

  .taiwan-nav .navbar-nav .nav-link {
    text-align: center;
  }
}

/* ====================================================
# 共用設定
==================================================== */

.ctp-title {
  text-align: center;
  font-size: 2.4rem;
  letter-spacing: 0.8rem;
  margin-right: -0.8rem;
  font-weight: 500;
  margin-bottom: 2.5rem;
}

.ctp-subtitle {
  text-align: center;
  color: #283e57;
}

.ctp-green {
  color: #416e06;
}

.ctp-blue {
  color: #0e598f;
}

.ls-en {
  letter-spacing: 0.2rem;
}

@media (max-width: 576px) {
  .ctp-title {
    letter-spacing: 0.5rem;
    line-height: 1.5;
  }
}

/* ====================================================
# ctp-foreword 前言
==================================================== */
.ctp-foreword {
  padding: 6rem 1.5rem 3rem;
}

.top-title {
  margin-bottom: 1rem;
}

.top-title h2 {
  font-weight: 300;
}

.top-title span {
  font-size: 3rem;
  font-weight: 500;
  color: #269dbb;
}

.top-title h4 {
  font-weight: 500;
  padding: 10px 0;
}

.top-title h5 {
  margin-bottom: 1.5rem;
}

.top-title h5 span {
  background-color: #2b715e;
  color: #ffffff;
  padding: 5px 10px;
  letter-spacing: 0.05rem;
  font-weight: 400;
  font-size: 21px;
}

/* ====================================================
# ctp-content 精彩內容
==================================================== */
.ctp-content {
  position: relative;
  background-color: #e0ece4;
}

.ctp-content::before {
  content: "";
  background-color: #ffffff;
  position: absolute;
  top: 0;
  left: 0;
  height: 250px;
  width: 100%;
}

.ctp-area {
  margin: 2rem 1.5rem;
}

.ctp-txt h4 {
  color: #2b715e;
}

.ctp-area .btn-all {
  display: block;
  letter-spacing: 1px;
  border-radius: 2px;
  width: 250px;
  font-size: 17px;
  padding: 3px 10px;
  border-width: 1px;
}

.ctp-area .btn-all i {
  float: right;
}

.ctp-img {
  border: 2px solid #212121;
  display: block;
  margin-bottom: 20px;
}

.ctp-img img {
  width: 100%;
}

/* ====================================================
# ctp-map 臺灣自主研發特展
==================================================== */
.ctp-map {
  background-color: #acd4dc;
}

.ctp-map h3 {
  font-size: 24px;
  text-align: center;
  letter-spacing: 0.5rem;
  border-top: 1px solid;
  border-bottom: 1px solid;
  line-height: 2;
  margin: 2rem 0;
}

.modalbox {
  background-color: #ffffff;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
  margin: 0.5rem 0;
  transition: 0.2s ease-in-out;
}

.modalbox:hover {
  color: #0e598f;
  font-weight: bolder;
  transform: translateY(3px);
}

.ctp-map .modal-content {
  border-radius: 10px;
  border: 1px solid #212121;
}

.ctp-map .modal-header {
  background-color: #d4f4f4;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.ctp-map .modal-title {
  color: #283e57;
}

.ctp-map .modal-body {
  padding: 2rem 1rem 0;
}

.modalbox-logo {
  max-width: 200px;
}

/* ====================================================
# ctp-brands 臺灣資安品牌
==================================================== */
.ctp-brands {
  background-color: #4a5b5f;
}

.brands-gallery {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 900px;
  justify-content: center;
  margin: 1.5rem auto 3rem;
}

.ctp-brands .carousel-indicators li {
  background-color: #ef9a2a;
}

.ctp-item.flip-card {
  background-color: transparent;
  width: 180px;
  height: 180px;
  perspective: 1000px;
  margin: 0 6px 12px 6px;
  filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.2));
}

.ctp-item.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.ctp-item.flip-card .flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.ctp-item.flip-card .flip-img,
.ctp-item.flip-card .flip-text {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
}

.ctp-item.flip-card .flip-img {
  background-color: #fff;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.ctp-item.flip-card .flip-img .img-flex {
  width: 100%;
}

.ctp-item.flip-card .flip-text {
  background-color: #e76a36;
  color: white;
  transform: rotateY(180deg);
  font-size: 18px;
  line-height: 1.2;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 10px 25px;
  z-index: 10;
}

@media (max-width: 576px) {
  .brands-gallery {
    width: 80%;
  }

  .ctp-item.flip-card {
    width: 100px;
    height: 100px;
  }

  .ctp-item.flip-card .flip-text {
    font-size: 15px;
    padding: 5px;
  }
}

/* ====================================================
# ctp-guide 深度導覽資訊
==================================================== */
.ctp-guide {
  background-image: linear-gradient(to top, #ace0f9 0%, #e0ece4 100%);
}

.guide-list {
  margin: 4rem 0;
}

.schedule {
  position: relative;
  border: 2px solid #212121;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  margin-bottom: 1.2rem;
  transition: all 0.3s;
  background-color: #ffffff;
}

.schedule a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.schedule:hover {
  transform: translateY(3px);
  /* background-color: #efefef; */
  border-color: #e76a36;
}

.line-card {
  font-size: 12px;
  padding-top: 10px;
  border-top: 1px solid;
}

@media (max-width: 576px) {
  .schedule {
    text-align: center;
  }
}

/* ====================================================
# ctp-event 舞台活動
==================================================== */
.event-box {
  padding: 20px;
  transition: all 0.3s;
}

.event-box:hover {
  cursor: pointer;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.event-box img {
  display: block;
  width: 100%;
  border: 2px solid #212121;
  margin-bottom: 15px;
}

.event-box-info {
  padding: 5px;
}

.event-box p {
  font-size: 15px;
  color: var(--sub-colorC);
}

.event-box-content {
  padding: 2rem;
  border-radius: 20px;
  border: 2px solid #212121;
}

.event-list {
  padding-bottom: 10px;
}

@media (max-width: 576px) {
  .event-list {
    text-align: center;
    font-size: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #dfdfdf;
  }

  .event-box-content {
    margin: 0 1.5rem;
    padding: 1rem;
  }
}
