:root {
  --primary: #5ab95a;      
  --accent: #f4a261;       
  --secondary: #4a90e2;    
  --warm: #fff8e8;         
  --text: #2d3748;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

h2 { 
  color: #556B2F; 
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================= */
/* HEADER & NAVIGATION                       */
/* ========================================= */

header {
  background: #556B2F;
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
  display: flex;
  justify-content: space-between; 
  align-items: center; 
  gap: 25px; 
}

.logo-link {
  flex-shrink: 0; 
}

.main-logo {
  height: 120px; 
  width: auto;
  border-radius: 50%;
  display: block;
  transition: transform 0.3s ease;
}

.main-logo:hover {
  transform: scale(1.1);
}

.header-right {
  display: flex;
  flex-direction: column; 
  flex-grow: 1; 
  justify-content: center;
}

.title-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

header h1 {
  font-size: 1.5rem; 
  margin: 0;
  line-height: 1.3;
  text-align: left; 
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: flex-end; 
  margin-top: 15px; 
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 15px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

nav a:hover { 
  text-decoration: underline; 
}

.lang-select {
  padding: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
  background: white;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: white;
  transition: all 0.3s ease-in-out;
}

/* ========================================= */
/* HERO SECTION                              */
/* ========================================= */

.hero {
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.4)), 
              url('Gallery/bethl-blocks-503109_1920.jpg') center/cover no-repeat;
  text-align: center;
  padding: 140px 20px;  
  background-color: #556B2F;  
}

.hero h2 {
  font-size: 3.2rem;
  margin-bottom: 1.2rem;
  color: #F4A261; 
  -webkit-text-stroke: 0;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
}

.hero p {
  font-size: 1.4rem; 
  color: #ffffff; 
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8); 
  font-weight: 400;
  margin-bottom: 1.5rem; 
  letter-spacing: 0.5px;
}

.license {
  font-size: 1.1rem; 
  font-style: normal; 
  font-weight: 300; 
  color: var(--warm); 
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8); 
  margin: 0.4rem 0;
  letter-spacing: 1px; 
}

/* ========================================= */
/* HERO SECTION BUTTON (Call to Action)      */
/* ========================================= */

.hero .btn {
  display: inline-block;
  margin-top: 1.5rem; 
  padding: 14px 36px;
  background-color: var(--accent); 
  color: #ffffff; 
  text-decoration: none; 
  font-size: 1.2rem;
  font-weight: 600; 
  border-radius: 30px; 
  letter-spacing: 0.5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4), 0 0 15px rgba(244, 162, 97, 0.4);
  transition: all 0.3s ease; 
}

.hero .btn:hover {
  background-color: #e76f51; 
  transform: translateY(-3px); 
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5), 0 0 20px rgba(231, 111, 81, 0.5);
}

/* ========================================= */
/* GENERAL SECTIONS                          */
/* ========================================= */

.alt-bg { 
  background: #f9f9f9; 
}

section {
  scroll-margin-top: 120px; 
  padding: 40px 20px; 
}

#about, #programs, #gallery, #rates, #contact {
  scroll-margin-top: 150px; 
}

/* ========================================= */
/* ABOUT JANE (Text Wrapping Setup)          */
/* ========================================= */

.about-wrapper {
  display: block !important; 
}

.about-image-wrap {
  float: left !important; 
  margin: 0 30px 20px 0; 
  width: 100%;
  max-width: 350px;
}

.about-img-responsive {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  object-fit: cover;
}

.about-text {
  line-height: 1.7;
}

.about-text h3 {
  margin: 2rem 0 1rem;
  color: var(--primary);
  font-size: 1.6rem;
}

.about-text ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.about-text ul li {
  margin-bottom: 0.9rem;
  padding-left: 2rem;
  position: relative;
}

