:root {
    --font-title: 'Noto Serif TC', serif;
    --font-body: 'Noto Sans TC', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: #050b12;
  color: #f5f1e8;
}

.nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: 76px;
  padding: 0 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(5, 10, 16, 0.92);
  border-bottom: 1px solid rgba(202, 164, 82, 0.25);
  z-index: 20;
}

.brand {
  color: #d8b45d;
  font-family: "DFKai-SB", var(--font-title);
  font-size: 30px;
  letter-spacing: 5px;
  font-weight: bold;
}

.nav a {
  color: #eee4cc;
  text-decoration: none;
  margin-left: 34px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
}

.nav .login {
  border: 1px solid #d8b45d;
  color: #d8b45d;
  padding: 10px 22px;
  border-radius: 8px;
}

.hero {
  min-height: auto;
  padding: 100px 24px 45px;
  text-align: center;
  background:
    linear-gradient(to bottom, rgba(5, 10, 16, 0.15), #050b12 150%),
    url("images/hero-bg.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero-logo {
  width: 280px;
  max-width: 72vw;
  margin-top: 10px;
  filter: drop-shadow(0 0 28px rgba(216, 180, 93, 0.35));
}

h1 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 84px;
  margin: 25px 0 20px;
  letter-spacing: 12px;
  color: #d8b45d;
}

.subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 24px;
  letter-spacing: 5px;
  color: #d8b45d;
  margin-bottom: 15px;
}

.hero-text {
  font-size: 20px;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #eee4cc;
}

.buttons {
  margin-top: 20px;
}

.buttons a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 8px 12px;
  padding: 14px 36px;
  border: 1px solid #d8b45d;
  color: #d8b45d;
  text-decoration: none;
  border-radius: 6px;
  font-size: 18px;
}

.buttons img {
    width: 22px;
    height: 22px;
}

.buttons i {
    font-size: 20px;
}

