/* ===================================================================
   Hola Mental & Physical Wellness Association
   Layout inspired by wanfang.gov.tw — large photos, clean sections
   =================================================================== */



.sun-container {
  position: relative;
  width: 0px;
  height: 40px;
}

/* 太陽核心 */
.sun-core {
    position: absolute;
    top: 0px;
    left: 10px;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, #fff7d1, #f7c948);
    border-radius: 50%;
    box-shadow: 0 0 20px #ff9100;
    z-index: 2;
}

/* 太陽光芒（使用漸層與旋轉動畫） */
.sun-rays {
position: absolute;
    top: -10px;
    left: 0px;
    width: 50px;
    height: 50px;
    background: conic-gradient(#ff9100 0deg, transparent 40deg, transparent 80deg, #ff9100 120deg, transparent 160deg, transparent 200deg, #ff9100 240deg, transparent 280deg, transparent 320deg, #ff9100 360deg);
    border-radius: 50%;
    /* opacity: 0.5; */
    z-index: 1;
    animation: rotateSun 12s linear infinite;/* 無限旋轉 */
}

/* 定義旋轉動畫 */
@keyframes rotateSun {
  100% {
    transform: rotate(360deg);
  }
}


:root {
  --brand: #6f8f4a;
  --brand-dark: #4d6a2f;
  --brand-soft: #eef4e1;
  --brand-tint: #f6f9ec;
  --accent: #f2a541;
  --accent-warm: #e07b39;
  --ink: #2a2a2a;
  --ink-soft: #5b5b5b;
  --paper: #ffffff;
  --grey: #f4f4f0;
  --line: #e6e6de;
  --shadow-sm: 0 4px 14px rgba(0,0,0,.06);
  --shadow: 0 12px 32px rgba(60,80,40,.12);
  --radius: 14px;
  --font-han: "Noto Serif TC", "PingFang TC", "Microsoft JhengHei", serif;
  --font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
button { font-family: inherit; }

/* =========================================================
   TOP BAR   (like wanfang.gov.tw)
   ========================================================= */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.03);
}
.topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 0px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo {
  text-align: right;
  display: flex;
  align-items: center;
  gap: 55px;
  color: var(--brand-dark);
  flex-shrink: 0;
}
.logo-mark {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg,#f7c948,#f2a541);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-han);
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(242,165,65,.35);
}
.logo-text .zh {
  font-family: var(--font-han);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.2;
}
.logo-text .en {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--ink-soft);
  font-weight: 400;
  margin-top: 2px;
}

.top-icons {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.top-icons a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12px;
  min-width: 74px;
  transition: all .2s;
}
.top-icons a:hover {
  background: var(--brand);
  color: #fff;
}
.top-icons .ic {
  font-size: 20px;
  line-height: 1;
}

.nav-toggle {
  display: none;
  background: none; border: 0;
  font-size: 28px;
  cursor: pointer;
  color: var(--brand-dark);
  margin-left: auto;
}

/* main nav row */
.mainnav {
  background: var(--brand-dark);
}
.mainnav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.mainnav a {
  color: #fff !important;
  padding: 16px 26px;
  font-size: 15px;
  letter-spacing: 3px;
  position: relative;
  font-family: var(--font-han);
  transition: background .2s;
}
.mainnav a:hover,
.mainnav a.active {
  background: rgba(255,255,255,.12);
  color: #fff8dc !important;
}
.mainnav a.active::after {
    content: "";
    position: absolute;
    left: 5%;
    right: 10%;
    bottom: 8px;
    height: 2px;
    background: var(--accent);
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .top-icons  { display: none; }
  .mainnav { display: none; }
  .mainnav.open { display: block; }
  .mainnav-inner { flex-direction: column; padding: 0; }
  .mainnav a { border-bottom: 1px solid rgba(255,255,255,.1); }
}

/* =========================================================
   HERO (home — fade in/out)
   ========================================================= */