.about-text ul li::before {
  content: "🌱";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.about-wrapper::after {
  content: "";
  display: table;
  clear: both;
}

/* ========================================= */
/* PROGRAMS & SCHEDULE                       */
/* ========================================= */

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.program-card {
  background: white;
  padding: 1.8rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
}

.schedule {
  width: 100%;
  max-width: 700px;
  margin: 2rem auto;
  border-collapse: collapse;
  font-size: 1rem;
}

.schedule th,
.schedule td {
  border: 1px solid #ddd;
  padding: 14px 16px; 
  text-align: left;
}

.schedule th {
  background: #f0f8f8; 
  font-weight: 600;
  color: #2d3748;
  text-align: center; 
}

.schedule td:first-child {
  font-weight: 500;
  width: 35%; 
  white-space: nowrap;
}

.schedule tr:nth-child(even) {
  background: #fafafa; 
}

/* ========================================= */
/* GALLERY                                   */
/* ========================================= */

#gallery h2 {
  margin-bottom: 40px; 
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px 20px; 
  align-items: start;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.gallery-item p {
  margin-bottom: 12px; 
  font-weight: 600;
  color: #556B2F;
  text-align: center;
  font-size: 1.1rem;
  min-height: 2.5em; 
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.gallery-item img {
  width: 100%;
  height: 200px; 
  object-fit: cover; 
  border-radius: 8px;
  display: block;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
}

/* ========================================= */
/* RATES                                     */
/* ========================================= */

.rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.rate-card {
  background: white;
  padding: 1.8rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
}

/* --- 新增：卡片內微型表格樣式 --- */
.card-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.card-table th, .card-table td {
  border: 1px solid #e0e0e0; 
  padding: 10px 5px;
  text-align: center;
  color: #333;
}

.card-table th {
  font-weight: 600;
  color: #556B2F; 
  background-color: #f9f9f9;
}

.card-table td:first-child {
  font-weight: 500;
  background-color: #f9f9f9;
  color: #556B2F;
}

.flex-center-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* --- 結束新增區塊 --- */

.rate-card .price {
  font-size: 1.9rem;
  color: #556B2F;  
  font-weight: 700;
  margin: 0.8rem 0;
}

.rate-card .small {
  font-size: 0.9rem;
  color: #777;
  margin-top: 0.5rem;
}

.rates-notes ul li {
  margin: 0.4rem 0;
  font-weight: 500;
}

/* ========================================= */
/* CONTACT SECTION                           */
/* ========================================= */

.contact-section { 
  background: var(--primary); 
  color: white; 
  text-align: center; 
}

.contact-section h2 { 
  color: white; 
}

.contact-box {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1); 
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-section .btn {
  background: var(--accent);
  padding: 15px 40px;
  font-size: 1.1rem;
  display: inline-block;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  transition: 0.3s;
}

.contact-section .btn:hover {
  background: #e76f51;
  transform: scale(1.05);
}

/* ========================================= */
/* FOOTER                                    */
/* ========================================= */

footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 2rem 0;
  font-size: 0.95rem;
}

footer a { 
  color: #4a90e2; 
  text-decoration: none; 
}

/* ========================================= */
/* MEDIA QUERIES (Mobile & Tablet)           */
/* ========================================= */

@media (max-width: 768px) {
  .header-content {
    gap: 15px; 
    position: relative; 
  }

  .main-logo {
    height: 70px; 
  }
  
  .header-right {
    position: static; 
  }

  .title-bar {
    justify-content: space-between; 
  }

  header h1 {
    font-size: 1rem;
  }

  .hamburger {
    display: block;
    margin-left: 10px;
  }

  .nav-container {
    display: none; 
    flex-direction: column;
    position: absolute;
    top: 100%; 
    left: 0;
    width: 100%;
    background-color: #556B2F; 
    padding: 20px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    gap: 15px;
    margin-top: 0; 
  }

  .nav-container.active {
    display: flex; 
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 15px;
  }

  .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.active .bar:nth-child(2) { opacity: 0; }
  .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero { 
    padding: 80px 20px; 
  }
  .hero h2 { 
    font-size: 2.4rem; 
  }

  .about-image-wrap {
    float: none !important;
    margin: 0 auto 20px auto;
    display: block !important;
    text-align: center;
  }
  .about-img-responsive {
    max-width: 380px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  header h1 {
    font-size: 1.2rem;
    max-width: 300px; 
  }
}