/* =============================================================
   미소가득치과 — "Calm Clinical Warmth"
   Signature: the SMILE ARC — a gentle upward curve motif
   Display: Lexend (Latin/numerals)  ·  Body: Pretendard (Korean)
   ============================================================= */

:root {
    /* Palette */
    --paper:      #F6FAFB;   /* soft cool off-white background      */
    --calm:       #1FA6A0;   /* refined teal primary                */
    --calm-deep:  #0E6E6A;   /* deep teal for headings/text accents */
    --mist:       #DCEEF0;   /* pale teal fills / cards             */
    --coral:      #FF8A73;   /* warm CTA accent (used sparingly)    */
    --coral-deep: #F26B50;   /* coral pressed/hover                 */
    --ink:        #16302F;   /* soft dark teal-charcoal text        */

    /* Derived neutrals */
    --card:   #FFFFFF;
    --line:   #D9EAEB;       /* soft hairline border   */
    --line-2: #EAF3F4;       /* faintest divider       */
    --muted:  #5D7C7A;       /* secondary text         */
    --ink-70: #33514F;

    /* Type roles */
    --font-display: "Lexend", "Pretendard Variable", Pretendard, system-ui, sans-serif;
    --font-body: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
                 "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

    /* Soft, diffuse shadows (never heavy) */
    --sh-sm: 0 2px 10px rgba(14, 110, 106, 0.06);
    --sh-md: 0 12px 34px rgba(14, 110, 106, 0.10);
    --sh-lg: 0 22px 60px rgba(14, 110, 106, 0.14);

    /* Signature curve radii */
    --r-card: 20px;
    --r-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    line-height: 1.75;
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color .16s ease; }
a:hover { color: var(--calm); }
ul, ol { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.28;
}

/* Accessible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--calm);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Inline stroke icons */
.ico    { width: 1.05em; height: 1.05em; flex-shrink: 0; }
.ico-lg { width: 30px;  height: 30px; }

/* ===== Layout ===== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.site-main { min-height: 50vh; }

/* Reusable smile-arc eyebrow motif */
.eyebrow, .hs-eyebrow, .hc-eyebrow {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--calm-deep);
}

/* =============================================================
   Utility bar
   ============================================================= */
