/* ══════════════════════════════════════════════════════════
   blocks.css  --  Consolidated Wagtail Block Styles
   Extracted from individual block templates + new block types
   ══════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────
   Button Block
   ────────────────────────────────────── */
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }

/* ──────────────────────────────────────
   Three-Column Card Block
   ────────────────────────────────────── */
.custom-wagtail-card { border-radius: 12px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.custom-wagtail-card:hover { transform: translateY(-8px); box-shadow: 0 12px 24px rgba(0,0,0,0.1) !important; }
.custom-wagtail-card .icon-circle { width:65px; height:65px; background:#f8f9fc; border-radius:50%; color:#0f3b7b; font-size:1.7rem; transition: all 0.3s ease; }
.custom-wagtail-card:hover .icon-circle { background-color: #d85200; color: #fff; transform: scale(1.1); }

/* ──────────────────────────────────────
   Section Heading Block
   ────────────────────────────────────── */
.wt-section-title {
    font-family: 'GmarketSansBold', 'Pretendard', sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    color: #111;
    letter-spacing: -1px;
    margin-bottom: 0;
    padding-bottom: 15px;
    position: relative;
    display: inline-block;
}
.wt-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--main-brand, #ea5400);
    border-radius: 2px;
}
.wt-section-heading[style*="text-align: left"] .wt-section-title::after {
    left: 0;
}
.wt-section-heading[style*="text-align: center"] .wt-section-title::after {
    left: 50%;
    transform: translateX(-50%);
}
.wt-section-subtitle {
    font-size: 1.05rem;
    color: #777;
    margin-top: 14px;
    line-height: 1.6;
    letter-spacing: -0.3px;
}

/* ──────────────────────────────────────
   Accordion Block
   ────────────────────────────────────── */
.wt-accordion-wrap { margin-bottom: 10px; }

.wt-acc-item {
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.wt-acc-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.wt-acc-trigger {
    width: 100%;
    background: #fff;
    border: none;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
}
.wt-acc-trigger:hover {
    background: #fafafa;
}

.wt-acc-badge {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--main-brand, #ea5400);
    color: #fff;
    font-family: 'GmarketSansBold', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wt-acc-badge-a {
    background: #f0f0f0;
    color: #555;
}

.wt-acc-title {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    letter-spacing: -0.3px;
}

.wt-acc-arrow {
    flex-shrink: 0;
    color: #bbb;
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}
.wt-acc-item.active .wt-acc-arrow {
    transform: rotate(180deg);
}

.wt-acc-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.wt-acc-item.active .wt-acc-panel {
    max-height: 2000px;
}

.wt-acc-content {
    padding: 0 24px 22px 24px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.wt-acc-faq .wt-acc-content {
    padding-top: 0;
    border-top: 1px solid #f0f0f0;
    padding-top: 18px;
}

.wt-acc-richtext {
    flex: 1;
    font-size: 1.02rem;
    color: #555;
    line-height: 1.75;
}
.wt-acc-richtext p { margin-bottom: 8px; }
.wt-acc-richtext p:last-child { margin-bottom: 0; }

/* FAQ style */
.wt-acc-faq .wt-acc-trigger {
    background: #fffaf7;
}
.wt-acc-faq.active .wt-acc-trigger {
    background: #fff;
}

/* ──────────────────────────────────────
   Alert / Notice Block
   ────────────────────────────────────── */
.wt-alert {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 28px;
    border-radius: 14px;
    margin-bottom: 10px;
}

.wt-alert-info {
    background: linear-gradient(135deg, #fff8f3 0%, #fff1e8 100%);
    border: 1px solid rgba(234, 84, 0, 0.1);
}
.wt-alert-info .wt-alert-icon {
    color: var(--main-brand, #ea5400);
}
.wt-alert-info .wt-alert-title {
    color: #c44000;
}

.wt-alert-warning {
    background: linear-gradient(135deg, var(--main-brand, #ea5400) 0%, #d94800 100%);
    border: none;
    color: #fff;
}
.wt-alert-warning .wt-alert-icon {
    color: rgba(255,255,255,0.9);
    font-size: 1.5rem;
}
.wt-alert-warning .wt-alert-title {
    color: #fff;
}
.wt-alert-warning .wt-alert-content,
.wt-alert-warning .wt-alert-content p,
.wt-alert-warning .wt-alert-content a {
    color: rgba(255,255,255,0.92);
}
.wt-alert-warning .wt-alert-content a {
    text-decoration: underline;
}

.wt-alert-neutral {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}
.wt-alert-neutral .wt-alert-icon {
    color: #888;
}
.wt-alert-neutral .wt-alert-title {
    color: #333;
}

.wt-alert-icon {
    flex-shrink: 0;
    font-size: 1.3rem;
    margin-top: 2px;
}

.wt-alert-body { flex: 1; }

.wt-alert-title {
    font-family: 'GmarketSansBold', 'Pretendard', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.wt-alert-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
}
.wt-alert-content p { margin-bottom: 5px; }
.wt-alert-content p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
    .wt-alert {
        padding: 18px 20px;
        gap: 14px;
    }
}

/* ──────────────────────────────────────
   Info Grid Block
   ────────────────────────────────────── */
.wt-infogrid {
    display: grid;
    gap: 20px;
    margin-bottom: 10px;
}
.wt-infogrid-col-1 { grid-template-columns: 1fr; }
.wt-infogrid-col-2 { grid-template-columns: repeat(2, 1fr); }
.wt-infogrid-col-3 { grid-template-columns: repeat(3, 1fr); }

.wt-infobox {
    padding: 28px 26px;
    border-radius: 14px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wt-infobox:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.wt-infobox-filled {
    background: #f8f9fa;
}
.wt-infobox-card {
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.wt-infobox-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8da 100%);
    color: var(--main-brand, #ea5400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.wt-infobox-title {
    font-family: 'GmarketSansBold', 'Pretendard', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.wt-infobox-content {
    font-size: 0.98rem;
    color: #555;
    line-height: 1.75;
}
.wt-infobox-content ul,
.wt-infobox-content ol {
    padding-left: 18px;
    margin-bottom: 8px;
}
.wt-infobox-content li {
    margin-bottom: 4px;
}
.wt-infobox-content p { margin-bottom: 6px; }
.wt-infobox-content p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
    .wt-infogrid-col-2,
    .wt-infogrid-col-3 {
        grid-template-columns: 1fr;
    }
    .wt-infobox { padding: 22px 20px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .wt-infogrid-col-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ──────────────────────────────────────
   Step Flow Block
   ────────────────────────────────────── */
.wt-stepflow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 30px 0;
    margin-bottom: 10px;
}

.wt-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    max-width: 160px;
}

.wt-step-circle {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--main-brand, #ea5400) 0%, #d94800 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 14px;
    box-shadow: 0 6px 20px rgba(234, 84, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.wt-step-item:hover .wt-step-circle {
    transform: scale(1.08);
    box-shadow: 0 8px 28px rgba(234, 84, 0, 0.3);
}

.wt-step-num {
    font-family: 'GmarketSansBold', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
}

.wt-step-label {
    font-family: 'GmarketSansBold', 'Pretendard', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: #222;
    letter-spacing: -0.3px;
    margin-bottom: 6px;
}

.wt-step-desc {
    font-size: 0.88rem;
    color: #888;
    line-height: 1.5;
    max-width: 140px;
}

.wt-step-arrow {
    display: flex;
    align-items: center;
    color: #ccc;
    font-size: 1.1rem;
    padding-top: 22px;
    flex-shrink: 0;
    margin: 0 4px;
}

@media (max-width: 768px) {
    .wt-stepflow {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .wt-step-item {
        max-width: 100%;
        flex-direction: row;
        text-align: left;
        gap: 16px;
    }
    .wt-step-circle {
        width: 52px;
        height: 52px;
        font-size: 1.1rem;
        flex-shrink: 0;
        margin-bottom: 0;
    }
    .wt-step-num { font-size: 1.2rem; }
    .wt-step-label { margin-bottom: 2px; }
    .wt-step-desc { max-width: none; }
    .wt-step-arrow {
        padding-top: 0;
        transform: rotate(90deg);
        margin: 8px 0;
    }
}

/* ──────────────────────────────────────
   Tab Block
   ────────────────────────────────────── */
.wt-tab-wrap { margin-bottom: 10px; }

.wt-tab-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.wt-tab-btn {
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    transition: all 0.25s ease;
    background: transparent;
    color: #888;
    padding: 12px 24px;
}

/* Pill style */
.wt-tab-nav-pill {
    gap: 10px;
    padding-bottom: 20px;
}
.wt-tab-nav-pill .wt-tab-btn {
    background: #f4f5f7;
    border-radius: 30px;
    color: #666;
}
.wt-tab-nav-pill .wt-tab-btn:hover {
    background: #eee;
    color: #333;
}
.wt-tab-nav-pill .wt-tab-btn.active {
    background: var(--main-brand, #ea5400);
    color: #fff;
    box-shadow: 0 4px 15px rgba(234, 84, 0, 0.25);
}

/* Underline style */
.wt-tab-nav-underline {
    border-bottom: 2px solid #eee;
    gap: 0;
    padding-bottom: 0;
}
.wt-tab-nav-underline .wt-tab-btn {
    border-bottom: 3px solid transparent;
    border-radius: 0;
    margin-bottom: -2px;
    padding: 14px 28px;
}
.wt-tab-nav-underline .wt-tab-btn:hover {
    color: #333;
}
.wt-tab-nav-underline .wt-tab-btn.active {
    color: var(--main-brand, #ea5400);
    border-bottom-color: var(--main-brand, #ea5400);
}

/* Panels */
.wt-tab-panel {
    display: none;
}
.wt-tab-panel.active {
    display: block;
    animation: wtTabFadeIn 0.3s ease;
}
@keyframes wtTabFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.wt-tab-panel-inner {
    padding: 28px 4px;
    font-size: 1.02rem;
    line-height: 1.8;
    color: #444;
}
.wt-tab-panel-inner p { margin-bottom: 10px; }
.wt-tab-panel-inner img { max-width: 100%; height: auto; border-radius: 10px; }

@media (max-width: 768px) {
    .wt-tab-nav-pill { gap: 6px; }
    .wt-tab-btn { font-size: 0.92rem; padding: 10px 18px; }
    .wt-tab-panel-inner { padding: 20px 2px; }
}

/* ──────────────────────────────────────
   Board Embed Block
   ────────────────────────────────────── */
:root {
    --be-brand: var(--main-brand, #ea5400);
    --be-brand-light: #fff5f0;
    --be-brand-dark: #c44000;
    --be-green: #22c55e;
}

.be-wrapper { margin-bottom: 50px; }

/* Header */
.be-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 16px;
    border-bottom: 2.5px solid #1a1a1a;
    margin-bottom: 0;
}
.be-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.be-header-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--be-brand) 0%, var(--be-brand-dark) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}
.be-title {
    font-family: 'GmarketSansBold', sans-serif;
    font-size: 2rem;
    color: #111;
    letter-spacing: -1.2px;
    margin: 0;
}
.be-accent { color: var(--be-brand); }
.be-count {
    background: #f4f5f7;
    color: #666;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-left: 4px;
}
.be-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--be-brand);
    color: #fff;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-bottom: 4px;
}
.be-more-btn:hover {
    background: #222;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}
.be-more-btn i { font-size: 0.8rem; transition: transform 0.3s; }
.be-more-btn:hover i { transform: translateX(4px); }

/* Common badges */
.be-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}
.be-badge-active {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #15803d;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.15);
}
.be-badge-closed {
    background: #f0f0f0;
    color: #999;
}
.be-badge-default { background: #f4f6fa; color: #0f3b7b; }
.be-badge-press { background: #f0f4ff; color: #2563eb; }
.be-badge-health { background: #fdf2f8; color: #db2777; }
.be-badge-video { background: #faf5ff; color: #9333ea; }

/* Pulse dot */
.be-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--be-green);
    display: inline-block;
    animation: bePulse 1.5s ease-in-out infinite;
}
@keyframes bePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

/* Empty state */
.be-empty {
    text-align: center;
    padding: 60px 20px;
    color: #bbb;
}
.be-empty i { font-size: 2.5rem; margin-bottom: 14px; display: block; }
.be-empty p { font-size: 1.05rem; margin: 0; }
.be-empty-full { grid-column: 1 / -1; background: #fafbfc; border-radius: 15px; }

/* Table mode */
.be-table-wrap { overflow-x: auto; }
.be-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.02rem;
}
.be-table thead th {
    background: linear-gradient(135deg, #faf8f6 0%, #f5f0ec 100%);
    padding: 18px 12px;
    font-weight: 700;
    color: #555;
    text-align: center;
    letter-spacing: -0.3px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.95rem;
}
.be-table-row {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}
.be-table-row:nth-child(even) { background: #fcfcfc; }
.be-table-row:hover { background: #fffaf7; }

.be-row-pinned {
    background: #fffef5 !important;
}
.be-row-pinned:hover { background: #fff9e5 !important; }
.be-pin {
    color: var(--be-brand);
    font-size: 0.9rem;
}

.be-row-closed { opacity: 0.55; }
.be-row-closed:hover { opacity: 0.75; }
.be-row-closed .be-table-link { text-decoration: line-through; color: #999 !important; }

.be-table-num {
    text-align: center;
    padding: 20px 12px;
    color: #999;
    font-size: 0.95rem;
}
.be-table-title-cell {
    padding: 20px 12px 20px 20px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.be-table-link {
    color: #222;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.4px;
    transition: color 0.2s;
    line-height: 1.4;
}
.be-table-row:hover .be-table-link {
    color: var(--be-brand);
}
.be-table-meta {
    text-align: center;
    padding: 20px 12px;
    color: #999;
    font-size: 0.92rem;
}
.be-table-views { font-weight: 600; }
.be-empty-cell { padding: 0; border: none; }

/* Card mode */
.be-card-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    margin-top: 24px;
}

.be-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    height: 100%;
    position: relative;
}
.be-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.08);
    border-color: #e8e8e8;
}

.be-card-closed { opacity: 0.55; }
.be-card-closed:hover { opacity: 0.8; }

.be-card-img {
    position: relative;
    width: 100%;
    padding-top: 56%;
    overflow: hidden;
    background: #f8f8f8;
}
.be-card-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}
.be-card:hover .be-card-bg { transform: scale(1.06); }
.be-card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0);
    transition: background 0.4s;
}
.be-card:hover .be-card-overlay { background: rgba(0,0,0,0.04); }

.be-card-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: rgba(255,255,255,0.7);
}
.be-fallback-notice { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); }
.be-fallback-press { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.be-fallback-recruit { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.be-fallback-health_talk { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); }
.be-fallback-health_video { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }
.be-fallback-magazine { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }

.be-video-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: var(--be-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s;
    z-index: 2;
}
.be-card:hover .be-video-play { transform: translate(-50%, -50%) scale(1.1); }

.be-ribbon {
    position: absolute;
    top: 14px;
    right: -30px;
    background: var(--be-green);
    color: #fff;
    padding: 5px 40px;
    font-size: 0.78rem;
    font-weight: 800;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
    z-index: 2;
}

.be-card-body {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.be-card-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: #222;
    letter-spacing: -0.5px;
    line-height: 1.45;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}
.be-card:hover .be-card-title { color: var(--be-brand); }

.be-card-summary {
    font-size: 0.92rem;
    color: #888;
    line-height: 1.55;
    margin: 0 0 auto 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.be-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f5f5f5;
}
.be-card-badges { display: flex; gap: 6px; }
.be-card-date {
    font-size: 0.88rem;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 5px;
}

.be-card-readmore {
    display: block;
    margin-top: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--be-brand);
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.3s ease;
}
.be-card-readmore i { font-size: 0.75rem; transition: transform 0.3s; }
.be-card:hover .be-card-readmore {
    opacity: 1;
    transform: translateY(0);
}
.be-card:hover .be-card-readmore i { transform: translateX(4px); }

/* List mode */
.be-list {
    border-top: 1px solid #eee;
    margin-top: 4px;
}

.be-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 16px;
    border-bottom: 1px solid #f2f2f2;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
}
.be-list-item:hover {
    background: #fffaf7;
    padding-left: 22px;
}

.be-list-closed { opacity: 0.5; }
.be-list-closed:hover { opacity: 0.7; }
.be-list-closed .be-list-title { text-decoration: line-through; color: #999; }

.be-list-indicator {
    width: 4px;
    height: 40px;
    border-radius: 2px;
    flex-shrink: 0;
    transition: height 0.3s ease;
}
.be-list-item:hover .be-list-indicator { height: 50px; }
.be-indicator-notice { background: var(--be-brand); }
.be-indicator-press { background: #3b82f6; }
.be-indicator-recruit { background: var(--be-green); }
.be-indicator-health_talk { background: #ec4899; }
.be-indicator-health_video { background: #8b5cf6; }
.be-indicator-magazine { background: #f59e0b; }
.be-indicator-kind_staff { background: #06b6d4; }
.be-indicator-voice { background: #64748b; }

.be-list-content { flex: 1; min-width: 0; }

.be-list-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.be-list-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #222;
    letter-spacing: -0.4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}
.be-list-item:hover .be-list-title { color: var(--be-brand); }

.be-list-summary {
    font-size: 0.9rem;
    color: #999;
    margin: 5px 0 0 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.be-list-date {
    flex-shrink: 0;
    font-size: 0.9rem;
    color: #bbb;
    font-weight: 500;
}

/* Board responsive */
@media (max-width: 768px) {
    .be-header { flex-direction: column; align-items: flex-start; gap: 14px; }
    .be-title { font-size: 1.6rem; }
    .be-more-btn { align-self: flex-end; font-size: 0.88rem; padding: 8px 18px; }

    .be-table { font-size: 0.9rem; }
    .be-table thead th { padding: 14px 8px; font-size: 0.85rem; }
    .be-table-title-cell { padding: 16px 8px; }
    .be-table-link { font-size: 0.95rem; }

    .be-card-grid { grid-template-columns: 1fr; }
    .be-card-body { padding: 18px 20px; }

    .be-list-date { display: none; }
    .be-list-item { padding: 16px 12px; }
}

@media (max-width: 480px) {
    .be-table-meta:nth-child(3),
    .be-table thead th:nth-child(3) { display: none; }
}

/* ══════════════════════════════════════════════════════════
   NEW BLOCK TYPES  --  Hospital Brand Styles
   ══════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────
   Department Grid Block
   ────────────────────────────────────── */
.wt-dept-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    margin-bottom: 10px;
}

.wt-dept-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    padding: 28px 24px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.wt-dept-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.07);
}

.wt-dept-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8da 100%);
    color: var(--main-brand, #ea5400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.wt-dept-card:hover .wt-dept-icon {
    background: var(--main-brand, #ea5400);
    color: #fff;
}
/* 아이콘 이미지 — 박스 안에 균일하게 맞춤 (카드 크기 제각각 방지) */
.wt-dept-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    box-sizing: border-box;
}
/* 카드 균일 높이 + 이름 한 줄 정렬 */
.wt-dept-card { min-height: 108px; }
.wt-dept-card .wt-dept-name {
    flex: 1; min-width: 0;
    margin: 0;
    word-break: keep-all;
}

.wt-dept-info { flex: 1; min-width: 0; }

.wt-dept-name {
    font-family: 'GmarketSansBold', 'Pretendard', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #222;
    margin: 0 0 4px 0;
    letter-spacing: -0.4px;
}

.wt-dept-desc {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.5;
    margin: 0;
}

.wt-dept-arrow {
    color: #ccc;
    font-size: 0.9rem;
    transition: transform 0.3s ease, color 0.3s ease;
}
.wt-dept-card:hover .wt-dept-arrow {
    color: var(--main-brand, #ea5400);
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .wt-dept-grid {
        grid-template-columns: 1fr;
    }
    .wt-dept-card {
        padding: 22px 20px;
    }
}

/* ──────────────────────────────────────
   Doctor List Block
   ────────────────────────────────────── */
.wt-doctor-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    margin-bottom: 10px;
}

.wt-doctor-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.wt-doctor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(0,0,0,0.08);
}

.wt-doctor-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #f8f9fa;
}
.wt-doctor-photo-placeholder {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #f8f9fa 0%, #eef0f2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 3rem;
}

.wt-doctor-body {
    padding: 22px 20px;
}

.wt-doctor-name {
    font-family: 'GmarketSansBold', 'Pretendard', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #222;
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
}

.wt-doctor-dept {
    font-size: 0.88rem;
    color: var(--main-brand, #ea5400);
    font-weight: 700;
    margin: 0 0 10px 0;
}

.wt-doctor-specialty {
    font-size: 0.9rem;
    color: #777;
    line-height: 1.6;
    margin: 0;
}

.wt-doctor-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f5f5f5;
}

.wt-doctor-tag {
    font-size: 0.78rem;
    font-weight: 600;
    background: #f8f9fa;
    color: #666;
    padding: 4px 12px;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .wt-doctor-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .wt-doctor-body { padding: 16px 14px; }
    .wt-doctor-name { font-size: 1.02rem; }
}
@media (max-width: 480px) {
    .wt-doctor-grid {
        grid-template-columns: 1fr;
    }
}

/* ──────────────────────────────────────
   Image Gallery Block
   ────────────────────────────────────── */
.wt-gallery-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 10px;
}
.wt-gallery-grid-2 { grid-template-columns: repeat(2, 1fr); }
.wt-gallery-grid-3 { grid-template-columns: repeat(3, 1fr); }
.wt-gallery-grid-4 { grid-template-columns: repeat(4, 1fr); }

.wt-gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.wt-gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.wt-gallery-item:hover img {
    transform: scale(1.06);
}

.wt-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 16px 14px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
}
.wt-gallery-item:hover .wt-gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .wt-gallery-grid-3,
    .wt-gallery-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .wt-gallery-grid-2,
    .wt-gallery-grid-3,
    .wt-gallery-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ──────────────────────────────────────
   Timeline Block
   ────────────────────────────────────── */
.wt-timeline {
    position: relative;
    padding-left: 40px;
    margin-bottom: 10px;
}
.wt-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--main-brand, #ea5400), #ffe8da);
    border-radius: 2px;
}

.wt-timeline-item {
    position: relative;
    padding-bottom: 32px;
}
.wt-timeline-item:last-child {
    padding-bottom: 0;
}

.wt-timeline-dot {
    position: absolute;
    left: -33px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--main-brand, #ea5400);
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px rgba(234, 84, 0, 0.15);
}

.wt-timeline-year {
    font-family: 'GmarketSansBold', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--main-brand, #ea5400);
    margin-bottom: 6px;
}

.wt-timeline-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.wt-timeline-desc {
    font-size: 0.92rem;
    color: #777;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .wt-timeline { padding-left: 30px; }
    .wt-timeline::before { left: 10px; }
    .wt-timeline-dot { left: -27px; width: 13px; height: 13px; }
}

/* ──────────────────────────────────────
   Video Embed Block
   ────────────────────────────────────── */
.wt-video-wrap {
    margin-bottom: 10px;
}

.wt-video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.wt-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.wt-video-caption {
    margin-top: 12px;
    font-size: 0.95rem;
    color: #777;
    text-align: center;
    line-height: 1.5;
}

/* ──────────────────────────────────────
   Number / Stat Block
   ────────────────────────────────────── */
.wt-stat-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 10px;
}
.wt-stat-grid-2 { grid-template-columns: repeat(2, 1fr); }
.wt-stat-grid-3 { grid-template-columns: repeat(3, 1fr); }
.wt-stat-grid-4 { grid-template-columns: repeat(4, 1fr); }

.wt-stat-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 30px 24px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.wt-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.wt-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8da 100%);
    color: var(--main-brand, #ea5400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 16px;
}

.wt-stat-number {
    font-family: 'GmarketSansBold', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--main-brand, #ea5400);
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 4px;
}

.wt-stat-suffix {
    font-size: 1.2rem;
    color: #555;
}

.wt-stat-label {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-top: 8px;
    letter-spacing: -0.3px;
}

.wt-stat-desc {
    font-size: 0.88rem;
    color: #999;
    margin-top: 6px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .wt-stat-grid-3,
    .wt-stat-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .wt-stat-card { padding: 24px 18px; }
    .wt-stat-number { font-size: 2rem; }
}
@media (max-width: 480px) {
    .wt-stat-grid-2,
    .wt-stat-grid-3,
    .wt-stat-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ──────────────────────────────────────
   Download List Block
   ────────────────────────────────────── */
.wt-download-list {
    margin-bottom: 10px;
}

.wt-download-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
}
.wt-download-item:hover {
    background: #fffaf7;
    border-color: rgba(234, 84, 0, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transform: translateX(4px);
}

.wt-download-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.wt-download-icon-pdf { background: #fef2f2; color: #dc2626; }
.wt-download-icon-doc { background: #eff6ff; color: #2563eb; }
.wt-download-icon-xls { background: #f0fdf4; color: #16a34a; }
.wt-download-icon-img { background: #faf5ff; color: #9333ea; }
.wt-download-icon-default { background: #f8f9fa; color: #666; }

.wt-download-info {
    flex: 1;
    min-width: 0;
}

.wt-download-name {
    font-size: 1.02rem;
    font-weight: 700;
    color: #222;
    letter-spacing: -0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wt-download-meta {
    font-size: 0.82rem;
    color: #aaa;
    margin-top: 3px;
}

.wt-download-btn {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--main-brand, #ea5400);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.wt-download-item:hover .wt-download-btn {
    background: #d94800;
    box-shadow: 0 4px 12px rgba(234, 84, 0, 0.3);
}

@media (max-width: 768px) {
    .wt-download-item {
        padding: 14px 16px;
        gap: 12px;
    }
    .wt-download-icon { width: 38px; height: 38px; font-size: 1rem; }
}


/* ── Board Embed Pagination ── */
.be-pagination {
    display: flex; justify-content: center; align-items: center; gap: 6px;
    margin-top: 35px; padding-top: 25px; border-top: 1px solid #eee;
}
.be-page-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 10px;
    border: 1px solid #ddd; border-radius: 8px;
    font-size: 0.9rem; color: #666; text-decoration: none;
    transition: all 0.2s;
}
.be-page-btn:hover { background: #f5f5f5; border-color: #ccc; color: #333; }
.be-page-active {
    background: var(--main-brand, #e8553d); border-color: var(--main-brand, #e8553d);
    color: #fff; font-weight: 700;
}
.be-page-active:hover { background: var(--main-brand, #e8553d); color: #fff; }
