:root {
  --bg: #000000;
  --bg-light: #ffffff;
  --text1: #ffffff;
  --text2: #000000;
  --accent: #444;
  --card: #cecece;
  --border: #ffffff;
  --orange: #ed7b2a;
}

body {
  background: var(--bg);
  color: var(--text1);
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}




/* ==========================
   sewage 區塊
========================== */
.sewage {
  display: flex;              /* 啟用 Flexbox */
  flex-direction: column;     /* 如果有多個元素要堆疊 */
  justify-content: center;    /* 垂直置中 */
  align-items: center;        /* 水平置中 */
  height: 100vh;
  text-align: center;
  color: var(--orange);
}

.sewage-content {
  position: relative;
  z-index: 2;
}

.sewage h1 {
  font-size: 48px;  
  margin-top:90px;

}

.sewage p {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--card);
}


/* ==========================
   目錄 (Table of Contents)
========================== */
.toc-container {
  background-color: #000000;
  transition: background 0.5s, color 0.5s;
  margin: 0;
}


.toc-list {
  list-style: none;
  padding-bottom: 60px;
  display: flex;
  /* Enable horizontal layout */
  justify-content: center;
  /* Center the buttons horizontally */
  gap: 16px;
  /* Space between buttons */
  flex-wrap: wrap;
  /* Wrap to next line if screen is too small */

}

.toc-list li {

  padding: 16px 20px;
  margin: 12px 0;
  background-color: var(--accent);
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1.15em;
  color: var(--text1);
}


.toc-list li:hover {
  background-color: var(--card);
  color: #000000;
  transform: translatey(5px);
}

.toc-list li a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ==========================
   aboutpipes 區塊
========================== */
.aboutpipes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 60px 20px;
  align-items: center;
  background-color: var(--bg-light);
  color: var(--text2);
  font-size: 45px;
  margin:0;

}

.aboutpipes img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  max-height: auto;
}

.aboutpipes p {
  font-size: 20px;
}


/* ==========================
   before after 區塊
========================== */
.before-after {
  background-color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.before-after h2 {
  font-size: 50px;
  margin-bottom: 20px;
  color: var(--text2);
}

.comparison {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 40px;
  align-items: start;
}



.comparison h3 {
  color: var(--orange);
  letter-spacing: 15px;
  padding: 10px 15px;
  font-size: 36px;
}

.compare-img img {
  width: 100%;
  border-radius: 3px;
  object-fit: cover;
  max-height: auto;
}

.comparison p {
  font-size: 20px;
  color: #2e2e2e;
  padding-bottom: 40px;
}

/* Responsive */
@media (max-width: 768px) {
  .comparison {
    grid-template-columns: 1fr;
  }
}




/* ==========================
  policies 區塊
========================== */
.user-connection {
  padding: 30px 20px;
  background: var(--BG);
  text-align: center;
}

.user-connection h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: var(--TEXT1);
}

.user-connection p {
  max-width: 900px;
  margin: 0 auto 40px auto;
  font-size: 1.03em;
  line-height: 1.8;
  color: #d3d3d3;
}

.tables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.table-box {
  background: #000000;
  padding: 20px;
  border-radius: 12px;
}

.table-box h3 {
  color: var(--orange);
  margin-bottom: 16px;
  font-size: 24px;
  letter-spacing: 2px;
  padding-bottom: 10px;
}

.table-box table {
  width: 100%;
  border-collapse: collapse;
}

.table-box th,
.table-box td {
  border: 1px solid #ffffff;
  padding: 12px;
  text-align: left;
}

.table-box th {
  background: #555;
  color: #fff;
  font-weight: 600;
}

.table-box td {
  background: #000000;
}

/* Responsive */
@media (max-width: 768px) {
  .tables {
    grid-template-columns: 1fr;
  }
}

/* ==========================
   社區說明會 區塊
========================== */
.community-meeting {
    text-align: center;
    padding: 40px 0;
    background-color: #000000;
}
.community-meeting h2 {
    font-size: 60px;
    margin-bottom: 30px;
    color: #ffffff;
}
.community-meeting p {
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.8;
    color: #c4c4c4;
}
.community-meeting .meeting-photo img {
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
}

