/* ── Ching Tien Foundation — Shared Brand CSS ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:        #faf7fc;
  --bg2:       #f4eef9;
  --violet:    #7b5ea7;
  --violet2:   #9b7ec8;
  --rose:      #e8a0b4;
  --rose2:     #d4889a;
  --deep:      #3d2b5e;
  --muted:     rgba(61,43,94,0.65);
  --card-bg:   rgba(255,255,255,0.88);
  --border:    rgba(123,94,167,0.18);
  --f-head:    'Playfair Display', Georgia, serif;
  --f-body:    'Inter', system-ui, sans-serif;
  --r:         12px;
  --shadow:    0 4px 24px rgba(61,43,94,0.10);
}
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--deep);
  line-height: 1.7;
  min-height: 100vh;
}

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5,h6 { font-family: var(--f-head); color: var(--deep); line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p  { color: var(--muted); margin-bottom: 1rem; }
a  { color: var(--violet); text-decoration: none; }
a:hover { color: var(--rose2); }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,247,252,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}
.nav-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-family: var(--f-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--violet);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav-logo span { display: block; font-size: 0.7rem; font-family: var(--f-body); font-weight: 400; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 0.15rem; list-style: none; }
.nav-links a { padding: 0.4rem 0.7rem; border-radius: 6px; font-size: 0.87rem; font-weight: 500; color: var(--deep); transition: background 0.2s; }
.nav-links a:hover { background: rgba(123,94,167,0.08); color: var(--violet); }
.nav-links a.active { color: var(--violet); font-weight: 600; }
.nav-links .dropdown { position: relative; }
.nav-links .dropdown > a::after { content: ' ▾'; font-size: 0.7rem; }
.dropdown-menu { display: none; position: absolute; top: calc(100% + 4px); left: 0; background: white; border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); min-width: 180px; padding: 0.4rem 0; }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 0.5rem 1rem; font-size: 0.85rem; color: var(--deep); }
.dropdown-menu a:hover { background: var(--bg2); color: var(--violet); }
.nav-cta { background: var(--deep) !important; color: #fff !important; border-radius: 999px; padding: 0.45rem 1.1rem !important; font-weight: 600 !important; }
.nav-cta:hover { background: var(--violet) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; border: none; background: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--deep); border-radius: 2px; }
.mobile-menu { display: none; position: fixed; inset: 0; background: white; z-index: 200; padding: 5rem 2rem 2rem; flex-direction: column; gap: 0.5rem; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1.2rem; padding: 0.8rem 0; border-bottom: 1px solid var(--border); color: var(--deep); }
.mobile-close { position: absolute; top: 1.2rem; right: 1.5rem; font-size: 1.8rem; background: none; border: none; cursor: pointer; color: var(--deep); }

/* ── HERO ── */
.hero {
  background: linear-gradient(150deg, #fce8f3 0%, #ede0f7 45%, #e0d4f2 100%);
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content:''; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(250,247,252,0.55) 0%, rgba(237,224,247,0.72) 100%),
    url('/images/site/students-04.jpg') center 30% / cover no-repeat;
  pointer-events: none;
}
.hero-inner { max-width: 760px; margin: 0 auto; position: relative; }
.hero .tag { display: inline-block; background: rgba(123,94,167,0.12); color: var(--violet); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.35rem 0.9rem; border-radius: 999px; margin-bottom: 1.2rem; }
.hero h1 { margin-bottom: 1.2rem; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 600px; margin: 0 auto 2rem; }
.btn { display: inline-block; padding: 0.75rem 1.8rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem; transition: all 0.2s; cursor: pointer; border: none; }
.btn-primary { background: var(--deep); color: #fff; }
.btn-primary:hover { background: var(--violet); color: #fff; }
.btn-outline { background: transparent; color: var(--violet); border: 2px solid var(--violet); }
.btn-outline:hover { background: var(--violet); color: #fff; }
.btn-rose { background: var(--rose2); color: #fff; }
.btn-rose:hover { background: var(--deep); color: #fff; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── SECTIONS ── */
.section { padding: 5rem 1.5rem; }
.section-alt { background: var(--bg2); }
.container { max-width: 1140px; margin: 0 auto; }
.section-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rose2); margin-bottom: 0.75rem; }
.section-title { margin-bottom: 1.2rem; }
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 600px; margin-bottom: 3rem; }

/* ── STATS BAR ── */
.stats-bar { background: var(--deep); padding: 2.5rem 1.5rem; }
.stats-bar .container { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 2rem; }
.stat { text-align: center; color: #fff; }
.stat-num { font-family: var(--f-head); font-size: 2.8rem; font-weight: 700; color: var(--rose); line-height: 1; }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-top: 0.3rem; }

/* ── CARDS ── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--r); padding: 2rem; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.75rem; }
.card p { margin-bottom: 0; font-size: 0.93rem; }
.card-icon { font-size: 2rem; margin-bottom: 1rem; }

/* ── SCHOLAR CARD ── */
.scholar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.scholar-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--r); padding: 1.5rem; box-shadow: var(--shadow); text-align: center; }
.scholar-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; background: linear-gradient(135deg, var(--rose), var(--violet)); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: #fff; }
.scholar-card h4 { font-size: 1rem; margin-bottom: 0.2rem; }
.scholar-card .country { font-size: 0.78rem; color: var(--rose2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.3rem; }
.scholar-card .institution { font-size: 0.82rem; color: var(--muted); margin-bottom: 0; }
.year-badge { display: inline-block; background: var(--violet); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; margin-bottom: 0.7rem; }

/* ── QUOTE ── */
.quote-block { border-left: 4px solid var(--rose); padding: 1rem 1.5rem; margin: 1.5rem 0; background: rgba(232,160,180,0.08); border-radius: 0 var(--r) var(--r) 0; }
.quote-block p { color: var(--deep) !important; font-style: italic; font-size: 1.05rem; margin: 0; }
.quote-block cite { font-size: 0.8rem; color: var(--muted); font-style: normal; font-weight: 600; }

/* ── IMPACT SCHOLAR ── */
.impact-card { display: grid; grid-template-columns: 200px 1fr; gap: 2.5rem; align-items: start; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--r); padding: 2.5rem; box-shadow: var(--shadow); margin-bottom: 2rem; }
.impact-card img { width: 200px; height: 220px; object-fit: cover; border-radius: var(--r); }
.impact-card .cohort { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--rose2); margin-bottom: 0.5rem; }
.impact-card h3 { margin-bottom: 0.5rem; }

