:root {
      --bg: #f8f3e9;
      --paper: #fffaf1;
      --ink: #2c2a24;
      --muted: #6c6255;
      --gold: #b58a3a;
      --green: #2f5d50;
      /*--deep: #18392f;*/
      --deep:#6B8574;
      --line: rgba(47, 93, 80, 0.18);
      --button:rgba(255,250,241,.88);
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: "Noto Serif SC", "Songti SC", "Microsoft YaHei", Georgia, serif;
      color: var(--ink);
      background:
        radial-gradient(circle at 12% 18%, rgba(181,138,58,.12), transparent 28%),
        linear-gradient(180deg, #fbf7ed 0%, var(--bg) 55%, #efe5d1 100%);
      line-height: 1.85;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 10;
      background: rgba(255,250,241,.93);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid var(--line);
    }

    .nav {
      max-width: 1180px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      padding: 16px 22px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      font-weight: 700;
      color: var(--deep);
      letter-spacing: .05em;
      white-space: nowrap;
    }

    .seal {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      border: 2px solid var(--gold);
      display: grid;
      place-items: center;
      color: var(--gold);
      font-size: 18px;
      background: #fff6df;
    }
/*
    .menu {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      flex-wrap: wrap;
      font-size: 15px;
    }
*/
    .menu a {
      padding: 8px 10px;
      color: var(--deep);
      border-radius: 999px;
      transition: .2s ease;
      font-size: 1.1rem;
      white-space: nowrap;
    }

    .menu {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 10px;
    }

    .menu a:hover {
      background: rgba(47,93,80,.08);
      color: var(--gold);
    }

    .lang {
      margin-left: 8px;
      padding-left: 10px;
      border-left: 1px solid var(--line);
      color: var(--muted);
      font-size: 14px;
    }

    .hero {
      min-height: 68vh;
      display: grid;
      place-items: center;
      padding: 94px 22px 70px;
      background:
        linear-gradient(rgba(24,57,47,.62), rgba(24,57,47,.72)),
        url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=80");
      background-size: cover;
      background-position: center;
      color: #fffaf1;
      text-align: center;
    }

    .hero-inner {
      max-width: 900px;
    }

    .eyebrow {
      color: #f3d69a;
      letter-spacing: .2em;
      text-transform: uppercase;
      font-size: 14px;
      margin-bottom: 18px;
    }

    h1 {
      margin: 0;
      font-size: clamp(38px, 7vw, 78px);
      line-height: 1.16;
      letter-spacing: .08em;
      font-weight: 700;
    }

    .hero h2 {
      margin: 18px 0 0;
      font-size: clamp(18px, 3vw, 30px);
      font-weight: 400;
      color: #f7edd7;
    }

    .section {
      max-width: 1500px;
      margin: 0 auto;
      padding: 82px 22px;
    }

    /*.intro {
      display: grid;
      grid-template-columns: 1.1fr .9fr;
      gap: 42px;
      align-items: start;
    }*/
    .intro {
        display: grid;
        grid-template-columns: 1.1fr .9fr;
        gap: 42px;
        align-items: stretch;
    }
    

    .quote-panel {
        border-radius: 28px;
        overflow: hidden;

        background-image: url("images/quote-panel.png");
        background-size: 100% auto;
        background-position: center;
        background-repeat: no-repeat;
        background-color: #183228;
    }
    .side-image-panel {
        border-radius: 28px;
        overflow: hidden;
        /*background-size: cover;*/
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
       /* background-color: #183228;*/
        min-height: 420px;
    }
    .quote-image {
    background-image: url("images/quote-panel.png");
    }

    .museum-image {
        background-image: url("images/museum.jpg");
    }

    .master-image {
        background-image: url("images/boyin.jpg");
    }
    .master-card {
        display: grid;
        grid-template-columns: 1.5fr 0.8fr;
        gap: 40px;

        background: var(--paper);
        border-radius: 28px;
        padding: 42px;

        box-shadow: 0 10px 30px rgba(0,0,0,.08);
    }

    .master-photo {
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }

    .master-photo img {
        width: 100%;
        max-width: 340px;

        border-radius: 18px;

        display: block;
    }
    .card {
      background: rgba(255,250,241,.88);
      border: 1px solid var(--line);
      border-radius: 28px;
      padding: 34px;
      box-shadow: 0 18px 40px rgba(24,57,47,.08);
    }
    
    h2.section-title {
      margin: 0 0 22px;
      font-size: clamp(20px, 2vw, 28px);
      line-height: 1.3;
      color: var(--deep);
    }

    .lineage-card h3 {
      margin-top: 32px;
      margin-bottom: 12px;
      color: var(--deep);
      font-size: 1.35rem;
    }

    .en {
      margin-top: 8px;
      color: var(--muted);
      font-size: .95em;
      font-family: Georgia, "Times New Roman", serif;
    }

    .intro p {
      margin: 0 0 18px;
    }

    .service-section{
        margin-top:0px;
    }

    .service-section h2{
        color:var(--green);
        margin-bottom:14px;
    }

    .section-intro{
        color:var(--text-light);
        max-width:850px;
        margin-bottom:36px;
    }

    .service-grid{
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:18px 40px;
    }

    .service-item{
        display:flex;
        align-items:flex-start;
        gap:12px;
    }

    .service-item span{
        color:var(--gold);
        font-weight:700;
        font-size:1.1rem;
        margin-top:2px;
    }

    .service-item p{
        margin:0;
    }

    .mission-wrap {
      background: linear-gradient(135deg, rgba(47,93,80,.09), rgba(181,138,58,.13));
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .mission-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 28px;
    }

    .mission-card {
      background: #fffaf1;
      border-radius: 26px;
      padding: 32px;
      border: 1px solid var(--line);
      display: flex;
      flex-direction: column;
    }

    .mission-card h3 {
      margin: 0 0 18px;
      color: var(--green);
      font-size: 28px;
      letter-spacing: .08em;
    }

    .mission-card p {
      margin: 0 0 16px;
      font-size: 18px;
    }


    .card-link {
      display: inline-block;
      margin-top: auto;
      color: var(--green);
      font-weight: 700;
      border-bottom: 1px solid var(--gold);
      align-self: flex-start;
      padding-top: 10px;
    }

    .card-link:hover {
      color: var(--gold);
    }

    .contact {
      background: var(--deep);
      color: #fffaf1;
    }

    .contact .section {
      padding-top: 72px;
      padding-bottom: 36px;
    }

    .contact-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 34px;
    }

    .contact h2,
    .contact h3 {
      color: #f3d69a;
      margin-top: 0;
    }

    .contact-card {
      border: 1px solid rgba(255,255,255,.15);
      border-radius: 24px;
      padding: 30px;
      background: rgba(255,255,255,.06);
    }

    .contact a {
      color: #fff3ca;
      border-bottom: 1px solid rgba(255,243,202,.4);
    }

    .footer {
      max-width: 1120px;
      margin: 0 auto;
      padding: 22px;
      color: rgba(255,250,241,.72);
      border-top: 1px solid rgba(255,255,255,.12);
      display: flex;
      justify-content: space-between;
      gap: 18px;
      flex-wrap: wrap;
      font-size: 14px;
    }

    @media (max-width: 860px) and (orientation: portrait) {
      .nav {
        align-items: flex-start;
        flex-direction: column;
      }

      .menu {
        justify-content: flex-start;
      }

      .intro,
      .mission-grid,
      .contact-grid {
        grid-template-columns: 1fr;
      }

      .section {
        padding: 58px 18px;
      }

      .card,
      .quote-panel,
      .mission-card,
      .contact-card {
        padding: 24px;
      }
    }

    @media (max-width: 860px) and (orientation: landscape) {

      /* The header no longer occupies a horizontal row */
      .inspire-header {
        position: static;
        height: 0;
        border: 0;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
      }

      .inspire-nav {
        position: static;
        width: 0;
        min-height: 0;
        padding: 0;
        margin: 0;
      }

      /* Sticky/fixed controls on the right side */
      .inspire-brand {
        position: fixed;
        z-index: 120;
        top: 14px;
        right: 13px;

        width: 52px;
        height: 52px;

        display: flex;
        align-items: center;
        justify-content: center;

        background: rgba(255, 250, 241, 0.9);
        border: 1px solid rgba(47, 93, 80, 0.24);
        border-radius: 50%;
        box-shadow: 0 6px 18px rgba(24, 57, 47, 0.18);
      }

      .inspire-seal {
        width: 43px;
        height: 43px;
      }

      .inspire-header .menu-toggle {
        position: fixed;
        z-index: 120;
        top: 78px;
        right: 17px;

        display: block;

        width: 44px;
        height: 40px;
        margin: 0;
        padding: 8px;

        background: rgba(255, 250, 241, 0.9);
        box-shadow: 0 6px 18px rgba(24, 57, 47, 0.18);
      }

      /* Menu opens downward beside the right edge */
      .inspire-menu {
        position: fixed;
        z-index: 119;

        top: 126px;
        right: 10px;
        left: auto;

        width: min(250px, calc(100vw - 30px));
        max-height: calc(100vh - 138px);
        overflow-y: auto;

        margin: 0;
        padding: 10px;

        display: none;
        flex-direction: column;
        align-items: stretch;

        background: rgba(255, 250, 241, 0.98);
        border: 1px solid var(--line);
        border-radius: 14px;
        box-shadow: 0 16px 34px rgba(24, 57, 47, 0.22);
      }

      .inspire-menu.is-open {
        display: flex;
      }

      .inspire-menu a,
      .inspire-menu a:first-child,
      .inspire-menu a:last-child,
      .inspire-menu .lang-switch {
        padding: 9px 14px;
        text-align: center;
        border: 0 !important;
        border-bottom: 1px solid rgba(47, 93, 80, 0.1) !important;
      }

      .inspire-menu .lang-switch {
        display: flex;
        justify-content: center;
        border-bottom: 0 !important;
      }

      /* Leave visual space on the right side of the banner */
      .hero-banner {
        height: calc(100vh - 12px);
        min-height: 220px;
        max-height: 390px;
      }

      .hero-banner::before {
        background-size: cover;
        background-position: center;
      }

      .hero-cnlogo {
        width: 70vw;
        max-width: calc(100vw - 100px);
        left: calc(50% - 34px);
      }

      .hero-stamp {
        right: 82px;
      }
    }