/* Slider for community meeting */
.community-slider {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: transparent; /* transparent per request */
}
.community-slider .slides {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* responsive height based on width */
}
.community-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 600ms ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}
.community-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.community-slider .slide.active {
  opacity: 1;
}
/* slider-controls (initial rules removed to avoid duplication) */
/* .slider-caption removed (unused) */


.community-section {
 display:flex;
  position: relative;
  background: transparent;
  align-items: flex-start;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0 20px 30px 20px;

}


.custom-section .columns {
  display: flex;
  gap: 28px;
  align-items: stretch;
  margin: 0 auto;
}
.custom-section .left-column {
  flex: 0 0 36%;
}
.custom-section .right-column {
  flex: 1 1 64%;
}



.community-intro h2 {
  font-size: 65px;
  margin-bottom: 30px;
  margin-top: 70px;
  font-weight: bold;
  margin-left: 40px;
  color: #000000;
  border-bottom: 10px solid var(--orange);
} 

.community-intro p {
  margin-top: 0px;
  font-size: 0.97em;
  color: #000000;
  max-width:100%;
}

/* Make left and right columns share the same height and fill view */
.custom-section {
  max-width: 1100px; /* contain and center the columns */
  margin: 0 auto;
  padding: 18px 20px; /* add breathing room from page edge */
}
.custom-section .columns {
  display: flex;
  gap: 28px; /* larger gutter between columns */
  align-items: stretch;
  margin: 0 auto;
}
.custom-section .left-column {
  flex: 0 0 36%; /* left column slightly smaller */
  padding-right: 8px;
}
.custom-section .right-column {
  flex: 1 1 64%; /* right column takes remaining space */
  padding-left: 8px;
}
.custom-section .left-column img,
.community-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Responsive: stack columns on small screens */
@media (max-width: 768px) {
  .custom-section .columns {
    flex-direction: column;
  }
  .community-slider .slides {
    aspect-ratio: 4 / 3;
  }
  .custom-section .left-column,
  .custom-section .right-column {
    flex: 1 1 auto;
  }
}

/* --- FIXED slider controls layout --- */
.community-slider {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: transparent;
}

