/* Guang Hui Cultural Foundation, U.S.A. — static rebuild of the 2020 iPage Website Builder site.
   Layout follows the archived screenshots (1280px wide, 960px content column). */

@font-face { font-family: "Lato"; font-weight: 300; font-display: swap; src: url("../fonts/lato-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 400; font-display: swap; src: url("../fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-display: swap; src: url("../fonts/lato-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans Condensed"; font-weight: 300; font-display: swap; src: url("../fonts/open-sans-condensed-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/open-sans-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Loved by the King"; font-weight: 400; font-display: swap; src: url("../fonts/loved-by-the-king-latin-400-normal.woff2") format("woff2"); }

:root {
  --teal: #165c6a;
  --teal-light: #2aa8c1;
  --aqua: #28a9c1;
  --yellow: #fdd835;
  --navy: #003061;
  --blue: #1e8bff;
  --ink: #222;
  --muted: #8a8a8a;
  --ts: 1; /* text-size multiplier; theme.yaml text_size sets it */
  --zh: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Heiti TC", sans-serif;
  --sans: "Lato", var(--zh);
  --cond: "Open Sans Condensed", "Lato", var(--zh);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-weight: 300; color: var(--ink); background: #fff; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
p { margin: 0 0 .8em; }
.wrap { width: 100%; max-width: 960px; margin: 0 auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { background: linear-gradient(rgba(255, 255, 255, .08), rgba(255, 255, 255, .08)) top / 100% 20px no-repeat, var(--teal); padding-top: 20px; box-shadow: 0 3px 4px rgba(0, 0, 0, .35); position: relative; z-index: 2; }
.brand { display: flex; flex-direction: column; align-items: center; padding: 20px 16px 0; text-decoration: none; }
.brand-logo { width: 131px; }
.brand-title { display: flex; align-items: flex-end; gap: 30px; margin-top: 12px; }
.brand-title img { height: 100px; width: auto; }
.brand-title img.t-hui { height: 105px; }
.brand-title img.t-jiao { height: 115px; }
.brand-sub { font-family: var(--cond); font-weight: 300; font-size: calc(36px * var(--ts)); color: #e9f1f3; margin-top: 2px; letter-spacing: .01em; }

.site-nav ul { list-style: none; margin: 0 auto; padding: 0 16px; max-width: 992px; display: flex; justify-content: space-between; }
.site-nav li { flex: 1 1 0; }
.site-nav a { display: block; text-align: center; color: #fff; text-decoration: none; font-family: var(--sans); font-weight: 400; font-size: calc(15px * var(--ts)); padding: 18px 4px 14px; border-bottom: 4px solid transparent; }
.site-nav a:hover, .site-nav a:focus-visible { border-bottom-color: rgba(42, 168, 193, .5); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--teal-light); }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal); color: #fff; text-align: center; padding: 16px 16px 14px; }
.site-footer img { width: 135px; margin: 0 auto 8px; }
.site-footer .name { font-size: calc(18px * var(--ts)); letter-spacing: .08em; margin: 0; }
.site-footer .name strong { font-family: var(--zh); font-weight: 700; color: #fff; margin-right: .4em; }
.site-footer .name span { font-family: var(--cond); font-weight: 300; color: #d6e4e8; }
.site-footer .addr { font-family: var(--cond); font-weight: 300; font-size: calc(18px * var(--ts)); color: #c4d6db; margin: 0; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Shared bits ---------- */
.bar-title { background: var(--teal); color: #fff; font-family: var(--cond); font-weight: 700; font-size: calc(34px * var(--ts)); padding: 6px 8px; box-shadow: 0 2px 3px rgba(0, 0, 0, .3); }
.bar-title small { font-size: calc(30px * var(--ts)); font-weight: 700; margin: 0 .3em; }

/* ---------- Home ---------- */
.home-hero { background: var(--yellow); margin-top: 16px; padding: 14px 0; }
.home-hero h1 { font-size: calc(36px * var(--ts)); font-weight: 700; color: var(--teal); font-family: var(--zh); }
.home-hero a { text-decoration: none; }
.feature { display: grid; grid-template-columns: 1fr 434px; gap: 34px; align-items: start; margin-top: 42px; }
.feature + .feature { margin-top: 64px; }
.feature h2 { grid-column: 1 / -1; font-family: var(--zh); font-size: calc(36px * var(--ts)); font-weight: 700; color: var(--teal); }
.feature p { font-size: calc(14px * var(--ts)); color: var(--teal); line-height: 1.55; letter-spacing: .02em; }
.feature img { width: 434px; aspect-ratio: 434 / 212; object-fit: cover; }
.feature .first-p { text-align: left; }
.policy { display: grid; grid-template-columns: 1fr 311px; gap: 44px; border-top: 1px solid var(--teal); border-bottom: 1px solid var(--teal); padding: 18px 0 14px; margin: 110px 0 36px; }
.policy h2 { font-family: var(--cond); font-weight: 700; font-size: calc(18px * var(--ts)); color: #000; margin-bottom: 6px; }
.policy p { font-family: var(--cond); font-weight: 300; font-size: calc(16px * var(--ts)); text-align: justify; line-height: 1.55; margin: 0; }
.policy img { width: 311px; aspect-ratio: 3 / 2; object-fit: cover; align-self: center; }

/* ---------- Intro ---------- */
.intro-top { padding: 12px 0 72px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.tile { position: relative; display: block; overflow: hidden; aspect-ratio: 473 / 308; background: #6bcee0; color: #fff; text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile:hover img { transform: scale(1.04); }
.tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 56px 12px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .45)); font-weight: 700; font-size: calc(18px * var(--ts)); text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); line-height: 1.3; }
.tile .plus { position: absolute; right: 12px; bottom: 12px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .9); display: grid; place-items: center; }
.tile .plus svg { width: 14px; height: 14px; fill: #333; }
.intro-review { background: #fbfdff; border-top: 1px solid #eef3f6; padding: 0 0 80px; }
.mosaic { display: grid; gap: 10px; margin-top: 26px; }
.mosaic-row { display: grid; grid-template-columns: 596fr 340fr; gap: 10px; }
.mosaic-row:nth-child(even) { grid-template-columns: 340fr 597fr; }
.mosaic-row:has(> :only-child) { grid-template-columns: 1fr; }
.mosaic figure { margin: 0; position: relative; height: 197px; overflow: hidden; border: 1px solid #ddd; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 10px 6px; color: #fff; font-weight: 700; font-size: calc(14px * var(--ts)); text-align: right; background: linear-gradient(transparent, rgba(0, 0, 0, .5)); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }

/* ---------- Courses ---------- */
.courses { background: url("../img/bg-clouds.jpg") center top / cover no-repeat, #3d8fd6; padding: 40px 0 0; overflow: hidden; }
.courses > .wrap > h1 { color: #fbfdff; font-size: calc(24px * var(--ts)); font-weight: 700; font-family: var(--zh); margin-bottom: 8px; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.course-row { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; padding: 26px 0 24px; border-bottom: 2px solid rgba(30, 110, 200, .6); }
.course-row:last-of-type { border-bottom: 0; }
.course-row > img { width: 100%; aspect-ratio: 3 / 2.2; object-fit: cover; }
.course-card { position: relative; min-height: 400px; padding: 18px 26px 26px; color: #fff; }
.course-card h2 { font-family: var(--zh); font-size: calc(18px * var(--ts)); font-weight: 700; position: relative; z-index: 1; }
.course-card.teal { background: var(--teal); transform: rotate(-9deg) scale(.92); }
.course-card.maroon { background: #6b1000; text-align: right; }
.course-card.blue { background: #2e96ff; }
.course-card .sheet { background: #fff; color: #222; margin-top: 18px; padding: 22px 22px 14px 28px; box-shadow: 0 3px 8px rgba(0, 0, 0, .3); text-align: left; }
.course-card.teal .sheet { transform: rotate(-6deg); }
.course-card.maroon .sheet { transform: rotate(16deg); margin: 36px -6px 0 26px; color: var(--navy); }
.course-card.blue .sheet { transform: rotate(-13deg); margin: 30px -40px 0 20px; }
.course-card ul { margin: 0; padding-left: 1.1em; font-size: calc(17px * var(--ts)); line-height: 1.45; }
.course-card li + li { margin-top: 2px; }
.course-card .sheet img { width: 64%; margin: 10px 0 0 auto; }
.lectures { position: relative; padding: 40px 0 0; }
.lecture-badge { width: 393px; height: 393px; border-radius: 50%; background: #fff; padding: 8px; margin-left: -14px; position: relative; z-index: 1; box-shadow: 0 0 18px rgba(255, 255, 255, .8); }
.lecture-badge img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.lecture-badge h2 { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--zh); font-size: calc(48px * var(--ts)); font-weight: 700; color: #11407a; }
.lecture-band { background: var(--blue); margin-top: -130px; padding: 150px 0 60px; }
.lecture-circles { display: grid; grid-template-columns: 264px 312px 281px; justify-content: center; gap: 0 24px; align-items: start; }
.circle { background: #fff; border-radius: 50%; aspect-ratio: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 34px; color: #000; }
.circle h3 { font-family: var(--zh); font-size: calc(16px * var(--ts)); font-weight: 700; margin-bottom: 6px; }
.circle p { font-size: calc(13.5px * var(--ts)); margin: 0; line-height: 1.5; }
.circle.c1 { margin-top: 80px; }
.circle.c2 { margin-top: -170px; }
.circle.c3 { margin-top: 45px; }
.courses-end { height: 6px; background: #0c2f55; }

/* ---------- About ---------- */
.about-intro { display: grid; grid-template-columns: 1fr 416px; gap: 30px; padding: 14px 0 22px; }
.about-intro p { font-size: calc(14px * var(--ts)); line-height: 1.5; margin-bottom: .2em; }
.about-intro .hl { color: #6a3fa0; }
.about-intro img { width: 100%; aspect-ratio: 540 / 359; object-fit: cover; }
.about-clouds { background: url("../img/bg-clouds.jpg") center 30% / cover no-repeat, #6fa9df; padding: 70px 0 30px; }
.about-org { display: grid; grid-template-columns: 1fr 390px; gap: 20px; align-items: start; }
.about-org img { width: 100%; aspect-ratio: 651 / 254; object-fit: cover; }
.about-org h2 { font-family: var(--zh); font-size: calc(20px * var(--ts)); font-weight: 700; color: var(--teal); margin-bottom: 14px; }
.about-org p { font-size: calc(13px * var(--ts)); line-height: 1.5; margin-bottom: 10px; }
.about-org strong { font-weight: 700; }
.about-photo { background: #fff; padding: 0; margin-top: 10px; position: relative; box-shadow: 0 1px 6px rgba(0, 0, 0, .25); }
.about-photo > img { width: 100%; }
.about-thumbs { position: absolute; left: 12px; bottom: 26px; display: flex; gap: 18px; }
.about-thumbs img { width: 144px; aspect-ratio: 148 / 118; object-fit: cover; border: 4px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.about-pillars { background: var(--aqua); color: #fbfdff; border-top: 6px solid #0f3d6b; padding: 40px 0 48px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.pillar img { width: 172px; height: 172px; border-radius: 50%; object-fit: cover; margin: 0 auto 18px; }
.pillar h3 { text-align: center; font-family: var(--zh); font-size: calc(20px * var(--ts)); font-weight: 700; margin-bottom: 12px; }
.pillar p, .pillar li { font-size: calc(15px * var(--ts)); line-height: 1.2; }
.pillar p { margin: 0; }
.pillar ul { margin: 0; padding-left: 1.1em; }
.pillars-rule { border: 0; border-top: 1px solid rgba(255, 255, 255, .7); margin: 40px 0 0; }

/* ---------- Summer ---------- */
.summer { padding: 14px 0 56px; }
.camp-banner { position: relative; background: #fdd900; aspect-ratio: 960 / 344; }
.camp-banner > * { position: absolute; }
.camp-banner .bg { left: 0; bottom: 0; width: 100%; }
.camp-banner .y2017 { left: 9.2%; top: -1.2%; width: 24.7%; }
.camp-banner .toy1 { left: 61.8%; top: 36%; width: 5.9%; }
.camp-banner .toy2 { left: 73.2%; top: 36%; width: 9.2%; }
.camp-banner .toy3 { left: 86.9%; top: 33.1%; width: 9.5%; }
.camp-banner .who { left: 58.9%; top: 85.2%; width: 37.5%; height: 10.5%; background: #d42000; color: #fff; font-weight: 700; font-size: clamp(11px, 2vw, 20px); display: grid; place-items: center; white-space: pre-wrap; text-align: center; }
.camp-card { background: #fff; border-radius: 10px; box-shadow: 0 1px 8px rgba(0, 0, 0, .25); margin-top: 28px; padding: 24px 12px 30px; }
.camp-head { display: grid; grid-template-columns: 364px 1fr; gap: 42px; align-items: end; border-bottom: 2px solid var(--teal); padding-bottom: 4px; }
.camp-head h1 { font-family: var(--cond); font-weight: 300; font-size: calc(47px * var(--ts)); color: #333; line-height: 1.1; border-bottom: 1px solid var(--teal); margin-bottom: 6px; padding-bottom: 6px; }
.camp-h { margin: 34px 0 6px; height: 51px; width: auto; }
.camp-text { font-size: calc(15px * var(--ts)); color: var(--muted); line-height: 1.55; border-bottom: 1px dotted #bbb; padding-bottom: 10px; }
.camp-reg { display: grid; grid-template-columns: 224px 1fr; gap: 16px; margin: 50px 0 0 236px; }
.btn-dl { display: flex; align-items: center; gap: 10px; background: var(--teal); color: #fff; text-decoration: none; border-radius: 4px; padding: 15px 18px; font-size: calc(18px * var(--ts)); font-weight: 300; }
.btn-dl svg { width: 17px; height: 17px; fill: #fff; flex: none; }
.btn-dl:hover { background: #0f4954; }
.camp-reg .kids { width: 227px; margin-top: -6px; }
.camp-info img { height: 52px; width: auto; }
.camp-info { font-size: calc(15px * var(--ts)); color: var(--muted); line-height: 1.5; }
.camp-info ol { margin: 4px 0; padding-left: 28px; }
.camp-info b { font-weight: 700; }
.camp-fees img.h { height: 64px; width: auto; margin-top: 34px; }
.fee-table { width: 775px; border-collapse: collapse; border: 2px solid #000; font-family: "Times New Roman", var(--zh); color: #000; margin-top: 4px; }
.fee-table th, .fee-table td { border: 1px solid #000; padding: 8px 10px; font-size: calc(15px * var(--ts)); font-weight: 400; text-align: left; line-height: 1.3; }
.fee-table thead th { text-align: center; font-family: var(--zh); }
.fee-table tbody { border-top: 2px solid #000; }
.fee-table .group { text-align: center; font-family: var(--zh); font-size: calc(20px * var(--ts)); }
.fee-table .group small { font-size: calc(12px * var(--ts)); }
.fee-table .price { text-align: right; width: 12%; }
.fee-table .featured .group { background: #000; color: #fff; font-weight: 700; font-size: calc(20px * var(--ts)); }
.fee-table .featured td { font-size: calc(18px * var(--ts)); font-weight: 700; }
.fee-table .featured .price { font-size: calc(22px * var(--ts)); }
.teachers-head { position: relative; margin-top: 46px; height: 92px; }
.teachers-head img { position: absolute; }
.teachers-head .grass { left: 10px; bottom: 0; width: 650px; }
.teachers-head .title { left: 67px; top: 0; width: 526px; }
.teachers-head .animals { right: 41px; bottom: 0; width: 293px; }
.teachers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; margin-top: 18px; }
.teacher { display: grid; grid-template-columns: 164px 1fr; gap: 46px; padding: 0 0 28px 22px; border-bottom: 2px solid #f6d3d3; color: #333; }
.teacher img { width: 162px; height: 162px; border-radius: 50%; border: 1px solid #ddd; }
.teacher h3 { font-family: var(--zh); font-size: calc(20px * var(--ts)); font-weight: 400; margin-bottom: 8px; }
.teacher p { font-size: calc(15px * var(--ts)); margin: 0 0 12px; }
.teacher p.edu { font-size: calc(14px * var(--ts)); line-height: 1.2; }
.summer-contact { background: var(--teal); color: #fff; padding: 14px 0 22px; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.summer-contact .row { display: flex; align-items: flex-end; gap: 50px; }
.summer-contact .mini-title { display: flex; gap: 14px; align-items: flex-end; }
.summer-contact .mini-title img { height: 70px; width: auto; }
.summer-contact .row span { font-family: var(--cond); font-weight: 300; font-size: calc(37px * var(--ts)); color: #e9f1f3; }
.summer-contact ul { list-style: none; padding: 0; margin: 34px 0 0; display: flex; gap: 90px; font-size: calc(16px * var(--ts)); font-weight: 300; }
.summer-contact li { display: flex; align-items: center; gap: 12px; }
.summer-contact li svg { width: 30px; height: 30px; flex: none; }
.summer-contact a { text-decoration: none; }

/* ---------- Grace's Heaven ---------- */
.gh-bar { background: linear-gradient(#2b97ff, #1a7ee6); color: #fff; padding: 18px 0; box-shadow: 0 4px 6px rgba(0, 0, 0, .25); position: relative; z-index: 1; }
.gh-bar .wrap { display: flex; align-items: center; gap: 24px; padding: 0 10px; }
.gh-bar svg { width: 50px; height: 40px; fill: #fbfdff; flex: none; }
.gh-bar h1 { font-family: var(--sans); font-weight: 400; font-size: calc(36px * var(--ts)); flex: 1; }
.gh-bar p { font-family: "Loved by the King", cursive; font-size: calc(24px * var(--ts)); margin: 0; }
.gh-sky { background: url("../img/gh-sky.jpg") center top / cover no-repeat, #6eb7f2; padding-top: 213px; box-shadow: 0 6px 6px rgba(0, 0, 0, .25); }
.gh-sky img { display: block; margin: 0 auto; }
.gh-body { background: linear-gradient(#fff 0, #fff 260px, #3aa0ff 260px, #0a64c8 900px, #9ccbff 1500px); padding-bottom: 120px; }
.gh-card { background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); margin-top: -2px; padding: 20px 6px 30px; min-height: 760px; display: grid; grid-template-columns: 1fr 518px; gap: 20px; align-items: start; }
.gh-card h2 { font-family: var(--zh); font-size: calc(36px * var(--ts)); font-weight: 700; }

/* ---------- Small screens ---------- */
@media (max-width: 1000px) {
  .wrap { padding: 0 16px; }
  .feature, .policy, .about-intro, .about-org, .camp-head, .gh-card { grid-template-columns: 1fr; }
  .feature img, .policy img { width: 100%; }
  .course-row { grid-template-columns: 1fr; }
  .course-card { min-height: 0; transform: none !important; }
  .course-card .sheet { transform: none !important; margin: 16px 0 0 !important; }
  .lecture-badge { margin: 0 auto; }
  .lecture-circles { grid-template-columns: minmax(0, 300px); }
  .circle.c1, .circle.c2, .circle.c3 { margin: 0 0 20px; }
  .lecture-band { margin-top: -100px; padding-top: 130px; }
  .pillars, .teachers { grid-template-columns: 1fr; }
  .camp-reg { margin-left: 0; grid-template-columns: 1fr; }
  .fee-table { width: 100%; }
  .fee-table th, .fee-table td { padding: 3px 4px; }
  .teachers-head { height: auto; }
  .teachers-head img { position: static; }
  .teachers-head .grass, .teachers-head .animals { display: none; }
  .summer-contact .row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .summer-contact ul { flex-direction: column; gap: 10px; margin-top: 16px; }
  .about-thumbs { position: static; padding: 12px; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .brand-logo { width: 96px; }
  .brand-title { gap: 14px; }
  .brand-title img, .brand-title img.t-hui, .brand-title img.t-jiao { height: 56px; }
  .brand-sub { font-size: calc(24px * var(--ts)); }
  .site-nav ul { flex-wrap: wrap; justify-content: center; }
  .site-nav li { flex: 0 0 auto; }
  .site-nav a { padding: 12px 10px 8px; font-size: calc(14px * var(--ts)); }
  .tiles, .mosaic-row, .mosaic-row:nth-child(even) { grid-template-columns: 1fr; }
  .home-hero h1, .feature h2 { font-size: calc(28px * var(--ts)); }
  .lecture-badge { width: 280px; height: 280px; }
  .lecture-badge h2 { font-size: calc(34px * var(--ts)); }
  .teacher { grid-template-columns: 110px 1fr; gap: 20px; padding-left: 0; }
  .teacher img { width: 110px; height: 110px; }
  .gh-bar .wrap { flex-wrap: wrap; }
  .gh-bar h1 { font-size: calc(26px * var(--ts)); }
  .gh-sky { padding-top: 90px; }
  .camp-head h1 { font-size: calc(34px * var(--ts)); }
  .camp-banner { margin-bottom: 40px; }
  .camp-banner .who { left: 0; top: 100%; width: 100%; height: auto; padding: 6px 8px; white-space: normal; text-align: center; font-size: calc(15px * var(--ts)); }
  .summer-contact .mini-title img { height: 44px; }
  .summer-contact .row span { font-size: calc(26px * var(--ts)); }
}