/* Equal-width feature cards for 少林内劲一指禅 and 中华气功博物馆 */
.feature-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 82px 22px;
}

.feature-card {
  width: 100%;
}

/*Full width section*/
.feature-section-full {
    width: 100%;
    padding: 82px 0;
}

.feature-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 22px;
}

/* For mission card heading with underline*/
.mission-card h3::after {
    content: "";
    display: block;
    width: 50%;
    max-width: 90px;
    min-width: 70px;
    height: 2px;
    background: var(--gold);
    margin-top: 8px;
}

.mission-card h3 {
    font-size: clamp(1.5rem, 2vw, 1.7rem);
    color: var(--green);
    margin-bottom: 1rem;
    position: relative;
}

.section-tea {
    background: rgba(47,93,80,.09);
}
.section-tea h2{
    color:var(--green);
    margin-bottom:14px;
}

.section-parchment {
    background: #f8f3e9;
}

.section-gold {
    background: #fbf5e6;
}

/* Top header rebuilt to match the supplied top image */
.site-top {
  background: #fff;
  border-bottom: 1px solid rgba(24, 57, 47, 0.18);
}

.top-photo {
  width: 100%;
  height: clamp(180px, 27vw, 420px);
  background-image: url("images/practice.webp");
  background-size: cover;
  background-position: center 42%;
  border-bottom: 4px solid var(--deep);
}

