.hd-evt-single,
.hd-evt-list,
.hd-evt-list-shell,
.hd-evt-home-block,
.hd-evt-single *,
.hd-evt-home-block * {
    box-sizing: border-box;
}

.hd-evt-container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.hd-evt-list-wrap {
    width: min(1040px, 100%);
}

.hd-evt-hero {
    padding: 56px 0 34px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(37, 99, 235, .10);
}

.hd-evt-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 34px;
    align-items: center;
}

.hd-evt-hero:not(.hd-evt-hero--image) .hd-evt-hero__inner {
    display: block;
}

.hd-evt-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #eaf2ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.hd-evt-badge--soft {
    background: #f1f5f9;
    color: #475569;
}

.hd-evt-hero__topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hd-evt-heart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #fff;
    color: #64748b;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    cursor: pointer;
    appearance: none;
    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
    transition: color .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.hd-evt-heart:hover {
    border-color: #bfdbfe;
    color: #2563eb;
    transform: translateY(-1px);
}

.hd-evt-heart.is-liked {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #e11d48;
}

.hd-evt-heart.is-loading {
    opacity: .72;
    cursor: wait;
}

.hd-evt-heart__icon {
    font-size: 15px;
    line-height: 1;
}

.hd-evt-heart__count {
    min-width: 1ch;
}


.hd-evt-hero h1 {
    margin: 14px 0 14px;
    color: #0f172a;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.14;
    letter-spacing: -.03em;
}

.hd-evt-hero p {
    max-width: 760px;
    margin: 0;
    color: #475569;
    font-size: 18px;
    line-height: 1.75;
}

.hd-evt-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.hd-evt-hero__meta span {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #fff;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
}

.hd-evt-hero__visual {
    width: min(100%, 320px);
    aspect-ratio: 1 / 1;
    min-height: auto;
    justify-self: end;
    border-radius: 28px;
    background-position: center;
    background-size: cover;
    box-shadow: 0 18px 46px rgba(15, 23, 42, .12);
}

.hd-evt-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 22px;
    margin-top: 34px;
}

.hd-evt-main-grid--meta-only {
    display: block;
}

.hd-evt-content-card,
.hd-evt-side-card,
.hd-evt-notice {
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}

.hd-evt-content-card {
    padding: 30px;
}

.hd-evt-content {
    color: #1f2937;
    font-size: 17px;
    line-height: 1.85;
}

.hd-evt-content > *:first-child {
    margin-top: 0;
}

.hd-evt-content > *:last-child {
    margin-bottom: 0;
}

.hd-evt-side-card {
    align-self: start;
    padding: 22px;
    position: sticky;
    top: 96px;
}

.hd-evt-side-card--static {
    position: static;
    width: min(100%, 320px);
    margin-left: auto;
}

.hd-evt-side-card strong {
    display: block;
    margin-bottom: 14px;
    color: #0f172a;
    font-size: 18px;
}

.hd-evt-side-card dl {
    margin: 0;
}

.hd-evt-side-card dt {
    margin-top: 14px;
    color: #64748b;
    font-size: 13px;
}

.hd-evt-side-card dd {
    margin: 4px 0 0;
    color: #0f172a;
    font-weight: 700;
}

.hd-evt-linked-section {
    margin-top: 46px;
}

.hd-evt-section-head {
    margin-bottom: 22px;
}

.hd-evt-section-head span {
    display: block;
    color: #2563eb;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
}

.hd-evt-section-head h2 {
    margin: 8px 0 8px;
    color: #0f172a;
    font-size: 28px;
    line-height: 1.25;
}

.hd-evt-section-head p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

.hd-evt-hospital-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
    gap: 18px;
    justify-content: start;
}