.hero {
  position: relative;
  height: min(78vh, 680px);
  min-height: 460px;
  overflow: hidden;
  background: #333;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.55) 100%);
}
.hero-caption {
  position: absolute;
  left: 50%;
  bottom: 15%;
  transform: translateX(-50%);
  color: #fff;
  text-align: center;
  z-index: 2;
  width: 92%;
  max-width: 900px;
}
.hero-caption .tag {
  display: inline-block;
  background: rgba(242,165,65,.9);
  color: #fff;
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 3px;
  margin-bottom: 18px;
}
.hero-caption h1 {
  font-family: var(--font-han);
  font-size: clamp(30px, 5vw, 56px);
  letter-spacing: 8px;
  margin: 0 0 12px;
  text-shadow: 0 4px 20px rgba(0,0,0,.5);
  font-weight: 700;
}
.hero-caption p {
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: 4px;
  margin: 0 0 24px;
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
  opacity: .95;
}
.hero-caption .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-dots {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 10px;
  z-index: 3;
}
.hero-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: all .3s;
}
.hero-dots span.active {
  background: #fff; width: 32px; border-radius: 6px;
}
.hero-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,.3);
  color: #fff;
  border: 0;
  font-size: 22px;
  cursor: pointer;
  z-index: 3;
  transition: background .2s;
}
.hero-arrow:hover { background: rgba(0,0,0,.6); }
.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }
@media (max-width: 640px) { .hero-arrow { display: none; } }

/* =========================================================
   SECTIONS
   ========================================================= */
.section {
  padding: 84px 24px;
}
.section.tight { padding: 60px 24px; }
.section.tint  { background: var(--brand-tint); }
.section.dark  { background: var(--brand-dark); color: #fff; }
.section.dark .section-head h2 { color: #fff; }
.section.dark .section-head .eyebrow { color: #cfe3a2; }
.section.dark .section-head p { color: rgba(255,255,255,.75); }

.container { max-width: 1320px; margin: 0 auto; }

.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-head .eyebrow {
  display: inline-block;
  color: var(--brand);
  letter-spacing: 8px;
  font-size: 12px;
  margin-bottom: 10px;
  font-weight: 500;
}
.section-head h2 {
  font-family: var(--font-han);
  font-size: clamp(26px, 3.2vw, 40px);
  margin: 0;
  letter-spacing: 6px;
  font-weight: 700;
  position: relative;
  padding-bottom: 18px;
}
.section-head h2::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background: var(--accent);
}
.section-head p {
  color: var(--ink-soft);
  margin-top: 20px;
  letter-spacing: 1px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   QUICK TILES (like phone screenshot)
   ========================================================= */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 780px) { .tile-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

.tile {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .35s, box-shadow .35s;
  background: var(--brand-soft);
}
.tile:hover { transform: translateY(-8px); box-shadow: 0 22px 48px rgba(60,80,40,.22); }
.tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s;
}
.tile:hover img { transform: scale(1.08); }
.tile-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 16px 20px;
  background: linear-gradient(180deg, transparent, rgba(45,58,29,.94));
  color: #fff;
  font-size: 20px;
  letter-spacing: 4px;
  text-align: center;
  font-family: var(--font-han);
  font-weight: 500;
}
@media (max-width: 480px) {
  .tile-label { font-size: 16px; letter-spacing: 2px; padding: 12px; }
}

/* =========================================================
   INTRO (about) - two-column with big photo
   ========================================================= */
.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; gap: 32px; } }
.intro-text .eyebrow {
  color: var(--brand);
  letter-spacing: 8px;
  font-size: 12px;
  font-weight: 500;
}
.intro-text h2 {
  font-family: var(--font-han);
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: 4px;
  margin: 10px 0 24px;
  color: var(--brand-dark);
  line-height: 1.4;
}
.intro-text p {
  color: var(--ink-soft);
  margin: 0 0 14px;
  font-size: 15px;
}
.intro-text .actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.intro-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/5;
}
.intro-photo img { height: 100%; object-fit: cover; width: 100%; }
.intro-photo .badge {
  position: absolute;
  top: -24px; right: -24px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-han);
  text-align: center;
  font-size: 14px;
  line-height: 1.3;
  box-shadow: var(--shadow);
}
.intro-photo .badge strong {
  display: block;
  font-size: 22px;
  margin-bottom: 2px;
}

/* stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
@media (max-width: 780px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; }
.stat .num {
  font-family: var(--font-han);
  font-size: 40px;
  color: var(--brand-dark);
  font-weight: 700;
}
.stat .label { color: var(--ink-soft); font-size: 13px; letter-spacing: 2px; }

/* =========================================================
   NEWS SLIDER (horizontal)
   ========================================================= */
.news-slider-wrap { position: relative; }
.news-slider {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 4px 24px;
  -webkit-overflow-scrolling: touch;
}
.news-slider::-webkit-scrollbar { height: 6px; }
.news-slider::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 4px; }
.news-slider::-webkit-scrollbar-track { background: var(--brand-tint); border-radius: 4px; }

.news-card {
  flex: 0 0 360px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s;
  cursor: pointer;
  border: 1px solid var(--line);
}
.news-card:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(60,80,40,.2); }
.news-card .thumb { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.news-card .thumb img { height: 100%; object-fit: cover; width: 100%; transition: transform .5s; }
.news-card:hover .thumb img { transform: scale(1.06); }
.news-card .thumb .cat {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(77,106,47,.9);
  color: #fff;
  font-size: 11px;
  letter-spacing: 2px;
  padding: 4px 10px;
  border-radius: 4px;
}
.news-card .body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column;}
.news-card .date {
  font-size: 12px; color: var(--brand-dark);
  letter-spacing: 2px; margin-bottom: 10px;
  font-weight: 500;
}
.news-card h4 {
  font-family: var(--font-han);
  font-size: 18px; margin: 0 0 10px; line-height: 1.5;
  letter-spacing: 1px;
  font-weight: 500;
  color: var(--ink);
}
.news-card p {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.7;
}
.news-card .more { margin-top: 14px; font-size: 13px; color: var(--brand); letter-spacing: 2px; }