.top-panel {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(420px, 1fr) minmax(340px, 42%);
  gap: 22px;
  align-items: end;
  min-height: 220px;
  padding: 18px 36px 18px 28px;
  background:
    radial-gradient(circle at 99% 50%, rgba(47, 93, 80, 0.15), transparent 28%),
    linear-gradient(90deg, #ffffff 0%, #ffffff 58%, #f7f7f4 100%);
  overflow: hidden;
}

.top-left {
  display: grid;
  gap: 18px;
  align-content: start;
  justify-items: start;
  align-self: stretch;
}

.top-logo {
  width: 100px;
  max-width: 100%;
  height: auto;
}

.top-stamp {
  width: 90px;
  max-width: 100%;
  height: auto;
}
.top-cn-logo {
  width: 490px;
  max-width: 100%;
  height: auto;
}
.top-main {
  align-self: center;
  min-width: 0;
}

.top-title-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brush-title {
  margin: 0;
  color: #111;
  font-family: "STKaiti", "KaiTi", "Kaiti SC", "Songti SC", serif;
  font-size: clamp(48px, 5.3vw, 104px);
  line-height: 1.05;
  letter-spacing: .06em;
  font-weight: 700;
  transform: rotate(-2deg);
  white-space: nowrap;
}

.small-stamp {
  width: clamp(34px, 3.2vw, 58px);
  height: auto;
  transform: rotate(4deg);
}

.english-title {
  margin-top: 4px;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 2.4vw, 46px);
  line-height: 1.15;
  letter-spacing: .01em;
}

.top-menu {
  margin-top: 30px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  color: #8b3f19;
  font-size: clamp(18px, 1.4vw, 30px);
  font-weight: 700;
  letter-spacing: .08em;
}

.top-menu a {
  color: #8b3f19;
  padding: 0 12px;
  line-height: 1.2;
  border-right: 3px solid #8b3f19;
}

.top-menu a:first-child {
  border-left: 3px solid #8b3f19;
}

.top-menu a::after {
  /*content: "▶";*/
  margin-left: 4px;
  font-size: .7em;
  vertical-align: .08em;
}

.top-menu a:last-child::after {
  content: "";
}

.top-menu a:hover {
  color: var(--green);
}

.top-right {
  display: grid;
  grid-template-columns: 650px 1fr;
  gap: 4px;
  align-items: center;
  justify-content: end;
  align-self: stretch;
}
.lang-switch img {
    width: 1.2em;
    height: 1.2em;
}

