: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 95%),
    url("images/hero-bg.png");
  background-size: 1280px auto;
  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 {
  height: 360px;
  padding: 42px 0 0 245px;
  background: url("images/philosophy-bg.png");
  background-size: 1280px 360px;
  background-position: center top;
  background-repeat: no-repeat;
  color: #2f261c;
}

.philosophy div {
  width: 470px;
  max-width: 470px;
}

.philosophy h2 {
  font-family: "DFKai-SB", var(--font-title);
  color: #8a6429;
  font-size: 38px;
  letter-spacing: 5px;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(83, 69, 50, 0.55);
}

.philosophy p {
  font-size: 17px;
  line-height: 2;
  color: #2e281f;
  margin: 0 0 18px;
  font-weight: 500;
}

.master h2 {
  color: #d8b45d;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 42px;
  letter-spacing: 4px;
  margin-bottom: 28px;
}

.master {
  min-height: 420px;
  padding: 70px 10%;
  display: flex;
  align-items: center;
  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: 1280px auto;
  background-position: center top;
  border-top: 1px solid rgba(216, 180, 93, 0.25);
  border-bottom: 1px solid rgba(216, 180, 93, 0.25);
}

.master-text {
  width: 48%;
  max-width: 620px;
}

.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: 18px;
  line-height: 2;
  color: #ddd4c2;
}

.service-news-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  background:
    linear-gradient(rgba(5, 11, 18, 0.18), rgba(5, 11, 18, 0.28)),
    url("images/services-bg.png");
  background-size: cover;
  background-position: center;
}

.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 {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 20px;
    background:
        linear-gradient(
            rgba(245,240,228,0.18),
            rgba(245,240,228,0.18)
        ),
        url("images/contact-bg.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
}

.hero,
.philosophy,
.master,
.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 {
  padding: 130px 24px 80px;
  background:
    linear-gradient(rgba(5, 11, 18, 0.35), rgba(5, 11, 18, 0.45)),
    url("images/courses-hero.png");
  background-size: cover;
  background-position: center;
}

.course-logo {
    width: 250px;
    filter: drop-shadow(
        0 0 24px rgba(216, 180, 93, 0.35)
    );
}

.course-intro h1,
.course-content h2,

.course-intro p,
.student-achievement p,
.testimonials p {
  color: #ddd4c2;
  font-size: 18px;
  line-height: 2;
}

.course-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 95px 10% 95px;
  text-align: center;
  background:
    linear-gradient(
      rgba(5, 11, 18, 0.25),
      rgba(5, 11, 18, 0.35)
    ),
    url("images/course-content-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.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);
}

.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: 46px;
  letter-spacing: 8px;
  margin: 0 0 18px;
}

.student-achievement p {
  color: #2e281f;
  font-size: 18px;
  line-height: 2;
  font-weight: 600;
  margin-bottom: 34px;
}

.student-achievement img {
  margin-top: 0;
  max-width: 520px;
  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: #ddd4c2;
    font-size: 18px;
    line-height: 1.8;
    margin-top: 25px;
}

.hero-quote {
    font-family: 'Noto Serif TC', serif;
    color: #d8b45d;
    font-size: 76px;
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: 8px;
    margin-top: 50px;
    text-shadow:
        0 0 15px rgba(216,180,93,.25),
		0 0 30px rgba(216,180,93,.12);
}

.course-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 120px;

    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: 25px;
    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: 20px;
  line-height: 1.6;
  color: #2e281f;
  font-weight: 500;
  letter-spacing: 3px;
}

.course-contact {
    max-width: 1280px;
    margin: 0 auto;
    padding: 100px 10%;
    background: url("images/services-bg.png");
	background-size: 1280px 600px;
	background-position: bottom;
    text-align: center;
}

.course-contact h2 {
    font-family: "DFKai-SB", var(--font-title);

    font-size: 42px;

    color: #d8b45d;

    letter-spacing: 6px;

    margin-bottom: 30px;
}

.course-contact p {

    max-width: 700px;

    margin: 0 auto 50px;

    font-size: 22px;

    line-height: 2;

    color: #ddd4c2;
}

.contact-link {
    display: inline-block;
    margin-top: 40px;
    padding: 14px 36px;
    border: 1px solid #d8b45d;
    border-radius: 8px;
    color: #d8b45d;
    text-decoration: none;
    font-size: 18px;
    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 {
    padding: 100px 20px 60px;
  }

  .course-logo {
    width: 220px;
  }

  .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;
  }

  .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;
  }
}