@charset "UTF-8";
body {
  font-family: "Roboto", sans-serif;
  font-size: 1.05em;
}

#banner h1 {
  color: red !important;
  font-size: 60px !important;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

header {
  background-color: rgb(0, 112, 153);
  padding: 20px;
}
header .container {
  display: flex;
  justify-content: space-between;
}
header a {
  color: #FFF;
  text-decoration: none;
}
header .logo {
  font-weight: 700;
  padding-bottom: 30px;
}
header .logo img {
  height: 100px;
}
header .icon {
  display: none;
}
header nav a {
  margin: 0 10px;
}

#member_news .item {
  padding: 50px 20px;
  border-bottom: dashed 1px #DDD;
}
#member_news .item h2 {
  font-size: 1.5em;
  line-height: 130%;
}
#member_news .item .date {
  color: #999;
}
#member_news .item img {
  margin: 15px 0;
}
#member_news .item p {
  color: #999;
  line-height: 150%;
}

#form {
  padding: 50px 20px;
}
#form .container {
  max-width: 500px;
  padding: 40px 25px;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
#form h1 {
  font-size: 2em;
  margin-bottom: 30px;
}
#form fieldset {
  margin-bottom: 15px;
}
#form fieldset label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9em;
}
#form fieldset input, #form fieldset textarea {
  background-color: #EEE;
  padding: 10px;
  border: none;
  width: 100%;
  border-radius: 10px;
}
#form fieldset textarea {
  height: 90px;
  resize: none;
}
#form button {
  border: none;
  background-color: #000;
  color: #FFF;
  padding: 10px 20px;
  margin: 10px 0;
  font-size: 0.9em;
  border-radius: 30px;
  cursor: pointer;
}

#banner {
  height: 520px;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#news {
  padding: 60px 0;
}
#news .container h1 {
  text-align: center;
  margin-bottom: 50px;
  color: #069;
  font-size: 2.2em;
}
#news .tutors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 20px 0;
}
#news .tutor-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
  text-align: center;
}
#news .tutor-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}
#news .tutor-card img {
  width: 100%;
  height: 280px;
  -o-object-fit: contain;
     object-fit: contain;
  background-color: #f5f5f5;
  display: block;
}
#news .tutor-card h2 {
  font-size: 1.35em;
  color: #069;
  margin: 18px 0 12px;
  padding: 0 15px;
}
#news .tutor-card p {
  color: #555;
  margin: 8px 0;
  font-size: 1.05em;
  line-height: 1.5;
}
#news .tutor-card strong {
  color: #333;
  font-weight: 500;
}