.language-buttons {
  display: grid;
  gap: 18px;
  align-content: center;
  justify-items: stretch;
}

.language-button {
  display: block;
  min-width: 138px;
  padding: 9px 20px;
  text-align: center;
  color: #8b3f19;
  border: 2px solid #21495c;
  border-radius: 7px;
  background: #dff2d0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(16px, 1.1vw, 24px);
  font-weight: 800;
  line-height: 1.1;
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
}

.language-button:not(.active) {
  background: #d4f1ff;
}

.practice-photo {
  width: 100%;
  max-height: 185px;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
  filter: drop-shadow(0 0 16px rgba(255,255,255,.95));
  -webkit-mask-image: radial-gradient(ellipse at center, black 58%, rgba(0,0,0,.75) 72%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, black 58%, rgba(0,0,0,.75) 72%, transparent 100%);
}

.mission-wrap .section {
  max-width: 1600px;
}

@media (max-width: 1100px) {
  .top-panel {
    grid-template-columns: 90px 1fr;
    gap: 16px;
    padding: 18px 24px;
  }

  .top-right {
    grid-column: 1 / -1;
    grid-template-columns: 150px 1fr;
  }

  .top-menu {
    margin-top: 18px;
  }
}

@media (max-width: 720px) {
  
  .top-photo {
    height: 180px;
  }

  .top-panel {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .top-left {
    grid-template-columns: 70px 64px;
    align-items: center;
  }

  .top-logo,
  .top-stamp {
    width: 70px;
  }

  .top-main {
    text-align: center;
  }

  .top-title-row {
    justify-content: center;
  }

  .brush-title {
    white-space: normal;
    font-size: 42px;
  }

  .english-title {
    font-size: 24px;
  }

  .top-menu {
    justify-content: center;
    font-size: 18px;
    line-height: 1.8;
  }

  .top-menu a {
    padding: 0 8px;
  }

  .top-right {
    grid-template-columns: 1fr;
  }

  .language-buttons {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    max-width: 320px;
    margin: 0 auto;
  }

  .practice-photo {
    max-height: 160px;
  }
  /* Make the intro section one column */
  .intro {
      grid-template-columns: 1fr;
      gap: 24px;
  }

  /* Hide the decorative quote panel */
  .quote-panel {
      display: none;
  }
  .side-image-panel {
      display: none;
  }
  .master-card {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .master-photo {
      display: none;
  }

  /*
  .wrapped-image {
      display: none;
  }
      */

  .service-grid{
      grid-template-columns:1fr;
      gap:14px;
  }
}


/* Fix: keep the header menu on one line and remove the pipe after the English flag */
.top-panel {
  grid-template-columns: 120px minmax(760px, 1fr) minmax(500px, 46%);
  gap: 24px;
}

.top-main {
  min-width: 0;
}

.top-menu {
  flex-wrap: nowrap;
  white-space: nowrap;
  font-size: clamp(17px, 1.15vw, 26px);
  letter-spacing: .04em;
  line-height: 1.25;
}

.top-menu a {
  white-space: nowrap;
  padding: 0 10px;
  border-right: 3px solid #8b3f19;
}

.top-menu a:first-child {
  border-left: 3px solid #8b3f19;
}

.top-menu a:last-child,
.top-menu .lang-switch {
  border-right: 0 !important;
  padding-right: 0;
}

.lang-switch img {
  display: inline-block;
  width: 1.1em;
  height: auto;
  vertical-align: -0.08em;
}

@media (max-width: 1500px) {
  .top-panel {
    grid-template-columns: 96px minmax(620px, 1fr) minmax(360px, 38%);
    gap: 18px;
    padding-left: 20px;
    padding-right: 22px;
    background: #f8f3e9;
  }

  .top-menu {
    font-size: clamp(15px, 1.25vw, 20px);
    letter-spacing: .02em;
  }

  .top-menu a {
    padding: 0 7px;
  }
}

@media (max-width: 1100px) {
  .top-menu {
    flex-wrap: wrap;
    white-space: normal;
  }
}


/* Mobile adapted top menu */
.menu-toggle {
  display: none;
  width: 44px;
  height: 40px;
  margin: 18px auto 0;
  padding: 8px;
  border: 1px solid rgba(139, 63, 25, 0.45);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.82);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #8b3f19;
  border-radius: 999px;
}

@media (max-width: 720px) {
  .top-panel {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .top-left {
    justify-content: center;
    justify-items: center;
  }

  .top-main {
    text-align: center;
  }

  .top-cn-logo {
    width: min(86vw, 380px);
  }

  .english-title {
    font-size: clamp(18px, 5vw, 24px);
  }

  .menu-toggle {
    display: inline-block;
  }

  .top-menu {
    display: none;
    width: min(92vw, 360px);
    margin: 14px auto 0;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    white-space: normal;
    background: rgba(255, 250, 241, 0.96);
    border: 1px solid rgba(139, 63, 25, 0.22);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(24, 57, 47, 0.14);
  }

  .top-menu.is-open {
    display: flex;
  }

  .top-menu a,
  .top-menu a:first-child,
  .top-menu a:last-child,
  .top-menu .lang-switch {
    display: block;
    padding: 10px 14px;
    border-left: 0;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(139, 63, 25, 0.16);
    text-align: center;
    font-size: 17px;
    line-height: 1.3;
  }

  .top-menu a:last-child,
  .top-menu .lang-switch {
    border-bottom: 0;
  }

  .lang-switch img {
    width: 24px;
  }

  .top-right {
    display: none;
  }
}

@media (min-width: 721px) {
  .top-menu {
    display: flex !important;
  }
}


/* Lineage page */
.lineage-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: clamp(28px, 5vw, 58px);
  box-shadow: 0 12px 32px rgba(24,57,47,.08);
}

.lineage-title {
  margin: 0 0 34px;
  text-align: center;
  color: var(--green);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.25;
  letter-spacing: .05em;
}

.lineage-card h2 {
  margin: 42px 0 18px;
  color: var(--green);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.3;
}

.lineage-card h2::after {
  content: "";
  display: block;
  width: 84px;
  height: 2px;
  margin-top: 10px;
  background: var(--gold);
}

.lineage-card p {
  margin: 0 0 18px;
  font-size: 1.05rem;
}

.lineage-list {
  margin: 10px 0 28px;
  padding-left: 1.3em;
}

.lineage-list li {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.lineage-figure {
  max-width: 560px;
  margin: 32px auto;
  text-align: center;
}

.lineage-figure img {
  width: 100%;
  display: block;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(24,57,47,.12);
}

.lineage-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: .95rem;
}

.lineage-actions {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 46px;
}

@media (max-width: 720px) {
  .lineage-card {
    padding: 24px;
  }

  .lineage-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .lineage-actions .outline-button {
    width: 100%;
  }
}


/* Courses page */
.location-grid,
.contact-location-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.location-card,
.contact-location-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 8px 20px rgba(24,57,47,.08);
}