.community-slider .slides {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

/* This wraps all three buttons (← ▶ →) */
.slider-controls {
  position: relative;
  margin-top:30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex; /* horizontal layout */
  align-items: center;
  justify-content: center;
  gap: 30px; /* horizontal spacing between buttons */
  z-index: 10;
}

/* Each individual button */
.slider-controls button {
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 3px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

/* Hover effect */
.slider-controls button:hover {
  background: rgba(255, 165, 0, 0.8);
}


.community-slider .slides {
  height: 100%;
}

/* optional: smaller on mobile */
@media (max-width: 768px) {
  .slider-controls {
    gap: 18px;
    bottom: 10px;
  }
  .slider-controls button {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}





/* ==========================
   Benefits 區塊
========================== */

.benefits {
  padding: 60px 20px;
  background: var(--bg-light);
  text-align: center;
}

.benefits h2 {
  align-items: center;
  padding-bottom: 30px;
  color: #000000;
  font-size: 65px;
  letter-spacing: 5px;
}

.benefit p {
  color: #3f3f3f;
  font-size: 18px;
}

.benefits h3 {
  color: #ed7b2a;
  font-size: 2.2em;

}

.switch-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  padding: 20px;
  max-width: 2000px;
  margin: auto;
}

.switch-text h3 {
  color: var(--orange);
  font-size: 2.2em;
  margin-bottom: 20px;
}

.switch-text p {
  font-size: 1.1em;
  line-height: 1.8;
  color: #3f3f3f;
}

.switch-gallery {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: flex-start;
}




.two-images img {
  width: 100%;
  max-width: 2000px;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.image-box {
  text-align: center;
}

.img-label {
  margin-top: 8px;
  font-size: 16px;
  color: #555;
}


/* Responsive */
@media (max-width: 768px) {
  .switch-section {
    grid-template-columns: 1fr;  /* keep text on top, images below */
  }

  .switch-gallery {
    flex-direction: column;      /* images stack vertically on small screens */
    gap: 15px;
  }

  .two-images img {
    width: 85%;                  /* slightly larger for mobile */
    max-width: 260px;
  }
}


/* Save Costs Section */
/* Save Costs Section */
.save-costs {
  padding: 40px 40px;

}

.save-costs h4 {
  text-align: center;
  color: var(--text2);
  font-size: 20px;
}

.reason {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 20px;
}

.reason-text h5 {
  font-size: 35px;
  padding: 5px;
  color: #a63535;
}

.reason-text p {
  font-size: 18px;
  line-height: 1.6;
  padding-bottom: 20px;
  color: #3f3f3f;
}

.reason-image img {
  width: 100%;
  border-radius: 4px;
}



.highlight {
  text-align: center;
  font-size: 22px;
  color: #a63535;
  font-weight: 600;
}

@media(max-width: 768px) {
  .reason {
    grid-template-columns: 1fr;
  }
}

/* Added Value Section */
.added-value {
  padding: 60px 20px;
  background: #fff;
  text-align: center;
}

.added-value h2 {
  color: var(--accent);
  margin-bottom: 16px;
}

.added-value .intro {
 font-size: 18px;
  line-height: 1.6;
  padding-bottom: 20px;
  color: #3f3f3f;
}

.value-picture-section {
  display: grid;
  grid-template-columns: 0.8fr 1fr 0.9fr;
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: center;
}

.value-picture-section img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.value-left-column img {
  height: 100%;
}

.value-middle-column {
  display: grid;
  grid-template-rows: 1fr 0.8fr;
  gap: 15px;
}

.value-right-column img {
  height: 100%;
}

/* Optional: make sure all columns align in height */
.value-picture-section {
  height: 600px;
  /* adjust depending on your design */
}

.value-left-column img,
.value-right-column img {
  height: auto;
  object-fit: cover;
}

.value-middle-column img {
  height: 100%;
  object-fit: cover;
}
.reference-note
{
  font-size: 18px;
  color: #777;
  margin-top: 10px;
}

/* ==========================
   Stats 區塊
========================== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  padding: 20px;
  background: var(--bg);
  text-align: center;
  color: var(--text1);
  font-size: 18px;
  width: 100%;
  /* Full viewport width */
  margin: 0;
  /* Remove default margin */
  box-sizing: border-box;
  /* Include padding inside width */
}

.stat h2 {
  color: var(--orange);
  font-size: 30px;
  margin-bottom: 10px;
  text-decoration: solid;

}


/* ==========================
   cost money 區塊
========================== */
.money {
  padding: 50px 20px;
  margin:40px;
  background: #000000;
  text-align: center;}



.money h2 {
  color: var(--text1);
  letter-spacing: 5px;
  font-size: 56px;
}

.money p{
  font-size: 18px;
  line-height: 1.6;
  padding-bottom: 50px;
  color: #cecece;
}

/* Dropdown container */
.dropdown-section {
  max-width: 1000px;
  margin: 0 auto;
  padding:10px;
  text-align: left;
  color: var(--text2);
}

/* Dropdown container */
.dropdown-section {
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

/* Each details block */
.dropdown-section details {
  background-color: #f5f5f5;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

/* summary header styling */
.dropdown-section summary {
  cursor: pointer;
  padding: 18px 24px;
  font-size: 1.3em;
  font-weight: bold;
  color: #222;
  list-style: none;
  position: relative;
  background-color: #ffffff;
  border-left: 8px solid var(--orange, #ff9900);
  transition: background 0.3s ease;
}

/* remove default arrow and add custom one */
.dropdown-section summary::marker {
  content: "";
}
.dropdown-section summary::after {
  content: "＋";
  position: absolute;
  right: 24px;
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

/* when open, rotate arrow */
.dropdown-section details[open] summary::after {
  content: "－";
  transform: rotate(180deg);
}

/* content inside dropdown */
.dropdown-section .paycost {
  padding: 25px 35px 35px;
  background-color: #fafafa;
  border-top: 1px solid #ddd;
}

.dropdown-section .paycost h3 {
  font-size: 1.7em;
  margin-bottom: 20px;
  color: #000;
  font-weight: bold;
}

.dropdown-section .paycost h4 {
  font-size: 1.3em;
  color: #333;
  margin-top: 20px;
  margin-bottom: 10px;
  padding:10px;
}

.dropdown-section .paycost p {
  font-size: 0.98em;
  color: #333;
  line-height: 1.7;
}


.paycost{
  background: var(--bg-light);
  padding: 10px 15px;
  border-radius: 12px;
  gap:20px

}
.paycost h3 {
  color: var(--text2);
  letter-spacing: 5px;
  font-size: 36px;
  display: inline-block; 
  text-align: center;
  border-bottom: 7px solid var(--orange);
  
}

.paycost h4 {
  color: var(--text1);
  letter-spacing: 2px;
  font-size: 30px;
  text-align: center;
  margin-top:5px;
  background-color: #ed7b2a;
  padding:5px;
  border-radius: 16px;

}

.layers {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 15px;
  align-items: start;
}

.layers p {
  font-size: 18px;
  padding-bottom: 20px;
  color: #080808;
  margin-left: 53px;
}

.layers strong{
  color: #c02c2c;
  font-size: 24px;

}

.money-img img {
  width: 90%;
  border-radius: 3px;
  max-height: auto;
}

.layers img{
  width: 90%;
  border-radius: 3px;
  max-height: auto;
}

.uperlayer img{
  padding-top:40px;
  margin-left: 10px;
}

.uperlayerextra img{
  padding-top:10px;
  margin-left: 70px;
}

.bank p{
  font-size: 24px;
  padding-bottom: 20px;
  color: #080808;
}

.bank strong{
    color: #c02c2c;
    line-height: 5px;

}

/* ==========================
   Q&A 區塊
========================== */
.qa {
  background: #000000;
  padding: 20px;
  padding-bottom: 0; /* 把底部空白去掉 */
}


.qa details {
  padding: 20px 15px;
  color:#e7e7e7;
}

.qa summary {
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  outline: none;
}
.qa h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #f9f9f9;
}

.qa-item p{
color:#f9f9f9;
      line-height: 30px;

  }

  .qa-item li{
    color:#b7d5ff;
      margin-left:30px;
      padding:3px;
      font-size: 18px;
      line-height: 40px;
      font-weight: bolder;

  }

.qa-item strong{
color:#e43333;
}

/* ==========================
   Contact 區塊
========================== */
.contact {
  padding: 60px 20px;
  text-align: center;
}

.contact h2 {
  margin-bottom: 20px;
  color: var(--accent);
}

/* ==========================
   Footer
========================== */
/* Footer 基本樣式 */
.footer {
  background-color: #fff;
  color: #555;
  padding: 30px 20px;
  font-family: "Noto Sans TC", sans-serif;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  margin-top: 0;

}



/* Footer container */
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch; /* 讓各欄高度一致 */
  gap: 20px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 30px;
}
#footer-placeholder {
  margin-top: 0;
}


/* 每個欄位 */
.footer-column {
  display: flex;
  flex-direction: column;
  min-width: 150px;
  flex: 1; /* 預設比例 */
}

/* Logo 特別欄位 */
.footer-column:first-child {
  flex: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* 垂直置中 */
}

.footer-logo {
  width: 320px;
  height: auto;
  margin-bottom: 12px;
}

/* 標題統一高度 */
.footer-column h4 {
  color: #333;
  font-size: 1.1em;
  margin-bottom: 12px;
  letter-spacing: 1px;
  padding-left: 12px; /* 留空間給橙線 */
  position: relative;
  display: inline-block; /* 讓高度跟文字一致 */
}

.footer-column h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;       /* 線的寬度 */
  height: 100%;     /* 線剛好跟文字高度一致 */
  background-color: #f39c12;
}


/* 項目列表 */
.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px; /* 每個 li 的間距 */
}

.footer-column li {
  margin: 0;
}

.footer-column a {
  color: #555;
  text-decoration: none;
  transition: color 0.3s, transform 0.2s;
}

.footer-column a:hover {
  color: #f39c12;
  transform: translateX(2px);
}

/* 各欄比例 */
.footer-column:nth-child(1) { flex: 2.3; } /* logo */
.footer-column:nth-child(2) { flex: 1; } /* about */
.footer-column:nth-child(3) { flex: 1; } /* records */
.footer-column:nth-child(4) { flex: 1; } /* awards */
.footer-column:nth-child(5) { flex: 1; } /* employment */
.footer-column:nth-child(6) { flex: 1; } /* contact */

/* Footer 底部文字 */
.footer-bottom {
  text-align: center;
  margin-top: 25px;
  color: #888;
  font-size: 0.9em;
}

/* 手機 / 小螢幕版 */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column; /* 改成上下堆疊 */
    align-items: flex-start; /* 標題靠左 */
    gap: 20px;
  }

  .footer-column:first-child {
    align-items: center; /* logo 置中 */
  }

  .footer-column {
    min-width: 100%; /* 讓每個 column 撐滿寬度 */
  }

  .footer-column h4 {
    border-left-width: 3px; /* 橙色線維持 */
    padding-left: 8px;
  }
}


