/* =========================================================
   Global Styles 
   ========================================================= */
@charset "utf-8";

body {
  margin: 0;
  font-family: "Noto Sans TC", sans-serif;
  background-color: #f9f5f0;
  color: #333;
  line-height: 1.8;
}

/* =========================================================
   Header & Navigation 
   ========================================================= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  padding: 20px 40px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 999;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

nav a:hover {
  color: #b87e63;
}



/* Mobile Menu Button */
.menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  #nav-menu {
    display: none;
    flex-direction: column;
    background-color: #fff;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 998;
  }

  #nav-menu a {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: center;
    margin: 0;
  }

  #nav-menu.show {
    display: flex;
  }
}

/* =========================================================
   Container & Typography
   ========================================================= */
.container {
  max-width: 900px;
  margin: 50px auto;
  padding: 0 20px;
}

h1 {
  font-size: 28px;
  color: #b87e63;
}

h2 {
  margin-top: 40px;
  font-size: 22px;
  color: #555;
}

ul {
  padding-left: 20px;
}

/* =========================================================
   Footer 
   ========================================================= */
footer {
  text-align: center;
  padding: 30px 0;
}

footer button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #b87e63;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* =========================================================
   Special Blocks (Used in News Articles)
   ========================================================= */
#con02_div {
  background-color: #EDDFCC;
  min-height: 50px;
  width: 33%;
  float: right;
  display: table;
}

#con02_div ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.space_top {
  margin-top: 10px;
}

/* RWD: Make the right-side block go full width on mobile */
@media (max-width: 768px) {
  #con02_div {
    width: 100%;
    float: none;
    margin-top: 20px;
  }
}

/* =========================================================
   YouTube Responsive Frame (FIXED VERSION)
   ========================================================= */
.iframe-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  margin: 25px 0;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}

/* =========================================================
   Slideshow (p1 ~ p14)
   ========================================================= */
.slideshow-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 500px;
  margin: auto;
  overflow: hidden;
  background-color: #f0f0f0;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.mySlides {
  display: none;
  width: 100%;
  height: 100%;
}

.mySlides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Prev/Next Arrows */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 16px;
  color: white;
  font-size: 24px;
  background-color: rgba(0,0,0,0.4);
  transform: translateY(-50%);
  user-select: none;
  z-index: 10;
  border-radius: 4px;
}

.prev { left: 0; }
.next { right: 0; }

/* Dots */
.dot-container {
  text-align: center;
  padding: 15px 0;
}

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
}

.active, .dot:hover {
  background-color: #717171;
}

/* RWD Slideshow */
@media (max-width: 900px) {
  .slideshow-container {
    height: 350px;
  }
}

@media (max-width: 600px) {
  .slideshow-container {
    height: 250px;
  }

  .prev, .next {
    font-size: 18px;
    padding: 10px;
  }

  .dot {
    height: 10px;
    width: 10px;
  }
}

/* =========================================================
   Monthly News Page 
   ========================================================= */
.monthly-news {
  max-width: 800px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

.monthly-news article {
  margin-bottom: 50px;
}

.monthly-news h2 {
  font-size: 1.5em;
  border-left: 5px solid #a8b4ff;
  padding-left: 10px;
  margin-bottom: 10px;
}

.monthly-news ul {
  list-style: none;
  padding: 0;
}

.monthly-news li {
  margin: 8px 0;
}

.monthly-news a {
  text-decoration: none;
  color: #333;
}

.monthly-news a:hover {
  outline: 1px dashed #666;
  outline-offset: 3px;
}
