/*
Theme Name: Black Hills Strategy Clinic Child
Theme URI: https://blackhillsobgyn.com
Template: hello-elementor
Version: 1.2.3
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&family=Noto+Sans+KR:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bh-black: #111111;
    --bh-text: #1a1a1a;
    --bh-text-secondary: #555555;
    --bh-text-muted: #999999;
    --bh-bg: #ffffff;
    --bh-bg-alt: #f7f7f5;
    --bh-bg-warm: #faf9f6;
    --bh-border: #e8e8e6;
    --bh-border-light: #f0f0ee;
    --bh-accent: #0d7c66;
    --bh-accent-light: #e8f5f1;
    --bh-accent-hover: #0a6352;
    --bh-accent-dark: #064d3e;
    --bh-warm: #e8a530;
    --bh-warm-light: #fef8ec;
    --bh-font-heading: 'DM Sans', 'Noto Sans KR', sans-serif;
    --bh-font-body: 'Noto Sans KR', 'DM Sans', sans-serif;
    --bh-font-mono: 'JetBrains Mono', monospace;
    --bh-radius: 12px;
    --bh-radius-sm: 8px;
    --bh-max-width: 1140px;
    --bh-transition: 0.25s ease;
    --bh-shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --bh-shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --bh-shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bh-bg);
    color: var(--bh-text);
    font-family: var(--bh-font-body);
    font-size: 16px;
    line-height: 1.75;
    margin: 0;
    padding: 0;
}

a {
    color: var(--bh-accent);
    text-decoration: none;
    transition: color var(--bh-transition);
}

a:hover {
    color: var(--bh-accent-hover);
}

.bh-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--bh-border);
}

.bh-header-inner {
    max-width: var(--bh-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 72px;
}

.bh-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--bh-text);
    flex-shrink: 0;
}

.bh-logo:hover {
    color: var(--bh-text);
}

.bh-logo-mark {
    width: 40px;
    height: 40px;
    background: var(--bh-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bh-logo-mark::before {
    content: '+';
    font-family: var(--bh-font-heading);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.bh-logo-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.bh-logo-title {
    font-family: var(--bh-font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--bh-black);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.bh-logo-sub {
    font-size: 12px;
    font-weight: 400;
    color: var(--bh-text-muted);
    line-height: 1.2;
}

.bh-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bh-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.bh-nav a {
    font-family: var(--bh-font-heading);
    font-size: 14px;
    font-weight: 500;
    color: var(--bh-text-secondary);
    padding: 8px 16px;
    border-radius: var(--bh-radius-sm);
    transition: all var(--bh-transition);
}

.bh-nav a:hover {
    color: var(--bh-text);
    background: var(--bh-bg-alt);
}

.bh-nav a.current {
    color: var(--bh-accent);
    background: var(--bh-accent-light);
}

.bh-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--bh-font-heading);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--bh-accent);
    padding: 9px 22px;
    border-radius: var(--bh-radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--bh-transition);
    white-space: nowrap;
}

.bh-cta-btn:hover {
    background: var(--bh-accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--bh-shadow-md);
}

.bh-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--bh-text);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
}

.bh-hero {
    background: var(--bh-bg-warm);
    border-bottom: 1px solid var(--bh-border);
    padding: 80px 40px 72px;
}

.bh-hero-inner {
    max-width: var(--bh-max-width);
    margin: 0 auto;
}

.bh-hero-single {
    max-width: 720px;
}

.bh-hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bh-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--bh-font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--bh-accent);
    background: var(--bh-accent-light);
    padding: 6px 14px;
    border-radius: 20px;
    width: fit-content;
}

.bh-hero-dot {
    width: 6px;
    height: 6px;
    background: var(--bh-accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.bh-hero h1 {
    font-family: var(--bh-font-heading);
    font-size: 44px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--bh-black);
    margin: 0;
}

.bh-hero-desc {
    font-size: 17px;
    line-height: 1.7;
    color: var(--bh-text-secondary);
    margin: 0;
    max-width: 480px;
}

.bh-hero-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}

.bh-hero-actions .bh-cta-btn {
    padding: 12px 28px;
    font-size: 15px;
}

.bh-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--bh-font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--bh-text);
    background: var(--bh-bg);
    padding: 12px 28px;
    border-radius: var(--bh-radius-sm);
    border: 1px solid var(--bh-border);
    text-decoration: none;
    transition: all var(--bh-transition);
}

.bh-btn-outline:hover {
    border-color: var(--bh-text-muted);
    color: var(--bh-black);
    transform: translateY(-1px);
    box-shadow: var(--bh-shadow-sm);
}

.bh-cat-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--bh-border);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.4s ease, padding 0.4s ease;
}

.bh-cat-filter.is-open {
    max-height: 200px;
    opacity: 1;
    margin-bottom: 40px;
    padding-bottom: 24px;
}

.bh-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--bh-font-heading);
    font-size: 13px;
    font-weight: 500;
    color: var(--bh-text-secondary);
    background: var(--bh-bg);
    padding: 7px 16px;
    border-radius: 20px;
    border: 1px solid var(--bh-border);
    transition: all var(--bh-transition);
    text-decoration: none;
}

.bh-cat-pill:hover {
    color: var(--bh-accent);
    border-color: var(--bh-accent);
    background: var(--bh-accent-light);
}

.bh-cat-pill.active {
    color: #fff;
    background: var(--bh-accent);
    border-color: var(--bh-accent);
}

.bh-cat-count {
    font-family: var(--bh-font-mono);
    font-size: 11px;
    opacity: 0.6;
}

.site-main {
    max-width: var(--bh-max-width);
    margin: 0 auto;
    padding: 60px 40px 80px;
}

.page-header {
    margin-bottom: 40px;
}

.page-header .entry-title {
    font-family: var(--bh-font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--bh-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}

.page-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.page-content .post {
    padding: 32px 0;
    border-bottom: 1px solid var(--bh-border);
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 0 24px;
    align-items: start;
}

.page-content .post:first-child {
    padding-top: 0;
}

.page-content .post:last-child {
    border-bottom: none;
}

.post-index {
    font-family: var(--bh-font-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--bh-text-muted);
    padding-top: 6px;
}

.post-body {
    min-width: 0;
}

.post-card-wrap {
    background: var(--bh-bg);
    border: 1px solid var(--bh-border-light);
    border-radius: var(--bh-radius);
    padding: 28px;
    transition: all 0.3s ease;
}

.post-card-wrap:hover {
    border-color: var(--bh-border);
    box-shadow: var(--bh-shadow-lg);
    transform: translateY(-3px);
}

.post-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--bh-radius-sm);
    margin-bottom: 20px;
    border: 1px solid var(--bh-border-light);
}

.post-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.post-tag {
    display: inline-block;
    font-family: var(--bh-font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--bh-accent);
    background: var(--bh-accent-light);
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.post-date {
    font-family: var(--bh-font-mono);
    font-size: 12px;
    color: var(--bh-text-muted);
}

.post-reading-time {
    font-family: var(--bh-font-mono);
    font-size: 12px;
    color: var(--bh-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-reading-time::before {
    content: '';
    width: 3px;
    height: 3px;
    background: var(--bh-text-muted);
    border-radius: 50%;
    flex-shrink: 0;
}

.page-content .post .entry-title {
    font-family: var(--bh-font-heading);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.page-content .post .entry-title a {
    color: var(--bh-black);
    transition: color var(--bh-transition);
}

.page-content .post .entry-title a:hover {
    color: var(--bh-accent);
}

.page-content .post .entry-content,
.page-content .post > p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--bh-text-secondary);
    margin: 0;
}

.page-content .post .entry-content p {
    margin: 0 0 1em;
}

.page-content .post .entry-content p:last-child {
    margin-bottom: 0;
}

.page-content .post .more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--bh-font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--bh-accent);
    margin-top: 16px;
    padding: 10px 20px;
    background: var(--bh-accent-light);
    border-radius: var(--bh-radius-sm);
    transition: all var(--bh-transition);
}

.page-content .post .more-link:hover {
    background: var(--bh-accent);
    color: #fff;
}

.nav-links {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--bh-border);
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.nav-links a {
    font-family: var(--bh-font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--bh-accent);
    padding: 10px 24px;
    border: 1px solid var(--bh-border);
    border-radius: var(--bh-radius-sm);
    transition: all var(--bh-transition);
}

.nav-links a:hover {
    background: var(--bh-accent);
    color: #fff;
    border-color: var(--bh-accent);
}

.bh-cta-banner {
    background: var(--bh-accent);
    padding: 64px 40px;
    text-align: center;
}

.bh-cta-banner-inner {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.bh-cta-banner h2 {
    font-family: var(--bh-font-heading);
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin: 0;
}

.bh-cta-banner p {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin: 0;
    line-height: 1.7;
}

.bh-cta-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--bh-font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--bh-accent);
    background: #fff;
    padding: 14px 32px;
    border-radius: var(--bh-radius-sm);
    text-decoration: none;
    transition: all var(--bh-transition);
    margin-top: 4px;
}

.bh-cta-banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    color: var(--bh-accent-dark);
}

.bh-related {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--bh-border);
}

.bh-related h3 {
    font-family: var(--bh-font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--bh-black);
    margin: 0 0 32px;
    letter-spacing: -0.01em;
}

.bh-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.bh-related-card {
    background: var(--bh-bg);
    border: 1px solid var(--bh-border-light);
    border-radius: var(--bh-radius);
    padding: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bh-related-card:hover {
    border-color: var(--bh-border);
    box-shadow: var(--bh-shadow-lg);
    transform: translateY(-3px);
}

.bh-related-card .post-tag {
    width: fit-content;
}

.bh-related-card h4 {
    font-family: var(--bh-font-heading);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--bh-black);
    margin: 0;
}

.bh-related-card .post-date {
    margin-top: auto;
}

.bh-related-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--bh-radius-sm);
    border: 1px solid var(--bh-border-light);
}

.bh-footer {
    background: var(--bh-bg-alt);
    border-top: 1px solid var(--bh-border);
    padding: 64px 40px 40px;
}

.bh-footer-inner {
    max-width: var(--bh-max-width);
    margin: 0 auto;
}

.bh-footer-top {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--bh-border);
}

.bh-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bh-footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.bh-footer-logo-mark {
    width: 32px;
    height: 32px;
    background: var(--bh-accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bh-footer-logo-mark::before {
    content: '+';
    font-family: var(--bh-font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.bh-footer-logo-name {
    font-family: var(--bh-font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--bh-black);
}

.bh-footer-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--bh-text-muted);
    max-width: 280px;
}

.bh-footer-col h4 {
    font-family: var(--bh-font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--bh-black);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 20px;
}

.bh-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bh-footer-col ul li a {
    font-size: 14px;
    color: var(--bh-text-secondary);
    transition: color var(--bh-transition);
}

.bh-footer-col ul li a:hover {
    color: var(--bh-accent);
}

.bh-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    font-size: 13px;
    color: var(--bh-text-muted);
}

.single .site-main {
    max-width: 760px;
}

.single .entry-title {
    font-family: var(--bh-font-heading);
    font-size: 38px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--bh-black);
}

.single .post-meta-row {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--bh-border);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-family: var(--bh-font-heading);
    color: var(--bh-black);
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.entry-content blockquote {
    border-left: 3px solid var(--bh-accent);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--bh-accent-light);
    border-radius: 0 var(--bh-radius-sm) var(--bh-radius-sm) 0;
    color: var(--bh-text-secondary);
    font-style: italic;
}

.entry-content code {
    font-family: var(--bh-font-mono);
    background: var(--bh-bg-alt);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--bh-accent);
    border: 1px solid var(--bh-border);
}

.entry-content a {
    color: var(--bh-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(13, 124, 102, 0.3);
    transition: text-decoration-color var(--bh-transition);
}

.entry-content a:hover {
    text-decoration-color: var(--bh-accent);
}

.bh-fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.bh-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .bh-header-inner {
        padding: 0 20px;
        height: 60px;
    }

    .bh-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        border-bottom: 1px solid var(--bh-border);
        padding: 8px 0;
    }

    .bh-nav.is-open {
        display: flex;
    }

    .bh-nav a {
        padding: 14px 24px;
        border-radius: 0;
    }

    .bh-nav-toggle {
        display: block;
    }

    .bh-header-right .bh-cta-btn {
        display: none;
    }

    .bh-hero {
        padding: 48px 20px 40px;
    }

    .bh-hero-inner {
        max-width: 100%;
    }

    .bh-hero h1 {
        font-size: 30px;
    }

    .bh-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .bh-hero-actions .bh-cta-btn,
    .bh-hero-actions .bh-btn-outline {
        justify-content: center;
    }

    .bh-cat-filter {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 16px;
        -webkit-overflow-scrolling: touch;
    }

    .site-main {
        padding: 40px 20px 60px;
    }

    .page-content .post {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 24px 0;
    }

    .post-index {
        margin-bottom: 8px;
    }

    .page-content .post .entry-title {
        font-size: 19px;
    }

    .post-card-wrap {
        padding: 20px;
    }

    .bh-cta-banner {
        padding: 48px 20px;
    }

    .bh-cta-banner h2 {
        font-size: 24px;
    }

    .bh-related-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bh-footer {
        padding: 40px 20px 32px;
    }

    .bh-footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .bh-footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .bh-logo-sub {
        display: none;
    }

    .single .entry-title {
        font-size: 28px;
    }
}

body.admin-bar .bh-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .bh-header {
        top: 46px;
    }
}
