* {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: #444;
}

a:hover {
  text-decoration: none;
  color: #bb7004;
  transition: 0.3s linear;
}

.accordion-menu {
  width: 100%;
  margin: 15px auto;
  background: #fff;
  padding: 0;
}

.accordion-menu a {
  width: 100%;
  color: #444;
  margin: 15px auto;
  background: #fff;
}

.accordion-menu a:hover {
  color: #bb7004;
  background: #fff;
}

.accordion-menu li.open .dropdownlink {
  color: #888;
  text-align: left;
}

.accordion-menu li.open .dropdownlink a {
  color: #bb7004;
}

.accordion-menu li.open .dropdownlink .fa-chevron-down {
  transform: rotate(180deg);
}

.accordion-menu li:last-child .dropdownlink {
  border-bottom: 0;
}


.dropdownlink {
  cursor: pointer;
  display: block;
  padding: 15px 15px 15px 0px;
  font-size: 16px;
  border-bottom: 1px solid #dcdcdc;
  color: #212121;
  position: relative;
  transition: all 0.4s ease-out;
  font-weight: 400;
}

@media(max-width:1024px) {
  .accordion-menu {
    width: 100%;
    border-bottom: 1px solid #dcdcdc;
  }

  .accordion-menu li .dropdownlink {
    border-bottom: 0;
  }
}

.dropdownlink i {
  position: absolute;
  top: 16px;
  left: 0px;
}

.dropdownlink .fa-chevron-down {
  right: 12px;
  left: auto;
}

.submenuItems {
  display: none;
}

.submenuItems li {
  border-bottom: 1px solid #86b686;
}

.submenuItems a {
  display: block;
  color: #727272;
  padding: 15px 0px 12px 0px;
  transition: all 0.4s ease-out;
}

.submenuItems a:hover {
  color: #111;
}

.page-banner {
  position: relative;
  width: 100%;
  height: auto;
  max-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
}

.page-banner .banner {
  position: relative;
  width: 100%;
  height: auto;
  max-height: 420px;
}

.page-banner .banner img {
  width: 100%;
  object-fit: cover;
}

.page-banner .container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.page-banner .page-title h1,
.page-banner .breadcrumb {
  color: #fff;
  font-weight: bold !important;
}

.breadcrumb ul .breadcrumb-item a,
.breadcrumb ul li a,
.breadcrumb ol .breadcrumb-item a,
.breadcrumb ol li a {
  color: #fff;
}

.contentPage {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 40px;
}

.contentInfo .info p {
  font-size: 16px;
  line-height: 2;
  margin-bottom: 0;
}

.widget .widget-title,
.widget>h4 {
  margin: 12px 0 32px 0;
}

#page-content:not(.no-sidebar) {
  padding: 80px 0px;
}

.info ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 12px 0;
}