.location-card h3,
.contact-location-card h3 {
    margin: 0 0 14px;
    color: var(--green);
    font-size: 1.35rem;
    line-height: 1.3;
}

.contact-location-card h4 {
    margin: 22px 0 8px;
    color: var(--green);
    font-size: 1.05rem;
}

.location-card p,
.contact-location-card p {
    margin: 8px 0;
}

.contact-location-card ul {
    margin: 8px 0 0;
    padding-left: 1.2em;
}

.contact-location-card li {
    margin-bottom: 6px;
}

.contact-location-card a {
    color: var(--green);
    border-bottom: 1px solid var(--gold);
}

@media (max-width: 720px) {
    .location-grid,
    .contact-location-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .location-card,
    .contact-location-card {
        padding: 22px;
    }
}

.master-links {
    display: flex;
    gap: 18px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 170px;
  padding: 9px 20px;

  border: 2px solid var(--green);
  border-radius: 15px; /* Changed from 999px */

  background: var(--button);
  color: var(--green);

  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;

  text-align: center;
  text-decoration: none;

  transition: all 0.25s ease;
}

.outline-button:hover {
  background: var(--green);
  color: #fffaf1;
  border-color: var(--green);

  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(24, 57, 47, 0.12);
}

.outline-button:active {
  transform: translateY(0);
}

.outline-button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* =========================================================
   UNIV Inspire-inspired homepage navigation and hero
   ========================================================= */