/* ====================== BOOKING MODAL ====================== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.modal-content {
  background: #fff;
  margin: 5% auto;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  border-radius: 16px;
  position: relative;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
}

.booking-form label {
  display: block;
  margin: 15px 0 8px;
  font-weight: 600;
}

#booking-date {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  margin: 15px 0;
}

.time-slot {
  padding: 12px;
  text-align: center;
  background: #f0f0f0;
  border-radius: 8px;
  cursor: pointer;
}

.time-slot:hover, .time-slot.selected {
  background: #069;
  color: white;
}

.confirm-btn {
  width: 100%;
  padding: 14px;
  background: #069;
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 1.1em;
  margin-top: 20px;
  cursor: pointer;
}

#faq {
  background-color: #eee;
  text-align: center;
  padding: 50px 0;
}
#faq h1 {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 20px;
}
#faq li {
  border-top: dashed 1px #CCC;
  padding: 25px 20px;
}
#faq li.open {
  background-color: #FFF;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
#faq .q {
  cursor: pointer;
}
#faq .q:hover {
  color: #069;
  text-decoration: underline;
}
li.open #faq .q {
  color: #069;
  text-decoration: underline;
}
#faq .a {
  color: #999;
  line-height: 150%;
  margin-top: 10px;
}

#gallery {
  padding: 40px 0;
}

footer {
  background-color: #333;
  color: #CCC;
  text-align: center;
  padding: 20px;
}

/* ====================== 會員專區控制台 ====================== */
.dashboard-main {
  background-color: #f8f9fa;
  padding: 40px 0;
}
.dashboard-main .welcome-banner {
  background: linear-gradient(135deg, rgb(0, 112, 153), #00b0ff);
  color: white;
  padding: 40px;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  box-shadow: 0 10px 20px rgba(0, 112, 153, 0.2);
}
.dashboard-main .welcome-banner h1 {
  font-size: 2.2em;
  margin-bottom: 10px;
}
.dashboard-main .welcome-banner p {
  opacity: 0.9;
}
.dashboard-main .welcome-banner .stat-card {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 15px;
  min-width: 200px;
  text-align: center;
}
.dashboard-main .welcome-banner .stat-card span {
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.dashboard-main .welcome-banner .stat-card strong {
  display: block;
  font-size: 1.5em;
  margin: 5px 0;
}
.dashboard-main .dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
}
.dashboard-main .action-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}
.dashboard-main .action-cards .action-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  text-decoration: none;
  color: #333;
  transition: 0.3s;
  border: 1px solid #eee;
}
.dashboard-main .action-cards .action-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}
.dashboard-main .action-cards .action-card .icon {
  font-size: 2.5em;
  margin-bottom: 15px;
}
.dashboard-main .action-cards .action-card h3 {
  color: rgb(0, 112, 153);
  margin-bottom: 10px;
}
.dashboard-main .action-cards .action-card p {
  font-size: 0.9em;
  color: #777;
}
.dashboard-main .news-section {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  /* bxSlider 專用排版 - 標題置頂 */
}
.dashboard-main .news-section .news-slide-item {
  padding: 10px;
  /* 頂部的日期與標題區域 */
}
.dashboard-main .news-section .news-slide-item .news-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}
.dashboard-main .news-section .news-slide-item .news-header .date {
  font-size: 0.95em;
  color: rgb(0, 112, 153);
  font-weight: bold;
  background: #e1f5fe;
  padding: 6px 14px;
  border-radius: 20px;
}
.dashboard-main .news-section .news-slide-item .news-header h2 {
  margin: 0;
  color: #222;
  font-size: 1.8em;
}
.dashboard-main .news-section .news-slide-item {
  /* 下方的圖片與內容區塊 */
}
.dashboard-main .news-section .news-slide-item .news-body {
  display: flex;
  align-items: flex-start; /* 讓內容靠上對齊圖片 */
  gap: 25px;
}
.dashboard-main .news-section .news-slide-item .news-body .news-img {
  width: 45%;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.dashboard-main .news-section .news-slide-item .news-body .news-img img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.dashboard-main .news-section .news-slide-item .news-body .news-content {
  width: 55%;
}
.dashboard-main .news-section .news-slide-item .news-body .news-content p {
  font-size: 1.05em;
  color: #555;
  line-height: 1.7;
  margin: 0;
}
.dashboard-main .news-section .bx-wrapper {
  border: none;
  box-shadow: none;
  margin-bottom: 0;
  background: transparent;
}
.dashboard-main .sidebar .sidebar-box {
  background: white;
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 20px;
  border: 1px solid #eee;
}
.dashboard-main .sidebar .sidebar-box h3 {
  font-size: 1.1em;
  margin-bottom: 15px;
  border-left: 4px solid rgb(0, 112, 153);
  padding-left: 10px;
}
.dashboard-main .sidebar .sidebar-box ul {
  padding-left: 20px;
  list-style: disc;
}
.dashboard-main .sidebar .sidebar-box ul li {
  font-size: 0.9em;
  margin-bottom: 8px;
  color: #555;
}
.dashboard-main .sidebar .sidebar-box p {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 15px;
}
.dashboard-main .sidebar .btn-small {
  display: inline-block;
  padding: 8px 20px;
  background: rgb(0, 112, 153);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9em;
}

/* 響應式手機排版 */
@media (max-width: 768px) {
  header {
    text-align: center;
  }
  header .container {
    flex-wrap: wrap;
  }
  header .logo {
    font-size: 2em;
  }
  header .icon {
    display: block;
  }
  header .icon img {
    height: 32px;
  }
  header .icon .close {
    display: none;
  }
  header nav {
    margin-top: 15px;
    display: none;
    width: 100%;
  }
  header nav a {
    display: block;
    border-top: solid 1px #FFF;
    padding: 15px 0;
    margin: 0;
  }
  #news .tutors-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-main .welcome-banner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .dashboard-main .action-cards {
    grid-template-columns: 1fr;
  }
  /* 手機上新聞版塊調整成上下排列 */
  .news-section .news-slide-item .news-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .news-section .news-slide-item .news-body {
    flex-direction: column;
  }
  .news-section .news-slide-item .news-body .news-img {
    width: 100%;
    height: 180px;
  }
  .news-section .news-slide-item .news-body .news-content {
    width: 100%;
  }
}/*# sourceMappingURL=style.css.map */