/* ==========================
   Responsive
========================== */
@media(max-width:768px) {
  .aboutpipes {
    grid-template-columns: 1fr;
  }
}


/* ---------- Taipower project section ---------- */

/* 台電工程 Section Styles */
.tp-section { 
  background: var(--bg);
  color: var(--text1);
  padding: 100px 0 48px; /* top: 100px, bottom: 48px */
  font-family: "Noto Sans TC", "Helvetica Neue", Arial, sans-serif;
}

/* Container */
.tp-section .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
    margin:120px auto;

}

/* Header */
.tp-header {
  text-align: center;
  margin-bottom: 40px;
}

.tp-header h2 {
  font-size: 60px;
  margin: 0 0 8px;
  color: var(--orange);
  position: relative;
  display: inline-block;
}

.tp-header h2:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
}

.tp-header .lead {
  margin: 20px 0 0;
  color: var(--card);
  font-size: 15px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Cards Grid */
.tp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  justify-items: stretch; /* ensures all cards are same width */
  align-items: start;     /* top-align cards in a row */
  margin-bottom: 40px;
}

/* Card Styles */
.tp-card {
  background: var(--card);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(12, 34, 60, 0.06);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%; /* ensures all cards stretch equally */
}

.tp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(12, 34, 60, 0.1);
}

