@import url("reset.css");
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap');

/* ========== 全站設定 ========== */
body {
  font-family: 'Noto Sans TC', '微軟正黑體', sans-serif;
  line-height: 1.6;
  color: #333;
}
li, a {
  list-style: none;
  text-decoration: none;
}
h2, h4 {
  font-weight: bold;
  margin: 1.5rem 0 1rem;
}
.container_box,
.main,
.contain_box,
.classbox,
.footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 10px;
  box-sizing: border-box;
}

h2.h2_01{
	color: #ff2970;
	font-size: 28px;
	font-weight: bold;
	text-align: left;
	margin-bottom: 1.5rem;
}

.h4_span01{
	background-color: #ff6a66;
	border-radius: 50px;
	color: #fff;
	font-size: 19px;
	padding: 5px 20px;
}

button.btn_a01{
	width: 50%;
	height: auto;
	padding: 10px 25px;
	border-radius: 10px;
	background-color: #ff2970;
	color: #fff;
	border: none;
	text-align: center;
	font-size: 20px;
	font-weight: bold;
	margin: 15px 0px;
}

/* ========== Header ========== */
.header-box {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 0;
  box-sizing: border-box;
}
.header-box img {
  height: 81px;
  width: auto;
  max-width: 100%;
  display: block;
}

/* ========== 課程說明選單 ========== */

/* 桌機版 */
.navbar-custom {
  background-color: #1a98a9;
  padding: 0.5rem 0;
}
.nav-container {
  display: flex;
  justify-content: center;
}
.navbar-menu {
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.navbar-menu .nav-item .nav-link {
  color: #fff;
  font-weight: bold;
  padding: 0.5rem 1rem;
  display: block;
  text-decoration: none;
}
.navbar-menu .nav-item .nav-link:hover {
  background-color: #005b93;
  border-radius: 6px;
  color: #fff;
}

/* ========== section box ========== */

section.section_bg01{
	background-color: #e6fcce;;
	height: auto;
	overflow: hidden;
	padding-top: 20px;
}

.section_box{
	height: auto;
	overflow: hidden;
}

.box_left{
	float: left;
	width: 45%;
	height: auto;
	overflow: hidden;
}

.box_right{
	float: right;
	width: 52%;
	height: auto;
	overflow: hidden;
}

/* ========== 課程表（桌機） ========== */
table.table_web {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  font-size: 16px;
  table-layout: fixed;
  word-wrap: break-word;
}
th, td {
  border: 1px solid #e0e0e0;
  padding: 1rem;
  vertical-align: top;
  line-height: 1.6;
}
th.th_01, td.td_01 {
  width: 130px;
  text-align: center;
  vertical-align: middle;
  font-weight: bold;
  background-color: #f4f8e6;
  color: #333;
  white-space: nowrap;
}
th.th_02 {
  background: linear-gradient(to right, #ffe680, #fdd15a);
}
th.th_03 {
  background: linear-gradient(to right, #ffc3a0, #f8a974);
}
td.td_02 {
  background-color: #fff7e5;
}
td.td_03 {
  background-color: #ffece0;
}
td.td_07 {
  background-color: #f7f7f7;
  font-size: 15px;
  color: #666;
}
td[rowspan] {
  vertical-align: top !important;
}
.table_web tbody tr:hover {
  background-color: #f0f8ff;
  transition: background-color 0.3s ease;
}

/* ========== 課程表（手機） ========== */
.mobile-schedule {
  font-family: 'Noto Sans TC', sans-serif;
  margin: 1.5rem 1rem;
  padding: 0.5rem;
}
.day-block {
  border: 1px solid #ccc;
  border-radius: 12px;
  margin-bottom: 2.5rem;
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  overflow: hidden;
  padding: 1rem;
}
.day-header {
  background: linear-gradient(to right, #e6fcce, #d1ea82);
  font-size: 1.25rem;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.day-header.second-day {
  background: linear-gradient(to right, #ffc3a0, #f8a974);
}
.schedule-item {
  padding: 1rem;
  border-bottom: 1px solid #eee;
}
.schedule-item .time {
  font-weight: bold;
  color: #555;
  margin-bottom: 0.5rem;
}
.schedule-item .content {
  line-height: 1.6;
  color: #333;
}
.schedule-item.break {
  background-color: #f1faff;
  font-weight: bold;
  text-align: center;
  color: #444;
}
.notes {
  font-size: 0.95rem;
  color: #666;
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  line-height: 1.6;
}

/* ========== 學習內容 ========== */

.course-feature-section {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 15px;
  box-sizing: border-box;
  text-align: center;
}

.feature-title {
  font-size: 28px;
  font-weight: bold;
  color: #007b5e;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}
.feature-title::after {
  content: "";
  display: block;
  width: 60%;
  height: 4px;
  background-color: #cde4d6;
  margin: 10px auto 0;
  border-radius: 2px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 三欄等寬 */
  gap: 1rem 1.2rem; /* 垂直與水平間距 */
  justify-content: start; /* 靠左對齊 */
  text-align: left;
  padding-left: 0.5rem;
}

.feature-item {
  background-color: #f0faf7;
  border: 1px solid #c5e6d9;
  padding: 1.2rem 1rem;
  font-size: 20px;
  font-weight: 500;
  color: #333;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
  height: 100%; /* 保持高度一致 */
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.feature-item:hover {
  transform: translateY(-5px);
  background-color: #e6f8f1;
}

/* ========== Footer ========== */
footer {
  background-color: #036eb6;
  color: #fff;
  padding: 30px 0;
  font-size: 16px;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.footer_p {
  color: #fff;
  padding: 5px 0px;
}

.footer_left{
	width: 50%;
	float: left;
}
.footer_right{
	float: right;
	width: 50%;
	text-align:right;
}
.footer_left .company-name {
  font-weight: bold;
  line-height: 1.6;
}

ul.company-links {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: right;
}

ul.company-links li {
  display: inline-block;
  color: #fff;
  margin-left: 0.3em;
}

ul.company-links li a {
  color: #fff;
  text-decoration: none;
}

ul.company-links li a:hover {
  text-decoration: underline;
}

/* ========== RWD 響應式 ========== */
.desktop-only {
  display: block !important;
}
.mobile-only {
  display: none !important;
}
@media screen and (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: block !important;
  }

  .header-box {
    padding: 0.5rem 1rem;
  }

  .header-box img {
    width: 100%;
    max-width: 400px;
    height: auto;
  }

  .box_left,
  .box_right {
    width: 100%;
    padding: 0 1rem;
  }

  .section_box {
    padding-top: 1rem;
    margin-bottom: 1rem;
  }

  .box_left {
    margin-bottom: 0.8rem; /* 手機時圖片與文字之間間距 */
  }

  .flexslider {
    margin-bottom: 0 !important; /* 若有設定預設 margin */
  }

  .nav-container {
    flex-direction: column;
    align-items: center;
  }
  .navbar-menu {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .navbar-menu .nav-item {
    width: 100%;
    text-align: center;
    border-top: 1px solid #eee;
  }
  .navbar-menu .nav-item .nav-link {
    padding: 1rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    padding-left: 0;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }

  .footer_left,
  .footer_right {
    width: 100%;
    margin: 0.5rem 0;
  }

  ul.company-links {
    text-align: center;
  }

  ul.company-links li {
    margin: 0 0.2em;
  }
}