.hd-evt-hospital-card {
    overflow: hidden;
    border: 1px solid #dbe4ef;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}

.hd-evt-hospital-card__thumb {
    display: block;
    aspect-ratio: 1 / 1;
    background-position: center;
    background-size: cover;
}

.hd-evt-hospital-card__body {
    padding: 18px;
}

.hd-evt-hospital-card__head {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.hd-evt-hospital-card__head span {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.hd-evt-hospital-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.25;
}

.hd-evt-hospital-card h3 a {
    color: #0f172a;
    text-decoration: none;
}

.hd-evt-hospital-card__service,
.hd-evt-hospital-card__address {
    margin: 8px 0 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
}

.hd-evt-hospital-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.hd-evt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
    transition: transform .16s ease, box-shadow .16s ease;
}

.hd-evt-btn:hover {
    transform: translateY(-1px);
}

.hd-evt-btn--primary {
    background: #2563eb;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .22);
}

.hd-evt-btn--ghost {
    border: 1px solid #dbe4ef;
    background: #fff;
    color: #334155 !important;
}

.hd-evt-btn--kakao {
    background: #fee500;
    color: #191919 !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .10);
}

.hd-evt-notice {
    margin-top: 28px;
    margin-bottom: 0;
    padding: 20px 22px;
    background: #f8fafc;
}

.hd-evt-notice strong {
    display: block;
    margin-bottom: 6px;
    color: #0f172a;
}

.hd-evt-notice p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

.hd-evt-bottom-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    margin-bottom: 56px;
}

.hd-evt-bottom-actions .hd-evt-btn {
    min-width: 132px;
}

.hd-evt-empty {
    padding: 22px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
}

.hd-evt-list-shell {
    width: min(1040px, 100%);
    margin: 0 auto;
}

.hd-evt-list-head {
    margin-bottom: 22px;
    padding: 24px 26px;
    border: 1px solid #dbeafe;
    border-radius: 24px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.hd-evt-list-head span {
    display: block;
    color: #2563eb;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .12em;
}

.hd-evt-list-head h2 {
    margin: 8px 0 8px;
    color: #0f172a;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.2;
    letter-spacing: -.03em;
}

.hd-evt-list-head p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.7;
}

.hd-evt-search {
    margin-top: 18px;
}

.hd-evt-search input {
    display: block;
    width: min(100%, 480px);
    min-height: 46px;
    padding: 11px 16px;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    outline: none;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .06);
    transition: border-color .16s ease, box-shadow .16s ease;
}

.hd-evt-search input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.hd-evt-search input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.hd-evt-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.hd-evt-filter button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
    appearance: none;
    transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.hd-evt-filter button.is-active {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .18);
}

.hd-evt-list {
    display: grid;
    gap: 18px;
    align-items: start;
}

.hd-evt-list--columns-1 { grid-template-columns: 1fr; }
.hd-evt-list--columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hd-evt-list--columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hd-evt-list--columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }


.hd-evt-list-bottom-action {
    display: flex;
    justify-content: center;
    margin: 28px 0 0;
}

.hd-evt-list-hospital-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 44px;
    padding: 10px 24px;
    border: 1px solid #2563eb;
    border-radius: 999px;
    background: #2563eb;
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: 0 10px 22px rgba(37, 99, 235, .18);
    transition: transform .16s ease, box-shadow .16s ease;
}

.hd-evt-list-hospital-btn:hover,
.hd-evt-list-hospital-btn:focus {
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 13px 26px rgba(37, 99, 235, .22);
}

.hd-evt-card[hidden],
.hd-evt-filter-empty[hidden] {
    display: none !important;
}

.hd-evt-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #dbe4ef;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .05);
}

.hd-evt-card__heart {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(6px);
}

.hd-evt-card__link {
    display: block;
    color: inherit;
    text-decoration: none !important;
}

.hd-evt-card__thumb {
    display: block;
    aspect-ratio: 1 / 1;
    background-position: center;
    background-size: cover;
}

.hd-evt-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
}

.hd-evt-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hd-evt-card__body strong {
    color: #0f172a;
    font-size: 18px;
    line-height: 1.3;
}