.inspire-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 241, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.inspire-nav {
  width: min(1500px, 100%);
  min-height: 96px;
  margin: 0 auto;
  padding: 13px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.inspire-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.inspire-seal {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex: 0 0 auto;
}



.inspire-menu {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  white-space: nowrap;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(14px, 1vw, 17px);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.inspire-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;

  padding: 10px 11px;
  color: var(--deep);
  line-height: 1.2;
  border: 0 !important;
}

.inspire-menu a:not(.lang-switch)::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 3px;

  height: 2px;
  background: var(--gold);

  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.inspire-menu a:not(.lang-switch):hover {
  color: var(--green);
}

.inspire-menu a:not(.lang-switch):hover::after {
  transform: scaleX(1);
}

.inspire-menu .lang-switch {
  margin-left: 4px;
  padding-right: 0;
}

.inspire-menu .lang-switch img {
  display: block;
  width: 25px;
  height: auto;
}

/* For Shop cart */

        body { font-family: 'Segoe UI', sans-serif; background: #f8f9fa; margin: 0; padding: 40px 20px; }
        .header-container { display: flex; justify-content: space-between; align-items: center; max-width: 1500px; margin: 0 auto 40px; }
        .shop-grid { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; max-width: 1500px; margin: 0 auto; }
        .item-card { background: white; border: 1px solid #e1e8ed; padding: 25px; border-radius: 12px; width: 245px; box-shadow: 0 6px 12px rgba(0,0,0,0.05); text-align: center; }
        .item-card img { max-width: 100%; height: 160px; object-fit: cover; border-radius: 6px; }
        .price-tag { font-size: 1.4rem; color: #27ae60; font-weight: bold; margin: 15px 0; }
        
        /* Buttons */
        .cart-btn { background-color: #2c3e50; color: white; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-weight: bold; text-decoration: none; }
        .add-btn { background-color: #007bff; color: white; border: none; padding: 12px 20px; border-radius: 6px; cursor: pointer; font-size: 1rem; width: 100%; font-weight: bold; }
        .add-btn:hover { background-color: #0056b3; }
        .demo-btn { background-color: #3498db; color: white; border: none; padding: 12px 20px; border-radius: 6px; cursor: pointer; font-size: 1rem; width: 100%; font-weight: bold; text-decoration: none; display: block; box-sizing: border-box;}
    

/* CSS Grid for Layout */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Individual Product Cards */
.product-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.product-thumb {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 15px;
}

h3 {
  font-size: 18px;
  color: #222;
  margin-bottom: 8px;
}

.price {
  font-size: 16px;
  font-weight: bold;
  color: #666;
  margin-bottom: 15px;
}

.buy-button {
  background-color: #000;
  color: white;
  border: none;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s ease;
}

.buy-button:hover {
  background-color: #333;
}











/* Override older header rules only for the new header */
.inspire-header .menu-toggle {
  margin: 0;
}

@media (max-width: 1100px) {
  .inspire-nav {
    min-height: 84px;
    padding: 11px 20px;
  }

  .inspire-seal {
    width: 47px;
    height: 47px;
  }

  .inspire-menu {
    font-size: 14px;
  }

  .inspire-menu a,
  .inspire-menu a:first-child,
  .inspire-menu a:last-child,
  .inspire-menu .lang-switch {
    padding-left: 7px;
    padding-right: 7px;
  }
}

@media (max-width: 860px) {
  .inspire-nav {
    position: relative;
  }

  .inspire-header .menu-toggle {
    display: inline-block;
    flex: 0 0 auto;
  }

  .inspire-menu {
    position: absolute;
    top: calc(100% + 1px);
    left: 16px;
    right: 16px;
    width: auto;
    margin: 0;
    padding: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    background: rgba(255, 250, 241, 0.99);
    border: 1px solid var(--line);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 18px 34px rgba(24, 57, 47, 0.16);
  }

  .inspire-menu.is-open {
    display: flex;
  }

  .inspire-menu a,
  .inspire-menu a:first-child,
  .inspire-menu a:last-child,
  .inspire-menu .lang-switch {
    display: block;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(47, 93, 80, 0.10) !important;
    text-align: center;
  }

  .inspire-menu .lang-switch {
    display: flex;
    justify-content: center;
    border-bottom: 0 !important;
  }

  .inspire-menu a::after {
    display: none;
  }
}

@media (max-width: 520px) {
  .inspire-nav {
    min-height: 72px;
    padding: 9px 14px;
    gap: 12px;
  }

  .inspire-seal {
    width: 38px;
    height: 38px;
  }

  .inspire-brand {
    gap: 9px;
  }
}

/* =========================================================
   Homepage layered banner
   Background, calligraphy logo and stamp remain separate
   ========================================================= */

.hero-banner {
    position: relative;
    width: 100%;
    height: clamp(240px, 30vw, 380px);
    overflow: hidden;
    isolation: isolate;
    
  /* Adds sharp rendering for Webkit (Chrome/Safari) and Firefox browsers */
  image-rendering: -webkit-optimize-contrast; 
  image-rendering: crisp-edges;

    /* Keep only a neutral base/overlay here.
       All slideshow images are rendered by ::before. */
    background:
        linear-gradient(
            90deg,
            rgba(11,44,36,.28),
            rgba(11,44,36,.18)
        ),
        #c7cbc0;
}
/*
.hero-banner::before{
    content:"";
    position:absolute;
    inset:-8px;

    background:url("images/practice.webp");
    background-repeat:no-repeat;
    background-size:100% auto;       
    background-position:center 1%;

    filter:blur(1.2px);
    transform:scale(1.0);

    z-index:0;
}*/
.hero-banner::before {
    content: "";
    position: absolute;
    inset: -8px;

    background-image: var(--banner-image, url("images/banner1.webp"));
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center 1%;

    /*filter: blur(1.2px);*/

    z-index: 0;
}

/* White calligraphy image placed as a separate layer */
.hero-cnlogo {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;

  width: min(78vw, 1180px);
  max-height: 28%;
  object-fit: contain;

  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;

  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.28));
}

/* Red seal placed independently in the banner corner */
.hero-stamp {
  position: absolute;
  z-index: 3;
  right: clamp(24px, 4vw, 72px);
  bottom: clamp(10px, 2vw, 30px);

  width: clamp(58px, 6vw, 96px);
  height: auto;

  object-fit: contain;
  pointer-events: none;
  user-select: none;

  /* The GIF has a white background, so this removes it visually
     when supported while preserving the red seal. */
  mix-blend-mode: multiply;

  transform: scale(0.5);
  transform-origin: bottom right;
}

@media (max-width: 860px) {
  .hero-banner {
    height: clamp(330px, 62vw, 500px);
    background-position: center center;
  }

  .hero-cnlogo {
    width: min(88vw, 760px);
    max-height: 52%;
  }

  .hero-stamp {
    right: 24px;
    bottom: 22px;
    width: clamp(52px, 9vw, 76px);
  }
}

@media (max-width: 520px) {
  .hero-banner {
    height: 300px;
    background-position: center center;
  }

  .hero-cnlogo {
    top: 46%;
    width: 92vw;
    max-height: 46%;
  }

  .hero-stamp {
    right: 14px;
    bottom: 14px;
    width: 52px;
  }
}


.events-banner::before{
    background-image:url("images/events.jpg");
    background-size:cover;
    background-position:center 58%;
}

.events-banner{
    position:relative;
}

.contactus-banner::before{
    background-image:url("images/contactus.jpg");
    background-size:cover;
    background-position:center 58%;
}

.museum-banner::before{
    background-image:url("images/museum.jpg");
    background-size:cover;
    background-position:center 58%;
}

.museum-banner{
    position:relative;
}

.museum-title{
    position:absolute;
    z-index:2;

    left:50%;
    top:50%;

    transform:translate(-50%,-50%);

    text-align:center;
    color:white;

    text-shadow:0 3px 18px rgba(0,0,0,.45);
}

.museum-title h1{
    font-size:clamp(40px,4vw,68px);
    margin:0;
}

.museum-title p{
    margin-top:12px;
    font-size:clamp(18px,2vw,28px);
    letter-spacing:.08em;
}
    
/* =========================================================
   RESPONSIVE OVERRIDES
   Breakpoints ordered from widest to narrowest:
   1500px → 1100px → 860px → 720px → 520px
   ========================================================= */

@media (max-width: 1500px) {
  .inspire-nav {
    width: min(1320px, 100%);
  }
}

@media (max-width: 1100px) {
  .inspire-nav {
    min-height: 84px;
    padding: 11px 20px;
  }

  .inspire-seal {
    width: 50px;
    height: 50px;
  }

  .inspire-menu {
    font-size: 14px;
  }

  .inspire-menu a,
  .inspire-menu a:first-child,
  .inspire-menu a:last-child,
  .inspire-menu .lang-switch {
    padding-left: 7px;
    padding-right: 7px;
  }
}

@media (max-width: 860px) {
  .inspire-nav {
    position: relative;
  }

  .inspire-header .menu-toggle {
    display: inline-block;
    flex: 0 0 auto;
  }

  .inspire-menu {
    position: absolute;
    top: calc(100% + 1px);
    left: 16px;
    right: 16px;
    width: auto;
    margin: 0;
    padding: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    white-space: normal;
    background: rgba(255, 250, 241, 0.99);
    border: 1px solid var(--line);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 18px 34px rgba(24, 57, 47, 0.16);
  }

  .inspire-menu.is-open {
    display: flex;
  }

  .inspire-menu a,
  .inspire-menu a:first-child,
  .inspire-menu a:last-child,
  .inspire-menu .lang-switch {
    display: block;
    padding: 12px 14px;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(47, 93, 80, 0.10) !important;
    text-align: center;
  }

  .inspire-menu .lang-switch {
    display: flex;
    justify-content: center;
    border-bottom: 0 !important;
  }

  .inspire-menu a::after {
    display: none;
  }

  .hero-banner {
    height: clamp(300px, 62vw, 420px);
    background-position: center;
  }

  .hero-banner::before {
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: none;
    transform: none;
  }

  .hero-cnlogo {
    width: min(88vw, 760px);
    max-height: 52%;
  }

  .hero-stamp {
    right: 24px;
    bottom: 22px;
    width: clamp(52px, 9vw, 76px);
  }

  .intro,
  .mission-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 18px;
  }

  .card,
  .quote-panel,
  .mission-card,
  .contact-card {
    padding: 24px;
  }
}

@media (max-width: 720px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .quote-panel,
  .side-image-panel,
  .master-photo {
    display: none;
  }

  .master-card {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .service-grid,
  .location-grid,
  .contact-location-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    gap: 14px;
  }

  .location-grid,
  .contact-location-grid {
    gap: 16px;
  }

  .location-card,
  .contact-location-card {
    padding: 22px;
  }

  .lineage-card {
    padding: 24px;
  }

  .lineage-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .lineage-actions .outline-button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .inspire-nav {
    min-height: 72px;
    padding: 9px 14px;
    gap: 12px;
  }

  .inspire-seal {
    width: 38px;
    height: 38px;
  }

  .inspire-brand {
    gap: 9px;
  }

  .hero-banner {
    height: 300px;
  }

  .hero-banner::before {
    background-size: cover;
    background-position: center;
  }

  .hero-cnlogo {
    top: 46%;
    width: 92vw;
    max-height: 46%;
  }

  .hero-stamp {
    right: 14px;
    bottom: 14px;
    width: 52px;
  }
}


/* ===== Header wordmark ===== */
.inspire-brand{
    display:flex;
    align-items:center;
    gap:28px;
}

.inspire-wordmark{
    display:block;
    width:500px;
    max-width:42vw;
    height:auto;
    object-fit:contain;
}

@media (max-width:1100px){
    .inspire-wordmark{
        width:400px;
    }
}

@media (max-width:860px){
    .inspire-wordmark{
        display:block;
        width:300px;
        max-width:58vw;
    }
}

@media (max-width: 860px) and (orientation: landscape){
    .inspire-wordmark{
        display:none;
    }
}


/* New Picture Grid */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
}

/* ─── CSS GRID LAYOUT ─── */
.image-grid {
    display: grid;
    /* Automatically fits as many 250px columns as possible, with a 20px gap */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px; 
}

/* Individual Image Container */
.grid-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #eee;
    aspect-ratio: 1 / 1; /* Forces items to be perfect squares */
}

/* Image Styling */
.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops image to fill the square without stretching */
    display: block;
    transition: transform 0.3s ease;
}

/* Optional hover effect */
.grid-item img:hover {
    transform: scale(1.05);
}

/* for wrapped photo and text */
.image-wrap-box {
    display: flow-root; 
}

.wrapped-image {
    float: left; 
    margin-right: 20px; 
    margin-bottom: 10px;
    max-width: 250px; 
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.photo-background-box {
    /* 1. Link your image (replace image.jpg with your file name) */
    background-image: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)), url("images/006_001.jpg");
    
    /* 2. Make the image cover the entire box without stretching */
    background-size: cover;
    
    /* 3. Center the image horizontally and vertically */
    background-position: center;
    
    /* 4. Add inner spacing so your text doesn't touch the edge of the image */
    padding: 40px;
    
    /* 3. Dark text color to contrast with the newly brightened photo */
    color: #333333;  
}


/* More Flxible image box */
.fleximage-wrap-box {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  min-height: 150px;
  padding: 20px;
}

.img-right { flex-direction: row; }
.img-left  { flex-direction: row-reverse; }

/* FIX: Ensures the inner text flows normally from top to bottom */
.text-group {
  display: flex;
  flex-direction: column; 
  text-align: left;
  max-width: 80%; /* Prevents text from hitting the image */
}

/* Optional: Removes default browser margins that disrupt alignment */
.text-group h3, .text-group p {
  margin: 0;
}
.text-group p {
  margin-top: 5px;
}


/* New classes start here*/
/* Reset basic margins */
body {
  margin: 0;
  font-family: Arial, sans-serif;
}

/* 1. Pin the navigation wrapper to the top-right corner */
.navbar {
  position: absolute;
  top: 0;
  right: 20px;
  padding: 5px 30px;
  z-index: 1000; /* Ensures it stays on top of other content */
}

/* 2. Position context for the hidden dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Style the dropdown trigger button */
.dropbtn {
  background-color: #a6e2a6;
  color: white;
  padding: 5px 20px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

.dropbtn:hover {
  background-color: #555;
}

/* 3. Hide the menu items by default and position them absolutely */
.dropdown-content {
  display: none;
  position: absolute;
  right: 0; /* Aligns the right edge of the menu with the right edge of the button */
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 14px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

/* Style individual links inside the dropdown */
.dropdown-content a {
  color: black;
  padding: 5px 10px;
  font-size: 14px;
  text-decoration: none;
  display: block;
}

/* Change background color of links on hover */
.dropdown-content a:hover {
  background-color: #f1f1f1;
}

/* 4. Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}