.info ul.list-book {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.info .login_form ul {
  gap: 0px;
}

.info .login_form ul li {
  padding: 12px 40px;
  border: 0px;
  background: #fafafa;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

.info ul li::marker {
  content: "";
}

.info ul li {
  width: 100%;
  position: relative;
  padding: 0 0 4px 0;
  border-bottom: 1px solid #dcdcdc;
  font-size: 1rem;
}

.info ul.list-book li:last-child {
  border-bottom: 1px solid #dcdcdc;
}

.info ul li:last-child {
  border-bottom: 0px solid #dcdcdc;
}

.info ul li a h4 {
  position: relative;
  color: #1c1c1c;
  transition: .3s linear;
}

.info ul li a h4:hover {
  color: #417a7f;
}

.info ul.list-type li a h4 {
  padding-left: 20px;
  font-size: 18px;
}

.info ul.list-type li a h4::before {
  content: "";
  position: absolute;
  left: 0px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #417a7f;
}

.info ul li a.more {
  display: inline-flex;
  padding: 6px;
  background: #86b686;
  color: #fff;
  border-radius: 3px;
  text-align: center;
  font-size: 16px;
}

.info ul li a.more:hover {
  color: #fff !important;
  background: #417a7f;
}

.info ul h4 {
  font-size: 20px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.info ul li p,
.info ul li .detail span {
  font-size: 16px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  margin: 6px 0;
}

.info ul li .detail span {
  -webkit-line-clamp: 3;
}

.info ul li span {
  display: flex;
  color: #727272;
  font-size: 16px;
  margin-bottom: 6px;
}

.contentInfo .info.typeC {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contentInfo .info.typeC .teacher_title {
  position: relative;
  font-size: 1.5rem;
  font-weight: bold;
  padding-left: 18px;
}

.contentInfo .info.typeC .teacher_title::before {
  content: "";
  position: absolute;
  left: 0px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #417a7f;
}

.info ul.teachers {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.info ul.teachers li {
  display: grid;
  grid-template-columns: 150px 2fr;
  gap: 20px;
  border: 0px;
}

.info ul.teachers li a {
  display: grid;
  gap: 10px;
  text-align: center;
  align-items: stretch;
}

.info ul.teachers li a img {
  width: 100%;
  max-width: 150px;
  height: auto;
  aspect-ratio: 1 / 1.1;
  object-fit: cover;
}

.info ul.teachers li .detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-start;
}

.info ul.teachers li .detail .txt p {
  display: flex;
  font-size: 14px;
}

.info ul.teachers li a.more {
  max-width: 120px;
}

@media(max-width:500px) {
  .info ul.teachers li {
    grid-template-columns: 120px 2fr;
  }
}

/* 篩選框樣式 */
.filter-container {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

.filter-container h4 {
  margin-bottom: 0px;
}

.filter-container .filter-box {
  display: flex;
  gap: 5px;
}

.filter-container .dropdown {
  position: relative;
  width: auto;
  min-width: 200px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #dcdcdc;
  border-radius: 5px;
  appearance: none;
  background-image: url("/images/scrolldown-dark.png");
  background-repeat: no-repeat;
  background-position: 172px center;
  background-size: 20px;
}

.filter-container .dropdown::after {
  content: "\e92e";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 10px;
}

.filter-container .filter-btn {
  padding: 10px 15px;
  font-size: 16px;
  color: #fff;
  background-color: #417a7f;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.filter-container .filter-btn:hover {
  background-color: #27575c;
}

.contentInfo .heading-text {
  line-height: normal;
}

.detailPage .topinfo {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 20px;
}

.detailPage .topinfo .photo img {
  width: 100%;
  max-width: 300px;
  margin-bottom: 40px;
}

.detailPage .topinfo p {
  margin: 0
}

.detailPage table tr {
  vertical-align: top;
}

.detailPage table tr td {
  font-size: 14px;
  padding: 4px;
}

.detailPage p.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detailPage p.nav em {
  font-style: normal;
}

.detailPage h4 {
  font-size: 24px;
  border-bottom: 2px solid #dcdcdc;
  margin: 4px 0;
  padding: 4px 0;
}

.detailPage .btminfo {
  font-size: 16px;
  line-height: 1.8;
  margin: 20px auto;
}

.tab-menu {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
  border-bottom: 2px solid #dcdcdc;
}

.tab-item {
  flex: 1;
  text-align: center;
  padding: 12px 15px;
  cursor: pointer;
  border-bottom: none;
  border: 1px solid #dcdcdc;
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
}

.tab-item.active {
  color: #fff;
  background-color: #27575c;
  font-weight: bold;
}

.tab-item:hover {
  background-color: #dcdcdc;
}

.tabs-content {
  border: 1px solid #dcdcdc;
  padding: 25px;
  background-color: #fff;
}

.btminfo .tab-container .tabs-content table,
.btminfo .tab-container .tabs-content table td {
  border: 0px;
}

@media(max-width:998px) {
  .tabs-content {
    padding: 12px;
  }
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

@media (max-width: 1200px) {

  .contentPage {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contentPagetable {
    display: flex;
    flex-direction: column;
  }

  #page-content:not(.no-sidebar) {
    padding: 40px 0px;
  }

  .widget .widget-title,
  .widget>h4 {
    margin: 0 0 20px 0;
  }

  .accordion-menu {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    display: flex;
    gap: 12px;
  }

  .accordion-menu li a {
    white-space: nowrap;
  }

  .sidebar-left .sidebar {
    padding-left: 0px;
    width: 100%;
    max-width: 100%;
    overflow: hidden !important;
  }
}

/* portal_l2_cnt */
.contentInfo .info {
  display: grid;
  gap: 8px;
  font-size: 1.16rem;
  line-height: 1.8;
  color: #444
}

.contentInfo .info h4 {
  margin-bottom: 0px;
  font-size: 1.4rem;
}

.contentInfo .info .typeB em {
  font-style: normal;
}

.contentInfo .info b {
  color: #111;
}

.polo-carousel-item h4 {
  position: absolute;
  left: 0px;
  bottom: 40px;
  background: #fff;
  z-index: 10;
  margin-bottom: 0px;
  padding: 0px 20px;
  border-radius: 0px 20px 20px 0px;
  font-size: 1.25rem;
}

.post-item.border .post-item-wrap {
  margin-bottom: 40px;
}


.login_form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 360px;
}

.login_form input[type="text"],
.login_form input[type="password"] {
  position: relative;
  width: auto;
  min-width: 200px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #dcdcdc;
  border-radius: 5px;
  appearance: none;
  /* background-image: url(/images/scrolldown-dark.png); */
  background-repeat: no-repeat;
  background-position: 172px center;
  background-size: 20px;
}

.login_form input[type="submit"] {
  min-width: 90px;
  padding: 10px 15px;
  font-size: 16px;
  color: #fff;
  background-color: #417a7f;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.login_form input[type="submit"]:hover {
  color: #fff;
  background-color: #27575c;
}

.btn_div {
  display: flex;
  gap: 12px;
}

.insideA {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contentInside ol {
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}

.contentInside ol li::marker {
  content: "";
}

.contentInside ol li {
  padding-bottom: 8px;
  border-bottom: 1px solid #eaeaea;
}

a.pageturn,
a.logout {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90px;
  padding: 10px 15px;
  font-size: 16px;
  color: #fff;
  background-color: #888;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 20px;
}

a.pageturn:hover,
a.logout:hover {
  color: #fff !important;
  background-color: #727272;
}

.contentInside {
  display: Flex;
  flex-direction: column;
  gap: 12px;
}

.info ul li p.activitiess {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  justify-content: flex-start;
}

.detailPage .nav_activities {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}

.info ul li p.activitiess img,
.detailPage .nav_activities img {
  height: 100%;
  object-fit: cover;
}

.detailPage .txt_activties {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detailPage .txt_activties {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.s-title-wrap .s-title {
  display: Flex;
  flex-wrap: Wrap;
  align-items: center;
  gap: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #dcdcdc;
}

table td,
table th {
  padding: 8px 12px;
  border: 1px solid #dcdcdc;
}

table th {
  background: #f9f9d7;
}

table td p {
  margin-bottom: 0;
  padding-left: 1rem;
}

.info table td ul {
  gap: 8px;
  padding: 0 0 0 2rem;
  margin: 4px 0;
}

.info table td ul li {
  padding: 0;
}

.org {
  max-width: 100%;
  margin: 0px auto 40px;
}

.org .box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border-radius: 3px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
  font-weight: bold;
  margin: 4px;
  background: #fff;
  white-space: nowrap;
  position: relative;
  text-align: center;
}

.deep-level .group .box {
  width: 100%;
}

.org .box a {
  color: inherit;
  text-decoration: none;
  display: block;
  white-space: wrap;
}

.org .box a:hover {
  text-decoration: underline;
  opacity: 0.9;
  color: #fff;
}

/* 層級顏色 */
.org .l1 {
  background: #417a7f;
  color: #fff;
  font-size: 1.25em;
}

.org .l2 {
  background: #007554;
  color: #fff;
}

.org .l3 {
  background: #87b686;
  color: #fff;
}

.org .l4 {
  background: rgb(187, 112, 4, .8);
  color: #fff;
  font-weight: 500;
}

/* 排版 */
.top-level {
  text-align: center;
  padding-bottom: 60px;
}

.org .main-container {
  position: relative;
}

.main-hline {
  height: 1px;
  background: #999;
  width: 68%;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.main-container .flex {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.dept {
  text-align: center;
  flex: 1;
  min-width: 280px;
}

.dept-connect {
  height: 80px;
  width: 1px;
  background: #999;
  margin: 0 auto;
}

.sub-level {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.dept-clinical .sub-level {
  grid-template-columns: repeat(2, 1fr);
}

.sub-level.column {
  flex-direction: column;
  gap: 20px;
}

.deep-level {
  display: grid;
  align-items: flex-start;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.vline {
  height: 60px;
  width: 1px;
  background: #999;
}

/* 從學院連到主線 */
.top-to-main {
  position: absolute;
  top: -60px;
  left: 50%;
  width: 1px;
  height: 60px;
  background: #999;
  transform: translateX(-54%);
  z-index: 2;
}

@media (max-width:1280px) {
  .main-container .flex {
    grid-template-columns: 1fr;
  }

  .main-hline {
    display: none;
  }

  .loginInfo {
    display: grid;
    justify-content: center;
  }

  .loginInfo .info {
    max-width: unset;
    min-width: 375px;
  }
}

@media (max-width:768px) {
  .main-container .flex {
    grid-template-columns: 1fr;
  }

  .top-to-main {
    display: none;
  }

  .top-level {
    padding-bottom: 0px;
  }

}

table.class_page {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

table.class_page,
table.class_page td,
table.class_page th {
  border: 0px;
}

table.class_page td {
  padding: 4px !important;
}

table.class_page td font {
  display: flex;
  gap: 12px;
}

table.class_page td font a,
table.class_page td font b {
  font-size: 14px;
}

center input.goback {
  padding: 12px 20px;
  background: #e3e3e4;
  color: #777;
  outline: unset;
  border: 0px;
  border-radius: 8px;
  font-size: 1.16rem;
  margin-top: 12px;
}

.moeny_stick {
  position: relative;
  background-color: #ffc8ed;
  width: 100%;
  margin: 12px auto;
}

.moeny_stick_run {
  position: absolute;
  left: 0;
  top: 0;
  background-color: #99ffdb;
}

.moeny_stick_info {
  display: grid;
  grid-template-columns: 80px 1fr 80px 1fr;
  gap: 12px;
}

@media (max-width: 1200px) {
  .moeny_stick_info {
    grid-template-columns: 80px 1fr;
  }
}

.nowcoin {
  font-size: 5rem;
  font-weight: bold;
  margin: 12px auto;
}

@media (max-width: 768px) {
  .nowcoin {
    font-size: 2.5rem;
  }
}

.table_scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ss-title-2.filter-container {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 1.2rem;
  margin-bottom: 0px;
}

.ss-title-2.filter-container h4 {
  font-size: 1.2rem;
}

/* 標題與標籤 */
.herb-garden-title {
  color: #2d5a27;
  font-size: 24px;
  border-bottom: 2px solid #81c784;
  padding-bottom: 10px;
  margin: 20px 0 10px 0;
  text-align: center;
}

/* 粗體小標題 */
.herb-garden-label {
  display: block;
  color: #1b5e20;
  font-size: 18px;
  margin: 10px 0;
  padding-left: 10px;
  border-left: 4px solid #2d5a27;
  line-height: 1.2;
}

/* 內文描述 */
.herb-garden-desc {
  line-height: 1.8;
  color: #333;
}

/* --- 核心：兩組排成一列的網格佈局 --- */
.herb-image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}

.herb-grid-item {
  flex: 1 1 calc(50% - 10px);
  min-width: 280px;
  text-align: center;
}

.herb-garden-img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
}

.herb-garden-caption {
  display: block;
  font-size: 14px;
  color: #666;
  font-weight: bold;
  line-height: 1.5;
}

/* 底部按鈕 */
.herb-garden-btn {
  display: inline-block;
  padding: 10px 20px;
  color: #2d5a27;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid #2d5a27;
  border-radius: 4px;
  transition: 0.3s;
}

.herb-garden-btn:hover {
  background-color: #2d5a27;
  color: #fff;
}

/* 手機版自動改為單列 */
@media (max-width: 600px) {
  .herb-grid-item {
    flex: 1 1 100%;
  }
}