.utility-bar { background: var(--calm-deep); color: #CDEBEA; font-size: 13px; }
.utility-inner {
    display: flex; justify-content: space-between; align-items: center;
    padding: 9px 0; flex-wrap: wrap; gap: 10px;
}
.ub-left { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ub-item { display: inline-flex; align-items: center; gap: 6px; color: #BBE4E2; }
.ub-item:first-child { color: #fff; font-weight: 600; }
.ub-item .ico { color: var(--coral); }
.ub-sep { margin: 0 6px; color: #4C8C89; }
.ub-cta {
    display: inline-flex; align-items: center;
    color: var(--calm-deep); font-weight: 600; padding: 5px 15px;
    background: #fff; border-radius: var(--r-pill); font-size: 12px;
}
.ub-cta:hover { background: var(--coral); color: #fff; }

/* =============================================================
   Header
   ============================================================= */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(246, 250, 251, 0.88);
    backdrop-filter: saturate(150%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 76px; gap: 20px;
}

.logo {
    display: flex; align-items: center; gap: 12px;
    font-family: var(--font-display); font-weight: 600; font-size: 19px;
}
.logo-mark {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    background: linear-gradient(150deg, var(--calm), var(--calm-deep));
    color: #fff; border-radius: 16px 16px 22px 22px / 16px 16px 28px 28px;
    font-family: var(--font-display);
    font-weight: 600; font-size: 13px; letter-spacing: 0.04em;
    box-shadow: var(--sh-sm);
}
/* smile-arc under the mark letters */
.logo-mark::after {
    content: ""; position: absolute; left: 50%; bottom: 9px;
    transform: translateX(-50%);
    width: 18px; height: 8px;
    border: 1.6px solid rgba(255,255,255,0.9); border-top: 0;
    border-radius: 0 0 40px 40px;
}
.logo-text { color: var(--ink); }

.gnb > ul { display: flex; gap: 2px; }
.gnb > ul > li { position: relative; }
.gnb > ul > li > a {
    display: block; padding: 11px 18px; font-size: 15px; font-weight: 500;
    color: var(--ink-70); border-radius: var(--r-pill);
}
.gnb > ul > li > a:hover,
.gnb > ul > li > a.active { color: var(--calm-deep); background: var(--mist); }

.gnb .sub {
    position: absolute; top: calc(100% + 6px); left: 50%;
    background: var(--card); border: 1px solid var(--line); border-radius: 16px;
    min-width: 184px; padding: 8px;
    box-shadow: var(--sh-md);
    opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.gnb .has-sub:hover .sub,
.gnb .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.gnb .sub li a { display: block; padding: 10px 16px; font-size: 14px; color: var(--ink-70); border-radius: 10px; }
.gnb .sub li a:hover { background: var(--mist); color: var(--calm-deep); }

.mobile-toggle { display: none; background: none; border: 0; padding: 10px; border-radius: 12px; }
.mobile-toggle span {
    display: block; width: 24px; height: 2px; background: var(--calm-deep);
    margin: 5px 0; border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}

/* =============================================================
   Buttons
   ============================================================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 30px; border-radius: var(--r-pill);
    font-family: var(--font-display); font-weight: 500; font-size: 15px;
    border: 1.5px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
/* Coral only for the primary call-to-action */
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 8px 22px rgba(255, 138, 115, 0.34); }
.btn-primary:hover { background: var(--coral-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(242, 107, 80, 0.40); }
.btn-outline { border-color: var(--calm); color: var(--calm-deep); background: transparent; }
.btn-outline:hover { background: var(--mist); color: var(--calm-deep); }

/* =============================================================
   Home Hero — split, with SMILE-ARC image frame
   ============================================================= */
.hero-split {
    position: relative; overflow: hidden;
    padding: 84px 0 100px;
    background:
        radial-gradient(circle at 84% 12%, rgba(31,166,160,0.10), transparent 46%),
        linear-gradient(180deg, var(--mist) 0%, var(--paper) 78%);
}
.hero-split-inner {
    display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center;
}
.hs-eyebrow { display: block; margin-bottom: 20px; }
.hs-text h1 {
    font-size: clamp(30px, 4.4vw, 52px); font-weight: 600; line-height: 1.22;
    margin: 0 0 22px; color: var(--ink); letter-spacing: -0.02em;
}
.hs-text h1 span {
    color: var(--calm-deep); position: relative; white-space: nowrap;
}
/* signature smile underline on the emphasised words */
.hs-text h1 span::after {
    content: ""; position: absolute; left: 2%; right: 2%; bottom: -8px; height: 12px;
    border: 2.4px solid var(--coral); border-top: 0;
    border-radius: 0 0 60px 60px; opacity: .85;
}
.hs-text p { font-size: 17px; color: var(--muted); margin: 0 0 34px; line-height: 1.85; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.hs-trust {
    display: flex; gap: 40px; margin-top: 44px; padding-top: 28px;
    border-top: 1px solid var(--line);
}
.hs-trust-item strong {
    font-family: var(--font-display); display: block;
    font-size: 30px; color: var(--calm-deep); font-weight: 600; line-height: 1;
}
.hs-trust-item span { display: block; font-size: 12px; color: var(--muted); margin-top: 7px; letter-spacing: 0.04em; }

.hs-img { position: relative; }
.hs-img > img {
    width: 100%; height: 560px; object-fit: cover; display: block;
    /* the SMILE ARC: soft wide curve along the bottom edge */
    border-radius: 26px 26px 120px 120px / 26px 26px 64px 64px;
}
/* duotone teal wash so stock imagery reads on-palette */
.hs-img::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
    border-radius: 26px 26px 120px 120px / 26px 26px 64px 64px;
    background: linear-gradient(150deg, rgba(31,166,160,0.20), rgba(14,110,106,0.34));
    mix-blend-mode: multiply;
}
.hs-badge {
    position: absolute; bottom: 26px; left: -22px; z-index: 2;
    background: var(--card); padding: 18px 22px; border-radius: 20px 20px 26px 20px;
    box-shadow: var(--sh-md);
    display: flex; align-items: center; gap: 14px; min-width: 218px;
}
.hs-badge-num { font-family: var(--font-display); font-size: 36px; font-weight: 600; color: var(--calm); line-height: 1; }
.hs-badge-text { font-size: 12px; color: var(--ink-70); line-height: 1.5; font-weight: 500; }

/* =============================================================
   Section shells + shared section title
   ============================================================= */
.section { padding: 92px 0; }
.section.alt { background: linear-gradient(180deg, #EEF7F8, var(--paper)); }

.section-title { text-align: center; margin-bottom: 54px; }
.section-title .eyebrow { display: inline-block; margin-bottom: 14px; }
/* smile-arc beneath every section eyebrow */
.section-title .eyebrow::after {
    content: ""; display: block; width: 34px; height: 9px; margin: 8px auto 0;
    border: 2px solid var(--calm); border-top: 0; border-radius: 0 0 40px 40px;
}
.section-title h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 600; margin: 0 0 12px; color: var(--ink); }
.section-title p { color: var(--muted); margin: 0; font-size: 16px; }

/* =============================================================
   Why Us
   ============================================================= */
.why-section { padding: 92px 0; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-item {
    position: relative; background: var(--card); border: 1px solid var(--line);
    border-radius: var(--r-card); padding: 40px 32px 36px;
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.why-item:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: var(--calm); }
.why-num {
    position: absolute; top: 26px; right: 30px;
    font-family: var(--font-display); font-size: 40px; font-weight: 600;
    color: var(--mist); line-height: 1;
}
.why-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 60px; height: 60px; margin-bottom: 22px;
    color: var(--calm); background: var(--mist);
    border-radius: 18px 18px 24px 24px / 18px 18px 30px 30px;
}
.why-item h3 { font-size: 20px; margin: 0 0 12px; color: var(--ink); font-weight: 600; }
.why-item p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.8; }

/* =============================================================
   Clinic Hours card
   ============================================================= */
.hours-section { padding: 30px 0 92px; }
.hours-card {
    background: var(--card); border: 1px solid var(--line); border-radius: 28px;
    padding: 52px; display: grid; grid-template-columns: 1fr 1.35fr; gap: 52px;
    box-shadow: var(--sh-sm); align-items: center;
}
.hc-eyebrow { display: inline-block; margin-bottom: 14px; }
.hc-left h2 { font-size: 30px; margin: 0 0 12px; color: var(--ink); font-weight: 600; }
.hc-left p { color: var(--muted); margin: 0 0 24px; font-size: 15px; }
.hc-tel {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 24px; background: var(--calm-deep); color: #fff;
    border-radius: 16px 16px 22px 16px; font-size: 18px;
}
.hc-tel .ico { color: var(--coral); }
.hc-table { width: 100%; border-collapse: collapse; }
.hc-table th, .hc-table td { padding: 15px 18px; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.hc-table th { width: 52%; text-align: left; color: var(--ink-70); font-weight: 500; }
.hc-table td { color: var(--calm-deep); font-family: var(--font-display); font-weight: 500; }
.hc-table tr.off td { color: var(--coral-deep); }
.hc-table tr:last-child th, .hc-table tr:last-child td { border-bottom: 0; }

/* =============================================================
   Doctors
   ============================================================= */
.doctor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.doctor-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
    overflow: hidden; transition: transform .24s ease, box-shadow .24s ease;
}
.doctor-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.dc-img { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--mist); }
.dc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* gentle teal duotone so portraits sit in the palette */
.dc-img::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(31,166,160,0.05) 40%, rgba(14,110,106,0.26));
    mix-blend-mode: multiply;
}
.dc-meta { padding: 24px 24px 28px; }
.dc-spec {
    display: inline-block; padding: 5px 13px; background: var(--mist); color: var(--calm-deep);
    border-radius: var(--r-pill); font-family: var(--font-display);
    font-size: 12px; font-weight: 500; letter-spacing: 0.02em; margin-bottom: 12px;
}
.dc-meta h3 { font-size: 21px; margin: 0 0 12px; color: var(--ink); font-weight: 600; }
.dc-edu { padding-left: 15px; }
.dc-edu li { font-size: 13.5px; color: var(--muted); line-height: 1.85; position: relative; }
.dc-edu li::before {
    content: ""; position: absolute; left: -13px; top: 12px;
    width: 6px; height: 3px; border: 1.4px solid var(--calm); border-top: 0; border-radius: 0 0 10px 10px;
}

/* =============================================================
   FAQ accordion
   ============================================================= */
.faq-section { padding: 92px 0; background: linear-gradient(180deg, #EEF7F8, var(--paper)); }
.faq-list { margin-top: 8px; }
.faq-item {
    background: var(--card); border: 1px solid var(--line); border-radius: 16px;
    margin-bottom: 12px; transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item[open] { border-color: var(--calm); box-shadow: var(--sh-sm); }
.faq-item summary {
    list-style: none; cursor: pointer; padding: 22px 26px;
    display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font-size: 16px; color: var(--ink); font-weight: 500; flex: 1; }
.faq-toggle {
    width: 32px; height: 32px; background: var(--mist); color: var(--calm-deep);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 500; line-height: 1; flex-shrink: 0;
    transition: transform .22s ease, background .22s ease, color .22s ease;
}
.faq-item[open] .faq-toggle { background: var(--calm); color: #fff; transform: rotate(45deg); }
.faq-a { padding: 0 26px 24px; color: var(--ink-70); line-height: 1.85; font-size: 14.5px; }

/* =============================================================
   Community — latest posts
   ============================================================= */
.latest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.latest-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 30px; }
.lb-head {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 14px; margin-bottom: 12px; border-bottom: 2px solid var(--calm);
}
.latest-box h3 { margin: 0; font-size: 18px; color: var(--ink); font-weight: 600; }
.latest-box .more { font-family: var(--font-display); font-size: 13px; color: var(--calm-deep); font-weight: 500; }
.latest-box .more:hover { color: var(--coral); }
.latest-list li {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; gap: 12px;
}
.latest-list li:last-child { border-bottom: 0; }
.latest-list .l-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.latest-list .l-title:hover { color: var(--calm-deep); }
.latest-list .l-date { color: var(--muted); font-size: 12px; flex-shrink: 0; font-family: var(--font-display); }
.latest-list .l-empty { color: var(--muted); padding: 18px 0; text-align: center; justify-content: center; }

/* =============================================================
   Reservation CTA banner (curved top = smile arc)
   ============================================================= */
.reserve-cta {
    position: relative; margin-top: 20px;
    background: linear-gradient(135deg, var(--calm), var(--calm-deep));
    padding: 72px 0; color: #fff;
    border-radius: 120px 120px 0 0 / 60px 60px 0 0;
}
.reserve-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.rc-text h2 { font-size: 28px; margin: 0 0 10px; font-weight: 600; color: #fff; }
.rc-text p { margin: 0; color: #D5F0EE; font-size: 15px; }
.rc-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.rc-actions .btn-outline { border-color: rgba(255,255,255,0.85); color: #fff; }
.rc-actions .btn-outline:hover { background: rgba(255,255,255,0.14); color: #fff; }
/* keep coral as the single primary accent even on teal */
.rc-actions .btn-primary { background: var(--coral); color: #fff; }
.rc-actions .btn-primary:hover { background: var(--coral-deep); color: #fff; }

/* =============================================================
   Sub-page hero + breadcrumb
   ============================================================= */
.sub-hero {
    position: relative; overflow: hidden; text-align: center;
    padding: 78px 24px 84px; color: #fff;
    background:
        radial-gradient(circle at 78% 20%, rgba(255,255,255,0.14), transparent 40%),
        linear-gradient(135deg, var(--calm), var(--calm-deep));
}
/* smile-arc valley along the bottom of the sub-hero */
.sub-hero::after {
    content: ""; position: absolute; left: -5%; right: -5%; bottom: -60px; height: 120px;
    background: var(--paper); border-radius: 50%;
}
.sub-hero h1 { position: relative; z-index: 1; font-size: clamp(26px, 4vw, 40px); font-weight: 600; margin: 0 0 8px; color: #fff; }
.sub-hero p { position: relative; z-index: 1; margin: 0; color: #DCF3F1; font-size: 15px; }

.breadcrumb { background: var(--paper); padding: 16px 0 4px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.breadcrumb li::after { content: '›'; margin-left: 8px; color: var(--line); }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb li:last-child { color: var(--calm-deep); font-weight: 600; }
.breadcrumb a:hover { color: var(--calm); }

/* =============================================================
   Content sections (about / services / contact)
   ============================================================= */
.content-section { padding: 66px 0 84px; }
.content-section h2 { font-size: 28px; margin: 0 0 18px; color: var(--ink); font-weight: 600; }
.content-section h3 { font-size: 21px; margin: 44px 0 14px; color: var(--calm-deep); font-weight: 600; }
.content-section p { color: var(--ink-70); line-height: 1.9; }
.content-section a { color: var(--calm-deep); font-weight: 500; }
.content-section a:hover { color: var(--calm); }

.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 28px 0; }
.feature-item {
    padding: 26px 28px; background: var(--card); border: 1px solid var(--line);
    border-radius: 16px; border-left: 4px solid var(--calm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.feature-item:hover { transform: translateY(-3px); box-shadow: var(--sh-sm); }
.feature-item strong {
    display: block; color: var(--ink); margin-bottom: 8px; font-size: 16px;
    font-weight: 600; font-family: var(--font-display);
}
.feature-item span { color: var(--muted); font-size: 14px; line-height: 1.75; }

.info-table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.info-table th, .info-table td { padding: 16px 22px; border-bottom: 1px solid var(--line-2); text-align: left; font-size: 14.5px; vertical-align: top; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table th { background: var(--mist); color: var(--calm-deep); width: 28%; font-weight: 600; }
.info-table td { color: var(--ink); background: var(--card); }
.info-table a { color: var(--calm-deep); font-weight: 500; }

/* =============================================================
   Services grid
   ============================================================= */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 22px; }
.service-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
    padding: 38px 30px; text-align: center;
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.service-card:hover { border-color: var(--calm); box-shadow: var(--sh-md); transform: translateY(-5px); }
.service-icon {
    width: 66px; height: 66px; margin: 0 auto 22px;
    display: flex; align-items: center; justify-content: center;
    background: var(--mist); color: var(--calm-deep);
    border-radius: 20px 20px 28px 28px / 20px 20px 34px 34px;
    font-family: var(--font-display); font-size: 24px; font-weight: 600;
}
.service-card h3 { font-size: 19px; margin: 0 0 12px; color: var(--ink); font-weight: 600; }
.service-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.75; }

/* =============================================================
   Board list
   ============================================================= */
.board-wrap { padding: 52px 0 84px; }
.board-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 22px; padding-bottom: 16px; border-bottom: 2px solid var(--calm);
}
.board-head h2 { margin: 0; font-size: 24px; color: var(--ink); font-weight: 600; }
.board-desc { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.board-count { color: var(--muted); font-size: 13px; }
.board-count strong { color: var(--calm-deep); font-family: var(--font-display); }

.board-table { width: 100%; border-collapse: collapse; }
.board-table thead th {
    background: var(--mist); padding: 14px 12px; font-size: 13px; color: var(--calm-deep);
    font-weight: 600; border-bottom: 1px solid var(--line);
}
.board-table thead th:first-child { border-radius: 12px 0 0 0; }
.board-table thead th:last-child { border-radius: 0 12px 0 0; }
.board-table tbody td { padding: 16px 12px; border-bottom: 1px solid var(--line-2); font-size: 14.5px; color: var(--ink); }
.board-table tbody tr:hover { background: #F1F9FA; }
.board-table .col-no   { width: 70px;  text-align: center; color: var(--muted); font-family: var(--font-display); }
.board-table .col-name { width: 120px; text-align: center; color: var(--muted); }
.board-table .col-date { width: 110px; text-align: center; color: var(--muted); font-size: 13px; font-family: var(--font-display); }
.board-table .col-hit  { width: 70px;  text-align: center; color: var(--muted); font-size: 13px; font-family: var(--font-display); }
.board-table .col-title a { color: var(--ink); font-weight: 500; }
.board-table .col-title a:hover { color: var(--calm-deep); }
.cm-count { color: var(--coral-deep); font-size: 12px; margin-left: 6px; font-weight: 600; font-family: var(--font-display); }
.board-empty { padding: 70px 0; text-align: center; color: var(--muted); }

.board-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; gap: 12px; flex-wrap: wrap; }
.board-foot input[type=text] {
    padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--r-pill);
    font-size: 13px; background: var(--card); color: var(--ink);
}
.board-foot input[type=text]:focus { outline: none; border-color: var(--calm); box-shadow: 0 0 0 3px rgba(31,166,160,0.14); }

/* =============================================================
   Pagination
   ============================================================= */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 10px;
    border: 1px solid var(--line); background: var(--card); border-radius: 12px;
    font-family: var(--font-display); font-size: 14px; color: var(--ink-70);
}
.pagination a:hover { background: var(--mist); color: var(--calm-deep); border-color: var(--calm); }
.pagination .active { background: var(--calm); color: #fff; border-color: var(--calm); }

/* =============================================================
   Post view
   ============================================================= */
.view-wrap { padding: 52px 0 84px; }
.view-head { border-top: 2px solid var(--calm); border-bottom: 1px solid var(--line); padding: 28px 0; }
.view-head h1 { margin: 0 0 12px; font-size: 24px; color: var(--ink); font-weight: 600; }
.view-meta { display: flex; gap: 18px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.view-meta span strong { color: var(--calm-deep); font-weight: 600; margin-left: 5px; font-family: var(--font-display); }

.view-content {
    padding: 40px 4px; min-height: 240px; font-size: 15.5px; line-height: 1.9; color: var(--ink);
    border-bottom: 1px solid var(--line); word-wrap: break-word; white-space: pre-wrap;
}

.view-actions { display: flex; justify-content: space-between; align-items: center; margin: 22px 0; gap: 8px; flex-wrap: wrap; }
.view-actions .left, .view-actions .right { display: flex; gap: 8px; flex-wrap: wrap; }

.btn-sm {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 18px; font-family: var(--font-display); font-size: 13px; font-weight: 500;
    border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--card); color: var(--ink-70);
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-sm:hover { background: var(--mist); color: var(--calm-deep); border-color: var(--calm); }
.btn-sm.primary { background: var(--calm); color: #fff; border-color: var(--calm); }
.btn-sm.primary:hover { background: var(--calm-deep); color: #fff; border-color: var(--calm-deep); }
.btn-sm.danger { color: var(--coral-deep); border-color: #F6D3CB; }
.btn-sm.danger:hover { background: #FDEEEA; color: var(--coral-deep); }

/* =============================================================
   Comments
   ============================================================= */
.cm-section { margin-top: 46px; }
.cm-section h3 { font-size: 17px; margin: 0 0 16px; color: var(--ink); font-weight: 600; }
.cm-section h3 em { color: var(--calm); font-style: normal; font-family: var(--font-display); }
.cm-list { border-top: 1px solid var(--line); }
.cm-item { padding: 18px 4px; border-bottom: 1px solid var(--line-2); }
.cm-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.cm-name { font-weight: 600; color: var(--ink); }
.cm-actions a { font-size: 12px; color: var(--muted); margin-left: 8px; }
.cm-actions a:hover { color: var(--coral-deep); }
.cm-body { font-size: 14.5px; color: var(--ink); white-space: pre-wrap; word-wrap: break-word; line-height: 1.75; }

.cm-form { background: var(--card); border: 1px solid var(--line); padding: 24px; border-radius: var(--r-card); margin-top: 24px; }
.cm-form .row { display: flex; gap: 10px; margin-bottom: 10px; }
.cm-form input[type=text], .cm-form input[type=password] {
    flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
    font-size: 14px; background: var(--paper); color: var(--ink); font-family: inherit;
}
.cm-form textarea {
    width: 100%; min-height: 104px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
    font-size: 14px; background: var(--paper); color: var(--ink); font-family: inherit; resize: vertical;
}
.cm-form input:focus, .cm-form textarea:focus { outline: none; border-color: var(--calm); box-shadow: 0 0 0 3px rgba(31,166,160,0.14); }
.cm-form .submit-row { display: flex; justify-content: flex-end; margin-top: 10px; }

/* =============================================================
   Write form
   ============================================================= */
.write-wrap { padding: 52px 0 84px; }
.write-form { border-top: 2px solid var(--calm); background: var(--card); border: 1px solid var(--line); border-radius: 0 0 18px 18px; overflow: hidden; }
.write-form .frow { display: flex; align-items: stretch; border-bottom: 1px solid var(--line-2); }
.write-form .flabel {
    width: 152px; padding: 14px 22px; background: var(--mist);
    font-family: var(--font-display); font-size: 14px; font-weight: 500; color: var(--calm-deep);
    display: flex; align-items: center;
}
.write-form .flabel .req { color: var(--coral-deep); margin-left: 4px; }
.write-form .finput { flex: 1; padding: 10px 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.write-form input[type=text], .write-form input[type=password], .write-form input[type=email] {
    flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
    font-size: 14px; background: var(--paper); color: var(--ink); font-family: inherit;
}
.write-form textarea {
    width: 100%; min-height: 340px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 12px;
    font-size: 15px; background: var(--paper); color: var(--ink); font-family: inherit; line-height: 1.8; resize: vertical;
}
.write-form input:focus, .write-form textarea:focus { outline: none; border-color: var(--calm); box-shadow: 0 0 0 3px rgba(31,166,160,0.14); }
.write-form .frow.full { display: block; padding: 16px 20px; border-bottom: 0; }
.write-form .frow.full .flabel { display: none; }
.form-actions { display: flex; justify-content: center; gap: 10px; margin-top: 32px; }

/* =============================================================
   Password prompt
   ============================================================= */
.pw-box {
    max-width: 440px; margin: 70px auto; padding: 44px 34px;
    border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card);
    text-align: center; box-shadow: var(--sh-sm);
}
.pw-box h3 { margin: 0 0 10px; color: var(--ink); font-weight: 600; }
.pw-box p { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.pw-box input[type=password] {
    width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px;
    font-size: 14px; margin-bottom: 14px; background: var(--paper); color: var(--ink);
}
.pw-box input[type=password]:focus { outline: none; border-color: var(--calm); box-shadow: 0 0 0 3px rgba(31,166,160,0.14); }

/* =============================================================
   Captcha & honeypot
   ============================================================= */
.captcha-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.captcha-img { height: 50px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); display: block; }
.captcha-reload {
    width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--calm-deep);
    font-size: 18px; line-height: 1; transition: background .2s ease, transform .3s ease, color .2s ease;
}
.captcha-reload:hover { background: var(--mist); color: var(--calm); transform: rotate(90deg); }
input[name="captcha"] {
    padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px;
    font-weight: 600; letter-spacing: 2px; text-transform: uppercase; min-width: 180px;
    background: var(--paper); color: var(--ink); font-family: var(--font-display);
}
input[name="captcha"]:focus { outline: none; border-color: var(--calm); box-shadow: 0 0 0 3px rgba(31,166,160,0.14); }

/* Honeypot — visually hidden offscreen (must stay in DOM) */
.hp-field {
    position: absolute !important; left: -10000px !important; top: auto !important;
    width: 1px !important; height: 1px !important; overflow: hidden !important;
    opacity: 0 !important; pointer-events: none !important;
}

/* =============================================================
   Footer
   ============================================================= */
.site-footer { background: var(--ink); color: #A9C6C4; margin-top: 100px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr 1fr; gap: 40px; padding: 62px 24px 32px; }
.footer-col h4 { font-family: var(--font-display); color: #fff; font-size: 13px; margin: 0 0 18px; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; color: #fff; font-size: 17px; margin-bottom: 14px; }
.footer-logo .logo-mark { background: #fff; color: var(--calm-deep); box-shadow: none; }
.footer-logo .logo-mark::after { border-color: rgba(14,110,106,0.7); }
.footer-desc { color: #7FA6A3; font-size: 13px; margin: 0; line-height: 1.7; }
.footer-info li, .footer-links li { font-size: 13px; padding: 5px 0; color: #A9C6C4; }
.footer-info strong { color: #CFE6E4; margin-right: 8px; font-weight: 600; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #244745; padding: 18px 24px; font-size: 12px; color: #6E938F; text-align: center; }

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 1000px) {
    .hero-split { padding: 64px 0 84px; }
    .hero-split-inner { grid-template-columns: 1fr; gap: 44px; }
    .hs-img > img { height: 440px; }
    .hs-img::after { border-radius: 26px 26px 100px 100px / 26px 26px 54px 54px; }
    .why-grid { grid-template-columns: 1fr; }
    .hours-card { grid-template-columns: 1fr; padding: 38px 30px; gap: 32px; }
    .doctor-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .mobile-toggle { display: block; }
    .gnb {
        position: fixed; top: 76px; left: 0; right: 0;
        background: var(--card); border-bottom: 1px solid var(--line);
        max-height: 0; overflow: hidden; transition: max-height .28s ease;
        box-shadow: var(--sh-md);
    }
    body.menu-open .gnb { max-height: 80vh; overflow-y: auto; }
    .gnb > ul { flex-direction: column; padding: 10px 16px; gap: 2px; }
    .gnb > ul > li > a { padding: 14px 12px; border-radius: 10px; }
    .gnb .sub {
        position: static; transform: none; opacity: 1; visibility: visible;
        box-shadow: none; border: 0; padding: 0 0 6px 14px; min-width: 0;
    }
    .gnb .has-sub:hover .sub, .gnb .has-sub:focus-within .sub { transform: none; }

    .section { padding: 70px 0; }
    .why-section, .faq-section { padding: 70px 0; }
    .hours-section { padding: 20px 0 70px; }
    .latest-grid { grid-template-columns: 1fr; }
    .board-table .col-name, .board-table .col-hit { display: none; }
    .write-form .frow { flex-direction: column; }
    .write-form .flabel { width: 100%; padding: 12px 18px; }
    .footer-inner { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 600px) {
    .container { padding: 0 18px; }
    .utility-inner { font-size: 12px; }
    .ub-sep, .ub-item:nth-child(3) { display: none; }
    .hs-img > img { height: 340px; border-radius: 22px 22px 80px 80px / 22px 22px 44px 44px; }
    .hs-img::after { border-radius: 22px 22px 80px 80px / 22px 22px 44px 44px; }
    .hs-badge { left: 0; bottom: -18px; padding: 14px 18px; min-width: auto; }
    .hs-badge-num { font-size: 28px; }
    .hs-trust { gap: 20px; flex-wrap: wrap; }
    .doctor-grid { grid-template-columns: 1fr; }
    .reserve-cta { border-radius: 70px 70px 0 0 / 40px 40px 0 0; }
    .reserve-inner { flex-direction: column; align-items: flex-start; }
    .view-meta { gap: 10px 16px; }
    .board-foot { flex-direction: column; align-items: stretch; }
    .board-foot form { width: 100%; }
    .board-foot input[type=text] { flex: 1; }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