.tp-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--text2);
}

.tp-card p {
  margin: 0;
  font-size: 14px;
  color: var(--accent);
  line-height: 1.5;
}

/* Responsive for small screens */
@media (max-width: 600px) {
  .tp-cards {
    grid-template-columns: 1fr; /* one card per row on mobile */
  }
}


/* Construction Methods (Bright Section) */
.container{
   width: 60%;
  max-width: 580px;
  margin: 0 auto;
    margin:120px auto;
}

.construction-methods {
  background: var(--bg-light);
  padding: 5px;
  border-radius: 10px;
  margin-bottom: 20px;

}

.method-section {
  margin-bottom: 30px;
  text-align: center; /* 讓 inline-block 子元素置中 */
  padding-top:70px;
}

.method-section h3 {
  background: #000;
  color: #fff;
  text-align: center;
  font-size: 40px;
  font-weight: 600;
  padding: 3px;
  border-radius: 8px;
  margin-bottom: 2px;
  display: inline-block; /* 保持黑色框只包住文字 */
}

.method-section p {
  background: #000;
  color: #e6e6e6;
  text-align: center;
  font-size: 16px;
  font-weight: 300;
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 30px;
  display: block; /* 段落保持全寬 */
}



.method-img {
  width: 100%;
  max-width: 800px;
  display: block;
  margin: 0 auto;
}
.photo-row {
  display: flex;              /* places columns side by side */
  justify-content: center;    /* centers them horizontally */
    align-items: center;      /* vertical centering */

  gap: 50px;                  /* space between pictures */
  margin: 20px 0;
}


.photo-column img {
  width: 100%;
}