/* ── NEWS ── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.news-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.news-card-body { padding: 1.5rem; }
.news-meta { font-size: 0.78rem; color: var(--rose2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.5rem; }
.news-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.news-card p { font-size: 0.88rem; margin: 0; }
.news-img { width: 100%; height: 180px; object-fit: cover; background: linear-gradient(135deg, var(--rose) 0%, var(--violet) 100%); display: flex; align-items: center; justify-content: center; font-size: 3rem; }

/* ── MEDIA LIST ── */
.media-item { display: flex; gap: 1.5rem; align-items: flex-start; padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.media-date { min-width: 80px; font-size: 0.78rem; font-weight: 700; color: var(--violet); text-align: center; }
.media-content p { font-size: 0.9rem; margin: 0; }
.media-content a { font-weight: 600; }

/* ── DONATE BAND ── */
.donate-band {
  background: linear-gradient(135deg, #3d2b5e 0%, #7b5ea7 100%);
  padding: 5rem 1.5rem; text-align: center;
}
.donate-band h2,
.donate-band p,
.donate-band * { color: #fff; }
.donate-band p { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto 2rem; }
.donate-band .btn-rose { background: var(--rose); color: #fff; }
.donate-band .btn-rose:hover { background: var(--rose2); }

/* ── TEAM GRID ── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }
.team-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--r); padding: 1.5rem; text-align: center; box-shadow: var(--shadow); }
.team-card .avatar { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--rose), var(--violet)); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #fff; margin: 0 auto 1rem; }
.team-card h4 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.team-card .role { font-size: 0.78rem; color: var(--rose2); font-weight: 600; }

/* ── PARTNER LOGOS ── */
.partner-row { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: center; margin-top: 2rem; }
.partner-chip { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 0.6rem 1.2rem; font-size: 0.82rem; font-weight: 600; color: var(--deep); }

/* ── PROGRAMME STEPS ── */
.steps { counter-reset: step; display: flex; flex-direction: column; gap: 1.5rem; }
.step { display: flex; gap: 1.5rem; }
.step-num { counter-increment: step; min-width: 48px; height: 48px; background: var(--deep); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--f-head); font-size: 1.1rem; font-weight: 700; flex-shrink: 0; }
.step-body h4 { margin-bottom: 0.3rem; }
.step-body p { margin: 0; font-size: 0.92rem; }

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content:''; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.tl-item { position: relative; padding-bottom: 2rem; }
.tl-item::before { content:''; position: absolute; left: -1.75rem; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--rose); border: 2px solid white; box-shadow: 0 0 0 2px var(--rose); }
.tl-date { font-size: 0.78rem; font-weight: 700; color: var(--rose2); margin-bottom: 0.25rem; }
.tl-title { font-weight: 600; font-size: 0.95rem; color: var(--deep); }
.tl-desc { font-size: 0.88rem; color: var(--muted); margin-top: 0.2rem; }

/* ── FOOTER ── */
footer {
  background: var(--deep);
  color: rgba(255,255,255,0.8);
  padding: 4rem 1.5rem 2rem;
}
.footer-inner { max-width: 1140px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
footer h4 { color: #fff; margin-bottom: 1rem; font-family: var(--f-body); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
footer ul { list-style: none; }
footer li { margin-bottom: 0.5rem; }
footer a { color: rgba(255,255,255,0.65); font-size: 0.88rem; }
footer a:hover { color: var(--rose); }
footer p { color: rgba(255,255,255,0.6); font-size: 0.88rem; margin: 0; }
.footer-brand p { margin-top: 0.75rem; }
.social-row { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-btn { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); font-size: 0.85rem; transition: background 0.2s; }
.social-btn:hover { background: var(--rose2); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.8rem; }
.charity-badge { font-size: 0.78rem; background: rgba(255,255,255,0.08); padding: 0.3rem 0.75rem; border-radius: 999px; color: rgba(255,255,255,0.6); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .impact-card { grid-template-columns: 1fr; }
  .impact-card img { width: 100%; height: 220px; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding: 3.5rem 1rem 3rem; }
  .section { padding: 3.5rem 1rem; }
}
