/* ========================================
   Sub-page shared styles
   ======================================== */

.page-hero {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, #faf8f0 0%, #f2e16d33 100%);
  text-align: center;
  margin-top: 80px;
}

.page-hero .hero-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: #2d2d2d;
  text-shadow: none;
  margin-bottom: 12px;
}

.page-hero .hero-subtitle {
  font-size: 1.1rem;
  color: #555;
  font-weight: 400;
}

.breadcrumb {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 16px;
}

.breadcrumb a {
  color: #d4c34a;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.content-section {
  padding: 60px 0;
}

.content-section:nth-child(even) {
  background: #faf8f0;
}

.content-section h2 {
  font-family: 'Playfair Display', 'Noto Sans TC', serif;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.content-section h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.content-section p {
  color: #555;
  line-height: 2;
  margin-bottom: 16px;
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: #555;
  line-height: 1.8;
}

.check-list li::before {
  content: '\2714';
  position: absolute;
  left: 0;
  color: #d4c34a;
  font-weight: bold;
}

.age-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.age-card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s;
}

.age-card:hover {
  transform: translateY(-4px);
}

.age-card h3 {
  color: #2d2d2d;
  margin-bottom: 16px;
}

.age-card .card-link {
  display: inline-block;
  margin-top: 16px;
  color: #d4c34a;
  font-weight: 600;
}

.age-card .card-link:hover {
  color: #b8a630;
}

.training-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 32px;
}

.training-card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.training-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: #2d2d2d;
}

.cta-banner {
  background: linear-gradient(135deg, #f2e16d 0%, #e8d44d 100%);
  padding: 60px 0;
  text-align: center;
}

.cta-banner h2 {
  font-family: 'Playfair Display', 'Noto Sans TC', serif;
  font-size: 2rem;
  margin-bottom: 16px;
  color: #2d2d2d;
}

.cta-banner p {
  color: #555;
  margin-bottom: 24px;
}

.cta-banner .btn {
  background: #2d2d2d;
  color: white;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s;
}

.cta-banner .btn:hover {
  background: #444;
  transform: scale(1.05);
}

.faq-page-section {
  padding: 60px 0;
  background: #fff;
}

.faq-page-section h2 {
  font-family: 'Playfair Display', 'Noto Sans TC', serif;
  font-size: 1.8rem;
  margin-bottom: 32px;
  text-align: center;
}

.intro-text {
  max-width: 800px;
  margin: 0 auto;
}

.age-card ul {
  padding-left: 20px;
  list-style: disc;
}

.age-card ul li {
  color: #555;
  line-height: 2;
  font-size: 0.95rem;
}

.training-card p {
  color: #555;
  line-height: 1.9;
  font-size: 0.95rem;
}

.situation-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 32px;
}

.situation-item {
  background: white;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.situation-item .situation-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.situation-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #2d2d2d;
}

.situation-item p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.8;
}

/* --- Ability Grid (numbered items) --- */
.ability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.ability-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s;
}

.ability-item:hover {
  transform: translateY(-3px);
}

.ability-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f2e16d 0%, #d4c34a 100%);
  color: #2d2d2d;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ability-item h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: #2d2d2d;
}

.ability-item p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 0;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 40px auto 0;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #f2e16d, #d4c34a);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d4c34a;
  border: 3px solid #faf8f0;
  box-shadow: 0 0 0 2px #d4c34a;
}

.timeline-item h3 {
  font-size: 1.1rem;
  color: #2d2d2d;
  margin-bottom: 4px;
}

.timeline-item p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 0;
}

/* --- Warning Box --- */
.warning-box {
  background: #fff3e0;
  border-left: 4px solid #ff9800;
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin-top: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.warning-box p {
  color: #6d4c00;
  font-weight: 500;
  margin-bottom: 0;
  line-height: 1.8;
}

.warning-box strong {
  color: #e65100;
}

/* --- Test Cards --- */
.test-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.test-card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border-top: 4px solid #f2e16d;
  transition: transform 0.3s;
}

.test-card:hover {
  transform: translateY(-3px);
}

.test-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: #2d2d2d;
}

.test-card p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.9;
  margin-bottom: 0;
}

/* --- Parent Tips Cards --- */
.parent-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.parent-tip-card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s;
}

.parent-tip-card:hover {
  transform: translateY(-3px);
}

.parent-tip-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.parent-tip-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #2d2d2d;
}

.parent-tip-card p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.9;
  margin-bottom: 0;
}

/* --- X-leg Info Box --- */
.info-box {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  max-width: 800px;
  margin: 0 auto;
}

.info-box h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: #2d2d2d;
}