.buttons .primary {
  background: linear-gradient(135deg, #e0bd68, #a87b28);
  color: #081018;
  font-weight: bold;
}

.quote {
  margin-top: 28px;
  font-family: "DFKai-SB", var(--font-title);
  font-size: 28px;
  line-height: 1.8;
  letter-spacing: 3px;
  color: #d8b45d;
}

.philosophy {
  min-height: 520px;

  display: flex;
  align-items: center;

  padding-left: 24%;

  background: url("images/philosophy-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.philosophy div {
  width: 750px;
  max-width: 750px;
}

.philosophy h2 {
  font-family: "DFKai-SB", var(--font-title);
  color: #8a6429;
  font-size: 48px;
  letter-spacing: 5px;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2.5px solid rgba(83, 69, 50, 0.55);
}

.philosophy p {
  font-size: 20px;
  line-height: 2;
  color: #2e281f;
  margin: 0 0 12px;
  font-weight: 500;
}

.philosophy p.philosophy-quote {
  margin-top: 25px;
  font-family: "DFKai-SB", var(--font-title);
  font-size: 24px;
  font-weight: 590;
  color: #7a5721;
  line-height: 1.7;
  letter-spacing: 0.5px;
}

.master h2 {
  color: #d8b45d;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 56px;
  letter-spacing: 4px;
  margin-bottom: 28px;
}

.master {
  min-height: 520px;
  padding: 120px 10% 80px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;

  background:
    linear-gradient(to right, rgba(7, 16, 24, 0.05), rgba(7, 16, 24, 0.15)),
    url("images/master-bg.png");

  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;

  border-top: 1px solid rgba(216, 180, 93, 0.25);
  border-bottom: 1px solid rgba(216, 180, 93, 0.25);
}

.master-text {
  width: 45%;
  max-width: 720px;
}

.master-photo img {
  width: 100%;
  max-width: 380px;
  border-radius: 12px;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}

.master-text p {
  font-size: 20px;
  line-height: 2.2;
  color: #ddd4c2;
}

.service-news-wrapper {
  width: 100%;
  max-width: none;
  margin: 0;

  background:
    linear-gradient(rgba(5, 11, 18, 0.18), rgba(5, 11, 18, 0.28)),
    url("images/services-bg.png");

  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.services {
  padding: 42px 30px 70px;
  background: transparent;
  text-align: center;
}

.services h2 {
  font-family: "DFKai-SB", var(--font-title);
  color: #d8b45d;
  font-size: 42px;
  letter-spacing: 8px;
  margin: 0 0 36px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  max-width: 1160px;
  margin: 0 auto;
}

.card {
  min-height: 300px;
  padding: 30px 22px;
  border: 1px solid rgba(216, 180, 93, 0.7);
  border-radius: 8px;
  background: rgba(3, 12, 20, 0.62);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-icon {
  color: #d8b45d;
  font-size: 48px;
  margin-bottom: 22px;
}

.card h3 {
  font-family: var(--font-title);
  font-weight: 700;
  color: #d8b45d;
  font-size: 24px;
  margin: 0 0 18px;
}

.card p {
  color: #eee4cc;
  font-size: 16px;
  line-height: 1.45;
  margin: 6px 0;
}

.news {
  padding: 70px 10% 85px;
  text-align: center;
  background: transparent;
  border-top: 1px solid rgba(216, 180, 93, 0.35);
}

@media (max-width: 1200px) {
  .nav nav {
    display: none;
  }

  h1 {
    font-size: 48px;
    letter-spacing: 10px;
  }

  .subtitle {
    font-size: 18px;
  }

  .master {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.news h2 {
  font-family: var(--font-title);
  color: #d8b45d;
  font-size: 42px;
  letter-spacing: 4px;
}

.news p {
  font-family: var(--font-body);
  color: #ddd4c2;
  font-size: 18px;
  line-height: 2;
}

.social-buttons a {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin: 18px 12px 0;
    padding: 14px 34px;

    border: 1px solid #d8b45d;
    color: #d8b45d;
    text-decoration: none;
    border-radius: 6px;

    transition: all 0.3s ease;
}

.social-buttons a:hover {
    background: rgba(216, 180, 93, 0.15);
    transform: translateY(-2px);
}

.social-buttons i {
    font-size: 18px;
}

#contact.contact {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 70px 20px;

    background:
        linear-gradient(
            rgba(245,240,228,0.18),
            rgba(245,240,228,0.18)
        ),
        url("images/contact-bg.png");

    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
}

.services,
.news {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.nav {
  left: 0;
  right: 0;
  max-width: none;
  width: 100%;
}

.course-intro,
.course-content,
.student-achievement,
.testimonials {
  background: transparent;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.course-intro {
  max-width: none;
  width: 100%;
  min-height: 920px;

  padding: 240px 24px 90px;

  text-align: center;

  background:
    linear-gradient(
      rgba(5, 11, 18, 0.20),
      rgba(5, 11, 18, 0.42)
    ),
    url("images/courses-hero.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.course-logo-wrap {
  position: relative;
  display: inline-block;
  margin-top: -80px;
}

.course-logo-wrap::before {
  content: "";
  position: absolute;
  width: 650px;
  height: 650px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(
      circle,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.62) 42%,
      transparent 78%
    );
  filter: blur(45px);
  border-radius: 50%;
  z-index: 0;
}

.course-logo {
  position: relative;
  z-index: 1;
  width: 400px;
  filter: drop-shadow(0 0 38px rgba(216,180,93,.45));
}

.course-logo img{
    filter:drop-shadow(0 0 35px rgba(216,180,93,.35));
}

.course-intro h1 {
  font-family: "DFKai-SB", var(--font-title);
  color: #d8b45d;
  font-size: 90px;
  letter-spacing: 20px;
  margin: 110px 0 26px;
  text-shadow:
      0 0 12px rgba(216,180,93,.25),
      0 0 30px rgba(216,180,93,.15);
}

.course-content h2{
  font-family: "DFKai-SB", var(--font-title);
  color: #d8b45d;
  font-size: 52px;
}

.course-intro p,
.student-achievement p,
.testimonials p {
  color: #ddd4c2;
  font-size: 32px;
  line-height: 2;
}

.course-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 95px 10% 95px;
  text-align: center;

  background:
    linear-gradient(
      rgba(5, 11, 18, 0.28),
      rgba(5, 11, 18, 0.42)
    ),
    url("images/course-content-bg.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.course-intro-text {
  max-width: 880px;
  margin: 0 auto 56px;
}

.course-intro-text p {
  color: #ddd4c2;
  font-size: 20px;
  line-height: 2.1;
  margin: 0 0 22px;
}

.course-section-title {
  font-family: "DFKai-SB", var(--font-title);
  color: #d8b45d;
  font-size: 40px;
  letter-spacing: 5px;
  margin: 58px 0 28px;
}

.course-topic-grid,
.course-advanced-grid,
.course-other-grid {
  display: grid;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}

.course-topic-grid {
  grid-template-columns: repeat(4, 1fr);
}

.course-advanced-grid{
    grid-template-columns: 1fr;
    max-width: 550px;
}

.course-other-grid {
  grid-template-columns: repeat(3, 1fr);
}

.course-topic-grid span,
.course-advanced-grid span,
.course-other-grid span {
  padding: 16px 18px;
  border: 1px solid rgba(216, 180, 93, 0.5);
  border-radius: 8px;
  background: rgba(3, 12, 20, 0.42);
  color: #eee4cc;
  font-size: 20px;
  line-height: 1.5;
}

.course-tags span {
  padding: 12px 22px;
  border: 1px solid rgba(216, 180, 93, 0.55);
  border-radius: 999px;
  color: #eee4cc;
  background: rgba(3, 12, 20, 0.55);
}

.disciple-title{
    color:#d8b45d;
    font-family:"DFKai-SB", serif;
	letter-spacing: 6px;
    font-size:52px;
    font-weight:700;
	margin-bottom: 15px;

    text-shadow:
        0 0 8px rgba(216,180,93,.35),
        0 0 16px rgba(216,180,93,.25),
        0 0 30px rgba(216,180,93,.15);
}

.disciple-divider{
    width: 420px;
    height: 2px;
    margin: 0 auto 24px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(216,180,93,.9),
        transparent
    );
    box-shadow:
	0 0 8px rgba(216,180,93,.35);
}

.disciple-desc{
    font-size:20px;
    line-height:2;
    color:#f2f2f2;

    max-width:900px;
    margin:0 auto 50px;
}

.disciple-note{
    max-width:900px;
    margin:40px auto 60px;
    padding:28px 36px;
    border:1px solid rgba(216,180,93,.45);
    background:rgba(0,0,0,.22);
    backdrop-filter: blur(4px);
    border-radius:12px;
}

.disciple-note h4{
    color:#d8b45d;
    font-size:38px;
    margin-bottom:18px;
    text-align:center;
    letter-spacing:4px;
}

.disciple-note p{
    color:#f2f2f2;
    font-size:19px;
    line-height:1.9;
    text-align:center;
}

.disciple-block{
    max-width: 900px;
    margin: 0 auto 60px;
    text-align: center;
}

.student-achievement {
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 10% 150px;
  text-align: center;
  background: transparent;
  color: #2f261c;
}

.student-achievement h2 {
  font-family: "DFKai-SB", var(--font-title);
  color: #8a6429;
  font-size: 62px;
  letter-spacing: 8px;
  margin: 0 0 18px;
}

.student-achievement p {
  color: #2e281f;
  font-size: 21px;
  line-height: 2;
  font-weight: 600;
  margin-bottom: 34px;
}

.student-achievement img {
  margin-top: 0;
  max-width: 700px;
  width: 90%;
  border-radius: 10px;
  border: 1px solid rgba(138, 100, 41, 0.45);
  box-shadow: 0 18px 45px rgba(60, 40, 20, 0.28);
}

.student-community {

    background:
        linear-gradient(
            rgba(245,235,210,0.08),
            rgba(245,235,210,0.08)
        ),
        url("images/achievement-bg.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    padding: 0 0 120px;
}

.testimonials {
  padding: 20px 8% 100px;
  background: transparent;
  text-align: center;
}

.testimonials h2 {
  font-family: "DFKai-SB", var(--font-title);
  color: #8a6429;
  font-size: 46px;
  letter-spacing: 8px;
  margin: 0 0 16px;
}

.testimonials-subtitle {
  color: #2e281f !important;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 36px;
}

.testimonial-scroll {
  display: flex;
  gap: 26px;
  max-width: 980px;
  margin: 0 auto;
  overflow-x: auto;
  padding: 10px 8px 24px;
  scroll-snap-type: x mandatory;
}

.testimonial-scroll img {
  flex: 0 0 360px;
  width: 360px;
  border-radius: 10px;
  border: 1px solid rgba(138, 100, 41, 0.28);
  box-shadow: 0 14px 35px rgba(80, 55, 25, 0.22);
  scroll-snap-align: center;
  background: #fff;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  max-width: 960px;
  margin: 0 auto;
}

.testimonial-card {
  padding: 26px 24px;
  border: 1px solid rgba(138, 100, 41, 0.35);
  border-radius: 10px;
  background: rgba(255, 248, 230, 0.58);
  box-shadow: 0 14px 35px rgba(80, 55, 25, 0.18);
  text-align: left;
}

.testimonial-card p {
  color: #2e281f;
  font-size: 16px;
  line-height: 1.9;
  margin: 0 0 18px;
}

.testimonial-card span {
  color: #8a6429;
  font-family: var(--font-title);
  font-weight: 700;
}

.hero-subtitle {
  color: #f0e8d8;
  font-size: 22px;
  line-height: 2;
  color: #e5d6b4;
  opacity:.92;
}

.hero-quote {
  font-family: "DFKai-SB", var(--font-title);
  color: #d8b45d;
  font-size: 42px;
  font-weight: normal;
  line-height: 1.8;
  letter-spacing: 10px;
  margin-top: 48px;
  text-shadow:
    0 0 10px rgba(216,180,93,.25),
    0 0 20px rgba(216,180,93,.12);
}

.course-intro p.hero-quote {
  font-family: "DFKai-SB", var(--font-title);
  color: #d8b45d;
  font-size: 48px;
  line-height: 1.8;
  letter-spacing: 10px;
  margin-top: 48px;
  text-shadow:
    0 0 15px rgba(216,180,93,.25),
    0 0 30px rgba(216,180,93,.12);
}

.hero-divider{
    width:800px;
    height:2px;

    margin:25px auto 35px;

    background:
        linear-gradient(
            to right,
            transparent,
            rgba(216,180,93,.9),
            transparent
        );
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 900px;
    margin: 35px auto 70px;
}

.feature-item {
    padding: 16px;
    border: 1px solid rgba(216,180,93,.4);
    border-radius: 8px;
    background: rgba(3,12,20,.25);
    color: #d8b45d;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
}

.course-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 50px;

    max-width: 760px;

    margin: 40px auto 0;
}

.course-column {
  padding: 28px 24px;
  border: 1px solid rgba(216, 180, 93, 0.55);
  border-radius: 10px;
  background: rgba(3, 12, 20, 0.20);
  backdrop-filter: blur(2px);
}

.course-column h3 {
    font-size: 48px;
    margin-bottom: 28px;
    color: #d8b45d;
    font-family: "Noto Serif TC", serif;
    font-weight: 600;
    letter-spacing: 2px;
}

.course-column ul {

    list-style: none;

    padding: 0;
}

.course-column li {
    font-size: 24px;
    padding: 6px 0;
    line-height: 1.30;
    color: #f2f2f2;
}

.course-philosophy {
  max-width: 1280px;
  height: 500px;
  margin: 0 auto;
  padding: 70px 0 0 280px;
  background: url("images/course-philosophy-bg.png");
  background-size: 1280px 500px;
  background-position: center top;
  background-repeat: no-repeat;
  color: #2f261c;
}

.course-philosophy-text {
  max-width: 560px;
}

.course-philosophy h2 {
  font-family: "DFKai-SB", var(--font-title);
  color: #8a6429;
  font-size: 34px;
  letter-spacing: 4px;
  margin-bottom: 22px;
}

.course-philosophy p {
  font-family: 'Noto Serif TC', serif;
  font-size: 28px;
  line-height: 2.1;
  color: #2e281f;
  font-weight: 500;
  letter-spacing: 3px;
}

.course-contact {
    width: 100%
	max-width: none;
    margin: 0;
    padding: 120px 10% 95px;
    background: url("images/services-bg.png");
	background-size: 100% 100%;
	background-position: bottom;
	background-repeat: no-repeat;
    text-align: center;
}

.course-contact h2 {
    font-family: "DFKai-SB", var(--font-title);
    font-size: 55px;
    color: #d8b45d;
    letter-spacing: 6px;
    margin-bottom: 30px;
}

.course-contact p {
    max-width: 1400px;
    margin: 0 auto 50px;
    font-size: 32px;
    line-height: 2;
    color: #ddd4c2;
}

.contact-link {
    display: inline-block;
    margin-top: 40px;
    padding: 14px 36px;
    border: 2px solid #d8b45d;
    border-radius: 8px;
    color: #d8b45d;
    text-decoration: none;
    font-size: 23px;
    transition: all 0.3s ease;
}

.contact-link:hover {

    background: rgba(216, 180, 93, 0.15);

    transform: translateY(-2px);

    box-shadow:
        0 0 20px rgba(216,180,93,.15);
}

.contact-link:visited {
    color: #d8b45d;
}

.contact {
    padding: 120px 20px;
    background:
        linear-gradient(
            rgba(245,240,228,0.22),
            rgba(245,240,228,0.22)
        ),
        url("images/contact-bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
}

.contact h2 {
    font-size: 3rem;
    color: #9a6d2f;
    margin-bottom: 30px;
    font-family: "Noto Serif TC", serif;
}

.contact-intro {
    font-size: 1.4rem;
    color: #4d4030;
    line-height: 2;
    margin-bottom: 50px;
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.contact-social a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    color: #8a6735;
    border: 1px solid #caa96d;
    border-radius: 12px;
    background: rgba(255,255,255,0.45);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-social a:hover {
    background: rgba(202,169,109,0.15);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.contact-info {
    max-width: 550px;
	padding: 16px 24px;
    margin: 18px auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: grid;
    grid-template-columns: 60px 150px 1fr;
    align-items: center;
    padding: 25px 30px;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(202,169,109,0.5);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    text-align: left;
}

.contact-item i {
    color: #9a6d2f;
    font-size: 1.6rem;
}

.contact-item span {
    color: #7d6540;
    font-size: 0.95rem;
}

.contact-item strong {
    color: #3e3426;
    font-size: 1.05rem;
    font-weight: 600;
}

/* =========================
   Mobile RWD Fix
   ========================= */

html,
body {
  width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {

  .nav {
    height: 72px;
    padding: 0 24px;
    justify-content: center;
  }

  .brand {
    font-size: 26px;
    letter-spacing: 4px;
  }

  .hero {
    padding: 95px 20px 48px;
    background-size: cover;
    background-position: center top;
  }

  .hero-logo {
    width: 230px;
    max-width: 72vw;
  }

  h1 {
    font-size: 42px;
    letter-spacing: 6px;
    margin: 20px 0 14px;
  }

  .subtitle {
    font-size: 16px;
    letter-spacing: 2px;
    line-height: 1.8;
  }

  .hero-text {
    font-size: 17px;
  }

  .buttons a {
    width: 190px;
    justify-content: center;
    margin: 8px auto;
    padding: 13px 18px;
    font-size: 16px;
  }

  .quote {
    font-size: 24px;
    letter-spacing: 2px;
  }

  .philosophy {
    height: auto;
    padding: 52px 24px;
    background-size: cover;
    background-position: center;
  }

  .philosophy div {
    width: 100%;
    max-width: none;
  }

  .philosophy h2 {
    font-size: 32px;
    letter-spacing: 3px;
  }

  .philosophy p {
    font-size: 16px;
    line-height: 1.9;
  }

  .master {
    min-height: auto;
    padding: 460px 24px 56px;
    display: block;
    background-size: cover;
    background-position: 30% top;
    text-align: center;
  }

  .master-text {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    background: rgba(5, 11, 18, 0.55);
    padding: 24px 20px;
    border-radius: 12px;
  }

  .master h2 {
    font-size: 36px;
    margin-bottom: 20px;
  }

  .master-text p {
    font-size: 17px;
    line-height: 1.9;
  }

  .service-news-wrapper {
    width: 100%;
    max-width: none;
    background-size: cover;
  }

  .services {
    padding: 56px 20px;
  }

  .services h2,
  .news h2 {
    font-size: 36px;
    letter-spacing: 4px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 330px;
  }

  .card {
    min-height: auto;
    padding: 28px 20px;
  }

  .news {
    padding: 58px 24px 70px;
  }

  .social-buttons a {
    width: 190px;
    justify-content: center;
    margin: 12px auto 0;
  }

  .contact {
    padding: 70px 20px;
    background-size: cover;
  }

  .contact h2 {
    font-size: 38px;
  }

  .contact-intro {
    font-size: 18px;
    line-height: 1.8;
  }

  .contact-social {
    flex-direction: column;
    align-items: center;
  }

  .contact-social a {
    width: 220px;
    justify-content: center;
    padding: 15px 24px;
  }

  .contact-info {
    width: 100%;
    max-width: 360px;
    padding: 0;
  }

  .contact-item {
    grid-template-columns: 36px 88px 1fr;
    gap: 10px;
    padding: 20px 16px;
  }

  .contact-item strong {
    font-size: 15px;
    word-break: break-word;
  }

  /* courses.html */

  .course-intro {
    min-height: 760px;
    padding: 95px 20px 55px;
    background-size: cover;
    background-position: center top;
  }

  .course-logo-wrap {
    margin-top: 0;
  }

  .course-logo-wrap::before {
    width: 320px;
    height: 320px;
    filter: blur(35px);
  }

  .course-logo {
    width: 230px;
  }

  .course-intro h1 {
    font-size: 46px;
    letter-spacing: 8px;
    line-height: 1.35;
    margin: 42px 0 18px;
  }

  .hero-divider {
    width: 82%;
    margin: 18px auto 26px;
  }

  .hero-subtitle {
    font-size: 18px;
    line-height: 1.9;
  }

  .course-intro p.hero-quote {
    font-size: 28px;
    letter-spacing: 5px;
    line-height: 1.8;
    margin-top: 32px;
  }

  .hero-quote {
    font-size: 34px;
    letter-spacing: 3px;
    line-height: 1.45;
  }

  .course-philosophy {
    height: auto;
    padding: 56px 24px;
    background-size: cover;
    background-position: center;
  }

  .course-philosophy-text {
    max-width: none;
  }

  .course-philosophy h2 {
    font-size: 30px;
  }

  .course-philosophy p {
    font-size: 17px;
    letter-spacing: 1px;
  }

  .course-content {
    padding: 64px 22px;
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 100%;
  }

  .feature-item {
    font-size: 18px;
    line-height: 1.45;
    padding: 14px 8px;
  }

  .course-topic-grid,
  .course-other-grid {
    gap: 12px;
  }

  .course-topic-grid span,
  .course-other-grid span {
    font-size: 17px;
    line-height: 1.45;
    padding: 14px 8px;
  }

  .course-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 340px;
  }

  .course-column h3 {
    font-size: 34px;
  }

  .course-column li {
    font-size: 20px;
  }

  .student-achievement {
    padding: 60px 24px 90px;
  }

  .student-achievement h2,
  .testimonials h2 {
    font-size: 36px;
    letter-spacing: 4px;
  }

  .testimonial-grid {
    display: block;
  }

  .testimonial-scroll {
    max-width: 100%;
  }

  .testimonial-scroll img {
    flex: 0 0 82vw;
    width: 82vw;
  }

  .course-contact {
    padding: 70px 24px;
    background-size: cover;
  }

  .course-contact h2 {
    font-size: 36px;
  }

  .course-contact p {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .nav {
    justify-content: flex-start;
    overflow-x: auto;
    gap: 18px;
  }

  .nav nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .nav nav::-webkit-scrollbar {
    display: none;
  }

  .brand {
    flex: 0 0 auto;
  }

  .nav a {
    flex: 0 0 auto;
    margin-left: 18px;
    font-size: 14px;
  }

  .nav .login {
    padding: 8px 14px;
  }
}

@media (max-width: 768px) {
  #contact.contact {
    background:
      linear-gradient(
        rgba(245, 240, 228, 0.12),
        rgba(245, 240, 228, 0.12)
      ),
      url("images/contact-bg-mobile.png");

    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;

    padding-top: 25px;
  }

  .contact-container {
    background: transparent;
    padding: 20px 0;
    backdrop-filter: none;
  }

  .contact-info {
    max-width: 390px;
  }

  .contact-item {
    grid-template-columns: 34px 78px 1fr;
    gap: 8px;
    padding: 18px 14px;
  }

  .contact-item strong {
    font-size: 13px;
    white-space: nowrap;
    word-break: normal;
  }

  .contact-item span {
    font-size: 14px;
  }
}

@media (max-width: 1100px) {
  .contact-info {
    max-width: 520px;
  }

  .contact-item {
    grid-template-columns: 44px 110px minmax(0, 1fr);
    gap: 12px;
    padding: 22px 24px;
  }

  .contact-item strong {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* =========================
   master.html - Master Page
   v1.2 Skeleton
   ========================= */

.master-page {
  padding-top: 76px;
  background: #050b12;
}

.master-page-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 8%;
}

.master-origin {
	  background:
    linear-gradient(
      rgba(244, 234, 214, 0.55),
      rgba(244, 234, 214, 0.55)
    ),
    url("images/master-origin-bg.png");
  background-size: cover;
  background-position: right bottom;
  background-repeat: no-repeat;
  color: #2f261c;
}

.master-journey {
  background: url("images/master-journey-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.master-lineage {
  background:
    linear-gradient(
      rgba(244, 234, 214, 0.62),
      rgba(244, 234, 214, 0.62)
    ),
    url("images/achievement-bg.png");
  background-size: cover;
  background-position: right bottom;
  background-repeat: no-repeat;
  color: #2f261c;
}

.lineage-closing {
  margin-top: 58px;
  padding-top: 36px;
  text-align: center;
  border-top: 1px solid rgba(138, 100, 41, 0.35);
}

.lineage-closing p {
  font-family: "DFKai-SB", var(--font-title);
  font-size: 36px;
  line-height: 3;
  letter-spacing: 3px;
  color: #8a6429;
  margin-bottom: 30px;
}

.lineage-closing .buttons a {
  background: rgba(244, 234, 214, 0.45);
}

.master-origin-layout {
  display: block;
}

.origin-float-img {
  float: left;
  width: 260px;
  margin: 0 42px 24px 0;
  border-radius: 4px;
  border: 1px solid rgba(138, 100, 41, 0.35);
  box-shadow: 0 16px 36px rgba(60, 40, 20, 0.22);
}

.master-origin-image img {
  width: 100%;
  border-radius: 4px;
  border: 1px solid rgba(138, 100, 41, 0.35);
  box-shadow: 0 16px 36px rgba(60, 40, 20, 0.22);
}

.master-article h1,
.master-article h2,
.master-journey h2 {
  font-family: "DFKai-SB", var(--font-title);
  color: #8a6429;
  font-size: 42px;
  letter-spacing: 6px;
  margin: 0 0 12px;
}

.section-subtitle {
  font-family: var(--font-title);
  color: #a47a35;
  font-size: 20px;
  letter-spacing: 3px;
  margin-bottom: 34px;
}

.master-article p {
  font-size: 18px;
  line-height: 2.05;
  color: #2f261c;
  margin: 0 0 22px;
  font-weight: 500;
}

.master-lineage blockquote {
  margin: 34px auto;
  padding: 24px 28px;
  max-width: 620px;
  text-align: center;
  font-family: "DFKai-SB", var(--font-title);
  font-size: 30px;
  color: #8a6429;
  border-top: 1px solid rgba(138, 100, 41, 0.35);
  border-bottom: 1px solid rgba(138, 100, 41, 0.35);
}

.master-journey {
  color: #eee4cc;
  position: relative;
}

.master-journey h2 {
  color: #d8b45d;
  text-align: center;
}

.master-journey .section-subtitle {
  color: #d8b45d;
  text-align: center;
}

.master-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.master-info-card {
  padding: 32px 30px;
  border: 1px solid rgba(216, 180, 93, 0.45);
  border-radius: 12px;
  background: rgba(3, 12, 20, 0);
}

.master-info-card h3 {
  font-family: var(--font-title);
  color: #d8b45d;
  font-size: 26px;
  margin: 0 0 18px;
}

.master-info-card p {
  color: #ddd4c2;
  font-size: 17px;
  line-height: 1.9;
  margin: 0 0 14px;
}

.master-closing .master-page-wrap {
  padding: 0;
}

.master-closing p {
  font-family: "DFKai-SB", var(--font-title);
  font-size: 30px;
  line-height: 1.9;
  letter-spacing: 3px;
  color: #d8b45d;
  margin: 0 0 34px;
}

/* master.html mobile */
@media (max-width: 768px) {
  .master-page {
    padding-top: 72px;
  }

  .master-page-wrap {
    padding: 52px 24px;
  }

  .master-origin-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .master-origin-image {
    text-align: center;
  }

  .master-origin-image img {
    max-width: 230px;
  }

  .master-article h1,
  .master-article h2,
  .master-journey h2 {
    font-size: 34px;
    letter-spacing: 4px;
    text-align: center;
  }

  .section-subtitle {
    font-size: 17px;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 28px;
  }

  .master-article p {
    font-size: 16px;
    line-height: 1.95;
  }

  .master-card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .master-info-card {
    padding: 26px 22px;
  }

  .master-info-card h3 {
    font-size: 23px;
  }

  .master-info-card p {
    font-size: 16px;
  }

  .master-lineage blockquote {
    font-size: 26px;
    padding: 20px 18px;
  }

  .master-closing {
    padding: 64px 24px 76px;
  }

  .master-closing p {
    font-size: 36px;
    letter-spacing: 2px;
  }
}

.service-content p{
    width:100%;
    max-width:none;
}

@media (max-width: 768px) {
  .origin-float-img {
    float: none;
    display: block;
    width: 230px;
    margin: 0 auto 28px;
  }
}

.master-lineage .lineage-closing p {
  font-family: "DFKai-SB", var(--font-title);
  font-size: 32px;
  line-height: 2;
  letter-spacing: 3px;
  color: #8a6429;
  margin-bottom: 30px;
}

.phone-title {
  display: inline-grid;
  grid-template-columns: repeat(4, 1em);
  gap: 0.15em;
  justify-content: center;
  line-height: 1.35;
}

.phone-title span:first-child {
  grid-column: 1 / 5;
}

.phone-title span:last-child {
  grid-column: 2 / 4;
  justify-self: center;
}

.services-top {
  background:
    linear-gradient(
      rgba(5, 10, 18, 0.42),
      rgba(5, 10, 18, 0.78)
    ),
    url("images/master-journey-bg.png");

  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.services-hero {
  height: 560px;
  background: transparent;
  border: none;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 100px;
}

.services-hero-content {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.service-nav-section {
  padding: 10px 24px 78px;
  background: transparent;
  border: none;
  text-align: center;
}

.service-nav-section h2 {
  font-family: "Noto Serif TC", serif;
  font-size: 46px;
  text-align: center;
  color: #d8b45d;
}

.service-nav-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.services-hero-content h1 {
    font-family: "DFKai-SB", var(--font-title);
    font-size: 72px;
    color: #d8b45d;
    letter-spacing: 10px;
    margin-bottom: 28px;
}

.services-subtitle {
    font-size: 30px;
    color: #d8b45d;
    letter-spacing: 6px;
    margin-bottom: 28px;
    font-family: "Noto Serif TC", serif;
}

.services-hero-content p {
    font-size: 24px;
    max-width: 760px;
	line-height: 2;
    letter-spacing: 3px;
}

/* =========================
   services.html - Service Sections
   ========================= */
.service-section {
  display: flex;
  width: 100%;
  min-height: 720px;
  align-items: stretch;
}

.service-image{
    flex: 0 0 65%;
}

.service-content{
    flex: 0 0 35%;
}

.service-section.image-right {
  flex-direction: row-reverse;
}

.service-image img {
  width: 100%;
  height: 100%;
  min-height: 720px;
  object-fit: cover;
  display: block;
}

.service-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 8%;
}

.service-dark {
  background: #050b12;
  color: #ddd4c2;
}

.service-light {
  background: #f3ead8;
  color: #2f261c;
}

.service-content h2 {
  font-family: "DFKai-SB", var(--font-title);
  font-size: 52px;
  padding-left: 5%;
  letter-spacing: 12px;
  color: #d8b45d;
  margin: 0 0 32px;
}

.service-light .service-content h2 {
  color: #8a6429;
}

.service-content p {
  font-size: 19px;
  width: 800px;
  line-height: 2.05;
  margin: 0 0 20px;
}

.service-more summary {
  display: inline-block;
  margin-top: 18px;
  padding: 13px 34px;
  border: 1px solid #d8b45d;
  border-radius: 8px;
  color: #d8b45d;
  cursor: pointer;
  font-size: 18px;
  list-style: none;
}

.service-more summary::-webkit-details-marker {
  display: none;
}

/* 預設 */
.summary-close{
    display:none;
}

/* 展開後 */
.service-more[open] .summary-open{
    display:none;
}

.service-more[open] .summary-close{
    display:inline;
}

.service-more p {
  animation: fadeInServiceText 0.35s ease;
}

@keyframes fadeInServiceText {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-nav-grid a {
  min-width: 150px;
  padding: 14px 24px;
  border: 1px solid rgba(216,180,93,.65);
  border-radius: 8px;
  color: #d8b45d;
  text-decoration: none;
  background: rgba(3,12,20,.45);
}

.service-banner {
  min-height: 720px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.service-qimen {
  background:
    linear-gradient(
      to right,
      rgba(5, 10, 18, 0.05) 0%,
      rgba(5, 10, 18, 0.12) 45%,
      rgba(5, 10, 18, 0.72) 68%,
      rgba(5, 10, 18, 0.96) 100%
    ),
    url("images/service-qimen.png");

  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.service-banner .service-content {
    width: 45%;

    margin-left: 48%;
    margin-right: 8%;

    background: transparent;
}

.service-fengshui {

    background:
        linear-gradient(
            rgba(245,240,228,.10),
            rgba(245,240,228,.10)
        ),
        url("images/service-fengshui.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.service-fengshui .service-content{
    margin-left: 0%;
    margin-right:auto;
}

.service-fengshui .service-content h2{
    color:#8a6429;
}

.service-fengshui .service-content p{
    color:#2f261c;
}

.service-fengshui .service-more summary{
    color:#8a6429;
    border:1px solid #8a6429;
}

.fengshui-more h3 {
  color: #2f261c;
  font-size: 24px;
  margin: 32px 0 18px;
}

.fengshui-more hr {
  border: none;
  border-top: 1px solid rgba(138,100,41,.28);
  margin: 34px 0;
}

.service-quote {
    margin-top: 50px;
    padding: 36px 45px;
    border-top: 1px solid rgba(138,100,41,.35);
    border-bottom: 1px solid rgba(138,100,41,.35);
    text-align: center;
}

.service-quote p {
    color: #4d3b27;
    line-height: 2;
    margin: 0 0 18px;
}

.service-quote p:first-child {
    font-size: 20px;
    font-weight: 600;
    color: #3b2b18;
}

.service-quote p:last-child {
    font-size: 18px;
    margin-bottom: 0;
}

.service-naming {
  background:
    linear-gradient(
      to right,
      rgba(5,10,18,.05) 0%,
      rgba(5,10,18,.18) 42%,
      rgba(5,10,18,.72) 68%,
      rgba(5,10,18,.96) 100%
    ),
    url("images/service-naming.png");

  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}

.service-naming .service-content {
  margin-left: 48%;
  margin-right: 8%;
}

.naming-more h3 {
  color: #d8c79a;
  font-size: 24px;
  margin: 32px 0 18px;
}

.naming-quote {
  border-top: 1px solid rgba(216,180,93,.28);
  border-bottom: 1px solid rgba(216,180,93,.28);
}

.naming-quote p {
  color: #d8c79a;
}

.naming-quote p:first-child {
  color:#e5c06b;
}

.naming-quote p:last-child {
  color: #cfc3a8;
}

.service-qimen .service-more-content,
.service-naming .service-more-content {
  margin-top: 28px;
}

.service-date {
  background:
    linear-gradient(
      rgba(245,240,228,.12),
      rgba(245,240,228,.12)
    ),
    url("images/service-date.png");

  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.service-date .service-content {
  margin-left: 0%;
  margin-right: auto;
}

.service-date .service-content h2 {
  color: #8a6429;
}

.service-date .service-content p {
  color: #2f261c;
}

.service-date .service-more summary {
  color: #8a6429;
  border: 1px solid #8a6429;
}

.date-more h3 {
  color: #2f261c;
  font-size: 24px;
  margin: 32px 0 18px;
}

.date-list {
  margin: 18px 0 28px 24px;
  padding-left: 18px;
  color: #2f261c;
  font-size: 19px;
  line-height: 1.9;
}

.date-more hr {
  border: none;
  border-top: 1px solid rgba(138,100,41,.28);
  margin: 34px 0;
}

.date-closing {
  font-weight: 600;
}

.service-phone {

    background:
        linear-gradient(
            to right,
            rgba(5,10,18,.05) 0%,
            rgba(5,10,18,.18) 42%,
            rgba(5,10,18,.72) 68%,
            rgba(5,10,18,.96) 100%
        ),
        url("images/service-phone.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

}

.service-phone .service-content{

    margin-left:45%;
    margin-right:8%;

}

.phone-quote{

    border-top:1px solid rgba(216,199,154,.28);
    border-bottom:1px solid rgba(216,199,154,.28);

}

.phone-quote p{

    color:#d8c79a;

}

.phone-quote p:first-child{

    color:#e5c06b;

}

.phone-quote p:last-child{

    color:#cfc3a8;

}

.service-phone .service-more summary {
  border: 1px solid #d8b45d;
  color: #d8b45d;
}

.service-phone .service-more summary:hover {
  border-color: #d8b45d;
  color: #d8b45d;
  background: rgba(216,180,93,.08);
}

.phone-more hr{

}

.phone-more h3 {
  font-size: 25px;
  color: #f2f2f2;
}

.phone-more p,
.phone-more ul,
.phone-more li {
  color: #f2f2f2;
  font-size: 19px;
}

.phone-more li {
  margin: 10px 0;
  line-height: 1.9;
}

.phone-list {
  color: #f2f2f2;
}

.service-contact-banner {
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background:
    linear-gradient(
      rgba(5,10,18,.18),
      rgba(5,10,18,.34)
    ),
    url("images/services-bg.png");

  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}

.service-contact-content {
  width: 100%;
  max-width: 900px;
}

.service-contact-banner h2 {
  font-family: "DFKai-SB", var(--font-title);
  color: #d8b45d;
  font-size: 46px;
  letter-spacing: 8px;
  margin: 0 0 22px;
}

.service-contact-banner p {
  color: #f2ead8;
  font-size: 23px;
  line-height: 2;
  margin: 0 0 34px;
}

.service-contact-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.service-contact-card {
  width: 190px;
  padding: 18px 22px;
  border: 1px solid rgba(216,180,93,.7);
  border-radius: 10px;
  color: #d8b45d;
  text-decoration: none;
  background: rgba(3,12,20,.45);
}

.service-contact-card i {
  display: block;
  font-size: 26px;
  margin-bottom: 10px;
}

/* =========================
   services.html Mobile RWD
========================= */
@media (max-width: 768px) {

  .services-top {
    background-size: cover;
    background-position: center top;
  }

  .services-hero {
    height: auto;
    min-height: 430px;
    padding: 105px 20px 45px;
  }

  .services-hero-content h1 {
    font-size: 36px;
    letter-spacing: 4px;
  }

  .services-subtitle {
    font-size: 15px;
    letter-spacing: 2px;
  }

  .services-hero-content p {
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: 0px;
  }

  .service-nav-section {
    padding: 30px 20px 58px;
  }

  .service-nav-section h2 {
    font-size: 28px;
    letter-spacing: 2px;
  }

  .service-nav-grid {
    flex-direction: column;
    gap: 14px;
  }

  .service-nav-grid a {
    width: 100%;
    max-width: 260px;
    min-width: 0;
    padding: 12px 18px;
    font-size: 15px;
  }

  .service-banner {
    min-height: auto;
    display: block;
    padding: 94px 16px 50px;
    background-size: cover;
  }

  .service-banner .service-content,
  .service-qimen .service-content,
  .service-fengshui .service-content,
  .service-naming .service-content,
  .service-date .service-content,
  .service-phone .service-content {
    width: 100%;
    margin: 0;
    padding: 20px 16px;
    background: rgba(5, 10, 18, 0.72);
    border-radius: 10px;
  }

  .service-fengshui .service-content,
  .service-date .service-content {
    background: rgba(245, 238, 220, 0.78);
  }

  .service-content h2 {
    font-size: 28px;
    letter-spacing: 3px;
    padding-left: 0;
    text-align: center;
	margin-bottom: 20px;
  }

  .service-content p,
  .phone-more p,
  .phone-more ul,
  .phone-more li {
    width: 100%;
    max-width: 100%;
    font-size: 13px;
    line-height: 1.75;
  }

  .service-more summary {
    font-size: 16px;
    padding: 11px 26px;
  }

  .service-quote {
    padding: 28px 20px;
  }

  .service-quote p:first-child {
    font-size: 18px;
  }

  .service-quote p:last-child {
    font-size: 16px;
  }

  .service-contact-banner {
    min-height: auto;
    padding: 70px 22px;
  }

  .service-contact-banner h2 {
    font-size: 36px;
  }

  .service-contact-banner p {
    font-size: 17px;
  }

  .service-contact-grid {
    flex-direction: column;
    align-items: center;
  }

  .service-contact-card {
    width: 220px;
  }
  
  .service-qimen {
    background-position: center top;
  }

  .service-fengshui {
    background-position: center top;
  }

  .service-naming {
    background-position: center top;
  }

  .service-date {
    background-position: center top;
  }

  .service-phone {
    background-position: center top;
  }
  
}