
.community-page { padding-top: 78px; background: #fff; }
.community-hero { padding: 130px 52px 70px; text-align: center; }
.community-hero .eyebrow { display: block; color: #dd8f93; font-size: 18px; font-weight: 700; letter-spacing: .08em; margin-bottom: 18px; text-transform: uppercase; }
.community-hero h1 { font-size: 64px; font-weight: 700; line-height: 1.1; }
.community-tabs { display: flex; justify-content: center; gap: 72px; margin-top: 70px; font-size: 17px; font-weight: 600; }
.community-tabs a { padding-bottom: 12px; border-bottom: 2px solid transparent; color: var(--dark); }
.community-tabs a.active, .community-tabs a:hover { color: #dd8f93; border-color: #dd8f93; }
.faq-community .community-tabs { gap: clamp(36px, 6vw, 96px); margin-top: 76px; }
.faq-community .community-tabs a { min-width: 96px; text-align: center; border-bottom-width: 3px; }
.faq-community .community-tabs a:not(.active) { border-bottom-color: transparent; color: #111; }
.community-section { max-width: 1340px; margin: 0 auto; padding: 30px 52px 150px; }
.community-notice { min-height: 24px; margin-bottom: 20px; color: #dd8f93; font-size: 15px; text-align: center; }
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 92px 42px; }
.event-card { position: relative; }
.event-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; border: 1px solid #f1c6cc; }
.event-card h3 { font-size: 24px; margin-top: 24px; font-weight: 700; }
.event-card p { color: #dd8f93; font-size: 16px; margin-top: 12px; }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 72px 42px; max-width: 1340px; margin: 0 auto; }
.case-card { position: relative; }
.case-card img { width: 100%; aspect-ratio: 625 / 379; object-fit: cover; border-radius: 10px; display: block; }
.case-card p { text-align: center; font-size: 15px; margin-top: 14px; color: var(--mid); }
.board-wrap { max-width: 1340px; margin: 0 auto; border-top: 3px solid #111; }
.board-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.board-table th, .board-table td { border-bottom: 1px solid #e5e5e5; padding: 23px 16px; text-align: center; }
.board-table th { font-weight: 700; }
.board-table .left { text-align: left; }
.board-table strong { color: #dd8f93; }
.lock { display: inline-block; margin-right: 10px; color: #111; font-size: 10px; }
.board-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; }
.board-actions .primary-btn { justify-self: auto; }
.consult-form { max-width: 900px; margin: 36px auto 0; padding: 46px; background: #fff7f9; border-radius: 24px; display: none; gap: 16px; }
.consult-form.on { display: grid; }
.consult-form h2 { font-size: 28px; margin-bottom: 8px; text-align: center; }
.consult-form .form-actions { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.secondary-btn { min-width: 132px; border: 1px solid #ddd; border-radius: 999px; padding: 14px 34px; background: #fff; color: #333; font-weight: 700; cursor: pointer; }
.consult-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.consult-form input, .consult-form select, .consult-form textarea, .admin-card input, .admin-card select, .admin-card textarea { width: 100%; border: 1px solid #ddd; padding: 15px 16px; font: inherit; background: #fff; }
.consult-form textarea, .admin-card textarea { min-height: 150px; resize: vertical; }
.primary-btn { justify-self: center; min-width: 132px; border: 0; border-radius: 999px; padding: 15px 34px; background: #dd8f93; color: #fff; font-weight: 700; cursor: pointer; }
.faq-community .board-tools { display: none; }
.faq-list { max-width: 1340px; margin: 0 auto; border-top: 3px solid #555; }
.faq-item { border-bottom: 1px solid #e5e5e5; }
.faq-item button { width: 100%; display: flex; align-items: center; gap: 24px; padding: 24px 8px; border: 0; background: #fff; font-size: 22px !important; font-weight: 700; line-height: 1.5; text-align: left; cursor: pointer; color: #111; }
.faq-item button span { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: #4a4a4a; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; }
.faq-item p { display: none; margin: 0 0 22px 76px; padding: 28px 34px; background: #f7f7f7; color: #222; line-height: 1.8; }
.faq-item.faq-open p { display: block; }
.location-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; align-items: center; }
.location-title small { display: block; color: var(--light); margin-bottom: 18px; }
.location-title h2 { font-size: 42px; line-height: 1.25; margin-bottom: 26px; }
.location-title h2 span { color: #dd8f93; }
.location-title p { font-size: 17px; line-height: 2; color: var(--dark); max-width: 480px; }
.location-info { margin-top: 42px; display: grid; gap: 22px; font-size: 17px; line-height: 1.7; }
.location-row { display: grid; grid-template-columns: 110px 1fr; gap: 20px; }
.location-row strong { font-weight: 700; }
.location-map img { width: 100%; display: block; }
.community-contact { max-width: 1340px; margin: 0 auto; padding: 90px 52px 120px; display: grid; grid-template-columns: .7fr 1fr .9fr; gap: 60px; align-items: start; }
.community-contact h2 { font-size: 38px; margin-bottom: 30px; }
.community-contact .phone { font-size: 28px; font-weight: 700; margin-bottom: 24px; }
.community-contact p { font-size: 16px; color: var(--mid); line-height: 1.8; }
.community-contact input, .community-contact textarea { width: 100%; border: 1px solid #eee; padding: 14px 16px; margin-bottom: 12px; font: inherit; }
.community-contact textarea { min-height: 120px; }
.community-contact img { width: 100%; display: block; }
.admin-page { padding: 130px 52px; max-width: 1280px; margin: 0 auto; }
.admin-card { border: 1px solid #e5e5e5; padding: 34px; border-radius: 18px; background: #fff; margin-top: 28px; }
.admin-grid { display: grid; grid-template-columns: 360px 1fr; gap: 30px; }
.admin-form { display: grid; gap: 12px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.admin-table th, .admin-table td { padding: 14px; border-bottom: 1px solid #eee; text-align: left; }
@media (max-width: 1024px) { .event-grid, .case-grid, .location-grid, .community-contact, .admin-grid { grid-template-columns: 1fr; } .community-tabs { flex-wrap: wrap; gap: 24px; } }
@media (max-width: 768px) {
  .community-page { padding-top: 60px; }
  .community-hero { padding: 80px 24px 48px; }
  .community-hero h1 { font-size: clamp(32px, 9vw, 44px); }
  .community-tabs { gap: 20px; margin-top: 40px; font-size: 15px; }
  .community-section, .community-contact, .admin-page { padding-left: 24px; padding-right: 24px; }
  .community-section { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
  .consult-form { padding: 28px 20px; }
  .consult-form .row { grid-template-columns: 1fr; }
  .board-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-left: -24px; margin-right: -24px; padding: 0 24px; }
  .board-table { font-size: 14px; }
  .board-table th, .board-table td { padding: 16px 10px; }
  .board-table th:nth-child(2),
  .board-table td:nth-child(2),
  .board-table th:nth-child(4),
  .board-table td:nth-child(4) { display: none; }
}


/* CMS upgrade */
.board-tools { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
.board-tools .filters { display: flex; gap: 10px; flex-wrap: wrap; }
.board-tools input, .board-tools select { border: 1px solid #ddd; padding: 12px 14px; font: inherit; min-width: 160px; background: #fff; }
.board-count { color: var(--mid); font-size: 15px; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 42px; }
.pager button { min-width: 36px; height: 36px; border: 1px solid #ddd; background: #fff; cursor: pointer; }
.pager button.on { background: #dd8f93; color: #fff; border-color: #dd8f93; }
.event-card, .case-card, .board-table tbody tr, .faq-item button { cursor: pointer; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; background: #fff0f3; color: #dd8f93; padding: 5px 10px; font-size: 13px; font-weight: 700; margin-right: 6px; }
.event-card > .badge, .case-card > .badge { position: absolute; left: 12px; top: 12px; z-index: 2; margin-right: 0; background: rgba(255,240,243,.94); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.cms-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 32px; background: rgba(0,0,0,.45); }
.cms-modal.on { display: flex; }
.cms-modal-card { width: min(920px, 100%); max-height: 86vh; overflow: auto; background: #fff; border-radius: 24px; padding: 38px; position: relative; }
.cms-modal-close { position: absolute; right: 22px; top: 18px; border: 0; background: transparent; font-size: 32px; line-height: 1; cursor: pointer; }
.cms-modal-card img { width: 100%; border-radius: 14px; margin: 22px 0; }
.cms-modal-card h2 { font-size: 36px; line-height: 1.3; margin-bottom: 10px; }
.cms-modal-meta { color: var(--mid); margin-bottom: 20px; }
.cms-modal-content { color: #333; line-height: 1.85; white-space: pre-line; }
.admin-dashboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-top: 28px; }
.admin-stat { padding: 22px; border-radius: 18px; background: #fff7f9; border: 1px solid #f6d5dc; }
.admin-stat strong { display: block; font-size: 30px; margin-top: 8px; }
.admin-toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 22px 0; flex-wrap: wrap; }
.admin-toolbar input, .admin-toolbar select { border: 1px solid #ddd; padding: 12px 14px; font: inherit; background: #fff; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-actions button, .admin-mini-btn { border: 1px solid #ddd; background: #fff; padding: 8px 10px; cursor: pointer; border-radius: 8px; }
.admin-actions button:hover, .admin-mini-btn:hover { border-color: #dd8f93; color: #dd8f93; }
.admin-form label { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.admin-preview { width: 100%; min-height: 120px; border: 1px dashed #ddd; border-radius: 14px; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--mid); }
.admin-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-empty { padding: 34px; text-align: center; color: var(--mid); }
@media (max-width: 1024px) { .admin-dashboard { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .board-tools { align-items: stretch; } .board-tools input, .board-tools select { width: 100%; } .admin-dashboard { grid-template-columns: 1fr; } .cms-modal { padding: 16px; } .cms-modal-card { padding: 28px 20px; } }