.photo-row {
  display: flex;
  gap: 10px; /* space between columns */
}

.left-column {
  flex: 5;  /* left column takes 2 parts */
    max-width: 600px;           /* limit size */
    height: 400px;

}

.right-column {
  flex: 1;  /* right column takes 1 part */
    max-width: 500px;           /* limit size */

}

.photo-column img {
  width: 100%;
  display: block;
  border-radius: 8px; /* optional */
}

@media (max-width: 768px) {
  .photo-row {
    flex-direction: column;
    align-items: center;
  }
}




/*.construction-steps {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 20px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 220px;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  padding: 16px;
  transition: transform 0.3s ease;
  display: flex; 
  flex-direction: column; 
}

.step:hover {
  transform: translateY(-5px);
}

.step img {
  width: 100%;
  height: 140px; 
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  flex-shrink: 0; 
}

.step h3 {
  margin-bottom: 6px;
  color: #ed7b2a;
}

.step p {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}*/


/* Gallery (Bright Section) */
.tp-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 18px;
  margin-bottom: 26px;
}

.tp-gallery figure {
  margin: 0;
  background: var(--card);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 12px rgba(3, 27, 45, 0.05);
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
}

.tp-gallery figure:hover {
  transform: scale(1.02);
}

.tp-gallery img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.tp-gallery figcaption {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--accent);
}

/* Micro-method Step Strip (Dark Section) */
.tp-micro {
  margin-top: 18px;
  background: var(--bg-light);
  color: var(--text2);
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-align: center;
}

.tp-micro h3 {
  margin: 0 0 10px;
  font-size: 32px;
  padding: 10px;
}

.tp-steps {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.tp-steps .step {
  min-width: 140px;
  text-align: center;
  background: var(--card);
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 4px 10px rgba(12,34,60,0.04);
  border: 1px solid var(--border);
  transition: transform 0.2s ease;
}

.tp-steps .step:hover {
  transform: translateY(-2px);
}

.tp-steps .step img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  border: 1px solid var(--border);
}

.tp-steps .step p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--accent);
}