.slider-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  cursor: pointer;
  font-size: 22px;
  color: var(--brand-dark);
  z-index: 5;
  display: grid; place-items: center;
  transition: all .2s;
}
.slider-btn:hover { background: var(--brand); color: #fff; }
.slider-btn.prev { left: -12px; }
.slider-btn.next { right: -12px; }
@media (max-width: 720px) { .slider-btn { display: none; } }

/* =========================================================
   PAGE HERO (inner pages)
   ========================================================= */
.page-hero {
  height: 340px;
  position: relative;
  background: var(--brand-dark) center/cover no-repeat;
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 20px;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(77,106,47,.78), rgba(45,58,29,.55));
}
.page-hero .inner { position: relative; z-index: 2; }
.page-hero h1 {
  font-family: var(--font-han);
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: 8px;
  margin: 0 0 10px;
  text-shadow: 0 4px 20px rgba(0,0,0,.35);
}
.page-hero p { letter-spacing: 4px; margin: 0; opacity: .88; }
.crumbs {
  background: var(--brand-tint);
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}
.crumbs .container { display: flex; gap: 6px; }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--brand-dark); }
.crumbs .sep { color: #bbb; }
.crumbs .cur { color: var(--brand-dark); font-weight: 500; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center; gap: 6px;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff !important;
  border: 0;
  font-weight: 500;
  letter-spacing: 3px;
  cursor: pointer;
  transition: all .2s;
  font-size: 14px;
  font-family: inherit;
}
.btn:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(77,106,47,.35); }
.btn.outline {
  background: transparent; color: #fff !important;
  border: 1px solid #fff;
}
.btn.outline:hover { background: #fff; color: var(--brand-dark) !important; }
.btn.outline-dark {
  background: transparent; color: var(--brand-dark) !important;
  border: 1px solid var(--brand);
}
.btn.outline-dark:hover { background: var(--brand); color: #fff !important; }
.btn.accent { background: var(--accent); }
.btn.accent:hover { background: #d88815; box-shadow: 0 8px 20px rgba(242,165,65,.4); }
.btn.warm { background: var(--accent-warm); }
.btn.warm:hover { background: #c26525; }

/* =========================================================
   CALENDAR PAGE
   ========================================================= */
.calendar {
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  border: 1px solid var(--line);
}
.cal-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--brand-soft);
}
.cal-head h3 {
  font-family: var(--font-han);
  font-size: 26px;
  margin: 0;
  letter-spacing: 4px;
  color: var(--brand-dark);
}
.cal-btn {
  border: 0;
  background: var(--brand-soft);
  color: var(--brand-dark);
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  transition: all .2s;
}
.cal-btn:hover { background: var(--brand); color: #fff; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal-cell {
  aspect-ratio: 1/1.05;
  border-radius: 10px;
  background: #fafaf5;
  padding: 8px;
  font-size: 13px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 80px;
  border: 1px solid transparent;
  transition: border .2s;
}
.cal-cell:hover { border-color: var(--brand-soft); }
.cal-cell.head {
  aspect-ratio: auto;
  min-height: auto;
  padding: 10px 0;
  text-align: center;
  background: none;
  font-weight: 700;
  color: var(--brand-dark);
  letter-spacing: 2px;
  border: 0;
}
.cal-cell .day { font-weight: 700; color: var(--ink-soft); }
.cal-cell.today {
  background: var(--brand-soft);
  border-color: var(--brand);
}
.cal-cell.today .day { color: var(--accent-warm); font-weight: 800; }
.cal-cell.dim { opacity: .3; }
.cal-dot {
  position: absolute; bottom: 6px; left: 6px; right: 6px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  padding: 4px 6px;
  border-radius: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  letter-spacing: 1px;
}
.cal-dot:hover { background: var(--accent); }
@media (max-width: 620px) {
  .cal-cell { min-height: 60px; padding: 4px; }
  .cal-cell .day { font-size: 12px; }
  .cal-dot { font-size: 9px; padding: 2px 4px; letter-spacing: 0; }
}

/* upcoming list */
.lecture-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 24px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px 26px;
  margin-bottom: 16px;
  align-items: center;
  border: 1px solid var(--line);
  transition: all .25s;
}
.lecture-row:hover { box-shadow: var(--shadow); transform: translateX(4px); }
@media (max-width: 720px) { .lecture-row { grid-template-columns: 1fr; text-align: center; } }
.lecture-date {
  background: linear-gradient(135deg, var(--brand-soft), #dce6c1);
  color: var(--brand-dark);
  border-radius: 12px;
  text-align: center;
  padding: 14px 10px;
  font-family: var(--font-han);
}
.lecture-date .m { font-size: 13px; letter-spacing: 3px; }
.lecture-date .d { font-size: 34px; font-weight: 700; line-height: 1; margin: 4px 0; }
.lecture-date .w { font-size: 11px; letter-spacing: 2px; color: var(--ink-soft); }
.lecture-body h4 {
  margin: 0 0 6px;
  font-size: 19px;
  letter-spacing: 2px;
  font-family: var(--font-han);
  font-weight: 500;
}
.lecture-body .meta {
  color: var(--ink-soft);
  font-size: 14px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.lecture-body .meta span { display: inline-flex; align-items: center; gap: 4px; }

/* =========================================================
   FORMS
   ========================================================= */
.form-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px 44px;
  border: 1px solid var(--line);
}
.form-wrap h3 {
  font-family: var(--font-han);
  letter-spacing: 3px;
  margin: 0 0 8px;
  font-size: 22px;
  color: var(--brand-dark);
}
.form-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--line);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--ink);
  letter-spacing: 1px;
  font-weight: 500;
}
.form-group label .req { color: var(--accent-warm); margin-left: 4px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 15px;
  transition: all .2s;
  background: #fafaf5;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(111,143,74,.15);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-msg {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  display: none;
  letter-spacing: 1px;
}
.form-msg.success { background: #e6f4d8; color: #3e5b1a; display: block; border: 1px solid #b8d888; }
.form-msg.error   { background: #fde3e0; color: #a52c1c; display: block; border: 1px solid #f0b8b0; }

/* =========================================================
   NEWS GRID + MODAL
   ========================================================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .news-grid { grid-template-columns: 1fr; } }

.news-detail-modal {
  position: fixed; inset: 0;
  background: rgba(20,20,20,.7);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}
.news-detail-modal.open { display: flex; }
.news-detail {
  background: #fff;
  border-radius: var(--radius);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.news-detail img { width: 100%; max-height: 360px; object-fit: cover; }
.news-detail-body { padding: 32px 36px 40px; }
.news-detail h2 {
  font-family: var(--font-han);
  margin: 0 0 10px;
  letter-spacing: 3px;
  font-size: 26px;
}
.news-detail .date {
  color: var(--brand-dark);
  font-size: 13px;
  letter-spacing: 3px;
  margin-bottom: 20px;
}
.news-detail p {
  color: var(--ink-soft);
  line-height: 1.9;
  white-space: pre-line;
}
.close-modal {
  position: absolute;
  top: 20px; right: 20px;
  background: #fff;
  color: var(--ink);
  border: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  z-index: 10;
}

/* =========================================================
   SOCIAL PAGE
   ========================================================= */
.social-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 900px) { .social-hero { grid-template-columns: 1fr; } }
.social-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  border: 1px solid var(--line);
  transition: transform .3s;
}
.social-card:hover { transform: translateY(-6px); }
.social-card .banner {
  height: 260px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.social-card .banner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.35), transparent 60%);
}
.social-card .banner .platform {
  position: absolute;
  bottom: 20px; left: 24px;
  color: #fff;
  font-family: var(--font-han);
  font-size: 28px;
  letter-spacing: 4px;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.social-card .body { padding: 32px 28px 36px; }
.social-card p {
  color: var(--ink-soft);
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.8;
}
.social-card .handle {
  color: var(--brand);
  font-weight: 500;
  letter-spacing: 2px;
  margin-bottom: 12px;
  font-size: 15px;
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3.5;
  border: 1px solid var(--line);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.info-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 34px;
  border: 1px solid var(--line);
}
.info-card h3 {
  font-family: var(--font-han);
  margin: 0 0 24px;
  letter-spacing: 4px;
  font-size: 22px;
  color: var(--brand-dark);
  padding-bottom: 18px;
  border-bottom: 2px solid var(--brand-soft);
}
.info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--line);
}
.info-item:last-child { border-bottom: 0; }
.info-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  display: grid; place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}
.info-item .label {
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 3px;
  margin-bottom: 4px;
}
.info-item .value {
  font-weight: 500;
  color: var(--ink);
  line-height: 1.7;
}