.info-box p {
  font-size: 0.95rem;
  color: #555;
  line-height: 2;
  margin-bottom: 12px;
}

.info-box p:last-child {
  margin-bottom: 0;
}

/* --- FAQ answer list --- */
.faq-answer ul {
  padding-left: 20px;
  list-style: disc;
  margin-bottom: 12px;
}

.faq-answer ul li {
  color: #555;
  line-height: 2;
  font-size: 0.95rem;
}

/* ========================================
   Services Page - Service Cards
   ======================================== */

.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 32px;
}

.service-card {
  background: white;
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: #d4c34a;
}

.service-card-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #2d2d2d;
}

.service-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 2;
  flex: 1;
}

.service-card .card-link {
  display: inline-block;
  margin-top: 20px;
  color: #d4c34a;
  font-weight: 600;
  transition: color 0.3s;
}

.service-card .card-link:hover {
  color: #b8a630;
}

/* ========================================
   FAQ Page - Category Sections
   ======================================== */

.faq-section-alt {
  background: #faf8f0;
}

.faq-line-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* ========================================
   Booking Page - Steps
   ======================================== */

.booking-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.booking-step {
  text-align: center;
  padding: 32px 24px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f2e16d 0%, #d4c34a 100%);
  color: #2d2d2d;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.booking-step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #2d2d2d;
}

.booking-step p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.8;
}

/* ========================================
   Booking Page - Store Cards with Maps
   ======================================== */

.booking-store-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
}

.booking-store-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s;
}

.booking-store-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.booking-store-info {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.booking-store-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #2d2d2d;
}

.booking-store-detail {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
}

.detail-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #d4c34a;
}

.booking-store-detail p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.8;
  margin: 0;
}

.booking-store-detail small {
  color: #888;
}

.booking-store-map {
  min-height: 300px;
}

.booking-store-map iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* ========================================
   Booking Page - Pricing Grid
   ======================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.pricing-card {
  background: white;
  border-radius: 20px;
  padding: 36px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card-highlight {
  border: 2px solid #f2e16d;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f2e16d 0%, #d4c34a 100%);
  color: #2d2d2d;
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #2d2d2d;
}

.pricing-amount {
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.pricing-currency {
  font-size: 1.2rem;
  font-weight: 700;
  color: #d4c34a;
}

.pricing-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2d2d2d;
  line-height: 1;
}

.pricing-unit {
  font-size: 0.9rem;
  color: #888;
  margin-left: 4px;
}

.pricing-card > p {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.6;
}

.pricing-notes {
  text-align: center;
  margin-top: 32px;
  padding: 24px;
  background: white;
  border-radius: 16px;
}

.pricing-notes p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 8px;
  line-height: 1.8;
}

.pricing-notes p:last-child {
  margin-bottom: 0;
}

/* ========================================
   Photo Sections
   ======================================== */

/* --- Photo Gallery Carousel --- */
.gallery-carousel {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.gallery-carousel .carousel-viewport {
  overflow: hidden;
  border-radius: 12px;
}

.gallery-carousel .carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-carousel .carousel-slide {
  min-width: 33.333%;
  padding: 0 6px;
  flex-shrink: 0;
}

.gallery-carousel .carousel-slide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* --- Sub-page Photos (fixed proportions) --- */
.page-photo {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  margin: 24px 0;
}

.page-photo img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.photo-grid .page-photo {
  margin: 0;
}

.photo-grid .page-photo img {
  height: 200px;
}

.photo-caption {
  text-align: center;
  font-size: 0.8rem;
  color: #999;
  margin-top: 6px;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
  .page-hero {
    padding: 100px 0 40px;
    margin-top: 64px;
  }

  .age-cards,
  .training-cards,
  .situation-list {
    grid-template-columns: 1fr;
  }

  .ability-grid,
  .test-cards,
  .parent-tips-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 32px;
  }

  .timeline::before {
    left: 11px;
  }

  .timeline-dot {
    left: -29px;
  }

  .info-box {
    padding: 28px 24px;
  }

  .service-cards {
    grid-template-columns: 1fr;
  }

  .booking-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .booking-store-card {
    grid-template-columns: 1fr;
  }

  .booking-store-map {
    min-height: 250px;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .gallery-carousel .carousel-slide {
    min-width: 100%;
  }
  .gallery-carousel .carousel-slide img {
    height: 200px;
  }
  .photo-grid {
    grid-template-columns: 1fr;
  }
  .page-photo img {
    height: 200px;
  }
  .photo-grid .page-photo img {
    height: 180px;
  }

  .faq-line-links {
    flex-direction: column;
  }
}

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

  .pricing-number {
    font-size: 1.8rem;
  }
}