/* Footer CTA */
.tp-footer {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px;
  background: var(--card);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.tp-footer p {
  margin: 0;
  color: var(--accent);
  font-size: 14px;
  flex: 1 1 auto;
}

.btn {
  display: inline-block;
  background: var(--orange);
  color: var(--text1);
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(237,123,42,0.18);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.btn:hover {
  background: #e06a1a;
  box-shadow: 0 8px 20px rgba(237,123,42,0.25);
  transform: translateY(-2px);
}

/* Responsive Tweaks */
@media (max-width: 720px) {
  .tp-gallery img { 
    height: 120px; 
  }
  
  .tp-steps .step img { 
    height: 72px; 
  }
  
  .tp-header h2 { 
    font-size: 22px; 
  }
  
  .tp-footer {
    flex-direction: column;
    text-align: center;
  }
  
  .method-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .tp-steps {
    flex-direction: column;
  }
  
  .tp-steps .step {
    min-width: auto;
  }
  
  .method-steps {
    grid-template-columns: 1fr;
  }
}
/* Make images fit their container and not overflow */
.tp-card img,
.method-images img,
.tp-gallery img,
.tp-steps .step img,
.tp-micro img {
  width: 100%;
  height: auto; /* maintain aspect ratio */
  object-fit: cover; /* crops the image nicely if container aspect differs */
  border-radius: 6px;
  display: block;
  max-height: 220px; /* optional: limits overly tall images */
}

/* For galleries with fixed height */
.tp-gallery img {
  height: 180px; /* consistent height for all gallery images */
  object-fit: cover; /* keeps image centered and cropped nicely */
}

/* Method images */
.method-images img {
  max-width: 100%;
  height: auto;
}

/* Micro-method step images */
.tp-steps .step img {
  width: 100%;
  height: 90px; /* keep previous size */
  object-fit: cover;
}

.micro-img {
  width: 100%;        /* make it take full container width */
  max-width: 800px;   /* optional: limit maximum size */
  height: auto;       /* maintain aspect ratio */
  display: block;     /* remove inline spacing issues */
  margin: 0 auto;     /* center horizontally */
  border-radius: 8px; /* optional: match your card style */
}


/* Accordion Hidden by Default */
.method-content {
  display: none;
  background: var(--bg-light);
  color: var(--text2);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border: 1px solid var(--border);
}

.method-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Add subtle text & structure inside white box */
.construction-methods p {
  font-size: 15px;
  color: #333;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 20px;
  line-height: 1.8;
}

/* Make tp-cards look clickable */
.tp-card {
  cursor: pointer;
  position: relative;
}



.tp-card:hover::after {
  transform: translateY(2px);
}

/* Horizontal Navigation Buttons (目錄) */
    .tp-nav {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 40px;
    }

    .tp-nav-btn {
      flex: 1; /* equal width */
      text-align: center;
      background: var(--card);
      color: rgb(27, 27, 27);
      padding: 16px 0;
      font-size: 18px;
      font-weight: 600;
      border-radius: 8px;
      text-decoration: none;
      transition: all 0.3s ease;
      box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    }

    .tp-nav-btn:hover {
      background: #000;
      color: #fff;
      transform: translateY(-3px);
    }


    /* ==========================
   全站手機版優化（推薦）
========================== */
@media (max-width: 768px) {

  /* 全站文字縮小一點 */
  h1 { font-size: 32px !important; }
  h2 { font-size: 28px !important; }
  h3 { font-size: 22px !important; }
  h4 { font-size: 18px !important; }
  p  { font-size: 16px !important; }

/* Hero Section */
.sewage {
    height: 100vh;               /* fill the screen vertically */
    display: flex;
    flex-direction: column;      
    justify-content: center;     /* space content vertically */
    align-items: center;         /* center horizontally */
    text-align: center;
    position: relative;
    background: #f5f5f5;         
    gap: 40px;                   /* bigger space between h1 and p */
    padding: 0 20px;
    margin: 0;                   /* remove margin-top */
}


.sewage h1 {
    font-size: 3rem;
    margin: 0;
}

.sewage p {
    font-size: 1.2rem;
    margin: 0;
}

/* Optional overlay */
.sewage .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

.sewage-content {
    position: relative;
    z-index: 2;
}


/* TOC */
.toc-container {
    margin: 60px auto 120px;
    text-align: center;
}

.toc-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
    list-style: none;
}

.toc-list li a {
    text-decoration: none;
    font-size: 1rem;
    color: #000;
}


  /* aboutpipes 兩欄 → 一欄 */
  .aboutpipes {
    grid-template-columns: 1fr;
    font-size: 28px;
    padding: 30px 20px;
  }
  .aboutpipes p {
    font-size: 16px;
  }

  /* before-after */
  .before-after h2 { font-size: 32px; }
  .comparison {
    grid-template-columns: 1fr;
  }
  .comparison h3 { font-size: 26px; letter-spacing: 5px; }

  /* policies 區塊 */
  .tables {
    grid-template-columns: 1fr;
  }

  /* 社區說明會 */
  .community-meeting h2 { font-size: 36px; }
  .community-meeting p { font-size: 16px; }

  .custom-section .columns {
    flex-direction: column;
  }

  .slider-controls {
    gap: 16px;
  }
  .slider-controls button {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  /* benefits 區塊 */
  .benefits h2 { font-size: 38px; }

  .switch-section {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .gallery-container {
    height: 220px;
  }

  /* Save-costs 區塊 */
  .reason {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .reason-text h5 { font-size: 24px; }
  .reason-text p { font-size: 16px; }

  /* added value 區塊 */
  .value-picture-section {
    grid-template-columns: 1fr;
    height: auto;
  }

  /* stats 區塊 */
  .stats {
    grid-template-columns: 1fr 1fr;
    font-size: 14px;
  }

  /* money 區塊 */
  .money h2 { font-size: 36px; }
  .money p { font-size: 16px; }

  .layers {
    grid-template-columns: 1fr;
  }
  .layers p {
    margin-left: 0;
  }

  .money-img img,
  .layers img {
    width: 100%;
  }
}