.hd-evt-card__desc,
.hd-evt-card__meta {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .hd-evt-hero__inner,
    .hd-evt-main-grid {
        grid-template-columns: 1fr;
    }

    .hd-evt-list--columns-2,
    .hd-evt-list--columns-3,
    .hd-evt-list--columns-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hd-evt-hero {
        padding-top: 38px;
    }

    .hd-evt-hero__visual {
        width: min(100%, 280px);
        justify-self: start;
    }

    .hd-evt-side-card,
    .hd-evt-side-card--static {
        position: static;
        width: 100%;
        margin-left: 0;
    }

    .hd-evt-content-card {
        padding: 22px;
    }

    .hd-evt-hospital-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .hd-evt-container {
        width: min(100% - 24px, 1120px);
    }

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

    .hd-evt-hero p,
    .hd-evt-content {
        font-size: 16px;
    }

    .hd-evt-filter button {
        flex: 1 1 calc(50% - 8px);
    }

    .hd-evt-filter button:first-child {
        flex-basis: 100%;
    }

    .hd-evt-hospital-grid {
        grid-template-columns: 1fr;
    }

    .hd-evt-list {
        gap: 10px;
    }

    .hd-evt-list--columns-2,
    .hd-evt-list--columns-3,
    .hd-evt-list--columns-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hd-evt-card {
        border-radius: 16px;
    }

    .hd-evt-card__body {
        gap: 7px;
        padding: 12px;
    }

    .hd-evt-card__body strong {
        font-size: 15px;
        line-height: 1.32;
    }

    .hd-evt-card__desc,
    .hd-evt-card__meta {
        font-size: 12px;
        line-height: 1.45;
    }

    .hd-evt-card__badges .hd-evt-badge {
        padding: 4px 7px;
        font-size: 11px;
    }

    .hd-evt-card__heart {
        top: 8px;
        right: 8px;
        min-height: 26px;
        padding: 4px 8px;
        font-size: 11px;
    }

    .hd-evt-hero__heart {
        min-height: 30px;
    }

    .hd-evt-search input {
        width: 100%;
    }

    .hd-evt-hospital-card__actions,
    .hd-evt-hero__meta,
    .hd-evt-bottom-actions {
        flex-direction: column;
    }

    .hd-evt-btn,
    .hd-evt-hero__meta span {
        width: 100%;
    }
}


/* 메인페이지용 1시간 랜덤 이벤트 미리보기 */
.hd-evt-home-block {
    display: flow-root;
    position: relative;
    z-index: 2;
    clear: both;
    width: 100%;
    overflow: visible;
}


.hd-evt-home-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 10px 0;
    text-align: center;
}

.hd-evt-home-heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(19px, 1.8vw, 24px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.025em;
}

.hd-evt-home-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.hd-evt-home-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    border: 1px solid #dbe4ef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}

.hd-evt-home-card__link {
    display: block;
    color: inherit;
    text-decoration: none !important;
}

.hd-evt-home-card__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hd-evt-home-card__thumb.is-placeholder {
    background: #f8fafc;
}

.hd-evt-home-card strong {
    display: -webkit-box;
    overflow: hidden;
    min-height: 2.7em;
    margin: 0;
    padding: 11px 12px 12px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -.01em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hd-evt-home-card__heart {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 2;
    min-height: 27px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(6px);
}

.hd-evt-home-more-wrap {
    display: flex;
    position: relative;
    z-index: 3;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: 18px;
    padding-bottom: 18px;
    pointer-events: auto;
}

.hd-evt-home-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 24px;
    border: 1px solid #2563eb;
    border-radius: 999px;
    background: #2563eb;
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 22px rgba(37, 99, 235, .18);
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.hd-evt-home-more:hover,
.hd-evt-home-more:focus,
.hd-evt-home-more:active,
.hd-evt-home-more:visited {
    transform: none;
    background: #2563eb;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(37, 99, 235, .18);
    text-decoration: none !important;
}

.hd-evt-home-more:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .28);
    outline-offset: 3px;
}

@media (max-width: 700px) {
    .hd-evt-home-heading {
        margin: 0;
        padding: 10px 0;
    }

    .hd-evt-home-heading h2 {
        font-size: 18px;
    }

    .hd-evt-home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .hd-evt-home-card {
        border-radius: 15px;
    }

    .hd-evt-home-card strong {
        min-height: 2.65em;
        padding: 9px 10px 10px;
        font-size: 13px;
    }

    .hd-evt-home-card__heart {
        top: 7px;
        right: 7px;
        min-height: 25px;
        padding: 3px 7px;
        font-size: 11px;
    }

    .hd-evt-home-more-wrap {
        min-height: 42px;
        margin-top: 14px;
        padding-bottom: 20px;
    }

    .hd-evt-home-more {
        min-height: 42px;
        padding: 9px 22px;
    }
}


@media (max-width: 560px) {
    .hd-evt-list-bottom-action {
        margin-top: 22px;
    }

    .hd-evt-list-hospital-btn {
        width: min(100%, 220px);
        min-height: 42px;
        padding: 9px 20px;
    }
}