/* member benefits */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .benefit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .benefit-grid { grid-template-columns: 1fr; } }
.benefit {
  background: #fff;
  padding: 32px 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  text-align: center;
  transition: all .25s;
}
.benefit:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.benefit .b-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-soft), #cee4a4);
  color: var(--brand-dark);
  font-size: 28px;
  display: grid; place-items: center;
  margin: 0 auto 18px;
}
.benefit h4 {
  font-family: var(--font-han);
  letter-spacing: 3px;
  margin: 0 0 10px;
  font-size: 17px;
}
.benefit p { color: var(--ink-soft); margin: 0; font-size: 14px; }

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: #2f3a24;
  color: #d8dcc9;
  padding: 60px 24px 24px;
  margin-top: 20px;
}
.foot-inner {
  max-width: 1320px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 780px) { .foot-inner { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 480px) { .foot-inner { grid-template-columns: 1fr; } }
footer h5 {
  color: #fff;
  font-family: var(--font-han);
  letter-spacing: 4px;
  margin: 0 0 18px;
  font-size: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
footer p, footer a { color: #b9bfa4; font-size: 14px; }
footer a { display: inline-block; }
footer a:hover { color: #fff; }
.foot-brand p { font-size: 13px; line-height: 1.9; margin: 8px 0; }
.foot-brand .brand-name {
  color: #fff;
  font-family: var(--font-han);
  font-size: 18px;
  letter-spacing: 3px;
  margin-bottom: 4px;
}
.foot-links a { display: block; padding: 5px 0; }
.foot-social a {
  display: inline-flex;
  margin-right: 10px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff !important;
  align-items: center; justify-content: center;
  transition: all .2s;
  font-size: 15px;
  letter-spacing: 0;
}
.foot-social a:hover { background: var(--accent); transform: translateY(-3px); }
.foot-copy {
  max-width: 1320px; margin: 40px auto 0;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: #99a086;
  letter-spacing: 1px;
}
